Changes between Version 2 and Version 3 of Ticket #1
- Timestamp:
- 06/05/09 17:59:11 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #1
- Property Component changed from engine to lua
-
Ticket #1 – Description
v2 v3 1 Implement a set Uniques system. 1 Implement a set Uniques system. In lua, a set element would have the following new fields : an IF_SET flag, and a set = "setname". Then, a separate entity of sets would be present: 2 2 3 Add set uniques: 4 Gothic Cannon + Gothic Armor + Gothic Boots = stationary cannon :P 5 Basically, additional stats unlocked by having a full set of uniques. 3 {{{ 4 #!lua 5 ItemSet{ 6 id = "gothic", 7 OnEquip = function () 8 items = Player.setItemsEquipped( id ) 9 if items > 2 then 10 Player.addFlag( BF_GOTHIC ) 11 end 12 end, 13 OnRemove = function () 14 items = Player.setItemsEquipped( id ) 15 if items < 3 then 16 Player.removeFlag( BF_GOTHIC ) 17 end 18 end, 19 }; 20 }}} 6 21 7 22 Try to automate as much as possible with Lua, possibly the engine would not know about sets at all!