1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. Don’t forget to sign up for the Hive Cup. There’s a 555 EUR prize pool. Sign up now!
    Dismiss Notice
  4. The Hive Workshop Cup contest results have been announced! See the maps that'll be featured in the Hive Workshop Cup tournament!
    Dismiss Notice
  5. The results are out! Check them out.
    Dismiss Notice
  6. The poll for Hive's 12th Concept Art Contest is up! Go cast your vote for your favourite genie!
    Dismiss Notice
  7. The raddest synthwave tracks were chosen - Check out our Music Contest #12 - Results and congratulate the winners!
    Dismiss Notice
  8. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

"player leaves the game" has glitches?

Discussion in 'World Editor Help Zone' started by darkrider, Mar 20, 2009.

  1. darkrider

    darkrider

    Joined:
    Dec 31, 2007
    Messages:
    780
    Resources:
    1
    Maps:
    1
    Resources:
    1
    i had some problems when some players (any player actually) leaves the game... the map doesn't recognize that they did leave the game... this happens sometimes... not always

    is this possible? or perhaps i have something in my code?
     
  2. Meticulous

    Meticulous

    Joined:
    Nov 15, 2007
    Messages:
    779
    Resources:
    0
    Resources:
    0
    Can't really tell you that if you don't post it.
     
  3. darkrider

    darkrider

    Joined:
    Dec 31, 2007
    Messages:
    780
    Resources:
    1
    Maps:
    1
    Resources:
    1
    ok... ill post the first part... coz the only one giving troubles

    ill explain how

    • Player Leaves the Game
      • Events
        • Player - Player 1 (Red) leaves the game
        • Player - Player 2 (Blue) leaves the game
        • Player - Player 3 (Teal) leaves the game
        • Player - Player 4 (Purple) leaves the game
        • Player - Player 5 (Yellow) leaves the game
        • Player - Player 6 (Orange) leaves the game
        • Player - Player 7 (Green) leaves the game
        • Player - Player 8 (Pink) leaves the game
        • Player - Player 9 (Gray) leaves the game
        • Player - Player 10 (Light Blue) leaves the game
      • Conditions
      • Actions
        • Set Leaver_hero[(Player number of (Triggering player))] = Player_hero[(Player number of (Triggering player))]
        • Player - Turn Gives bounty Off for (Triggering player)
        • Set AllowDisableElisium = True
        • Game - Display to (All players) the text: ((PlayerNames[(Player number of (Triggering player))] + has left the game!) + <Empty String>)
        • Game - Display to (All players) the text: ((PlayerNames[(Player number of (Triggering player))] + 's gold has been splitted equally to all allies!) + <Empty String>)


    the game doesnt even show the text on screen...

    there is nothing before this and a lot after this... but that doesnt modify if the message is displayed or not

    so... or i have a problem detecting when a player leaves the game... or i have no clue :/
     
  4. DenZel94

    DenZel94

    Joined:
    Jun 4, 2006
    Messages:
    127
    Resources:
    5
    Maps:
    3
    Tutorials:
    2
    Resources:
    5
    Who is PlayersNames? You set Leaver_hero to Player_hero..
     
  5. darkrider

    darkrider

    Joined:
    Dec 31, 2007
    Messages:
    780
    Resources:
    1
    Maps:
    1
    Resources:
    1
    when the game begins i set player names into a string array with the name of every player

    coz later i change the name of the players
     
  6. PurplePoot

    PurplePoot

    Joined:
    Dec 14, 2005
    Messages:
    11,161
    Resources:
    3
    Maps:
    1
    Spells:
    1
    Tutorials:
    1
    Resources:
    3
    Put a leave message without reference to any vars at the start of the trigger and identify when it bugs, because you almost definitely are having problems with an undefined slot in one of your arrays.
     
  7. darkrider

    darkrider

    Joined:
    Dec 31, 2007
    Messages:
    780
    Resources:
    1
    Maps:
    1
    Resources:
    1
    ill check that out
     
  8. Captain Griffen

    Captain Griffen

    Joined:
    Nov 20, 2005
    Messages:
    1,001
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Yes it does. Lesson: Always post the lot.
     
  9. darkrider

    darkrider

    Joined:
    Dec 31, 2007
    Messages:
    780
    Resources:
    1
    Maps:
    1
    Resources:
    1
    but the rest of it doesn't modify the beginning of it, does it?

    coz the rest is just gold split things and control things and some other stuff
     
  10. Captain Griffen

    Captain Griffen

    Joined:
    Nov 20, 2005
    Messages:
    1,001
    Resources:
    3
    Maps:
    3
    Resources:
    3
    Well, it could be important. The stuff after it won't actually affect it directly, but all related code should be included as a matter of course.