Hello fellow members
I need help with my Recall units trigger... In my map there is two phases : Build phase and attack phase. You can only build in build phase. In attack phase the buildings built in build phase [ Will be hidden ] is replaced by a temporary building of same stats. When attack phase is over this temporary building is removed and the original building built in build phase is unhid.
This is my trigger :
This is the first part of the trigger where it replaces the original buildings ( Spirits ) with the temporary ones. The attack phase is started off by typing " start " in this case.
This is the second part of the trigger, where the temporary building is removed while the " Spirits " are unhid.
Problem: When i tried the trigger out, the spirits will not get replaced and the temporary buildings will not spawn... It's a total failure in other words. Help me out will ya? =)
I thank you from the very bottom of my heart.
I need help with my Recall units trigger... In my map there is two phases : Build phase and attack phase. You can only build in build phase. In attack phase the buildings built in build phase [ Will be hidden ] is replaced by a temporary building of same stats. When attack phase is over this temporary building is removed and the original building built in build phase is unhid.
This is my trigger :
This is the first part of the trigger where it replaces the original buildings ( Spirits ) with the temporary ones. The attack phase is started off by typing " start " in this case.
-
Start
-
Events
-
Player - Player 1 (Red) types a chat message containing start as An exact match
-
-
Conditions
-
Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Unit-type of (Picked unit)) Equal to |cffccccaaWooden Wall|r [Spirit])) and do (Actions)
-
Loop - Actions
-
Set Point_Temp[4] = (Position of (Picked unit))
-
Unit - Create 1 |cffccccaaWooden Wall|r for (Picked player) at Point_Temp[4] facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_Point_Temp[4])
-
Unit - Hide (Picked unit)
-
-
-
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Unit-type of (Picked unit)) Equal to |cffccccaaReinforced Wooden Wall|r [Spirit])) and do (Actions)
-
Loop - Actions
-
Set Point_Temp[5] = (Position of (Picked unit))
-
Unit - Create 1 |cffccccaaReinforced Wooden Wall|r for (Picked player) at Point_Temp[5] facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_Point_Temp[5])
-
Unit - Hide (Picked unit)
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Unit-type of (Picked unit)) Equal to |cffccccaaSmall House|r [Spirit])) and do (Actions)
-
Loop - Actions
-
Set Point_Temp[7] = (Position of (Picked unit))
-
Unit - Create 1 |cffccccaaSmall House|r for (Picked player) at Point_Temp[7] facing Default building facing degrees
-
Custom script: call RemoveLocation(udg_Point_Temp[7])
-
Unit - Hide (Picked unit)
-
-
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type |cffff0000Wait until round ends!|r) and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
-
-
-
This is the second part of the trigger, where the temporary building is removed while the " Spirits " are unhid.
-
stop
-
Events
-
Player - Player 1 (Red) types a chat message containing stop as An exact match
-
-
Conditions
-
Actions
-
Custom script: set bj_wantDestroyGroup = true
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Unit Group - Pick every unit in (Units owned by (Picked player) matching ((Unit-type of (Picked unit)) Equal to |cffccccaaWooden Wall|r)) and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
-
-
Unit Group - Pick every unit in (Units owned by (Picked player) matching (((Matching unit) is A structure) Equal to True)) and do (Actions)
-
Loop - Actions
-
Unit - Unhide (Picked unit)
-
-
-
Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units of type |cffff0000Wait until round ends!|r) and do (Actions)
-
Loop - Actions
-
Unit - Remove (Picked unit) from the game
-
-
-
Set Point_Temp[3] = (Center of Region 021 <gen>)
-
Player Group - Pick every player in (All players) and do (Actions)
-
Loop - Actions
-
Unit - Create 1 |cffff0000Wait until round ends!|r for (Picked player) at Point_Temp[3] facing Default building facing degrees
-
-
-
Custom script: call RemoveLocation(udg_Point_Temp[3])
-
-
Problem: When i tried the trigger out, the spirits will not get replaced and the temporary buildings will not spawn... It's a total failure in other words. Help me out will ya? =)
I thank you from the very bottom of my heart.