- Joined
- Jul 19, 2007
- Messages
- 824
I have an ability named "Shield Bash" in my map that sometimes seems to be bugging the hero to remove it's model and only become a shadow so that no one can click it. Why is this happening sometimes!? I can't find the problem...
-
first Copy
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Shield Bash
-
Actions
- Set VariableSet TempLoc = (Position of Boromir 0230 <gen>)
- Set VariableSet targecikjumpa_Copy = (Position of (Target unit of ability being cast))
- Set VariableSet LeapDistance_Copy = (Distance between TempLoc and targecikjumpa_Copy)
- Custom script: if (IsPointWalkable(GetLocationX(udg_targecikjumpa_Copy),GetLocationY(udg_targecikjumpa_Copy))) then
- Custom script: else
- Unit - Order Boromir 0230 <gen> to Stop.
- Game - Display to (Player group((Owner of Boromir 0230 <gen>))) the text: |cffffcc00Target un...
- Custom script: endif
- Custom script: call RemoveLocation (udg_TempLoc)
- Custom script: call RemoveLocation(udg_targecikjumpa_Copy)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- LeapDistance_Copy Less than 150.00
-
Then - Actions
- Unit - Order Boromir 0230 <gen> to Stop.
- Game - Display to (Player group((Owner of Boromir 0230 <gen>))) the text: |cffffcc00Target is...
- Else - Actions
-
If - Conditions
-
Events
-
second Copy
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Shield Bash
-
Actions
- Set VariableSet TempLoc = (Position of Boromir 0230 <gen>)
- Set VariableSet targecikjumpa_Copy = (Position of (Target unit of ability being cast))
- Set VariableSet LeapDistance_Copy = (Distance between TempLoc and targecikjumpa_Copy)
- Set VariableSet skok_Copy = (TempLoc offset by 20.00 towards LeapDistance_Copy degrees.)
- Custom script: call RemoveLocation (udg_TempLoc)
- Unit - Turn collision for Boromir 0230 <gen> Off.
- Unit - Add Crow Form to Boromir 0230 <gen>
- Unit - Remove Crow Form from Boromir 0230 <gen>
- Trigger - Turn on third Copy <gen>
- Unit - Add Shockwave (Shield Bash) to Boromir 0230 <gen>
- Animation - Add the defend animation tag to Boromir 0230 <gen>
- Animation - Play Boromir 0230 <gen>'s defend animation
- Unit - Make Boromir 0230 <gen> Invulnerable
- Unit - Pause Boromir 0230 <gen>
-
Events
-
third Copy
-
Events
- Time - Every 0.03 seconds of game time
- Conditions
-
Actions
- Set VariableSet TempLoc = (Position of Boromir 0230 <gen>)
- Set VariableSet LeapDistance_Copy = (Distance between TempLoc and targecikjumpa_Copy)
- Set VariableSet skok_Copy = (TempLoc offset by 20.00 towards (Angle from TempLoc to targecikjumpa_Copy) degrees.)
- Custom script: if (IsPointWalkable(GetLocationX(udg_skok_Copy),GetLocationY(udg_skok_Copy))) then
- Unit - Move Boromir 0230 <gen> instantly to skok_Copy
- Set VariableSet newLoc_Copy = (Position of Boromir 0230 <gen>)
- Custom script: endif
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
Or - Any (Conditions) are true
-
Conditions
- LeapDistance_Copy Less than or equal to 15.00
- (Distance between newLoc_Copy and TempLoc) Less than 15.00
-
Conditions
-
Or - Any (Conditions) are true
-
Then - Actions
- Set VariableSet skok_Copy = targecikjumpa_Copy
- Trigger - Turn off (This trigger)
- Unit - Unpause Boromir 0230 <gen>
- Unit - Make Boromir 0230 <gen> Vulnerable
- Set VariableSet TempLoc = (Position of Boromir 0230 <gen>)
- Unit - Create 1 Dummy for (Owner of Boromir 0230 <gen>) at TempLoc facing Default building facing degrees
- Unit - Add Shield Bash (AOE Damage & Stun) to (Last created unit)
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Shield Bash for Boromir 0230 <gen>) Equal to 2
-
Then - Actions
- Unit - Set level of Shield Bash (AOE Damage & Stun) for (Last created unit) to 2
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Shield Bash for Boromir 0230 <gen>) Equal to 3
-
Then - Actions
- Unit - Set level of Shield Bash (AOE Damage & Stun) for (Last created unit) to 3
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Shield Bash for Boromir 0230 <gen>) Equal to 4
-
Then - Actions
- Unit - Set level of Shield Bash (AOE Damage & Stun) for (Last created unit) to 4
- Else - Actions
-
If - Conditions
- Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp.
- Custom script: call RemoveLocation (udg_TempLoc)
- Unit - Turn collision for Boromir 0230 <gen> On.
- Custom script: call RemoveLocation(udg_targecikjumpa_Copy)
- Custom script: call RemoveLocation(udg_newLoc_Copy)
- Custom script: call RemoveLocation (udg_skok_Copy)
- Unit - Remove Shockwave (Shield Bash) from Boromir 0230 <gen>
- Animation - Remove the defend animation tag to Boromir 0230 <gen>
- Else - Actions
-
If - Conditions
- Custom script: call RemoveLocation (udg_TempLoc)
-
Events