Opened 17 years ago
Closed 17 years ago
#1 closed task (fixed)
Set Uniques
| Reported by: | epyon | Owned by: | epyon |
|---|---|---|---|
| Priority: | major | Milestone: | 0.9.9 |
| Component: | lua | Version: | 0.9.8.10 |
| Keywords: | Cc: | ||
| Blocked By: | 59, 64 | Blocking: | 58, 65, 66 |
Description (last modified by epyon)
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:
ItemSet{
id = "gothic",
OnEquip = function ()
items = Player.setItemsEquipped( id )
if items > 2 then
Player.addFlag( BF_GOTHIC )
end
end,
OnRemove = function ()
items = Player.setItemsEquipped( id )
if items < 3 then
Player.removeFlag( BF_GOTHIC )
end
end,
};
Try to automate as much as possible with Lua, possibly the engine would not know about sets at all!
Change History (9)
comment:1 Changed 17 years ago by epyon
- Status changed from new to assigned
comment:2 Changed 17 years ago by epyon
- Description modified (diff)
comment:3 Changed 17 years ago by epyon
- Component changed from engine to lua
- Description modified (diff)
comment:4 Changed 17 years ago by epyon
- Blocking set to 58
comment:5 Changed 17 years ago by epyon
- Blocked By set to 59
comment:6 Changed 17 years ago by epyon
- Blocked By changed from 59 to 59, 64
comment:7 Changed 17 years ago by epyon
- Resolution set to fixed
- Status changed from assigned to closed
comment:8 Changed 17 years ago by epyon
- Blocking changed from 58 to 58, 65
comment:9 Changed 17 years ago by epyon
- Blocking changed from 58, 65 to 58, 65, 66
Note: See
TracTickets for help on using
tickets.

(In [516]) * item sets working ( closes #1 )