Help With This Revive Trigger

comparami

New Member
Reaction score
4
Im using this reive trigger from SD_Ryoko, and there happens to be something wrong. It revives all the heroes properly except for "ONE", why is that? is there any way that i could fix that?

here's the trigger:
Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local integer HEROWAIT
      • Custom script: local timer OURTIMER
      • Custom script: local unit OURHERO
      • Custom script: set OURHERO = GetDyingUnit()
      • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 2 + 2 )
      • Custom script: set OURTIMER = CreateTimer()
      • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
      • Custom script: call PolledWait( HEROWAIT )
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Owner of (Triggering unit)) Equal to Player 2 (Blue)
              • (Owner of (Triggering unit)) Equal to Player 3 (Teal)
              • (Owner of (Triggering unit)) Equal to Player 4 (Purple)
              • (Owner of (Triggering unit)) Equal to Player 5 (Yellow)
              • (Owner of (Triggering unit)) Equal to Player 6 (Orange)
        • Then - Actions
          • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_OlympianHeroSpawn), true )
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Or - Any (Conditions) are true
                • Conditions
                  • (Owner of (Triggering unit)) Equal to Player 8 (Pink)
                  • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
                  • (Owner of (Triggering unit)) Equal to Player 10 (Light Blue)
                  • (Owner of (Triggering unit)) Equal to Player 11 (Dark Green)
                  • (Owner of (Triggering unit)) Equal to Player 12 (Brown)
            • Then - Actions
              • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_TitanHeroSpawn), true )
            • Else - Actions
      • Custom script: call PanCameraToTimedLocForPlayer( GetOwningPlayer(OURHERO), GetUnitLoc(OURHERO), 0.60 )
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |cff08BDDEYour Hero...


weird...
 

Aniconic

I am the very model of a modern major general!
Reaction score
3
Is the one hero always from a particular player, or is it somewhat random?
 

comparami

New Member
Reaction score
4
this hero does not revive for any player, its so weird. i dont understand why is it like that.. so confused, i should post my map huh?
 

comparami

New Member
Reaction score
4
okay, now i see what's the problem, its not the hero, but the revive system itself :( ... im using the revive system of SD_Ryoko, and its buggy.. can someone help me create a revive system? i really need it for my map.

here's the edited revive system again:

Trigger:
  • Revive Hero
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A Hero) Equal to True
    • Actions
      • Custom script: local integer HEROWAIT
      • Custom script: local timer OURTIMER
      • Custom script: local unit OURHERO
      • Custom script: set OURHERO = GetDyingUnit()
      • Custom script: set HEROWAIT = ( GetHeroLevel(OURHERO) * 2 + 2 )
      • Custom script: set OURTIMER = CreateTimer()
      • Custom script: call StartTimerBJ( OURTIMER, false, ( I2R(HEROWAIT) ))
      • Custom script: call PolledWait( HEROWAIT )
      • Custom script: call ReviveHeroLoc( OURHERO, GetRectCenter(gg_rct_ReviveSpot), true )
      • Game - Display to (Player group((Owner of (Triggering unit)))) for 5.00 seconds the text: |cff08BDDEYour Hero...


after it doest revive one hero, it still revives the other hero, i think this system is not MUI? am i right? or is it really buggy, please someone create me a non-buggy revive system for my heroes, or help me fix this.. :banghead:
 

Handsomeboss

Active Member
Reaction score
0
I can show you but I don't know how to post trigger because I'm new memmber. I also have my own map like JDay and it can revive all the dead Hero very well. I'm playing with my friends my map instead of JDay map
 

Handsomeboss

Active Member
Reaction score
0
I haven't known anything about custom script but I have a simple way to revive your Heroes.
Trigger:
timep1
Events
Unit - A unit owned by Player 1 (Red) Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Unit Group - Add (Dying unit) to DeadHeroes
Set count[1] = (10.00 + ((Real((Level of (Dying unit)))) x 4.00))
Countdown Timer - Create a timer window for Revive[1] with title (Reviving + (Name of (Owner of (Dying unit))))
Set TimerWindow[1] = (Last created timer window)
Countdown Timer - Start Revive[1] as a One-shot timer that will expire in count[1] seconds
Wait count[1] seconds
Trigger - Run Revivep1 <gen> (checking conditions)


Revivep1
Events
Time - Revive[1] expires
Conditions
Actions
Player Group - Pick every player in Player Group - Player 1 (Red) and do (Actions)
Loop - Actions
Hero - Instantly revive (Dying unit) at ((Owner of (Dying unit)) start location), Show revival graphics
Game - Display to (All players) the text: ((Name of (Owner of (Dying unit))) + has revived)
Countdown Timer - Hide TimerWindow[1]
Camera - Pan camera for (Owner of (Dying unit)) to ((Owner of (Dying unit)) start location) over 2.00 seconds
Unit Group - Remove (Dying unit) from DeadHeroes



this is my trigger for player 1. Do that to all players in your map. It will work and I'm sure it has no problem.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top