Opened 16 years ago

Last modified 16 years ago

#1 closed task

Set Uniques — at Version 3

Reported by: epyon Owned by: epyon
Priority: major Milestone: 0.9.9
Component: lua Version: 0.9.8.10
Keywords: Cc:
Blocked By: Blocking:

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 (3)

comment:1 Changed 16 years ago by epyon

  • Status changed from new to assigned

comment:2 Changed 16 years ago by epyon

  • Description modified (diff)

comment:3 Changed 16 years ago by epyon

  • Component changed from engine to lua
  • Description modified (diff)
Note: See TracTickets for help on using tickets.