Difference between revisions of "Spec mage protector"
Jump to navigation
Jump to search
m (Fixed formatting so the area sections show.) |
|||
Line 13: | Line 13: | ||
This is how my funny little bunny test looks in the area file. | This is how my funny little bunny test looks in the area file. | ||
#SPECIALS | #SPECIALS | ||
N 2108 spec_mage_protector 2108 -1 -1 -1 -1 | N 2108 spec_mage_protector 2108 -1 -1 -1 -1 | ||
#STRINGS | #STRINGS | ||
#2108 | #2108 | ||
~ | ~ | ||
$n says, 'No! I'll save you!' | $n says, 'No! I'll save you!' | ||
~ | ~ | ||
[[Category:Area Development]] | [[Category:Area Development]] |
Latest revision as of 12:40, 13 February 2015
spec_mage_protector is a Mob Extended Function and takes additional arguments that allow you specify what the protector will do before attacking.
Usage:
N <mob vnum> spec_mage_protector <strings vnum> -1 -1 -1 -1
The strings vnum is the vnum specified in the STRINGS section of the area file. It only requires the 2nd "to_room" string. It is not a say or a tell, just a message displayed to the room so in the string you must be explicit in how it should look.
ie A funny little bunny says, 'No! I'll save you!'~
If a strings vnum is not used -1 should be there in its place and the mob will send to the room "$n screams 'Save our Master!!'"
This is how my funny little bunny test looks in the area file.
#SPECIALS N 2108 spec_mage_protector 2108 -1 -1 -1 -1
#STRINGS #2108 ~ $n says, 'No! I'll save you!' ~