Document Contest scripts
This commit is contained in:
+4
-4
@@ -461,13 +461,13 @@ bool8 ScrCmd_compare_var_to_var(struct ScriptContext *ctx)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
// Note: addvar doesn't support adding from a variable in vanilla. If you were to
|
||||
// add a VarGet() to the above, make sure you change the `addvar VAR_*, -1`
|
||||
// in the contest scripts to `subvar VAR_*, 1`, else contests will break.
|
||||
bool8 ScrCmd_addvar(struct ScriptContext *ctx)
|
||||
{
|
||||
u16 *ptr = GetVarPointer(ScriptReadHalfword(ctx));
|
||||
*ptr += ScriptReadHalfword(ctx);
|
||||
// Note: addvar doesn't support adding from a variable in vanilla. If you were to
|
||||
// add a VarGet() to the above, make sure you change the `addvar VAR_0x8006, 65535`
|
||||
// in the contest scripts to `subvar VAR_0x8006, 1`, else contests will break.
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
@@ -1945,7 +1945,7 @@ bool8 ScrCmd_choosecontestmon(struct ScriptContext *ctx)
|
||||
|
||||
bool8 ScrCmd_startcontest(struct ScriptContext *ctx)
|
||||
{
|
||||
sub_80F840C();
|
||||
StartContest();
|
||||
ScriptContext1_Stop();
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user