Game (functions)/Team Management

From PMDOWiki

GetTeamLeaderIndex

Returns the index of the currently player controlled entity in the party.

Returns

Index of the currently player controlled entity in the party.

SetTeamLeaderIndex

Sets the leader to the chosen index within the party. Argument order is GAME:SetTeamLeaderIndex(idx).

Arguments

Name Type Technical Type Purpose
idx Integer System.Int32 The index of the team member within the team.

SetCanSwitch

Prevents or allows the switching of leaders for the save file. Argument order is GAME:SetCanSwitch(flag).

Arguments

Name Type Technical Type Purpose
flag Boolean System.Boolean Set to true to allow switching, set to false to prevent it.

SetCanRecruit

Prevents or allows the joining of recruits for the save file. Argument order is GAME:SetCanRecruit(flag).

Arguments

Name Type Technical Type Purpose
flag Boolean System.Boolean Set to true to allow recruiting, set to false to prevent it.

SetTeamName

Sets the name of the player's team. Argument order is GAME:SetTeamName(name).

Arguments

Name Type Technical Type Purpose
name String System.String The new team name.

GetTeamName

Gets the name of the player's team. Returns the name of the team.