Commit Graph

6 Commits

Author SHA1 Message Date
haven1433
8ce21a3e95 validate that script macros that expect the same value in multiple args only apply if all the args actually have the same value 2024-05-30 11:12:48 -05:00
haven1433
dc18c138ea add capability of split-byte arguments for scripts
We want a macro that can "set the current move" for use in battle scripts, for setting how the animation should work. This needs to set a low-byte high-byte pair based on a move id, which requires 2 separate commands. In order for this macro to work, the code needs to be able to read the two split bytes as a single value, and write the single value as 2 split bytes. This is now supported.
2024-05-29 21:24:14 -05:00
haven1433
a532f72ced battle scripts can end with handleballthrow, finishaction, and finishturn 2024-05-29 19:05:53 -05:00
haven1433
417383584a msgbox.item now includes actually giving the player an item.
fix bug where some macros don't decompile correctly
2023-11-17 20:05:16 -06:00
haven1433
44aeed4e91 fix math for determining length of array arguments
need to account for the command name token
2023-10-29 18:43:16 -05:00
haven1433
5dc7eaecda refactor
ScriptParser.cs is getting too long
* move ScriptLine and related types to their own file
* move ScriptArg and related types to their own file
2023-10-01 12:12:10 -05:00