Disconnect..

  • Thread starter Thread starter Hell-Pleaque
  • Start date Start date
H

Hell-Pleaque

Guest
This is my trigger to revive heroes.

ReviveHero
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
(Unit-type of (Dying unit)) Not equal to Low Quality Battleship
(Unit-type of (Dying unit)) Not equal to Superior Battleship
(Unit-type of (Dying unit)) Not equal to Unique Battleship
Actions
Player - Add (((Owner of (Dying unit)) Current gold) / -8) to (Owner of (Killing unit)) Current gold
Game - Display to (All players) the text: (PlayerColors[(Player number of (Owner of (Dying unit)))] + ((Name of (Owner of (Dying unit))) + (|r + ( lost + ((String((((Owner of (Dying unit)) Current gold) / 8))) + ( because he died... + ( he will revive in + ((String((4 x (Hero level of (Dying unit))
Wait (4.00 x (Real((Hero level of (Triggering unit))))) game-time seconds
Hero - Instantly revive (Dying unit) at (Center of Hero Spawn <gen>), Show revival graphics
Camera - Pan camera as necessary for (Owner of (Dying unit)) to (Center of Hero Spawn <gen>) over 1.50 seconds

It works great... if I'm alone. I tried my map with the other computer through LAN and when his hero died the text showed but when the revive revived the other computer gets "You were disconnected".

The disconnect happens when Hero - Instantly revive [...]

Anyone can find out why?
 
This trigger is far too simple for what you want to do.

Wait (4.00 x (Real((Hero level of (Triggering unit))))) game-time seconds

After a wait like that, there is no more 'Dying unit'. Hes dead and gone.

Did you check the Hero revive code on the tutorial site??? Someone else did it so I never tested it.

1. You may need a local 'unit' variable to store the hero.

2. You should use polled waits.

3. WC3 can only do so many waits at one time, you may want to use a timer instead.
 
I tried the Hero Revival on your site but I didn't figure out how to do it...

1. Explain, if you have time, please.
2. Polled waits?
3. I didn't want the screen cluttered with timers, thats why I used simple text and wait.
 
What I'm using IS a polled wait then.
Wait (4.00 x (Real((Hero level of (Dying unit))))) game-time seconds

I'll try a few things with the timers then.
 
Ok.. working on it. If I don't get anything to work I'll post later.
 
Countdown Timer - Start (Create a periodic One-shot timer lasting 30.00) as a
One-shot timer that will expire in x seconds

How do you do this? the - Start (Create...) ?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • A Andyoyo:
    Thank you for the hard work over the years. It did not go unnoticed.
  • U Uberplayer:
    Thanks for everything!
  • XXXconanXXX XXXconanXXX:
    And we JUST got a new warcraft 3 campaign after 20 years! Bummer lol. Thanks for building and maintaining such an awesome community over the years TheHelper! Forums like these are definitely a relic of their time, and in its heyday it really was the place to be in its niche. Hopefully the discord community stays active!
  • WildTurkey WildTurkey:
    All the best helper
  • WildTurkey WildTurkey:
    Thanks for what you have done for me and my family
  • WildTurkey WildTurkey:
    I wish you all the best and am saddened to say goodbye
  • The Helper The Helper:
    That is fantastic WildTurkey I am so happy to hear that! Bless you and your family!
  • The Helper The Helper:
    and i dont think I am going to close the site it is just likely to change drastically but I am working on something for the interim still fleshing it out. Most of the forums are going to be gone though and the NUON site and Warcraft sites will probably to to different hosts. I might keep the news forum though :)
    +1
  • The Helper The Helper:
    So I paired down the forums to what is going to be in the interim
  • The Helper The Helper:
    I might also just go for one news forum and make it Headline News only all that sub forum stuff was busy work on my part i think :)
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    I know right
    +1
  • Varine Varine:
    It's been great guys, I appreciate you having kept it up for so long! I feel like this has been a big part of my growing up in life, and I do very much appreciate everything that this forum has been able to give to me. So thank you.
    +2
  • Varine Varine:
    If there's bits still around I am willing to bet I will be, but I honestly wouldn't be too upset if some of my teenager posts were to no longer be around. I was a little fucking problem back then
    +1
  • Varine Varine:
    I'm going on a backpacking trip pretty soon. I've been trying to do it for a few years now and it just couldn't happen. I'll be by myself, and I think it'll be really good for me. My pack is already too heavy so I can't bring alcohol, and that might be a benefit to me. Like had that probation and couldn't drink, but it's a bit different when you can't do something voluntarily versus threat of literal imprisonment
    +1
  • Varine Varine:
    The trail is 40 miles altogether, but I'm planning on cutting cross country a bit because I want to camp on top of this mountain. I'm bringing a little telescope, if there's still a place for it I'll post some pictures when I get back!
    +2
  • jonas jonas:
    honestly there's nothing on that trip that would become better by drinking
  • jonas jonas:
    looking forward to those pictures
  • The Helper The Helper:
    Happy Thursday people! I think I have come up with a new direction for the site. One that will never fizzle out because a game is not popular anymore. I think I am going to try to make TheHelper.net a place that helps people with real stuff as much as it did with game technical support back in the day. Stay tuned...
    +3
  • The Helper The Helper:
    Happy Tuesday!
    +1
  • The Helper The Helper:
    Happy Thursday! Hope everyone has a Fantastic Day!
    +2
  • The Helper The Helper:
    Happy Thursday everyone. I hope everyone has a blessed day!

The Helper Discord

Staff online

Members online

Affiliates

Hive Workshop NUON Dome World Editor Tutorials
Back
Top