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

Request for a spell!

Status
Not open for further replies.
Level 4
Joined
Oct 20, 2011
Messages
129
That isn't a spell...

  • Untitled Trigger 001
    • Events
      • Unit - A unit enters Region 000 <gen>
    • Conditions
    • Actions
      • Set TempLoc = (Center of Region 000 <gen>)
      • Unit - Create 1 Dummy for Neutral Passive at TempLoc facing Default building facing degrees
      • Unit - Order (Last created unit) to Undead Lich - Frost Armor (Triggering unit)
      • Unit - Kill (Last created unit)
      • Unit - Create 1 Dummy for Neutral Passive at TempLoc facing Default building facing degrees
      • Unit - Order (Last created unit) to Human Sorceress - Slow (Triggering unit)
      • Unit - Kill (Last created unit)
      • Custom script: call RemoveLocation(udg_TempLoc)
Give your dummy unit Slow and Frost Armor (with -3 armor bonus) ability.
 
Level 2
Joined
May 18, 2012
Messages
11
TempLoc is a variable for point, which can be use for the region. Than destroy it at the end of your trigger to remove leak.

For that Dummy, it's not a variable but a name of a Unit.
 
oh... how can I make that dummy? and that TemLoc?

you can make a new unit in the object editor and give it slow then create it for neutral hostile or any unnused enemy player
and also, you can make variables in the variables section. you could also make that dummy unit invisible if you use it as a permanent.

and mtfbwy, how do you destroy variables? i can't seem to find any action that does that in the actions window
 
Level 2
Joined
May 18, 2012
Messages
11
and mtfbwy, how do you destroy variables? i can't seem to find any action that does that in the actions window

Destroying variable uses an action called "Custom Script" which goes like this:

To destroy a Point variable, you have to do Custom Script:
TempLoc is the name of your variable, name it to anything you want.
  • Testing
    • Events
    • Conditions
    • Actions
      • -------- // TempLoc is your variable name // --------
      • Set TempLoc = (Center of (Playable map area))
      • Custom script: call RemoveLocation(udg_TempLoc)
      • -------- . --------


To destroy a Group variable, you have to do Custom Script:
TempGroup is the name of your variable, name it to anything you want.
  • Testing
    • Events
    • Conditions
    • Actions
      • -------- // TempGroup is your variable name // --------
      • Set TempGroup = (Units of type Paladin)
      • Custom script: call DestroyGroup(udg_TempGroup)
      • -------- . --------


Hope these helps abit :/
 
Status
Not open for further replies.
Top