HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Fire Nova Trigger Spell... Problems...

02-05-2004, 06:40 AM#1
Dimples
Hi all - I'm trying to make a Fire Nova-ish spell, and I'm running into this one problem.

The Dummy Caster only casts 2 Breathes of Fire, when it's supposed to cast 8. I really can't figure what's wrong with it.

Dummy Caster has 0 for casting point and backswing. Breath of Fire spells all have 0 cooldown and cost 0 mana, and have 99999 range. In case you were wondering, there's also a "Learner" which sets the FireNovaLvl variable, as well as FireNovaCaster.

Here's the actual trigger.

Code:
Fire Nova Cast
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Casting unit) Equal to (==) FireNovaCaster
        (Ability being cast) Equal to (==) Fire Nova 
    Actions
        Set FireNovaPoint = (Position of FireNovaCaster)
        Set FireNovaDegree = 360.00
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                FireNovaLvl Equal to (==) 1.00
            Then - Actions
                Unit - Create 1 Dummy Caster for (Owner of FireNovaCaster) at (Position of FireNovaCaster) facing (Position of FireNovaCaster)
                Set FireNovaDummy = (Last created unit)
                Unit - Add a 3.00 second Generic expiration timer to FireNovaDummy
                Unit - Add Breath of Fire (I) to FireNovaDummy
                For each (Integer A) from 1 to 8, do (Actions)
                    Loop - Actions
                        Unit - Order FireNovaDummy to Neutral Pandaren Brewmaster - Breath Of Fire (FireNovaPoint offset by 100.00 towards FireNovaDegree degrees)
                        Set FireNovaDegree = (FireNovaDegree - 45.00)
            Else - Actions

Any help at all is appreciated!
Thanks in advance.
02-05-2004, 07:12 AM#2
Arohk
change all cast times, and rotation times of the dummy unit to 0, may it cant turn fast enought for so many attacks
02-05-2004, 07:56 AM#3
Dimples
Thanks, but I already did that. Here's are my Dummy Caster's fields:

Art - Animation - Cast Backswing = 0
Art - Animation - Cast Point = 0
Movement - Turn Rate = 3 (I tried 10, 0.00, 0.10, none worked)

Perhaps I am missing something?

Thanks again.

Edit: It definitely has something to do with the dummy not being able to cast them fast enough. I put a wait 0.00 in my loop, and it fired all 8 of them. Thing is, I want it to fire them all instantly.
02-05-2004, 11:20 AM#4
SirSalute
I hasn't really tried on this, but i got an idea of how to solve this.
why not create not just one dummy? perhaps, 2 for the first half round, another 2 for the other, that way, 2*2*2 => 8, complete circle =P

may not really work, but try it out, it may. wish you good luck.
02-05-2004, 11:26 AM#5
Dimples
Thanks for the idea. :) It works when I create 8 different dummies, however, one or two Breathes of Fire are always misplaced, I'm guessing cause it spawns the dummies in a slightly different offset... even though it shouldn't, because they have no collision size.

Either way, I was really hoping to accomplish this with one dummy, is it possible?
02-05-2004, 11:33 AM#6
SirSalute
hmm, how about given max speed for the unit, max turn rate, and perhaps giving it flying movement? and try scaling it to the smallest size possible.
02-05-2004, 12:12 PM#7
Dead-Inside
Note: Even thougth they have no collision, stacking them with other units (Mainly looking at flyers here) will make them disolve to the sides.

So my tip would be, create one, cast, create one, cast, not create all, cast all.

Regards
Dead-Inside
02-05-2004, 02:53 PM#8
cideh
Or, make a for loop which creates 1 unit each iteration, and after the unit is created, set "Unit - Turn collision off for (Last created unit)". That should work...
02-05-2004, 03:10 PM#9
Dimples
Thanks for the suggestions! However, so far none have worked for me. :(

Dead-Inside: I'm not sure what you meant by "create one, cast, create one, cast". I'm using a for loop (1 to 8) to create them right now. If I put a wait in there, I won't get a Nova-ish effect.

Thanks again!
02-06-2004, 05:54 AM#10
danny760311
Use 8 dummies and hide them...try
02-06-2004, 11:47 AM#11
SirSalute
if all isn't possible, then i recommend put a collision size of 10 for each dummy, create only 4 dummy, (since you can at least have one dummy cast twice). then you scale the caster(hero) so that maybe the size will let the not really round fire nova be realistic.