HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Stopping Ability Use

04-29-2007, 10:08 PM#1
Dil999
Im not sure if this goes in General or Triggers..

Is it possible to, when a unit starts casting a spell, if X conditions arent true, then it gives an error message like 'Can only have a maximum of three charges' and does not cooldown the spell?
I know this was done in AotZ.
04-29-2007, 10:29 PM#2
Thunder_Eye
Unit - A unit begins casting an ability
If - conditions blabla
Then - Order unit to Stop
04-29-2007, 10:30 PM#3
Dil999
Jesus.. I was overcomplicating it.
I was thinking of somehow having a dummy spell with 0 cooldown which I add when its not in range >.<.
04-30-2007, 01:17 AM#4
Pyrogasm
Yes, this should have been Triggers & Scripts. As thus, I shall move it.

Also, you should only use the "begins casting" event to register that specific part of the spell. Then do your effects in a separate trigger that runs on "starts the effect of...".


EDIT: When I move a thread, should I keep a redirect in the original forum, or should I just move it without leaving the redirect?
04-30-2007, 01:56 AM#5
Mezzer
Without the redirect, it's cleaner.
04-30-2007, 08:42 PM#6
Hydrolisk
With redirect. That way we can see more things that might interest us. Such as an uber story in the General Discussions.
04-30-2007, 09:45 PM#7
Earth-Fury
for alredy answerd questions, no redirect.
for questions asked by people who you know lurk both dev and triggers, no redirect.
for questions asked by people that may not be able to find it after a move, with a redirect.
for important / informative threads, with a redirect.
04-30-2007, 09:48 PM#8
Rising_Dusk
Quote:
Originally Posted by Pyrogasm
When I move a thread, should I keep a redirect in the original forum, or should I just move it without leaving the redirect?
If you have to ask that question, allow me to then wonder what convinced Vex to make you a mod in the first place. :P

Also, don't just order a unit to stop.
That isn't fast enough to catch all abilities.

Pause the unit, order it to stop, then unpause the unit.
Example --
Collapse JASS:
call PauseUnit(MyUnit, true)
call IssueImmediateOrder(MyUnit, "stop")
call PauseUnit(MyUnit, false)
Can also just as easily be done in GUI.
05-01-2007, 03:21 AM#9
Pyrogasm
Quote:
If you have to ask that question, allow me to then wonder what convinced Vex to make you a mod in the first place. :P
I was thinking of it as an etiquitte question; I simply didn't know which was more correct/acceptable.


Hydrolisk, you bastard. That's my .gif!
05-01-2007, 08:24 AM#10
blu_da_noob
Personally I leave a redirect in cases like this, otherwise you can have people going 'wtf they deleted my threadz omg'. True story.