Familiar territory. Game_Item keeps the RPG Maker MZ API, so existing MZ knowledge, tutorials and plugin code apply. Reactor's additions are marked with descriptions below.
Quick Reference
Setup & Creation 1
| initialize() | Sets up a new instance. |
Getting Information 1
| itemId() | Item id. |
Checks (True / False) 7
| isSkill() | Whether it is skill. |
| isItem() | Whether it is item. |
| isUsableItem() | Whether it is usable item. |
| isWeapon() | Whether it is weapon. |
| isArmor() | Whether it is armor. |
| isEquipItem() | Whether it is equip item. |
| isNull() | Whether it is null. |
Actions 2
| setObject() | Sets the object. |
| setEquip() | Sets the equip. |
Other 1
| object() | Object. |
Setup & Creation
initialize
method sourceGame_Item.prototype.initialize(item)
Sets up a new instance. (Same as the RPG Maker MZ method of this name.)
Getting Information
itemId
method sourceGame_Item.prototype.itemId()
Item id. (Same as the RPG Maker MZ method of this name.)
Checks (True / False)
isSkill
method sourceGame_Item.prototype.isSkill()
Whether it is skill. (Same as the RPG Maker MZ method of this name.)
isItem
method sourceGame_Item.prototype.isItem()
Whether it is item. (Same as the RPG Maker MZ method of this name.)
isUsableItem
method sourceGame_Item.prototype.isUsableItem()
Whether it is usable item. (Same as the RPG Maker MZ method of this name.)
isWeapon
method sourceGame_Item.prototype.isWeapon()
Whether it is weapon. (Same as the RPG Maker MZ method of this name.)
isArmor
method sourceGame_Item.prototype.isArmor()
Whether it is armor. (Same as the RPG Maker MZ method of this name.)
isEquipItem
method sourceGame_Item.prototype.isEquipItem()
Whether it is equip item. (Same as the RPG Maker MZ method of this name.)
isNull
method sourceGame_Item.prototype.isNull()
Whether it is null. (Same as the RPG Maker MZ method of this name.)
Actions
setObject
method sourceGame_Item.prototype.setObject(item)
Sets the object. (Same as the RPG Maker MZ method of this name.)
setEquip
method sourceGame_Item.prototype.setEquip(isWeapon, itemId)
Sets the equip. (Same as the RPG Maker MZ method of this name.)
Other
object
method sourceGame_Item.prototype.object()
Object. (Same as the RPG Maker MZ method of this name.)