• 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 faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Spell Request

Status
Not open for further replies.
Level 22
Joined
Feb 3, 2009
Messages
3,292
Hello, I would like to request a spell, or at least a way how to make it, because I'm not sure how to make it:

Name: Sphere of Death
Levels: You can make only 1, It's enough, I can easily make all 3 myself then
Type: Target Ground

What it does:

Creates a Giant Magic Sphere (Don't have a model for it, but I can find one, if you have one, even better). No unit can enter or exit this sphere, so if you try going in/out you just can't, maybe order him to stop or something. The spell lasts for X seconds. Works for all units (air, ground, buildings, ...)
 
Level 15
Joined
Oct 18, 2008
Messages
1,591
That's not hard: a special effect, and some movement blocking dodoads ;)

EDIT:The trigger is not so complex:
  • Blocking Sphere
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Blocking Sphere
    • Actions
      • Set CasterPos = (Position of (Triggering unit))
      • For each (Integer A) from 1 to 36, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Dummy for Neutral Passive at (CasterPos offset by 300.00 towards ((Real((Integer A))) x 10.00) degrees) facing Default building facing degrees
          • Set Dummyes[(Integer A)] = (Last created unit)
It's hard to tell how to make the unit, just make sure it's a building and it's pathing map is "Building"
 
Last edited:
Level 37
Joined
Mar 6, 2006
Messages
9,243
I think you can get away with this in the first trigger:

  • One
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Sphere of Death
    • Actions
      • Set Points[1] = (Target point of ability being cast)
      • Unit - Create 1 Dummy for (Owner of (Triggering unit)) at Points[1] facing Default building facing degrees
      • Animation - Change (Last created unit)'s size to (1500.00%, 1500.00%, 1500.00%) of its original size
      • Unit Group - Add (Last created unit) to UnitGroup
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
      • Set Group1 = (Units within 300.00 of Points[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
      • Hashtable - Save Handle OfGroup1 as (Key unitgroup) of (Key (Last created unit)) in Hashtable
      • Custom script: call RemoveLocation (udg_Points[1])
      • Trigger - Turn on Two <gen>
And you need to destroy the group you save:

  • Three
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is in UnitGroup) Equal to True
    • Actions
      • Unit Group - Remove (Triggering unit) from UnitGroup
      • Set Group1 = (Load (Key unitgroup) of (Key (Triggering unit)) in Hashtable)
      • Custom script: call DestroyGroup (udg_Group1)
      • Hashtable - Clear all child hashtables of child (Key (Triggering unit)) in Hashtable
 
Status
Not open for further replies.
Top