HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Trigger Spell

08-31-2004, 03:32 AM#1
ClearSword
Im making a trigger spell where I do crushing wave but I want the area it effects flooded with waterfalls is there a Trigger able to follow a Ability?
08-31-2004, 04:55 AM#2
Octavius
i think that there is an event "unit finishes casting ability", but that might do it as soon as the casting time is up and if you want the waterfalls to show up as the wave hits, then i believe that if you add a delay itll work okay. so like "unit finishes casting ability" as an event and then the condition "ability being cast equal to crushing wave". "wait 1.00 second". and then you should be able to create however many waterfalls you want. if this doesnt work let me know and ill get it figured out as soon as i can
08-31-2004, 01:47 PM#3
SpadeZ
I'm not sure if you already have the damage and such established yet. But here is a general way to make the waves flooded in the spell's AOE.

Alryt, you need to know how big the spell effect area is. Then you need to make a region variable. And finally a trigger similar to this:

Note: For the purpose of this example, "SpellArea" is the region variable that will be used to save the location that the spell was targeted. Where [ABILITY] is substitute with your spell. Where [SIZE] is substitute with the area of effect of your spell.

Code:
[color=green][size=4][u][center][b]Variables[/b][/center][b][/b][/u][/size][/color]
[u][b]Variable Name                      Variable Type                   Initial Value[/b][/u][b][/b]
SpellArea                              Region                              - None-
Code:
[color=green][size=4][u][center][b]Trigger[/b][/center][b][/b][/u][/size][/color]
    Events
        Unit - A unit Finishes casting an ability
    Conditions
        (Ability being cast) Equal to [[b]ABILITY[/b]]
    Actions
        Set [b]SpellArea[/b] = (Region centered at (Target point of ability being cast) with size ([[b]SIZE[/b]], [[b]SIZE[/b]]))
        For each (Integer A) from 1 to 30, do (Actions)
            Loop - Actions
                Special Effect - Create a special effect at (Random point in [b]SpellArea[/b]) using Doodads\Terrain\CliffDoodad\Waterfall\Waterfall.mdl


Hope this works, GL. If you need help with establishing the damage and such, then feel free to ask.

08-31-2004, 11:10 PM#4
ClearSword
Hahah Well that did help but it doesnt seem to work If you havent noticed im a newb so im not sure what triggers to put in But I think im close....
09-01-2004, 07:37 AM#5
SpadeZ
What parts do you need help with?
Making triggered spells take a bit of time to learn.
Heres a good tutorial on making triggered spells.
Heres the second part to the tutorial.

Its a good tutorial.