moss-n-puddles/commands/wizards.py
Howard Abrams 7e28dc3a7c Switch random choices to not clash with colors
Fix a few bugs while I'm at it.
2025-04-16 12:43:53 -07:00

29 lines
765 B
Python
Executable file

#!/usr/bin/env python
from .command import Command
from evennia import CmdSet
class CmdFly(Command):
"""Cast the 'fly' spell.
Make sure you set the following properties, for instance:
@set self/disappear_msg = "The wizard disappears in a puff of smoke."
@set self/reappear_msg = "A plume of {{white ^ light blue ^ gray ^ }} smoke appears... ;; When the smoke clears, a wizard {{emerges ^ materializes}}."
@set self/appear_delay = 3
The last setting is the number of seconds between message segments
(those are separated by double semicolons).
"""
key = "^fly"
def func(self):
self.caller.do_fly(self.args.strip())
class CmdSetWizardSpells(CmdSet):
def at_cmdset_creation(self):
self.add(CmdFly)