# Retry Mutation Index of Player

Grammar — Retry Mutation mutationNumber|Index of player p
FlagsNative | Function | Restricted

Returns the mutation index for retrying the previous random mutation game for a player. (Mutation Number shold be [0-3])

# Arguments

  • int — Player
  • int — Mutation Number

Returns — int

native int PlayerRetryMutation(int p, int mutationNumber);

Category: Player / Player Settings

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:1029

    }
    AIAddAirDangerCampaignUnits(lp_player);
    if ((libCOMI_gv_cM_CoopAIPlayer_CommanderShared == "None") && (PlayerRetryMutation(1, 0) > 0)) {
        libCOMI_gv_cM_CoopAIPlayer_Commander[lp_player] = libCOOC_gf_CC_AICommanderByUniqueIndex(PlayerACEnemyWaveType(1));
        libCOMI_gf_CM_CoopAIPersonalitySet(libCOMI_gv_cM_CoopAIPlayer_Commander[lp_player]);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12366

    if ((libCOMI_gf_DifficultyLevelForPlayerCoop(1) == 4) && (libCOMI_gf_DifficultyLevelForPlayerCoop(2) == 4) && ((lv_brutalPlusDiff >= 1) && (lv_brutalPlusDiff <= UserDataInstanceCount("MutationDifficultyLevels")))) {
        TriggerDebugOutput(1, StringExternal("Param/Value/lib_COMI_4F9E6618"), false);
        TextExpressionSetToken("Param/Expression/lib_COMI_C8E147FC", "A", IntToText(PlayerRetryMutation(1, 1)));
        TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COMI_C8E147FC"), false);
        if ((PlayerRetryMutation(1, 0) > 0)) {

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12368

        TextExpressionSetToken("Param/Expression/lib_COMI_C8E147FC", "A", IntToText(PlayerRetryMutation(1, 1)));
        TriggerDebugOutput(1, TextExpressionAssemble("Param/Expression/lib_COMI_C8E147FC"), false);
        if ((PlayerRetryMutation(1, 0) > 0)) {
            TriggerDebugOutput(1, StringExternal("Param/Value/lib_COMI_519C94CF"), false);
            libCOMU_gf_CT_SetMutationDifficultyLevel("Plus1");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12374

            lv_mutatorCount = 0;
            for ( ; ( (auto389E0899_ai >= 0 && lv_mutatorCount <= auto389E0899_ae) || (auto389E0899_ai < 0 && lv_mutatorCount >= auto389E0899_ae) ) ; lv_mutatorCount += auto389E0899_ai ) {
                if ((PlayerRetryMutation(1, lv_mutatorCount) > 0)) {
                    lv_retrymutatorindex = PlayerRetryMutation(1, lv_mutatorCount);
                    libCOMU_gv_cT_MAbomination_MutatorsCount += 1;

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:12375

            for ( ; ( (auto389E0899_ai >= 0 && lv_mutatorCount <= auto389E0899_ae) || (auto389E0899_ai < 0 && lv_mutatorCount >= auto389E0899_ae) ) ; lv_mutatorCount += auto389E0899_ai ) {
                if ((PlayerRetryMutation(1, lv_mutatorCount) > 0)) {
                    lv_retrymutatorindex = PlayerRetryMutation(1, lv_mutatorCount);
                    libCOMU_gv_cT_MAbomination_MutatorsCount += 1;
                    libCOMU_gv_cT_MAbomination_Mutators[libCOMU_gv_cT_MAbomination_MutatorsCount] = UserDataInstance("Mutators", lv_retrymutatorindex);