Difference between revisions of "Spec mage protector"

From The Final Challenge Wiki
Jump to navigation Jump to search
Line 1: Line 1:
spec_mage_protector is a [[Mob Extended Function]] and takes additional arguments that allow you specify what the protector will yell before attacking.
spec_mage_protector is a [[Mob Extended Function]] and takes additional arguments that allow you specify what the protector will do before attacking.


Usage:
Usage:
Line 5: Line 5:
N <mob vnum> spec_mage_protector <strings vnum> -1 -1 -1 -1
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.
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!!'"
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!'
~




[[Category:Area Development]]
[[Category:Area Development]]

Revision as of 11:41, 11 November 2012

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.

  1. SPECIALS

N 2108 spec_mage_protector 2108 -1 -1 -1 -1


  1. STRINGS
  2. 2108

~ $n says, 'No! I'll save you!' ~