- Joined
- Jun 20, 2017
- Messages
- 380
I'm trying to move my tower to a new location!
The first trigger works fine but has no effect.
So I'm trying to add an effect on the second trigger.
When I use the ability, it creates a wisp above the tower and tower became unslectable, and allows me to move the wisp to a desired location!
And when I select another unit, the wisp is still there until you move it, so it does not disappear!
And when I want to select the wisp, it should force me to build/move the tower.
what works
the wisp moving
And what doesn't work
the sfx and moving the unit!
The special effect should be displayed after the unit is moved to a new location.
For the second trigger I want it to be like the first trigger, like you can't move your unit into the forbidden area!
The first trigger works fine but has no effect.
So I'm trying to add an effect on the second trigger.
When I use the ability, it creates a wisp above the tower and tower became unslectable, and allows me to move the wisp to a desired location!
And when I select another unit, the wisp is still there until you move it, so it does not disappear!
And when I want to select the wisp, it should force me to build/move the tower.
what works
the wisp moving
And what doesn't work
the sfx and moving the unit!
The special effect should be displayed after the unit is moved to a new location.
For the second trigger I want it to be like the first trigger, like you can't move your unit into the forbidden area!
-
Tower Moves
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Move Tower [Custom]
-
-
Actions
-
-------- West --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 1 (Red)
-
(Owner of (Casting unit)) Equal to Player 2 (Blue)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(RedBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(BlueBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(RBCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(RBCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Move Tower [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 3 (Teal)
-
(Owner of (Casting unit)) Equal to Player 4 (Purple)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(TealBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(PurpleBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(TPCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(TPCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Sphere [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 5 (Yellow)
-
(Owner of (Casting unit)) Equal to Player 6 (Orange)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(YellowBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(OrangeBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(YOCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(YOCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Sphere [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-------- --------
-
-------- East --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 7 (Green)
-
(Owner of (Casting unit)) Equal to Player 8 (Pink)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(GreenBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(PinkBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(GPCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(GPCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Sphere [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 9 (Gray)
-
(Owner of (Casting unit)) Equal to Player 10 (Light Blue)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(GrayBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(LightBlueBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(GLCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(GLCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Sphere [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-------- --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(Owner of (Casting unit)) Equal to Player 11 (Dark Green)
-
(Owner of (Casting unit)) Equal to Player 12 (Brown)
-
-
-
And - All (Conditions) are true
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
-
(DarkGreenBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(BrownBuild <gen> contains (Target point of ability being cast)) Equal to True
-
(DBCreepArmor <gen> contains (Target point of ability being cast)) Equal to True
-
(DBCreepArmor2 <gen> contains (Target point of ability being cast)) Equal to True
-
-
-
-
-
-
Then - Actions
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Unit - Remove Sphere [Custom] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
-
-
-
Moves Tower
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Move Tower2 [Channel]
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Move Tower2 [Channel]
-
-
Then - Actions
-
Custom script: call UnitAddAbility(GetSpellAbilityUnit(), 'Aloc')
-
Unit - Create 1 Move Tower [Special Effect Wisp] for (Owner of (Casting unit)) at (Position of (Casting unit)) facing Default building facing degrees
-
Selection - Select (Last created unit) for (Owner of (Casting unit))
-
Unit - Order (Last created unit) to Undead Build.
-
Game - Force (Owner of (Last created unit)) to press the key Q.
-
-------- --------
-
Set VariableSet Point_Temp = (Target point of ability being cast)
-
Unit - Move (Casting unit) instantly to Point_Temp, facing Default building facing degrees
-
Special Effect - Create a special effect at (Target point of ability being cast) using Abilities\Spells\Human\Resurrect\ResurrectTarget.mdl
-
Custom script: call UnitRemoveAbility(GetSpellAbilityUnit(), 'Aloc')
-
Unit - Remove Move Tower2 [Channel] from (Casting unit)
-
Custom script: call RemoveLocation(udg_Point_Temp)
-
-
Else - Actions
-
Game - Display to (All players matching ((Owner of (Matching unit)) Equal to (Owner of (Casting unit))).) for 10.00 seconds the text: |cffff0000You can't...
-
Unit - Order (Last created unit) to Undead Build.
-
Game - Force (Owner of (Last created unit)) to press the key Q.
-
-
-
-
-
Select moving tower
-
Events
-
Player - Player 1 (Red) Selects a unit
-
Player - Player 2 (Blue) Selects a unit
-
Player - Player 3 (Teal) Selects a unit
-
Player - Player 4 (Purple) Selects a unit
-
Player - Player 5 (Yellow) Selects a unit
-
Player - Player 6 (Orange) Selects a unit
-
Player - Player 7 (Green) Selects a unit
-
Player - Player 8 (Pink) Selects a unit
-
Player - Player 9 (Gray) Selects a unit
-
Player - Player 10 (Light Blue) Selects a unit
-
Player - Player 11 (Dark Green) Selects a unit
-
Player - Player 12 (Brown) Selects a unit
-
-
Conditions
-
(Unit-type of (Triggering unit)) Equal to Move Tower [Special Effect Wisp]
-
-
Actions
-
Unit - Order (Triggering unit) to Undead Build.
-
Game - Force (Owner of (Triggering unit)) to press the key Q.
-
-
Attachments
-
Screenshot_9.png2.2 MB · Views: 20
-
Screenshot_19.png2.4 MB · Views: 20
-
Screenshot_18.png2.4 MB · Views: 17
-
Screenshot_17.png2.4 MB · Views: 19
-
Screenshot_16.png2.3 MB · Views: 18
-
Screenshot_15.png2.3 MB · Views: 19
-
Screenshot_14.png2.3 MB · Views: 17
-
Screenshot_13.png2.2 MB · Views: 16
-
Screenshot_12.png2.2 MB · Views: 18
-
Screenshot_11.png2.3 MB · Views: 20
-
Screenshot_10.png2.3 MB · Views: 20
-
m test.w3m20.8 KB · Views: 12
Last edited: