- Joined
- Nov 21, 2012
- Messages
- 835
Hey guys, Im sitting few hours and cannot make simple solution..
I need a function that checks if a given unit has all items (up to 4) in inventory
something like this:
it may look like
*but* also like this:
any help is greatly appreciated ;]
zibi
I need a function that checks if a given unit has all items (up to 4) in inventory
something like this:
JASS:
function HasAllItems takes unit u, integer i1, integer i2, integer i3, integer i4 returns boolean
it may look like
JASS:
call HasAllItems(u, 'afac', 'spsh', 'ajen', 'bgst')
JASS:
call HasAllItems(u, 'afac', 'afac', 'ajen', 0)
any help is greatly appreciated ;]
zibi