Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Item

The data class for items.

Hierarchy

Index

Properties

animationId

animationId: number

The animation ID.

consumable

consumable: boolean

The truth value indicating whether the item disappears when used.

damage

damage: Damage

Damage (RPG.Damage).

description

description: string

The description text.

effects

effects: Array<Effect>

A list of use effects. An RPG.Effect array.

hitType

hitType: number

The type of hit.

0: Certain hit 1: Physical attack 2: Magical attack

iconIndex

iconIndex: number

The icon number.

id

id: number

The item ID.

itypeId

itypeId: number

The item type ID.

1: Regular item 2: Key item

meta

meta: object

The Meta.

Type declaration

  • [key: string]: any

name

name: string

The item name.

note

note: string

The text of the note.

occasion

occasion: number

When the item/skill may be used.

0: Always 1: Only in battle 2: Only from the menu 3: Never

price

price: number

The item's price.

repeats

repeats: number

The number of repeats.

scope

scope: number

The scope of effects.

0: None 1: One Enemy 2: All Enemies 3: One Random Enemy 4: Two Random Enemies 5: Three Random Enemies 6: Four Random Enemies 7: One Ally 8: All Allies 9: One Ally (Dead) 10: All Allies (Dead) 11: The User

speed

speed: number

The speed correction.

successRate

successRate: number

The success rate.

tpGain

tpGain: number

The number of TP gained.

Generated using TypeDoc