Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void GiveCustomStartingParty(void)
- {
- struct Pokemon *mon;
- mon = &gPlayerParty[0];
- CreateMon(mon, SPECIES_ESPEON, 50, USE_RANDOM_IVS, TRUE, 0, OT_ID_PLAYER_ID, 0);
- SetMonMoveSlot(mon, MOVE_CALM_MIND, 0);
- SetMonMoveSlot(mon, MOVE_PSYCHIC, 1);
- SetMonMoveSlot(mon, MOVE_SHADOW_BALL, 2);
- SetMonMoveSlot(mon, MOVE_ZAP_CANNON, 3);
- mon = &gPlayerParty[1];
- CreateMon(mon, SPECIES_GARDEVOIR, 45, USE_RANDOM_IVS, TRUE, 0, OT_ID_PLAYER_ID, 0);
- mon = &gPlayerParty[2];
- CreateMon(mon, SPECIES_SALAMENCE, 55, USE_RANDOM_IVS, TRUE, 0, OT_ID_PLAYER_ID, 0);
- gPlayerPartyCount = 3;
- }
- void NewGameInitData(void)
- {
- if (gSaveFileStatus == SAVE_STATUS_EMPTY || gSaveFileStatus == SAVE_STATUS_CORRUPT)
- RtcReset();
- gDifferentSaveFile = TRUE;
- gSaveBlock2Ptr->encryptionKey = 0;
- ZeroPlayerPartyMons();
- ZeroEnemyPartyMons();
- ResetPokedex();
- ClearFrontierRecord();
- ClearSav1();
- ClearAllMail();
- gSaveBlock2Ptr->specialSaveWarpFlags = 0;
- gSaveBlock2Ptr->gcnLinkFlags = 0;
- InitPlayerTrainerId();
- PlayTimeCounter_Reset();
- ClearPokedexFlags();
- GiveCustomStartingParty(); // Custom line
- InitEventData();
- ClearTVShowData();
- ResetGabbyAndTy();
- ClearSecretBases();
- ClearBerryTrees();
- SetMoney(&gSaveBlock1Ptr->money, 3000);
- SetCoins(0);
- ResetLinkContestBoolean();
- ResetGameStats();
- ClearAllContestWinnerPics();
- ClearPlayerLinkBattleRecords();
- InitSeedotSizeRecord();
- InitLotadSizeRecord();
- //gPlayerPartyCount = 0;
- //ZeroPlayerPartyMons();
- ResetPokemonStorageSystem();
- ClearRoamerData();
- ClearRoamerLocationData();
- gSaveBlock1Ptr->registeredItem = ITEM_NONE;
- ClearBag();
- NewGameInitPCItems();
- ClearPokeblocks();
- ClearDecorationInventories();
- InitEasyChatPhrases();
- SetMauvilleOldMan();
- InitDewfordTrend();
- ResetFanClub();
- ResetLotteryCorner();
- WarpToTruck();
- RunScriptImmediately(EventScript_ResetAllMapFlags);
- ResetMiniGamesRecords();
- InitUnionRoomChatRegisteredTexts();
- InitLilycoveLady();
- ResetAllApprenticeData();
- ClearRankingHallRecords();
- InitMatchCallCounters();
- ClearMysteryGift();
- WipeTrainerNameRecords();
- ResetTrainerHillResults();
- ResetContestLinkResults();
- }
Advertisement
Add Comment
Please, Sign In to add comment