HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

revive trigger disconnects people

09-30-2004, 11:00 PM#1
DarkFanatic
alright, i have this trigger:

Code:
Revival
    Events
        Unit - A unit Dies
    Conditions
        ((Dying unit) is in Heroes) Equal to True
        ((Dying unit) is A Hero) Equal to True
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                RevivalTipp[(Player number of (Owner of (Dying unit)))] Equal to False
            Then - Actions
                Game - Display to (Player group((Owner of (Dying unit)))) the text: Du verlierst 250 Go...
                Set RevivalTipp[(Player number of (Owner of (Dying unit)))] = True
            Else - Actions
        Wait 10.00 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                EndBossFight Equal to True
            Then - Actions
                Player - Add -100 to (Owner of (Dying unit)) Current gold
                Countdown Timer - Start HeroExpDelayTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 360.00 seconds
            Else - Actions
                Player - Add -250 to (Owner of (Dying unit)) Current gold
                Countdown Timer - Start HeroExpDelayTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in 180.00 seconds
        Hero - Instantly revive (Dying unit) at (Random point in Spieler Start <gen>), Show revival graphics
        Camera - Pan camera as necessary for (Owner of (Dying unit)) to (Position of (Dying unit)) over 0.50 seconds
        Hero - Disable experience gain for (Dying unit)
the player (except the first, he stays in the game) gets disconnected when his hero is revived and i'd like to know why!
any ideas?
09-30-2004, 11:15 PM#2
Gandalf2349
The player doesn't get disconnected, it causes a server split. Everybody except you gets booted. So if you're player 1 it looks like all of the other players left. If your player 7 it looks like all the other players left.

The evil server split line is: Pan Camera as necessary.
Just use Pan Camera. Pan camera as necessary causes server splits, and that might not be the best aspect of your game :)
10-01-2004, 09:09 AM#3
DarkFanatic
thx, i didn't know that, i thought it would be the timer or something. Good, that i don't have to redo that :)