• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

Request for a spell!

Status
Not open for further replies.
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.
 
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
 
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.
Back
Top