summaryrefslogtreecommitdiff
path: root/macros/scripts
AgeCommit message (Collapse)Author
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
2018-02-02use "x + -1" not "x +- 1"Rangi
(TODO: use "x - 1" once rgbds allows it)
2018-02-02spriteface → objectface, consistent with the other script commandsRangi
2018-02-02Remove checkmorn/checkday/checknite macrosRangi
2018-02-02Script commands don't have underscoresRangi
2018-02-01warp_event x, y, map, warp_idRangi
2018-02-01More comments and macrosRangi
2018-01-31enum_start like const_defRangi
2018-01-28grep -rl warp_def . | xargs sed -i s/warp_def/warp_event/gRangi
2018-01-23MenuDataHeader → MenuHeader, MenuData2 → MenuData (might complete issue ↵Rangi
#440)
2018-01-23trainers put the class and id first: `trainer YOUNGSTER, JOEY1, ...`Rangi
2018-01-23hiddenitem, like itemball and object_event, puts the item first and the ↵Rangi
event last
2018-01-18Better TX_SOUND_* namesRemy Oukaour
2018-01-18More charmap and home/text.asm documentation for JP charsRemy Oukaour
2018-01-15Long lists of db/dw series with struct-defining macros belong in data/Remy Oukaour
2018-01-13Introduce callback, hiddenitem, conditional_event, and cmdqueue macros for ↵Remy Oukaour
map scripts
2018-01-12Use more constants in scriptsRemy Oukaour
2018-01-10Other files belong in data/battle/Remy Oukaour
2018-01-01Document some more battle animation commandsyenatch
2017-12-29Fix anim_obj x/y valuesyenatch
- negative values have no meaning - left in optional tile x/y for backwards compatibility
2017-12-28Consistent if/else/endc (matches rept/endr) and DEF (matches BANK/HIGH/LOW)Remy Oukaour
2017-12-28Merge branch 'master' of https://github.com/pret/pokecrystalRemy Oukaour
# Conflicts: # macros/scripts/maps.asm
2017-12-28endm -> ENDMxCrystal
2017-12-28Consistent (x, y) coordinate formatting in map scriptsRemy Oukaour
2017-12-28Uppercase MACRO and EQU(S) according to the style guidexCrystal
2017-12-27Remove redundant data/ filename prefixesRemy Oukaour
2017-12-26Use "battle_anims" and "sprite_anims" for clarity, not just "anims"Remy Oukaour
2017-12-26Split battle/ into data/ and engine/ componentsRemy Oukaour
2017-12-26Rename: emote_headers, sprite_headers, cry_headers, gfx_headers, tileset_headersRemy Oukaour
2017-12-24s/number/scene/, and correct some documentationRemy Oukaour
2017-12-24Renaming: (fix #412)Remy Oukaour
- MapTriggers / maptrigger → SceneScripts / scene_script - XYTriggers / xy_trigger → CoordEvents / coord_event - Signposts / signpost → BGEvents / bg_event - PersonEvents / person_event → ObjectEvents / object_event
2017-12-24Support old one-argument sound_duty macro, similar to callab/callba legacy ↵Remy Oukaour
support