• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Two Spells

Status
Not open for further replies.
Level 3
Joined
Aug 17, 2005
Messages
24
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
 
Level 3
Joined
Oct 21, 2004
Messages
72
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?
 
Level 3
Joined
Aug 17, 2005
Messages
24
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.
 
Level 3
Joined
Oct 21, 2004
Messages
72
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.
 
Status
Not open for further replies.
Top