Results 1 to 6 of 6

Thread: Quick Multiuser Question

  1. #1
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Quick Multiuser Question

    Quick question about SRL's multiuser--I was wondering if there was a command to go back to the first user after they have all been used. I've been looking through the srl help file and i can't find anything.

    Thanks

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NextPlayer(True) will leave the current player's .active at true. This means that once you go through all of the players in the array, it will start over and use all that are still active.

    Just don't do NextPlayer(False) on the first player and it will go back to the first player once you reach the end. Of course, if the first player was stuck in a random event that it couldn't solve or was lost, you would most likely not want to go back to that player. In that case, you would probably want to leave it's active as False.
    Last edited by JAD; 08-24-2009 at 12:30 PM.

  3. #3
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    One more question...is there a function (or another way) to set all users active?

  4. #4
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    for i := 0 to HowManyPlayers - 1 do
        Players[i].Active := True;

    That should do it.

  5. #5
    Join Date
    Aug 2009
    Posts
    164
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks!

    I seem to be having a problem though, whenever my script switches users the first thing that happens is it logs out immediately and says "Creating the NickTPA" then logs back in...is that normal, or is there something wrong with my code?

  6. #6
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    When it's, "Creating the NickTPA," it's making the TPA of the nick name for randoms.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •