Game (functions)/Team Management: Difference between revisions
From PMDOWiki
Created page with " == GAME:GetTeamLeaderIndex == Returns the index of the currently player controlled entity in the party. === Returns === Index of the currently player controlled entity in the party. == GAME:SetTeamLeaderIndex(System.Int32) == Sets the leader to the chosen index within the party. === Arguments === * <code>idx</code>: The index of the team member within the team. == GAME:SetCanSwitch(System.Boolean) == Prevents or allows the switching of leaders for the save..." |
No edit summary |
||
| Line 39: | Line 39: | ||
* <code>canRecruit</code>: Set to true to allow recruit joins, set to false to prevent it. | * <code>canRecruit</code>: Set to true to allow recruit joins, set to false to prevent it. | ||
== GAME:SetTeamName(System.String) == | |||
Sets the name of the player's team | |||
=== Arguments === | |||
* <code>teamname</code>: The new team name | |||
== GAME:GetTeamName == | |||
Gets the name of the player's team | |||
=== Returns === | |||
The team's name | |||
Revision as of 21:04, 17 January 2026
GAME:GetTeamLeaderIndex
Returns the index of the currently player controlled entity in the party.
Returns
Index of the currently player controlled entity in the party.
GAME:SetTeamLeaderIndex(System.Int32)
Sets the leader to the chosen index within the party.
Arguments
idx: The index of the team member within the team.
GAME:SetCanSwitch(System.Boolean)
Prevents or allows the switching of leaders for the save file.
Arguments
canSwitch: Set to true to allow switching, set to false to prevent it.
GAME:SetCanRecruit(System.Boolean)
Prevents or allows the joining of recruits for the save file.
Arguments
canRecruit: Set to true to allow recruit joins, set to false to prevent it.
GAME:SetTeamName(System.String)
Sets the name of the player's team
Arguments
teamname: The new team name
GAME:GetTeamName
Gets the name of the player's team
Returns
The team's name
