HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

2 triggers not working properly together

09-22-2006, 01:05 AM#1
GamesSmash
Thess trigger is not working properly. Please help."
Trigger:
Spell
Collapse Collapse Events
Collapse Events
Unit - A unit Starts the effect of an ability'
Collapse Collapse Conditions
Collapse Conditions
(Ability being cast) Equal to Shunpo
Collapse Collapse Actions
Collapse Actions
Set Shunpo_Tele_caster[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
Unit Group - Add (Triggering unit) to Shunpo_Group
Unit - Move (Triggering unit) instantly to (Position of (Target unit of ability being cast)), facing (Position of (Target unit of ability being cast))
Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
Environment - Create a 1.00 second Temporary crater deformation at (Position of (Triggering unit)) with radius 100.00 and depth -300.00
Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
Set Shunpoimage1[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Animation - Change (Last created unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency
Wait 0.50 game-time seconds
Unit - Remove Shunpoimage1[(Player number of (Owner of (Triggering unit)))] from the game

-------------------
Trigger:
Spell2
Collapse Collapse Events
Collapse Events
Unit - A unit Starts the effect of an ability\
Collapse Collapse Conditions
Collapse Conditions
(Ability being cast) Equal to Shunpo
Collapse Collapse Actions
Collapse Actions
Set Shunpo_Tele_caster[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
Unit Group - Add (Triggering unit) to Shunpo_Group
Unit - Move (Triggering unit) instantly to (Position of (Target unit of ability being cast)), facing (Position of (Target unit of ability being cast))
Unit - Order (Triggering unit) to Attack (Target unit of ability being cast)
Environment - Create a 1.00 second Temporary crater deformation at (Position of (Triggering unit)) with radius 100.00 and depth -300.00
Unit - Create 1 (Unit-type of (Triggering unit)) for Neutral Passive at (Position of (Triggering unit)) facing Default building facing degrees
Set Shunpoimage1[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
Animation - Change (Last created unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 50.00% transparency
Wait 0.50 game-time seconds
Unit - Remove Shunpoimage1[(Player number of (Owner of (Triggering unit)))] from the game


When the unit uses the spell, it is moved to the enemy, however, it isn't returned back to its original position. Please help.
Edit: ?? TRIGGER TAG NOT WORKING???

Edit by Anitarf: Made the trigger tag work.
09-22-2006, 01:11 AM#2
Naakaloh
You don't appear to have any code moving it to where it was originally. Also, please use [trigger] tags.
09-22-2006, 02:28 AM#3
GamesSmash
How do i implement trigger tags? I tried but it doesnt work.
09-22-2006, 02:37 AM#4
Rising_Dusk
Highlight your trigger's code and click the "trigger" button.
09-22-2006, 02:48 AM#5
Vexorian
you were really close to use the trigger tag but you forgot to close it

[/trigger]
09-22-2006, 09:26 AM#6
Mystic Prophet
sounds like you just need another action moving the triggering unit back to his original position. and if I'm not mistaken those two triggers are the same.