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

Shared Altar System Possible?

Status
Not open for further replies.
Level 1
Joined
Aug 14, 2016
Messages
2
Hello fellow Hivers! :)

Is it possible to create an Altar system that is shared between players (and changes somehow) without resetting the heroes revive timer each time it changes? If not, I'll have to think of something to bypass this somehow.
Thanks in advance. :wgrin:
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
Your solution is probably...

Player selects the Altar. Deselect and have them select a dummy altar at the same position, let them order the revive. Now play the animation of the real Altar so it looks like it's actually working.

If the Player orders the cancel or it finishes reviving, turn off the animation on the real Altar.
 
Last edited:
Level 1
Joined
Aug 14, 2016
Messages
2
Explain what do you mean by "changes".

Because the map contains 4~ heroes each team, I would like to change each time a player selects it like p0ke described.

@pOke: Hmm, I will take a look into that later. Also, how do I force the player to deselect/select the dummy altar? :vw_wtf:
 
Level 13
Joined
Mar 24, 2013
Messages
1,105
I've attached a trigger to show how you would force the player to select the dummy altar when the player clicks on the real one. The only thing left to be done would be another trigger where you catch if the dummy altars are ordered to revive you need to play an animation on the RealAltar and when those finish or are canceled play the stand animation.

  • Untitled Trigger 008
    • Events
      • Player - Player 1 (Red) Selects a unit
      • Player - Player 2 (Blue) Selects a unit
      • Player - Player 3 (Teal) Selects a unit
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to RealAltar
    • Actions
      • Set TempPlayer = (Triggering player)
      • Set TempInteger = (Player number of TempPlayer)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • DummyAltars[TempInteger] Equal to No unit // Instead of this If you could simply create the unit at the beginning of the map.
        • Then - Actions
          • Set TempPoint = Position of Triggering Unit
          • Unit - Create 1 DummyAltar for TempPlayer at TempPoint facing Default building facing degrees
          • Set DummyAltars[TempInteger] = (Last created unit)
          • Custom script: call RemoveLocation(udg_TempPoint)
        • Else - Actions
      • Selection - Select DummyAltars[TempInteger] for TempPlayer
 
Status
Not open for further replies.
Top