Skip to content
Haru edited this page Oct 19, 2016 · 1 revision

Table of Contents

Syntax

  • getequipname(<equipment></equipment>);

Description

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.

Examples

 [[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";
 }

See Also

Category:Script Command
Clone this wiki locally