Leazy
You can change this now in User CP.
- Reaction score
- 50
Hello! I made a unit which has a 20% chance to blink forward when attacked, this is how I did it:
The problem is that they don't blink, and I can't figure out why :S
I tried setting the chance to 100%, still nothing.
I tried removing the terrain condition, still nothing.
I set the event with this:
+rep if u can help me solve this
Trigger:
- Blink
- Events
- Conditions
- (Unit-type of (Triggering unit)) Equal to Warp Spirit (Level 1)
- Actions
- Set Integer[1] = (Random integer number between 1 and 100)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Integer[1] Less than or equal to 20
- Then - Actions
- For each (Integer A) from 300 to 100, do (Actions)
- Loop - Actions
- Set Point[1] = (Position of (Triggering unit))
- Set Point[2] = (Point[1] offset by (Real((Integer A))) towards (Facing of (Triggering unit)) degrees)
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Terrain type at Point[2]) Equal to Lordaeron Summer - Rock
- Then - Actions
- Special Effect - Create a special effect at Point[1] using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
- Special Effect - Destroy (Last created special effect)
- Special Effect - Create a special effect at Point[2] using Abilities\Spells\NightElf\Blink\BlinkTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Move (Triggering unit) instantly to Point[2]
- Custom script: call RemoveLocation (udg_Point[1])
- Custom script: call RemoveLocation (udg_Point[2])
- Skip remaining actions
- Else - Actions
- Custom script: call RemoveLocation (udg_Point[1])
- Custom script: call RemoveLocation (udg_Point[2])
- If - Conditions
- Loop - Actions
- For each (Integer A) from 300 to 100, do (Actions)
- Else - Actions
- If - Conditions
The problem is that they don't blink, and I can't figure out why :S
I tried setting the chance to 100%, still nothing.
I tried removing the terrain condition, still nothing.
I set the event with this:
Trigger:
- Initialize Creeps
- Events
- Unit - A unit enters (Playable map area)
- Conditions
- Actions
- Trigger - Add to Blink <gen> the event (Unit - (Triggering unit) Takes damage)
- Events
+rep if u can help me solve this