Exemple #1
0
bool8 ScrCmd_pokemart(struct ScriptContext *ctx)
{
    void *ptr = (void *)ScriptReadWord(ctx);
    CreatePokemartMenu(ptr);
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #2
0
bool8 ScrCmd_pokecasino(struct ScriptContext *ctx)
{
    u8 v2 = VarGet(ScriptReadHalfword(ctx));
    PlaySlotMachine(v2, c2_exit_to_overworld_1_continue_scripts_restart_music);
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #3
0
void BattleSetup_StartTrainerBattle(void)
{
    gBattleTypeFlags = BATTLE_TYPE_TRAINER;
    gMain.savedCallback = CB2_EndTrainerBattle;
    StartTheBattle();
    ScriptContext1_Stop();
}
Exemple #4
0
bool8 ScrCmd_pokemartbp(struct ScriptContext *ctx)
{
    void *ptr = (void *)ScriptReadWord(ctx);
    CreateDecorationShop2Menu(ptr);
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #5
0
void ScrSpecial_StartTrainerEyeRematch(void)
{
    gBattleTypeFlags = BATTLE_TYPE_TRAINER;
    gMain.savedCallback = CB2_EndTrainerEyeRematchBattle;
    StartTheBattle();
    ScriptContext1_Stop();
}
Exemple #6
0
bool8 ScrCmd_showcontestwinner(struct ScriptContext *ctx)
{
    u8 v1 = ScriptReadByte(ctx);
    if (v1)
        sub_8106630(v1);
    ShowContestWinner();
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #7
0
bool8 ScrCmd_yesnobox(struct ScriptContext *ctx)
{
    u8 v1 = ScriptReadByte(ctx);
    u8 v2 = ScriptReadByte(ctx);
    if (yes_no_box(v1, v2) == 1)
    {
        ScriptContext1_Stop();
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}
Exemple #8
0
bool8 ScrCmd_clearbox(struct ScriptContext *ctx)
{
    u8 v1 = ScriptReadByte(ctx);
    u8 v2 = ScriptReadByte(ctx);
    u8 v3 = ScriptReadByte(ctx);
    u8 v4 = ScriptReadByte(ctx);
    if (Multichoice(v1, v2, v3, v4) == 1)
    {
        ScriptContext1_Stop();
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}
Exemple #9
0
bool8 ScrCmd_multichoicerow(struct ScriptContext *ctx)
{
    u8 v1 = ScriptReadByte(ctx);
    u8 v2 = ScriptReadByte(ctx);
    u8 v3 = ScriptReadByte(ctx);
    u8 v4 = ScriptReadByte(ctx);
    u8 v5 = ScriptReadByte(ctx);
    if (sub_80B5578(v1, v2, v3, v5, v4) == 1)
    {
        ScriptContext1_Stop();
        return TRUE;
    }
    else
    {
        return FALSE;
    }
}
Exemple #10
0
void sub_80C824C(void)
{
    if (gNumSafariBalls != 0)
    {
        SetMainCallback2(c2_exit_to_overworld_2_switch);
    }
    else if (gUnknown_02024D26 == 8)
    {
        ScriptContext2_RunNewScript(&gUnknown_081C340A);
        warp_in();
        gUnknown_0300485C = sub_8080E44;
        SetMainCallback2(CB2_LoadMap);
    }
    else if (gUnknown_02024D26 == 7)
    {
        ScriptContext1_SetupScript(&gUnknown_081C3459);
        ScriptContext1_Stop();
        SetMainCallback2(c2_exit_to_overworld_1_continue_scripts_restart_music);
    }
}
Exemple #11
0
bool8 ScrCmd_startcontest(struct ScriptContext *ctx)
{
    sub_80C48C8();
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #12
0
void DoWhiteOut(void)
{
    CreateTask(Task_WhiteOut, 0x50);
    ScriptContext1_Stop();
}
Exemple #13
0
bool8 ScrCmd_lighten(struct ScriptContext *ctx)
{
    sub_8081594(ScriptReadByte(ctx));
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #14
0
bool8 ScrCmd_waitstate(struct ScriptContext *ctx)
{
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #15
0
bool8 ScrCmd_event_b2(struct ScriptContext *ctx)
{
    ScriptShowElevatorMenu();
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #16
0
bool8 ScrCmd_contestlinktransfer(struct ScriptContext *ctx)
{
    sub_80C4980(gScriptContestCategory);
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #17
0
bool8 ScrCmd_showcontestresults(struct ScriptContext *ctx)
{
    sub_80C4940();
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #18
0
bool8 ScrCmd_choosecontestpkmn(struct ScriptContext *ctx)
{
    sub_80F99CC();
    ScriptContext1_Stop();
    return TRUE;
}
Exemple #19
0
bool8 ScrCmd_dowildbattle(struct ScriptContext *ctx)
{
    sub_8081B3C();
    ScriptContext1_Stop();
    return TRUE;
}