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

omnipresence ability

Status
Not open for further replies.
Hello,
I need an omnipresence spell for my map.
I don't know if there is already a trigger or if i must to trigger one, and if i must to trigger one, please explain me how.
The omnipresence spell is this: when an unit with the omnipresence spell dies, it will use a spell like the reincarnation spell but the resurected unit will not be the same of the one who died first.
If you don'T understand,please post here.
Thanks to the first one who will help me^^!!!
 
  • Trigger
  • Events
    • Unit - A unit learns a skill
  • Conditions
    • (Learned hero skill) Equal to Omnipresence
    • ((Triggering unit) is in TempGroup) Equal to False //Boolean comparison
  • Actions
    • Unit Group - Add (Triggering unit) to TempGroup
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • ((Triggering unit) is in TempGroup) Equal to True
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Unit - Create 1 Unit for (Owner of (Triggering unit)) at Point1 facing default building degrees
    • Custom script: call RemoveLocation (udg_Point1)
 
Level 15
Joined
Aug 31, 2009
Messages
776
Just so you know, the name of that spell doesn't exactly fit what you're going for. Omnipresence means to be everywhere at the same time - not exactly fitting for a resurrection kind of thing.

Pharoah_'s solution should fit this nicely though, just replace "Unit" with whatever it is you're wanting it to change into.
 
Level 13
Joined
Sep 14, 2008
Messages
1,408
  • Trigger
  • Events
    • Unit - A unit dies
  • Conditions
    • Level of Omnipresence for triggering unit > 0
  • Actions
    • Set Point1 = (Position of (Triggering unit))
    • Unit - Create 1 Unit for (Owner of (Triggering unit)) at Point1 facing default building degrees
    • Custom script: call RemoveLocation (udg_Point1)
Should work like this :/
 
Status
Not open for further replies.
Top