HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

AOE explode on death.. no explosion?

08-20-2003, 06:16 AM#1
Katarina
NEW QUESTION!!

I'm using a spell called AOE Explosion on death... how do I, you know.. make it LOOK like an explosion? I've tried using a missle art, special art and attached art, but either I'm missing something or there's something completely different I must do.

I'd like to stay away from using a trigger for this, if possible.
08-20-2003, 06:24 AM#2
Tiki
if using tft we = impossible, i tried ( use triggers )

or manual make with slks
08-20-2003, 06:29 AM#3
Katarina
Drat!

ok, what would be the best trigger for the job? I don't have much experience with spell-based triggers or playing animations with triggers,
08-20-2003, 07:16 AM#4
Zoizite
Make a boolean variable called: HeroHasExplodeAbility

Code:
Events: 
     Generic Unit Event - A unit dies
Conditions: 
     Unit Comparison - unit type of dying unit equal to ([i]unit type of your exploding unit[/i])
     Boolean Comparison - [color=blue][u]HeroHasExplodeAbility[/u][/color] equal to true
          (use this if it's a hero ability)
Actions:
     Special Effect - Create a special effect at (position of unit(dying unit)) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
     Special Effect - Destroy last created special effect

If it's a learned hero ability, add this:
Events:
A unit learns a skill
Conditions:
Learned skill equal to <makes no difference>
Actions:
Set: HeroHasExplodeAbility equal to True

Convert this second trigger to custom text, then change the 4 digit code in the second line(in red) to the 4 digit code of your ability(press ctrl+d in the object editor to see it)

The line you're looking for looks like this:
if ( not ( GetLearnedSkillBJ() == 'A01T' ) ) then
08-20-2003, 08:36 AM#5
Katarina
Ah hah! Thanks very much you two :)