Warcraft III resources & community, 2003–2006 · archived

Two Spells

5 posts
#1

Two Spells

I'm making a spell for my map that causes a unit to run 70% faster for 7 seconds, then run 30% slower for 4 seconds. This is what I have:

Farmer Panic
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Panic
Actions
Set Panicker = (Casting unit)
Sound - Play PanicSound <gen> at 100.00% volume, attached to Panicker
Unit - Order Dummy Caster 0001 <gen> to Orc Shaman - Bloodlust Panicker
Wait 7.00 seconds
Unit - Order Dummy Caster 0001 <gen> to Human Sorceress - Slow Panicker


(Yes, I know I've been requesting a lot of things from Dark Deeds)

Anyways, Everything works up until the slow part. My Farmer runs faster, but when the speed buff wears off, he just starts running at normal speed again! Any suggestions?

Also, I'm making a spell for my Vampire called "Bat Form". It's supposed to cast the Dreadlord's Death Animation, then after he bursts into bats, it creates a Vampire Bat unit in his place. I have most of it working, but the Death Animation won't play.

Vampire Bat Form
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Bat Form
Actions
Set BatFormCaster = (Casting unit)
Set VampLevel = (Hero level of BatFormCaster)
Set BatFormCasterPoint = (Position of BatFormCaster)
Set BatFormCasterAngle = (Facing of BatFormCaster)
Animation - Play BatFormCaster's death animation
Wait 2.00 seconds
Unit - Remove BatFormCaster from the game
Unit - Create 1 Vampire Bat for (Owner of BatFormCaster) at BatFormCasterPoint facing BatFormCasterAngle degrees
Unit - Change color of (Last created unit) to Black


How come it won't work? Thanks for all help! :D
#2
Don't use spells, there should be an action that does unit move speed.

Look for it, it should be something like
Unit>Set Movespeed or something, iunno.

As for the waiting, try making it start a new trigger, that has an immediate wait of 7 seconds, or make the casting time of the 2nd spell to be 7 seconds and just have it cast right away.

Either of those suggestions sound good?
#3
There's no way for me to do

Unit - Set Panicker movement speed to 30% of Panicker movement speed


And if two Farmers cast Panic at the same time, when one of their speed buffs wears off, the Dummy Caster will begin casting Slow on the first unit. It won't be able to cast it on the second one because it is already casting the 7 second spell. :( Thanks for the help though.
#4
actually find the Panicker's move speed value and set the panicker move speed to 30% of that.

Otherwise, you can create a new dummy caster for every time the spell is cast.
#5
Okay, let me try... :)

Yay! It worked! Thanks a lot!! :D :D