Difference between revisions of "Spec act on give"
Jump to navigation
Jump to search
(Created page with "spec_act_on_give is a Mob Extended Function. It provides for special behavior when an object is given to target mob from a PC. Usage: N <mob vnum> spec_act_on_give <obj vn...") |
|||
Line 3: | Line 3: | ||
Usage: | Usage: | ||
N <mob vnum> spec_act_on_give <obj vnum to receive> <action type> <target vnum> -1 < | N <mob vnum> spec_act_on_give <obj vnum to receive> <action type> <target vnum> -1 <string vnum or -1> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 26: | Line 26: | ||
|- | |- | ||
|action description | |action description | ||
|'''-1''' is the default description. Otherwise, | |'''-1''' is the default description. Otherwise, description vnum specified in the #[[STRINGS]] section. | ||
|} | |} | ||
Example: | Example: | ||
N 1200 spec_act_on_give 20 1 2788 -1 | N 1200 spec_act_on_give 20 1 2788 -1 1212 * Spec assigned to mob vnum 1200. When given object of vnum 20, load and give PC object of item 2788, using vnum 1212 strings. |
Revision as of 11:49, 13 February 2011
spec_act_on_give is a Mob Extended Function. It provides for special behavior when an object is given to target mob from a PC.
Usage:
N <mob vnum> spec_act_on_give <obj vnum to receive> <action type> <target vnum> -1 <string vnum or -1>
Field | Description |
---|---|
mob vnum | The vnum of the mob that this special function should be attached to |
obj vnum to receive | This is the object vnum that the mobs expects to be given |
action type | 0 is the action type for transferring a PC. 1 is the action type for giving a PC an object in return for the item given. |
target vnum | For action type 0 (transfer), this is the vnum of the room to transfer the character to For action type 1 (give), this is the object vnum to give the character |
-1 | (Field not used) |
action description | -1 is the default description. Otherwise, description vnum specified in the #STRINGS section. |
Example:
N 1200 spec_act_on_give 20 1 2788 -1 1212 * Spec assigned to mob vnum 1200. When given object of vnum 20, load and give PC object of item 2788, using vnum 1212 strings.