| 05-31-2004, 11:54 PM | #1 |
Code:
delusivefears
Events
Unit - A unit Finishes casting an ability
Conditions
(Ability being cast) Equal to Delusive Fears (Illusionist)
Actions
Camera - Shake the camera for (Owner of (Target unit of ability being cast)) with magnitude 125.00
Camera - Sway the camera target for (Owner of (Target unit of ability being cast)) with magnitude 150.00 and velocity 100.00
Wait until (((Target unit of ability being cast) has buff Delusive Fear ) Equal to False), checking every 1.00 seconds
Camera - Stop swaying/shaking the camera for (Owner of (Target unit of ability being cast))The spell is intended to shake and sway the camera of the player who owns the target of the spell, a Cripple equivalent. That is, when cast on a Hero, it shakes & sways the screen of the player who owns the target. The problem is, the swaying and shaking don't happen. I've been testing the spell by having the Hero cast it on himself so that I could see the effects; I am not. What's the problem? Any help is appreciated, again. |
| 06-01-2004, 12:01 AM | #2 |
Finishes casting an ability, means Could cast spell and doesn't have event response. Use Starts the effect of an ability and you are done |
| 06-01-2004, 12:02 AM | #3 |
I'm not sure, but can you shake and sway the camara at one time? |
| 06-01-2004, 12:04 AM | #4 |
Vex: This didn't help. :/ Reaper: Yes, you can; I've done it. In the main post, I meant that neither were happening. |
| 06-01-2004, 12:10 AM | #5 |
Hmmm.... i duno then Maby you should put a wait between the shaking and swating? |
| 06-01-2004, 12:17 AM | #6 |
This has nothing to do with the problem. I actually have gotten "Stops casting an ability" to work if I cut off the channeling of the spell itself before it's done; but that's not acceptable. EDIT: Well, by putting a wait of .01 in the Actions before all else, and by changing the event to "Starts the effect", it seems to work! Thanks, chaps. A new problem's arisen, though; the shaking/swaying do not go away, even with the event to stop them. Why not? Help is still appreciated. |
| 06-01-2004, 07:00 PM | #7 |
That's because while you are waiting the (Target unit of ability being cast) may be set to something else. So you have to save it in a variable. Code:
delusivefears
Events
Unit - A unit Starts casting an ability
Conditions
(Ability being cast) Equal to Delusive Fears (Illusionist)
Actions
Wait 0.01 seconds [b]Are you sure this is necessary? Try removing it[/b]
Camera - Shake the camera for (Owner of (Target unit of ability being cast)) with magnitude 125.00
Camera - Sway the camera target for (Owner of (Target unit of ability being cast)) with magnitude 150.00 and velocity 100.00
[b]set tmp_unit = Target unit of ability being cast[/b]
Wait until (((Target unit of ability being cast) has buff Delusive Fear ) Equal to False), checking every 1.00 seconds
Camera - Stop swaying/shaking the camera for (Owner of ([b]tmp_unit[/b])) |
| 06-01-2004, 09:09 PM | #8 |
Thank you muchly, sir. |
| 06-01-2004, 10:47 PM | #9 |
You didn't really test with starts the effect of an ability, right?, cause events responses only get lost when you are not using that event |
| 06-01-2004, 10:54 PM | #10 |
I truly did. Maybe the event response is lost in "wait for condition"? |
| 06-01-2004, 11:24 PM | #11 |
There are differences between Starts the effect of an ability and Begins casting an ability AND wait for condition is just a loop that uses normal waits |
