summaryrefslogtreecommitdiff
path: root/macros/scripts
AgeCommit message (Collapse)Author
2020-07-13Define map setup commands as macros like other script commandsRangi
2020-07-10Use const_skip and const_next macros for brevityRangi
2020-07-08Eliminate enum: use const instead, with case-by-case parallel const ↵Rangi
implementations
2020-07-06text_linkpromptbutton -> text_waitbuttonRangi
Removes support for text_waitbutton as a legacy alias for text_promptbutton.
2020-06-10Resolve #723: treat std scripts like specials and predefsRangi
2020-06-07wPhoneList, like wItems et al, has a terminating 0 (see ↵Rangi
PokegearPhone_DeletePhoneNumber); also fix a comment
2020-03-21rgbds supports 'X - 1' instead of 'X + -1'Rangi
2020-03-21Miscellaneous fixes from #694Rangi
2020-01-06Merge branch 'master' into audio-macrosdannye
2020-01-05Update docs/music_commands.mddannye
and remove the pokered compatibility macros
2019-11-03Rename buttonsound to promptbuttonRangi
2019-09-08stereo_panning: force any non-zero arg to 1dannye
2019-09-04Add legacy audio macrosdannye
2019-09-03Use TRUE/FALSE constants for stereo_panningdannye
and use dn instead of db for volume envelope and pitch sweep
2019-09-03Rename dnote to drum_note and dspeed to drum_speeddannye
2019-09-02Update audio macros and argumentsdannye
and update related labels/constants/comments this fixes a lot of mistakes and maximizes compatibility with red
2019-05-25Get rid of _CRYSTALmid-kid
Having this here is completely redundant and useless, and doesn't even work since it should use `if DEF(_CRYSTAL)` instead.
2019-04-21"object_const_def" instead of "const_def 2"Rangi
2019-04-19Identify some more WRAM labelsRangi
2019-04-09TextBox -> Textboxmid-kid
Homogenizing names.
2019-03-10Rename some call/jump script commands to avoid confusion with jr/jp asm ↵Rangi
instructions Fixes #580
2019-03-10Rename more script commands for consistency and predictabilityRangi
Fixes #540
2019-03-03Define constants for map event sizesRangi
2019-02-17Don't use legacy macrosRangi
2019-02-16dba exists, use itRangi
2019-02-16passtoengine -> autoinputRangi
2019-02-16Document wBattleAnimFlagsmid-kid
`anim_clearsprites` was misnamed, so I renamed it to `anim_keepsprites`, and documented it in docs/battle_anim_commands.md
2019-02-15dorepeat -> dowait for oam animationsmid-kid
Having the pic animation macros be the same as the oam animation macros isn't really turning out so well... I wonder if we should split them up eventually.
2018-12-09Format music macros like movement macrosRangi
2018-12-09Merge pull request #578 from mid-kid/masterRangi
Fixes in the animation subsystem.
2018-11-25Rename "feet and head follow" commandsmid-kid
The lot of these were rather misnamed, since they're used to replace part of the player or enemy with objects for several background effects. https://github.com/pret/pokecrystal/pull/578#issuecomment-440996244
2018-11-21Define first_music_cmdmid-kid
This replaces the uses of $d0 in the audio engine with proper constants.
2018-11-20Cosmetic fixesmid-kid
2018-11-18Resolve issue #575: Rename text commandsRangi
2018-11-11Merge pull request #573 from mid-kid/masterRangi
text_jump → text_far
2018-11-11Clarify LEGACY supportmid-kid
2018-11-05text_jump → text_farmid-kid
The previous name for this was rather misleading. It isn't an actual jump like you'd expect the `jp` instruction to behave as. Instead, it behaves more like a `farcall`. This also makes it consistent with its current command ID name of `TX_FAR`.
2018-10-11Stop using __enum__ + 3mid-kid
Abuse __enumdir__ instead, for better readability.
2018-08-17CheckDestinyBond -> CheckFaintmid-kid
Its main function is fainting the opponent and ending the move effect. Updated the comment accordingly.
2018-07-28anim_ret_command is an index in a table after allmid-kid
For some reason I thought BattleAnim_Ret was never used, due to how the battle anim loop would be exited early from. It seems I was wrong. Removing commands before anim_ret without it being part of the `enum` seems to break things.
2018-07-18Clean up TX_ commandsmid-kid
Some of the TX_ commands didn't use the TX_ prefix for their constants, and the label names were inconsistent. I've chosen to adopt the `TextCommand_` prefix as opposed to `Text_`, as it has a clear difference in namespace compared to the possibly-used `Text_` namespace for actual dialogue text.
2018-07-18Fix anim_ret_commandmid-kid
2018-06-24Fix triple newlines left over from removing address commentsRangi
2018-05-05fix-various-little-thingsmid-kid
A compilation of suggestions from the discord that don't deserve separate commits and are not questionable at all™.
2018-04-04Rename some battle commandsmid-kid
`hittarget` was misleading, as it doesn't actually "hit" the target, it only plays the animation. As such, I've renamed it to `moveanim`. `checkfaint` has nothing to do with checking if the user or target has fainted, instead, it applies wCurDamage onto the target's HP, hitting the substitute if applicable. I've renamed the command to `applydamage` and all of its subfunctions accordingly.
2018-04-04Label BattleCommand_BeatUpFailTextmid-kid
2018-04-04Label bidefailtextmid-kid
This "unknown" battle command is actually used to give the proper fail message to bide.
2018-02-25Default macro parameters use recursion; avoids repeating internal structureRangi
2018-02-25* loadmenuheader -> loadmenu (ead103d)Rangi
* objectface -> turnobject (c834bda)
2018-02-03map → map_id; map_def → map; map_data → map_attributesRangi