- Joined
- Jun 20, 2017
- Messages
- 380
The problem is that if I using the change gender ability the blink will disappear or it returns to the first normal blink!
And how to detect When the three different levels of the town hall were destroyed?! (because And - All (Conditions) are true does not work!) For example if all three town hall are destroyed, then the blink should change.
And how to detect When the three different levels of the town hall were destroyed?! (because And - All (Conditions) are true does not work!) For example if all three town hall are destroyed, then the blink should change.


-
Blink cost more mana after 30 minutes
-
Events
-
Time - Elapsed game time is 15.00 seconds
-
-
Conditions
-
Actions
-
Trigger - Turn on Blink will change if town hall is destroyed <gen>
-
Trigger - Turn on Blink will change if town hall is constructed <gen>
-
-
-
Blink will change if town hall is destroyed
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
And - All (Conditions) are true
-
Conditions
-
(Unit-type of (Dying unit)) Equal to Town Hall (2)
-
(Unit-type of (Dying unit)) Equal to Town Hall (3)
-
(Unit-type of (Dying unit)) Equal to Town Hall (4)
-
-
-
-
Actions
-
Set UnitGroup = (Units in (Playable map area))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Builder (Male)
-
(Unit-type of (Picked unit)) Equal to Builder (Female)
-
-
-
-
Then - Actions
-
Unit - Remove Blink [Human]Q from (Picked unit)
-
Unit - Remove Blink [Human]W from (Picked unit)
-
Unit - Add Blink [Human]Q disabled to (Picked unit)
-
Unit - Add Blink [Human]W disabled to (Picked unit)
-
Player - Enable Blink [Human]Q disabled for (Owner of (Picked unit))
-
Player - Enable Blink [Human]W disabled for (Owner of (Picked unit))
-
-
Else - Actions
-
-
-
-
Set PlayerGroup = (Player group((Triggering player)))
-
Game - Display to PlayerGroup the text: (Strings_PlayerColors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + (|r + your Town Hall was destroyed and Blink now cost |cffffcc0010|r mana.)))
-
Custom script: call DestroyForce(udg_PlayerGroup)
-
Custom script: call DestroyGroup(udg_UnitGroup)
-
Trigger - Turn on Blink will change if town hall is destroyed2 <gen>
-
-
-
Blink will change if town hall is destroyed2
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Change Gender
-
-
Actions
-
Set UnitGroup = (Units in (Playable map area))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Builder (Male)
-
(Unit-type of (Picked unit)) Equal to Builder (Female)
-
-
-
-
Then - Actions
-
Unit - Remove Blink [Human]Q from (Picked unit)
-
Unit - Remove Blink [Human]W from (Picked unit)
-
Unit - Add Blink [Human]Q disabled to (Picked unit)
-
Unit - Add Blink [Human]W disabled to (Picked unit)
-
Player - Enable Blink [Human]Q disabled for (Owner of (Picked unit))
-
Player - Enable Blink [Human]W disabled for (Owner of (Picked unit))
-
-
Else - Actions
-
-
-
-
-
-
Blink will change if town hall is constructed
-
Events
-
Unit - A unit Finishes construction
-
Unit - A unit Finishes an upgrade
-
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Town Hall (2)
-
(Unit-type of (Triggering unit)) Equal to Town Hall (3)
-
(Unit-type of (Triggering unit)) Equal to Town Hall (4)
-
-
-
-
Actions
-
Set UnitGroup = (Units in (Playable map area))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Builder (Male)
-
(Unit-type of (Picked unit)) Equal to Builder (Female)
-
-
-
-
Then - Actions
-
Unit - Remove Blink [Human]Q disabled from (Picked unit)
-
Unit - Remove Blink [Human]W disabled from (Picked unit)
-
Unit - Add Blink [Human]Q to (Picked unit)
-
Unit - Add Blink [Human]W to (Picked unit)
-
Player - Enable Blink [Human]Q for (Owner of (Picked unit))
-
Player - Enable Blink [Human]W for (Owner of (Picked unit))
-
-
Else - Actions
-
-
-
-
Set PlayerGroup = (Player group((Triggering player)))
-
Game - Display to PlayerGroup the text: (Strings_PlayerColors[(Player number of (Owner of (Triggering unit)))] + ((Name of (Owner of (Triggering unit))) + (|r + your Town Hall was built and Blink now cost |cffffcc001|r mana.)))
-
Custom script: call DestroyForce(udg_PlayerGroup)
-
Custom script: call DestroyGroup(udg_UnitGroup)
-
Trigger - Turn on Blink will change if town hall is constructed2 <gen>
-
-
-
Blink will change if town hall is constructed2
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Change Gender
-
-
Actions
-
Set UnitGroup = (Units in (Playable map area))
-
Unit Group - Pick every unit in UnitGroup and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Unit-type of (Picked unit)) Equal to Builder (Male)
-
(Unit-type of (Picked unit)) Equal to Builder (Female)
-
-
-
-
Then - Actions
-
Unit - Remove Blink [Human]Q disabled from (Picked unit)
-
Unit - Remove Blink [Human]W disabled from (Picked unit)
-
Unit - Add Blink [Human]Q to (Picked unit)
-
Unit - Add Blink [Human]W to (Picked unit)
-
Player - Enable Blink [Human]Q for (Owner of (Picked unit))
-
Player - Enable Blink [Human]W for (Owner of (Picked unit))
-
-
Else - Actions
-
-
-
-
-