- Joined
- Nov 9, 2011
- Messages
- 326
Hey just quick question about 1 trigger.
Should i do it like this
or should i have unit also saved into a variable because i have like 6 of alike triggers.
Should i do it like this
-
Bush Picked up
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
(Item-type of (Item being manipulated)) Equal to DroppedItems_Branch
-
(Unit-type of (Triggering unit)) Equal to Survivor_Type
-
-
Actions
-
Set tempItem = (Item being manipulated)
-
For each (Integer tempInt) from 1 to 12, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Owner of (Triggering unit)) Equal to Players[tempInt]
-
-
Then - Actions
-
Set Item_Branch[tempInt] = (Item_Branch[tempInt] + (Charges remaining in tempItem))
-
-
Else - Actions
-
-
-
-
Set tempItem = No item
-
Trigger - Run Update MB <gen> (ignoring conditions)
-
-