-
Notifications
You must be signed in to change notification settings - Fork 760
Getequipname
Haru edited this page Oct 19, 2016
·
1 revision
- getequipname(<equipment></equipment>);
Returns the jname of the item equipped in the specified equipment slot on the invoking character, or an empty string ("") if nothing is equipped in that position.
Does the same thing as getitemname(getequipid(<slot></slot>)). Useful for an NPC to state what your are wearing, or maybe saving as a string variable.
See 'getequipid' for a full list of valid equipment slots.
[[if]] (getequipname(EQI_HAND_L)==""){ [[mes]] "You are wearing nothing on Left Hand"; } else { mes "You are wearing "+getequipname(EQI_HAND_L)+" on Left Hand"; }Category:Script Command