• 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.

Command Spell Help

Status
Not open for further replies.
Level 10
Joined
Sep 30, 2005
Messages
56
I am working on the hero spells in my footmen frenzy map and one of the heroes is a warlord. Anyways, I am trying to create a trigger spell that involves forcing units in an area of effect around the targeted unit to attack it, kind of like forcing a unit to use taunt. So far i was going to use acid bomb as the spell the hero uses as a dummy. Look at my screen shot for what i have so far, i want to make the area labeled "playable map area" into an area of effect like used in spells using a number value I.E. 750 etc., but am unsure how, can anyone help me?
 

Attachments

  • screenshot.JPG
    screenshot.JPG
    164.1 KB · Views: 264
Level 23
Joined
Nov 29, 2006
Messages
2,482
Your image attachment is rather blurry so I can see what it says :s
Anyways I think you do want something like this?

  • TauntSpell
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Acid Bomb
    • Actions
      • Set temppoint = (Position of (Target unit of ability being cast))
      • Custom script: set bj_wantDestroyGroup = true
      • Unit Group - Pick every unit in (Units within 750.00 of temppoint matching ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))) and do (Actions)
        • Loop - Actions
          • Unit - Order (Picked unit) to Attack (Target unit of ability being cast)
      • Custom script: call RemoveLocation( udg_temppoint )
The matching options in the unitgroup is an example, but normally you wouldnt try to attack with your own allied unit or with a unit which is dead
 
Status
Not open for further replies.
Top