Game (functions)/Team Management

From PMDOWiki
Revision as of 21:01, 17 January 2026 by Imbion (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.