• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Spell Problem

Status
Not open for further replies.
Level 2
Joined
Nov 2, 2005
Messages
12
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?
 
Level 15
Joined
Sep 3, 2006
Messages
1,738
How about something like this:

  • Catapult
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (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.

Hope this helps.
 
Level 2
Joined
Nov 2, 2005
Messages
12
Genuis! ty didn't think i could ever find a way to do that- One thing What does the interger do? does it cause the range or what?
 
Status
Not open for further replies.
Top