HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Need help creating a spell

10-13-2008, 12:41 PM#1
Saishy
Hi, I think its my first time posting here, even if I already had an account xD

I'm trying to do a spell where it summons 2 fire bolts from the sky for each level of spell and them they hit the enemy unit, dealing INT/2 damage to it. At level 5, 10 bolts comes and hit it. Also, the casting time increases 1,4s per level.

But I got A LOT of problems with that, I even deleted everything and gave up...
(Seriously, even the casting time was going wrong, I set 7s and the unit casts in 2s)

So, I humbly ask for assistance, if someone would make it for me. Really thanks ^^
(also, it should support 2 units casting it at the same time)

Thanks again ^^
10-14-2008, 01:33 AM#2
Anopob
Firebolts coming from the sky as in Inferno the spell, or like target a unit and it won't ever miss?
10-14-2008, 01:40 AM#3
maximilianx
yeah what anopob asked.
i don't see why your casting time would be shortened, that should be changed in the object editor, no?

can you explain in more detail what you have so far, and what is going wrong other than casting time?
10-14-2008, 03:12 PM#4
Saishy
Quote:
Originally Posted by maximilianx
yeah what anopob asked.
i don't see why your casting time would be shortened, that should be changed in the object editor, no?

can you explain in more detail what you have so far, and what is going wrong other than casting time?
Well, I put 7s in the object editor, he cast in 2s or less...

but I changed my spell a little, explanation:

- Its a unit-targeted spell.
- Have a 1,4s cast time per level, 5 levels. (7s cast time)
- While you cast, you can move and attack, but if you got silenced, stunned or any effects that don't let you cast, your spell is interrupted.
- Cast time is reduced by your AGI/20. (Can be instant cast)
- After you finish casting, for each level of ability 2 firebolts come from the sky (they never miss) and hit the target, each bolt deals INT/2 damage.

Its that, the damage don't need to be each shot, the fire from the sky its just a visual effect, the damage can be done with one action.

Thanks for the help ^^
10-14-2008, 08:11 PM#5
Anopob
Quote:
Originally Posted by Saishy
- While you cast, you can move and attack, but if you got silenced, stunned or any effects that don't let you cast, your spell is interrupted.
- Cast time is reduced by your AGI/20. (Can be instant cast)
Good luck on those points, because you sure will need it (the first one is probably possible, but still messy if you don't know how to do it right).
10-14-2008, 10:59 PM#6
Pyrogasm
Well, here's what I would do:
  • Have the hero ability actually be a dummy ability that doesn't do anything but set of a trigger.
  • That ability would always have an instant cast-time.
  • In that trigger I would
    • Set the unit's mana to (Unit's current mana + Spell cast mana)
    • Calculate (from the level of the ability) what the cast time should be, then subtract AGI/20 from that cast time.
    • Further divide that cast time by 0.05 and then convert that answer to an integer.
    • Store that integer to a variable. (This is the "countdown" variable)
    • Store the caster in a variable.
    • Store the targeted point in a variable
  • Then I would have a second trigger that ran on a 0.05 second repeating timer.
  • That trigger would do this:
    • Check to see that the unit is alive
    • Check to see that the unit does not have any stunned or silenced buffs
    • If either, then I would set the countdown to 0, then set the unit variable to "No unit" and remove the point.
    • If it passed those checks I would then check the current countdown; if 0 then dummy-cast the real spell on the stored point and do the step before this; if not 0 then reduce the counter by 1 and do nothing else.
10-14-2008, 11:12 PM#7
Saishy
Thanks Pyrogasm, that was very close to the triggers I did before, but seems to be better.

The real problem is, how to make the firebolts?
That is really annoying me :(
10-14-2008, 11:31 PM#8
Anitarf
You could make them by simply creating dummy casters at some random positions around the target, set their flying height to something really high (you can have some randomness in the height as well so not all projectiles hit at once if you don't want that), then order them to cast a spell that deals damage and has a projectile at the target.
10-15-2008, 01:26 AM#9
Saishy
Quote:
Originally Posted by Anitarf
You could make them by simply creating dummy casters at some random positions around the target, set their flying height to something really high (you can have some randomness in the height as well so not all projectiles hit at once if you don't want that), then order them to cast a spell that deals damage and has a projectile at the target.
Uhm, name me a spell that have a unit as target, deals damage, have a projectly, and DON'T stun.

:(
10-15-2008, 01:53 AM#10
Bobo_The_Kodo
Acid bomb
->.01 duration
and damage as initial damage