Updated, v1.1.0.
- Added the option for items to have randomized stat values.
- Implemented a parsing system which allows you to initialize items through a string.
- Fixed a bug where items that added abilities when acquired (not equipped), wouldn't be removed.
- Fixed a new bug (from v1.0.5) that wouldn't hide icons when switching pages.
Example of the string parsing system:
JASS:
// Claws of Attack +15
call InitEquipItem.execute('ratf', "Increases the attack damage of the Hero by 15 when worn.^type=weapon; class=1h; icon='D009'; cost=28; ^dmg=15;0;0;")
// Robe of the Last Guardian
call InitEquipItem.execute('I007', "Powerful magic robe.^type=armor; lvl=10; icon=B00Z; utype='Ulic'; cost=600; ^def=0;10;20; int=20;0;5; life=300;0;0;")
It's potentially much shorter compared to the default way. It takes a bit more processing power so you should use .execute like above.
The format is
"Description ^parameter=value; ^bonus=base;min;max;"
The available keywords are:
Paramaters: type, lvl, cost, abil, utype, icon, class
Bonuses: dmg, def, str, agi, int, ias, hp, mana, manareg, sight, ms, lifereg
Types: weapon, whield, armor, boots, bracers, gloves, belt, helm, pauldron, amulet, pants, ring, shield
Class: 1h