Warcraft III resources & community, 2003–2006 · archived

Most likely the easyist thing ever asked ^^

16 posts
#16
furnace78Events
- A unit acquires an Item

Conditions:
- None

Actions:
- For each (Integer A) from 0 to [The number of items in your stackable_items array] Do Action:
- If ( Item-Type of (Item Being Manipulated) Equal To (Stackable_Items[Integer A]) ) Then ( Set dInteger = Integer A ) Else ( Do Nothing )

- For each (Integer A) from 1 to 6 Do Actions:
- IF:
- Item type of ( Item carried by (Triggering Unit) in slot (Integer A) ) Equal To ( Stackable_Items[dInteger] )
- Item carried by (Triggering Unit) in slot (Integer A) Not Equal To (Item Being Manipulated)
THEN:
- Set charges remaining in ( Item carried by (Triggering Unit) in slot (Integer A) ) to ( ( Charges Remaining in ( Item carried by (Triggering Unit) in slot (Integer A) ) + ( Charges Remaining in (Item Being Manipulated ) )
- Remove (Item Being Manipulated)
- Skip Remaining Actions
-klovadis


Dude, maybe if u actually tried Reading what he wrote :evil: :P



THAT WAS EXATLY WHAT I WANTED THANK YOU!!!