Denizen/0.7/Replaceables: Difference between revisions

From Citizens Wiki

< Denizen‎ | 0.7

(Added 3 basic replaceables.)
(Separated replaceables into two categories.)
Line 1: Line 1:
Replaceable data tags can be used to dynamically put flags and values inside texts and commands.
Replaceable data tags can be used to dynamically put flags and values inside texts and commands.
===Player Replaceables===


{{Denizen Requirement Type Color|honeydew|
{{Denizen Requirement Type Color|honeydew|
Line 7: Line 9:


{{Denizen Requirement Type Color|honeydew|
{{Denizen Requirement Type Color|honeydew|
<NPC>
<PLAYER> or <PLAYER.NAME>
| The name of the Denizen interacted with.
| The name of the Player.
}}
}}


{{Denizen Requirement Type Color|honeydew|
{{Denizen Requirement Type Color|honeydew|
<NPCID>
<PLAYER.HEALTH>
| The ID of the Denizen interacted with.
| The Player's current health.
}}
}}


{{Denizen Requirement Type Color|honeydew|
{{Denizen Requirement Type Color|honeydew|
<PLAYER>
<PLAYER.WORLD>
| The name of the Player interacting with the Denizen.
| The name of the world the Player is in.
}}
 
===Denizen Replaceables===
 
{{Denizen Requirement Type Color|papayawhip|
<NPC> or <DENIZEN.NAME>
| The name of the Denizen.
}}
 
{{Denizen Requirement Type Color|papayawhip|
<NPCID> or <DENIZEN.NPCID>
| The ID of the Denizen.
}}
}}

Revision as of 20:47, 30 September 2012

Replaceable data tags can be used to dynamically put flags and values inside texts and commands.

Player Replaceables

<DISPLAYNAME>

The display name of the Player interacting with the Denizen, i.e. the name including colors.

<PLAYER> or <PLAYER.NAME>

The name of the Player.

<PLAYER.HEALTH>

The Player's current health.

<PLAYER.WORLD>

The name of the world the Player is in.

Denizen Replaceables

<NPC> or <DENIZEN.NAME>

The name of the Denizen.

<NPCID> or <DENIZEN.NPCID>

The ID of the Denizen.