- Joined
- Jul 29, 2007
- Messages
- 5,174
Ok, I made this trigger
The only thing it does is making the special effects and removing them.
Now another question, how do I use that "order unit to cast ---" if I want him to cast my own spell ?
Saw some comment saying "you can do also on skills BASED on the skills in the list" but dunno what that means I should do.
Now a second trigger
First, the unit teleports also when not in A_Region, I don't really see any reason why
And second, can I really use the custom script I used - call RemoveLocation( udg_TeleportLoc[2]) - I don't know if I can use harrays in it - TeleportLoc[1] instead of TeleportLoc.
Thanks in advance
-
Unknown
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to A_Ability
-
-
Actions
-
Set TempLoc = (Position of (Triggering unit))
-
Special Effect - Create a special effect at TempLoc using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
-
Set Effect[1] = (Last created special effect)
-
Special Effect - Create a special effect at TempLoc using Abilities\Spells\Other\Charm\CharmTarget.mdl
-
Set Effect[2] = (Last created special effect)
-
Region - Center My_Region <gen> on TempLoc
-
Custom script: call RemoveLocation( udg_TempLoc )
-
Animation - Change (Triggering unit)'s animation speed to 1000.00% of its original speed
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of A_Skill for (Triggering unit)) Equal to 1
-
-
Then - Actions
-
For each (Integer A) from 1 to 5, do (Actions)
-
Loop - Actions
-
Set TempLoc = (Random point in My_Region <gen>)
-
Unit - Order (Triggering unit) to Orc Tauren Chieftain - Shockwave TempLoc
-
Custom script: call RemoveLocation( udg_TempLoc )
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of A_Skill for (Triggering unit)) Equal to 2
-
-
Then - Actions
-
For each (Integer A) from 1 to 15, do (Actions)
-
Loop - Actions
-
Set TempLoc = (Random point in My_Region <gen>)
-
Unit - Order (Triggering unit) to Orc Tauren Chieftain - Shockwave TempLoc
-
Custom script: call RemoveLocation( udg_TempLoc )
-
-
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Level of A_Skill for (Triggering unit)) Equal to 3
-
-
Then - Actions
-
For each (Integer A) from 1 to 40, do (Actions)
-
Loop - Actions
-
Set TempLoc = (Random point in My_Region <gen>)
-
Unit - Order (Triggering unit) to Orc Tauren Chieftain - Shockwave TempLoc
-
Custom script: call RemoveLocation( udg_TempLoc )
-
-
-
-
Else - Actions
-
-
-
-
-
-
Animation - Change (Triggering unit)'s animation speed to 100.00% of its original speed
-
Special Effect - Destroy Effect[1]
-
Special Effect - Destroy Effect[2]
-
-
The only thing it does is making the special effects and removing them.
Now another question, how do I use that "order unit to cast ---" if I want him to cast my own spell ?
Saw some comment saying "you can do also on skills BASED on the skills in the list" but dunno what that means I should do.
Now a second trigger
-
Unknown
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Teleport
-
-
Actions
-
Set TeleportLoc[1] = (Position of (Triggering unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(A_Region <gen> contains (Triggering unit)) Equal to True
-
-
Then - Actions
-
Set TeleportLoc[2] = ((Position of (Triggering unit)) offset by (-1000.00, 0.00))
-
Unit - Move (Triggering unit) instantly to TeleportLoc[2], facing Default building facing degrees
-
-
Else - Actions
-
Set TeleportLoc[2] = ((Position of (Triggering unit)) offset by (1000.00, 0.00))
-
Unit - Move (Triggering unit) instantly to TeleportLoc[2], facing Default building facing degrees
-
-
-
Custom script: call RemoveLocation( udg_TeleportLoc[1])
-
Custom script: call RemoveLocation( udg_TeleportLoc[2])
-
-
First, the unit teleports also when not in A_Region, I don't really see any reason why

And second, can I really use the custom script I used - call RemoveLocation( udg_TeleportLoc[2]) - I don't know if I can use harrays in it - TeleportLoc[1] instead of TeleportLoc.
Thanks in advance
