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

[General] How to alter the "create corps" ability of graveyards

Status
Not open for further replies.
Level 8
Joined
Aug 18, 2015
Messages
183
Hello there! :vw_love:

I'd like to change the "create corps" ability a little bit, so that the corpses are considered friendly units and can be revived as such, with spells like the Paladin's ultimate.
However, I have no clue on how to do so. I've looked into the spell data and did not find anything about this.

Do you guys know how to process?

Thanks a lot <3
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
I am just guessing this - but I think all corpses have internal data about what kind of units they were and who they belong to. (in essence I think they are just classified as dead units). Otherwise how would the paladin and DK ults work?

If that is the case - the corpses the graveyard spews should be allied to the owner, or at least neutral passive.

I don't know if you can alter that ability itself in the OE fields, but recreating or altering it via triggers should not be such a big deal.

to alter it - detect when the graveyard spawns corpses and replace them with allied dead units (I think they are dead ghouls considering dk's ult)...

If that can't be done, just recreate the spell - every ? seconds spawn a corpse at the graveyard (collision should move it). you will have to work a little harder to get it to look exactly like a graveyard (spawn corpses in predefined places around graveyard until full capacity) but it's definitely a direction.

sorry for not being more specific or precise, don't really have time to open up the WE and mess around with it right now.

good luck!
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
here you go,

this actually turned out much cleaner than I thought it would be. apparently graveyards spawn neutral corpses. so I just gave them to the player with a nearby graveyard.

there is one hiccup - bc graveyard spawns are usually neutral - they have no team color. when you "Change ownership" you can choose if to retain color - and then they will look good in the graveyard but will still have no TC when you ressurect them, or you can choose to change color - and then they will look good ressurected, but as graveyard corpses they will look very wierd. (or you can add another trigger that detects when they are ressurected and change the color then if you really want to invest...)

  • resghouls
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Ghoul
      • ((Triggering unit) is dead) Equal to True
    • Actions
      • Set VariableSet SpawnPoint = (Position of (Triggering unit))
      • Set VariableSet UnitsNearSpawn = (Units within 251.00 of SpawnPoint matching ((Unit-type of (Matching unit)) Equal to Graveyard).)
      • Unit Group - Pick every unit in UnitsNearSpawn and do (Actions)
        • Loop - Actions
          • Set VariableSet SpawnOwner = (Owner of (Picked unit))
      • Unit - Change ownership of (Triggering unit) to SpawnOwner and Retain color
      • Custom script: call DestroyGroup(udg_UnitsNearSpawn)
      • Custom script: call RemoveLocation(udg_SpawnPoint)
 

Attachments

  • ressurectableCorpses.w3m
    19.6 KB · Views: 14
Level 8
Joined
Aug 18, 2015
Messages
183
here you go,

this actually turned out much cleaner than I thought it would be. apparently graveyards spawn neutral corpses. so I just gave them to the player with a nearby graveyard.

there is one hiccup - bc graveyard spawns are usually neutral - they have no team color. when you "Change ownership" you can choose if to retain color - and then they will look good in the graveyard but will still have no TC when you ressurect them, or you can choose to change color - and then they will look good ressurected, but as graveyard corpses they will look very wierd. (or you can add another trigger that detects when they are ressurected and change the color then if you really want to invest...)

  • resghouls
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Ghoul
      • ((Triggering unit) is dead) Equal to True
    • Actions
      • Set VariableSet SpawnPoint = (Position of (Triggering unit))
      • Set VariableSet UnitsNearSpawn = (Units within 251.00 of SpawnPoint matching ((Unit-type of (Matching unit)) Equal to Graveyard).)
      • Unit Group - Pick every unit in UnitsNearSpawn and do (Actions)
        • Loop - Actions
          • Set VariableSet SpawnOwner = (Owner of (Picked unit))
      • Unit - Change ownership of (Triggering unit) to SpawnOwner and Retain color
      • Custom script: call DestroyGroup(udg_UnitsNearSpawn)
      • Custom script: call RemoveLocation(udg_SpawnPoint)
Daaaamn! It works on my map too! Thanks so much for the help <3 Sending you much love for your kindness <3
 
Status
Not open for further replies.
Top