-
Notifications
You must be signed in to change notification settings - Fork 12
Magic
Jeremy Harton edited this page May 13, 2024
·
2 revisions
MUDServer only implements a very basicsort of magic system (mixing both "arcane" and "divine" magic, with respect to D&D).
There are other bits and pieces of code which are not used much or well implemented, though.
The primary matter of interest to the player is the names of these spells and how to use them, whereas anyone wishing to explore the limits of the existing time might wish to understand better the file format used to define them.
Example (a spell):
invisibility#You cast invisibility on &target#instant#invisibility#none#self,friend
name -> invisibility
message -> You cast invisibility on &target
casting time -> instant
effect -> invisibility
reagents -> none
valid targets -> self, friend
Basically, in just one line, we are:
- defining a name for the spell
- a short message to show the player when they cast it
- a casting time/duration? (not currently used/implemented properly)
- the effect we want to be applied to the target on a successful cast
- any "reagents" required
- a comma-delimited list of valid target keys