Well, its not a big deal since its mostly one small pickup check on the InventoryEventHandler module.
I could also allow this setting as constant value by default.
Btw
JASS:
set ci = CreateCustomItem('ratf')
[set ci.stack = x]
[set ci.dmg = 15]
[set ci.dest = 'coat']
[set ci.icon = "ReplaceableTextures\\CommandButtons\\BTNClawsOfAttack.blp"]
[set ci.name = "Clawns of Attack +15"]
[set ci.desc = "This item increases your damage \nby 15 if carried."]
These are the required values I need right now to create a new item which can be used by my system.
The [] stuff is optional, while it would look bad if you have default on everything
.
PurplePoot also has made an UnitParser that saves all the stuff in one hashtable, and hopefully he does the same for items too. Then you only have to add the bonuses and maybe the dest (Icon destructable) on your own.
JASS:
set is = CISet.create()
call is.addReq('rat6', 1)
call is.addReq('rat9', 1)
set is.str = 4
call is.setOnCheckFunc(test)
This actually makes an ItemSet which has the condition that the function called test returns true, and if the owner of the unit has
atleast one item of type rat6 (Claws of Attack +6) and atleast one of type rat9 (Claws of Attack +9) he gets 4 bonus strenght! Isn't that cool?^^
JASS:
set fi = CreateForgeItem('ratc')
call fi.addReq('rat9', 1)
call fi.addReq('rat3', 1)
This actually creates one item of type ratc (Claws of Attack +12) combined from one +3 and one +9 Claws of Attacks item.
_____________________________________________________________
Edit: New important fix:
I totally remade the CIEventHandler. Now events can easily be configured, edited or hooked whenever you want to.
This allows the user to implement their own modules more easily and gets more dynamic into the event handling.
This is also good for the pickupModule, which is now able to hook and to act before the actual eventHandler is reacting.
While this means nothing at the moment, you will see it on work what this means exactly.
This makes EventHandling faster, save and more flexible.
_____________________________________________________________
Edit2:
Is this inventory going to support the picking up of auto-consumed items(such as tomes and the D3W spheres) even when the inventory is full?
If you are allowed to pickup these items, yes. (Has to be setted as ci.autoUse= true)