NPC Variables: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 4: | Line 4: | ||
<talk text="My name is $name" /> | <talk text="My name is $name" /> | ||
Before keywords is replaced the NPC and Tribe buffers will be replaced. This allows keywords in the buffers. | |||
{| | |||
!Keyword | |||
!Description | |||
|- | |||
|$NBUFFER[x] | |||
|Replace with the value from the NPC buffers | |||
|- | |||
|$TBUFFER[x] | |||
|Replace with the value from the Tribe buffers | |||
|- | |||
|} | |||
Keywords that will be replaced. | |||
{| | {| | ||
Line 14: | Line 29: | ||
|$owner | |$owner | ||
|If npc is a pet, replaced with the name of the owner | |If npc is a pet, replaced with the name of the owner | ||
|- | |||
|$member_type | |||
|Replace with the npc tribe member type. | |||
|- | |- | ||
|$race | |$race |
Revision as of 10:52, 24 December 2011
Substituted Keyword
The following keywords are replaced in strings used in the NPC Client Scripting. It allows for generic scripting like:
<talk text="My name is $name" />
Before keywords is replaced the NPC and Tribe buffers will be replaced. This allows keywords in the buffers.
Keyword | Description |
---|---|
$NBUFFER[x] | Replace with the value from the NPC buffers |
$TBUFFER[x] | Replace with the value from the Tribe buffers |
Keywords that will be replaced.
Keyword | Description |
---|---|
$name | Replaced with the name of the NPC. |
$owner | If npc is a pet, replaced with the name of the owner |
$member_type | Replace with the npc tribe member type. |
$race | Replaced with the race of the NPC. |
$target | Replaced with the name of the current target. |
$tribe | If npc is part of a tribe, replaced with the tribes name. |