- Joined
- Jan 8, 2010
- Messages
- 493
is something wrong with this trigger?
it's suppose to make a statue move one space(region) with every use of the ability. at first i thought changing the event from "Starts the effect of an ability" to "Finishes casting the ability" already fixed it, but after changing every trigger event, it starts to not properly work again.
here's the problem.
when i use "Up" or "Left", the statue moves one region up or left, but when i use "Right" or "Down", it moves to the very right end or down end.
-0---
-----
-----
Press "Right", it's not
--0--
-----
-----
but
----0
-----
-----
-
Riddle 23
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Dungeon Ridd23 <gen> contains (Triggering unit)) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Down
-
(Dungeon Ridd24 <gen> contains Riddle Statue Blue 0031 <gen>) Equal to False
-
(Dungeon Ridd24 <gen> contains Riddle Statue Green 0032 <gen>) Equal to False
-
(Dungeon Ridd24 <gen> contains Riddle Statue Red 0033 <gen>) Equal to False
-
(Dungeon Ridd24 <gen> contains Riddle Statue White 0034 <gen>) Equal to False
-
(Dungeon Ridd24 <gen> contains Riddle Statue Yellow 0035 <gen>) Equal to False
-
-
Then - Actions
-
Set R1_Index = (R1_Index + 1)
-
Set R1_Point[R1_Index] = (Center of Dungeon Ridd24 <gen>)
-
Special Effect - Create a special effect at R1_Point[R1_Index] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Move (Triggering unit) instantly to R1_Point[R1_Index]
-
Custom script: call RemoveLocation(udg_R1_Point[udg_R1_Index])
-
Set R1_Index = (R1_Index - 1)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Right
-
(Dungeon Ridd33 <gen> contains Riddle Statue Blue 0031 <gen>) Equal to False
-
(Dungeon Ridd33 <gen> contains Riddle Statue Green 0032 <gen>) Equal to False
-
(Dungeon Ridd33 <gen> contains Riddle Statue Red 0033 <gen>) Equal to False
-
(Dungeon Ridd33 <gen> contains Riddle Statue White 0034 <gen>) Equal to False
-
(Dungeon Ridd33 <gen> contains Riddle Statue Yellow 0035 <gen>) Equal to False
-
-
Then - Actions
-
Set R1_Index = (R1_Index + 1)
-
Set R1_Point[R1_Index] = (Center of Dungeon Ridd33 <gen>)
-
Special Effect - Create a special effect at R1_Point[R1_Index] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Move (Triggering unit) instantly to R1_Point[R1_Index]
-
Custom script: call RemoveLocation(udg_R1_Point[udg_R1_Index])
-
Set R1_Index = (R1_Index - 1)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Left
-
(Dungeon Ridd13 <gen> contains Riddle Statue Blue 0031 <gen>) Equal to False
-
(Dungeon Ridd13 <gen> contains Riddle Statue Green 0032 <gen>) Equal to False
-
(Dungeon Ridd13 <gen> contains Riddle Statue Red 0033 <gen>) Equal to False
-
(Dungeon Ridd13 <gen> contains Riddle Statue White 0034 <gen>) Equal to False
-
(Dungeon Ridd13 <gen> contains Riddle Statue Yellow 0035 <gen>) Equal to False
-
-
Then - Actions
-
Set R1_Index = (R1_Index + 1)
-
Set R1_Point[R1_Index] = (Center of Dungeon Ridd13 <gen>)
-
Special Effect - Create a special effect at R1_Point[R1_Index] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Move (Triggering unit) instantly to R1_Point[R1_Index]
-
Custom script: call RemoveLocation(udg_R1_Point[udg_R1_Index])
-
Set R1_Index = (R1_Index - 1)
-
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to Up
-
(Dungeon Ridd22 <gen> contains Riddle Statue Blue 0031 <gen>) Equal to False
-
(Dungeon Ridd22 <gen> contains Riddle Statue Green 0032 <gen>) Equal to False
-
(Dungeon Ridd22 <gen> contains Riddle Statue Red 0033 <gen>) Equal to False
-
(Dungeon Ridd22 <gen> contains Riddle Statue White 0034 <gen>) Equal to False
-
(Dungeon Ridd22 <gen> contains Riddle Statue Yellow 0035 <gen>) Equal to False
-
-
Then - Actions
-
Set R1_Index = (R1_Index + 1)
-
Set R1_Point[R1_Index] = (Center of Dungeon Ridd22 <gen>)
-
Special Effect - Create a special effect at R1_Point[R1_Index] using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
-
Special Effect - Destroy (Last created special effect)
-
Unit - Move (Triggering unit) instantly to R1_Point[R1_Index]
-
Custom script: call RemoveLocation(udg_R1_Point[udg_R1_Index])
-
Set R1_Index = (R1_Index - 1)
-
-
Else - Actions
-
-
-
-
-
-
-
-
-
here's the problem.
when i use "Up" or "Left", the statue moves one region up or left, but when i use "Right" or "Down", it moves to the very right end or down end.
-0---
-----
-----
Press "Right", it's not
--0--
-----
-----
but
----0
-----
-----