| 04-29-2007, 10:08 PM | #1 |
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 |
Unit - A unit begins casting an ability If - conditions blabla Then - Order unit to Stop |
| 04-29-2007, 10:30 PM | #3 |
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 |
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 |
Without the redirect, it's cleaner. |
| 04-30-2007, 08:42 PM | #6 |
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 |
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 | |
Quote:
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 -- JASS:call PauseUnit(MyUnit, true) call IssueImmediateOrder(MyUnit, "stop") call PauseUnit(MyUnit, false) |
| 05-01-2007, 03:21 AM | #9 | |
Quote:
Hydrolisk, you bastard. That's my .gif! ![]() |
| 05-01-2007, 08:24 AM | #10 |
Personally I leave a redirect in cases like this, otherwise you can have people going 'wtf they deleted my threadz omg'. True story. |
