- Joined
- Jun 1, 2008
- Messages
- 180
So I've got the following trigger:
It's supposed to work the following way:
if the player presses Q (which is the hotkey for attack), the players can see the champion's attack animation, and a dummy unit should be created to launch a projectile in a line. I know that a dummy in this case might not be important, because I could just simply add the spell to the champion itself (because it's not the champion that the player has selected), but I need to do it this way because of further abilities that will be done the same way.
Any help would be greatly appreciated.
-
FC Attack
-

Events
-


Unit - A unit Starts the effect of an ability
-
-

Conditions
-


(Ability being cast) Equal to Attack
-


UnitType_Champion[(Player number of (Triggering player))] Equal to Fire Conjurer
-
-

Actions
-


Set Boolean_Attacking[(Player number of (Triggering player))] = True
-


Set Point_ChampionPosition[1] = (Position of Unit_Champion[1])
-


Set Point_ChampionPosition[2] = (Position of Unit_Champion[2])
-


Unit - Remove Unit_Champion[(Player number of (Triggering player))] from the game
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Triggering player) Equal to Player 1 (Red)
-
-



Then - Actions
-




Unit - Create 1 UnitType_Champion[(Player number of (Triggering player))] for (Triggering player) at Point_ChampionPosition[(Player number of (Triggering player))] facing (Position of Unit_Champion[2])
-
-



Else - Actions
-




Unit - Create 1 UnitType_Champion[(Player number of (Triggering player))] for (Triggering player) at Point_ChampionPosition[(Player number of (Triggering player))] facing (Position of Unit_Champion[1])
-
-
-


Set Unit_Champion[(Player number of (Triggering player))] = (Last created unit)
-


Animation - Play Unit_Champion[(Player number of (Triggering player))]'s attack animation
-


Animation - Queue Unit_Champion[(Player number of (Triggering player))]'s stand animation
-


-------- UNIQUE --------
-


If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-



If - Conditions
-




(Triggering player) Equal to Player 1 (Red)
-
-



Then - Actions
-




Unit - Create 1 Dummy for (Triggering player) at Point_ChampionPosition[(Player number of (Triggering player))] facing (Position of Unit_Champion[2])
-




Set Unit_Dummy[(Player number of (Triggering player))] = (Last created unit)
-




Animation - Change Unit_Dummy[(Player number of (Triggering player))]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-




Unit - Add Dummy Spell - Fire Conjurer Attack to Unit_Dummy[(Player number of (Triggering player))]
-




Set Point_ChampionPosition[2] = (Position of Unit_Champion[2])
-




Unit - Order Unit_Dummy[(Player number of (Triggering player))] to Orc Tauren Chieftain - Shockwave Point_ChampionPosition[2]
-
-



Else - Actions
-




Unit - Create 1 Dummy for (Triggering player) at Point_ChampionPosition[(Player number of (Triggering player))] facing (Position of Unit_Champion[1])
-




Set Unit_Dummy[(Player number of (Triggering player))] = (Last created unit)
-




Animation - Change Unit_Dummy[(Player number of (Triggering player))]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 100.00% transparency
-




Unit - Add Dummy Spell - Fire Conjurer Attack to Unit_Dummy[(Player number of (Triggering player))]
-




Unit - Order Unit_Dummy[(Player number of (Triggering player))] to Orc Tauren Chieftain - Shockwave Point_ChampionPosition[1]
-
-
-


Wait 0.80 seconds
-


Set Boolean_Attacking[(Player number of (Triggering player))] = False
-


Trigger - Run Move After Attack <gen> (checking conditions)
-
-
It's supposed to work the following way:
if the player presses Q (which is the hotkey for attack), the players can see the champion's attack animation, and a dummy unit should be created to launch a projectile in a line. I know that a dummy in this case might not be important, because I could just simply add the spell to the champion itself (because it's not the champion that the player has selected), but I need to do it this way because of further abilities that will be done the same way.
Any help would be greatly appreciated.













