moss-n-puddles/commands/wizards.py
Howard Abrams 0230d5dc20 Change text randomization from {{...}} to <<..>>
This doesn't interfere with Python's formatting.
2025-04-17 20:39:40 -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)