item
This event has been deprecated. You should avoid using it.
Description
In an item event, the user is shown a list of items.
Specific Attributes
- limit: Int - The number of items to be shown
- list: String - An Array of Item Objects (see below)
- removeRedundant: Boolean - If true, items that the user already has will not be shown.
If this would result in 0 items being shown, removeRedundant is ignored.
Item Objects
- name: String - the name of the item. This is also the name of the .webp image in your /item/ folder.
- effect: String - a description of the item's effect. The effect can be no longer than 400 characters.
- (optional) src : imageName - By default, the item's image is a .webp file in the /item/ directory. You can set a specific src in the /item/ directory here.
- (optional) mirror : boolean - If true, the item cannot be used, and will appear to both players. Use this for eg boss mechanics.
- (optional) removable: boolean - If true, the user can remove the item at any time by clicking on it.
- (optional) uses: int - the number of times the item can be used before it expires.
- (optional) inputText: String - When clicking the item, user is prompted with a text input. Using the item displays what they secretly entered.
- (optional) animation: If this is set to "none", the item will not display its normal floating animation.
"item":{
"gadjiltron": {
"limit": 3,
"list": [
{"name": "Yellow Gadget", "uses": 1, "effect": "Use when a monster is destroyed by battle.\nInflict 700 damage to your opponent."},
{"name": "Red Gadget", "uses": 1, "effect": "Use when battle damage is inflicted. \nInflict 500 damage to your opponent."},
{"name": "Green Gadget", "uses": 1, "effect": "Use as Spell Speed 1. \n1 monster you control gains 300 ATK."}
]
}
}