Spec equipped token
Jump to navigation
Jump to search
spec_equipped_token is a Mob Extended Function. It provides for special behavior when a PC has equipped/worn the object specified with the special function.
Usage:
N <mob vnum> spec_equipped_token <token (object) vnum equipped> <token type> <match type or -1> <match value or -1> <string vnum or -1>
Field | Description |
---|---|
mob vnum | The vnum of the mob that this special function is attached to |
token object vnum equipped | The vnum of the token object that will trigger the special function when the object is equipped by a PC |
token type | Indicates when a PC will be checked for equipped object (token). 1 causes an aggressive mob to no longer be aggressive to the PC wearing the token. |
match type | If desired, the successful use of the token can be based on one of the following criteria: -1 Disable secondary match 1Race of wearer 2 Class of wearer (in any position) 3 Specified effective level of wearer or higher 4 Specified effective level of wearer or lower 5 Primary (1st position) level of wearer or higher 6 Primary (1st position) level of wearer or lower 7 Sex of wearer |
match value | Numeric value that corresponds with the match type chosen, or -1 if token can be used by any PC |
string vnum | As this is often not useful with mob special functions, you would usually specify -1 |
Example:
N 1200 spec_equipped_token 20 1 2 0 -1
This would attach the special function to mob matching vnum 1200. If the PC was wearing the object with vnum 20 AND s/he had a MAGE class, the mob would not aggressively attack the PC.