Plugin : Token
Author:Rex.Rainbow
- Round-robin player index, used in turn based game.
Download
Properties
Player ID list
Initial index
- Initial index, 0 base. The next index of (-1) is 0.
Order
- Order of transfering player index.
- Options : ["Increasing","Decreasing"]
Actions
ID
Action:Set list
- Set ID list.
- ID ( string ) : Player ID string
Action:Append
- Append ID to list.
- ID ( number or string ) : Player ID
Action:Remove
- Remove ID from list.
- ID ( number or string ) : Player ID
Action:Switch
- Switch ID.
- A ( number or string ) : Player ID
- B ( number or string ) : Player ID
Action:Clean list
Index
Action:Next
Action:Next random
- Turn to next random player.
Action:Previous
Order
Action:Reverse
Action:Set next index
- Set next player index.
- Index ( number ) : Player index (0-based)
Action:Turn off
Action:Set next ID
- Set next player ID.
- ID ( number or string ) : Player ID
Setup
Action:Set random generator
- Set random generator object.
- Random generator ( object ) : Random generator object
Expressions
ID
Expression:CurrID
Expression:PreID
Index
Expression:CurrIndex
- Get current player index.
Expression:PreIndex
- Get previous player index.
List
Expression:ListLength
Expression:List2String
- Get ID list in string fromat.
Look up
Expression:Index2ID
- Get player ID by player index.
- Index ( number ) : Player index.
Expression:ID2Index
- Get player index by player ID.
- ID ( string ) : Player ID.
Conditions
ID
Condition:Compare current ID
- Compare current ID.
- ID ( number or string ) : Player ID
Index
Condition:First index
- Testing if current index is first.
Condition:Last index
- Testing if current index is the last.
Condition:On player changing
- Triggered when player changing by "Action:Next".