| 08-14-2004, 05:55 AM | #1 |
ok so iv tryed to make a spell with the bace of rain of fire. the spell does no dammage but when it hits the units it transports them some were els. i have no freaken idea wat to do. :god_help_us: i dont |
| 08-14-2004, 07:45 AM | #2 |
Well, for that you would use triggers, especialy the action "move unit instantly". The rain of fire leaves a buff, so you could either check for that periodicaly (if it's a continiued spell), or you could just pick all units in range of the target point of the spell and move those (if the spell only has one wave). |
| 08-14-2004, 02:17 PM | #3 |
the spell is not contindued. i dont no what the trigger is for that to work. i have -events units- a unit is attacked -conditions- (ability being cast) equal to Under World -unit- move targeted unit instantly to center of rect but when ever i try it it never works |
| 08-14-2004, 04:38 PM | #4 |
Code:
Sup
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to [color=Blue]<Your ability>[/color]
Actions
Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True)) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Picked unit) has buff [color=Blue]<Your buff>[/color]) Equal to True
Then - Actions
Unit - Move (Picked unit) instantly to [color=Blue]<Your rect>[/color]))
Else - Actions
Do nothingThat's just a sample of what the trigger would look like. You can add more conditions as you please. |
| 08-14-2004, 06:56 PM | #5 | |
Quote:
That wouldn't work, for multiple reasons. First, you use the event "begins casting an ability" instead of "starts the effect of an ability", so there's no way for the units to already have the buff of the spell. Second, even if you did use the "starts the effect of an ability", the units wouldn't have the buff yet, because he's using rain of fire which has a delay before impact. It would work if he used an instant buffing spell like silence as the base of his spell. Also, after moving the picked unit, it would be good to remove the buff from it. |
| 08-14-2004, 08:33 PM | #6 |
o crap sorry |
