Results 1 to 2 of 2

Thread: LUA script to change current player

  1. #1

    LUA script to change current player

    Is there a way to change which player's turn it currently is? For example, after a certain number or turns, when it would become the first player's turn they must instead choose a different player to become the first player, and it is immediately their turn.

    So player 3 ends their turn. Player 1 is shown 2 buttons for "player 2" and "player 3", player 1 clicks the button for "player 3".

    Can a script make player 3's turn immediately become active as well as reorder the players such that the order is player 3, player 1, player 2fedloan irs.gov easybib
    Last edited by Jonesmartinze; 12-03-2019 at 04:38 PM.

  2. #2
    There are a number of functions provided for controlling player turns. You can see the documentation at https://api.tabletopsimulator.com/turns/

    As such, when you want a player to choose another player, create your UI for the choice and then set the turn_color property (see the documentation link above) to the selected player. There is also the order property which allows you to change the player order. Lost of option, just read the corresponding scripting document section.

Similar Threads

  1. [SOLVED] LUA script to change current player
    By JamesWilliams in forum General Discussion
    Replies: 1
    Last Post: 11-21-2019, 03:42 PM
  2. End/change Turn with Script
    By Alanshor in forum Scripting
    Replies: 2
    Last Post: 08-17-2019, 12:23 PM
  3. Setting the current player
    By AgentElrond in forum Scripting
    Replies: 9
    Last Post: 12-25-2018, 01:32 AM
  4. Get a Player's current View
    By Ajkiger1 in forum Scripting Suggestions
    Replies: 1
    Last Post: 06-25-2017, 10:00 PM
  5. [ADDED] Change how Numerals are handeled in the current file structure.
    By Lucky seven in forum Suggestions
    Replies: 1
    Last Post: 09-04-2015, 08:18 PM

Posting Permissions

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