Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
I need to make a spell to make a Catapult shoot its projectile to a random spot between two points(of range) and do a set amount of damage in the area it hits. But im not sure how i could rig that up could anyone help?
for the range, you order the catapult to fire to a distance of random number between (whut ever you want the closest point to fire and the farthest) e.g. 300 and 1000
for damage, you could add a random amount of damage increase item abilities to the catapult
(Unit-type of (Triggering unit)) Equal to Your Unit
(Ability being cast) Equal to Your Spell
(Random integer number between 300 and 1000) Equal to (Integer A)
Actions
Unit - Cause (Triggering unit) to damage circular area after 0.00 seconds of radius 500.00 at Space_Attack[(Integer A)], dealing 100.00 damage of attack type Siege and damage type Normal
The only variable is "Space_Attack" which is a Point.
Yeah, the integer 300-1000 is the range, edit that.
If you don't understand, the integer is set to designate the point. The point is randomly placed somewhere in that 300-1000 range in front of the casting unit.
you want it to shoot forward in a random spot? just make the Space_Attack part of the action have an offset add a random angle from facing of triggering unit - 80 and facing of triggering unit + 80
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.