n4bieclimber
New Member
- Reaction score
- 1
first off lets show the 2 triggers shall we
what this second trigger must do is after it pauses the building check if the building that he paused got some building material while he was unpaused... as u can see i tried it with a run trigger with condition but it doest work cause of there is no item being manipulated reference :s. is there any way to solve this.
Ps. this is a building system like K&M if u know the game.
:edit: whoops used code instead of wc3 :S
Trigger:
- Construction Material
- Events
- Unit - A unit Acquires an item
- Conditions
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (Item-type of (Item being manipulated)) Equal to lumber
- (Percentage life of (Triggering unit)) Less than 50.00
- ((Triggering unit) is A structure) Equal to True
- ((Triggering unit) is paused) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Unpause (Triggering unit)
- Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Charges remaining in (Item being manipulated)) Equal to 0
- Then - Actions
- Item - Remove (Item being manipulated)
- Else - Actions
- If - Conditions
- Else - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- And - All (Conditions) are true
- Conditions
- (Item-type of (Item being manipulated)) Equal to Stone
- (Percentage life of (Triggering unit)) Greater than or equal to 50.00
- ((Triggering unit) is A structure) Equal to True
- ((Triggering unit) is paused) Equal to True
- Conditions
- And - All (Conditions) are true
- Then - Actions
- Unit - Unpause (Triggering unit)
- Item - Set charges remaining in (Item being manipulated) to ((Charges remaining in (Item being manipulated)) - 1)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Charges remaining in (Item being manipulated)) Equal to 0
- Then - Actions
- Item - Remove (Item being manipulated)
- Else - Actions
- If - Conditions
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
Trigger:
- Repause trigger
- Events
- Time - Every 0.10 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to cons_building_no, do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- ((Life of Cons_building_list[(Integer A)]) mod 50.00) Less than 1.00
- Then - Actions
- Unit - Set life of Cons_building_list[(Integer A)] to ((Life of Cons_building_list[(Integer A)]) + 1.00)
- Unit - Pause Cons_building_list[(Integer A)]
- Trigger - Run Construction Material <gen> (checking conditions)
- Else - Actions
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- For each (Integer A) from 1 to cons_building_no, do (Actions)
- Events
what this second trigger must do is after it pauses the building check if the building that he paused got some building material while he was unpaused... as u can see i tried it with a run trigger with condition but it doest work cause of there is no item being manipulated reference :s. is there any way to solve this.
Ps. this is a building system like K&M if u know the game.
:edit: whoops used code instead of wc3 :S