- Joined
- Dec 29, 2008
- Messages
- 3,361
Well, I already contacted him/her in wc3c, and he/she said that he is too busy to check it out.
Here is the link to it: Rising_Dusk's LastOrder and AbortSpell libraries
Okay, here is the trigger:
Now for the problem, when I cast it for the first time (I tested the error), it's okay, it does what it need to do (the targeting image shown once more. But when I casted it again (still the error), it mysteriously loops.
Cast, error message show, targeting image show, then it automatically targeted itself, then error message again, targeting image, automatically targeted again, blaah blah blah.
Get what I mean? If not, just ask.
Thank you.
Your neighbor,
~supertoinkz
Here is the link to it: Rising_Dusk's LastOrder and AbortSpell libraries
Okay, here is the trigger:
-
Thorns Casting Check
-
Events
-
Unit - A unit Begins casting an ability
-
-
Conditions
-
Actions
-
Set TempPoint = (Target point of ability being cast)
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to (==) Cave Thorns
-
-
Then - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(SURFACE <gen> contains (Triggering unit)) Equal to (==) True
-
-
Then - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(SURFACE <gen> contains TempPoint) Equal to (==) True
-
-
Then - Actions
-
Else - Actions
-
Custom script: call AbortSpell( GetTriggerUnit(), "You can't target this on the underground", "X")
-
-
-
-
Else - Actions
-
Custom script: call AbortSpell( GetTriggerUnit(), "You can't cast this while on the underground", "X")
-
-
-
-
Else - Actions
-
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Ability being cast) Equal to (==) Entangling Thorns
-
-
Then - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(UNDERGROUND <gen> contains (Triggering unit)) Equal to (==) True
-
-
Then - Actions
-
Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(UNDERGROUND <gen> contains TempPoint) Equal to (==) True
-
-
Then - Actions
-
Else - Actions
-
Custom script: call AbortSpell( GetTriggerUnit(), "You can't target this on the surface", "Z")
-
-
-
-
Else - Actions
-
Custom script: call AbortSpell( GetTriggerUnit(), "You can't cast this while on the surface", "Z")
-
-
-
-
Else - Actions
-
-
-
Custom script: call RemoveLocation(udg_TempPoint)
-
-
Now for the problem, when I cast it for the first time (I tested the error), it's okay, it does what it need to do (the targeting image shown once more. But when I casted it again (still the error), it mysteriously loops.
Cast, error message show, targeting image show, then it automatically targeted itself, then error message again, targeting image, automatically targeted again, blaah blah blah.
Get what I mean? If not, just ask.
Thank you.
Your neighbor,
~supertoinkz