Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Community PR] Integrate merrp's followers branch #4022

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
341 commits
Select commit Hold shift + click to select a range
58a3e55
Fixed follower appearance in shops.
aarant Dec 23, 2021
d06e1d4
Added flag for safe follower movement.
aarant Dec 30, 2021
149f443
Follower pokemon now emerge matching the player's direction.
aarant Dec 30, 2021
cf673fd
Added movements to follower messages. Movement credit: SonikkuA-DatH
aarant Dec 31, 2021
a4e1c84
Added support for Ghoulslash's sideways stairs with followers.
aarant Jan 2, 2022
d8a5fbd
Updated Donphan, Taillow, Swellow follower sprites. Credit: SonikkuA-…
aarant Jan 22, 2022
7daa783
Added more follower footprint types. Credit: Sonikku-DatH
aarant Feb 8, 2022
ea5e081
Fixed shadow palette tag. Fully removed permanent shadows.
aarant Feb 21, 2022
2273a61
Re-indexed follower & pokeball GFX IDs.
aarant Nov 1, 2021
c78736c
Fixed bug where decor icons cleared dynamic palettes in the Frontier …
aarant Mar 15, 2022
570b592
Fixed script `release` breaking followers when called mid-movement.
aarant Mar 15, 2022
6ef4e92
Fixed bug where followers could be talked to while invisible.
aarant Mar 16, 2022
23782c1
Fixed Sky Pillar Rayquaza sprite having the wrong image.
aarant Mar 20, 2022
acfd11b
Ignored species shiny/form bits in ScrCmd_bufferspeciesname.
aarant Apr 19, 2022
eeaefee
Updated / genericized remote_build.sh.
aarant Apr 21, 2022
30c366e
Added support for setting overworld species via GFX script vars.
aarant Apr 24, 2022
483d4b3
Fixed all field effects with gendered palette tags (warp arrow, surf …
aarant Apr 27, 2022
13565fc
Fixed `removeobject` clearing the palettes of unloaded dummy sprites.
aarant Apr 28, 2022
2bc5da3
Fixed sprite palette gamma types.
aarant Apr 28, 2022
5e1c6e0
Fixed `GetFollowerObject` being able to sometimes return removed/inac…
aarant Apr 30, 2022
7d4015d
Changed default follower elevation to player's current elevation.
aarant Apr 30, 2022
9993f72
Updated remote_build to use `--force-with-lease` instead of `--force`.
aarant May 1, 2022
831c73c
Added system for conditional follower messages.
aarant May 1, 2022
e8f3dca
Fixed OrbEffect hanging when follower pokemon is out.
aarant Mar 15, 2022
40d610e
Removed old debugPtr.
aarant May 8, 2022
28ec60a
Fixed some field effect palettes. Removed leftover CacheLightMetatiles.
aarant May 11, 2022
f623406
Fixed palette weather shading (again).
aarant May 11, 2022
21d8c8e
Using follower's nickname instead of ther species name.
AsparagusEduardo May 14, 2022
8672530
Fixed missing include in event_object_movement. Fixed Lombre follower…
aarant May 14, 2022
ec756d3
Fixed object events not being unfrozen after using Flash.
aarant May 17, 2022
01f73f5
Added follower transform effect and Castform forms. Credit: larryturbo
aarant May 17, 2022
5727a46
Updated Chansey, Espeon, Gyarados and Magikarp sprites. Credit: Jaizu
aarant May 18, 2022
4236f18
Fixed follower bugs when returning from a battle facility challenge.
aarant May 19, 2022
326cb5d
Updated Combusken follower sprite. Credit: Jaizu
aarant May 26, 2022
11a7aa1
Made cutting trees follower-safe.
aarant May 29, 2022
e5885c1
Fixed Registeel graphics to use OW sprite.
aarant Jun 21, 2022
3a1be34
Updated Skiploom & Shuppet OW sprites. Credit: Jaizu
aarant Jun 21, 2022
87140b9
Fixed Regirock & Registeel puzzle freezing follower pokemon.
aarant Jun 22, 2022
e60a0b1
Updated FOLLOWER_SAFE_MOVEMENT logic.
aarant Jun 22, 2022
53a4708
Updated Snubbull follower sprite.
aarant Jul 4, 2022
0aff5fc
Updated Whismur follower sprite.
aarant Jul 15, 2022
9beee31
Merge branch 'master' into romhack
aarant Jul 17, 2022
c2156b9
Fixed old Dusclops OW sprite.
aarant Jul 18, 2022
3cae019
Fixed graphical glitch on Route 120 bridge introduced in 418cab092c.
aarant Jul 28, 2022
1991f65
Fixed Magnemite & Magneton OW sprite colors.
aarant Aug 14, 2022
7edb7bb
Added battle slide-in animation for Pokemon follower.
aarant Aug 6, 2022
37ca4a6
Made talking to defeated trainers follower-safe.
aarant Aug 7, 2022
16babe8
Follower pokemon now disappears when teleporting.
aarant Aug 14, 2022
d846b9c
Added dynamic palette support for virtual objects.
aarant Aug 14, 2022
237f9d3
Fixed gitignore for icons & overworld.
aarant Aug 22, 2022
8c60050
Added proper movement actions for exiting/entering pokeball.
aarant Aug 24, 2022
5c7ee40
Fixed follower ledge jumps.
aarant Aug 28, 2022
66acabe
Refactored follower messages.
aarant Aug 29, 2022
8dc6da0
Fixed follower interaction with Lavaridge, Escalator, Escape warps.
aarant Aug 28, 2022
17758b7
Updated Github metadata & build script.
aarant Sep 3, 2022
e322475
Fixed Rayquaza cutscene flicker.
aarant Sep 3, 2022
19ccc01
Added `clangd` compile flags & updated .gitignore.
aarant Sep 11, 2022
1c011a9
Merge branch 'master' into followers
aarant Oct 8, 2022
f970057
Fixed field_poison.c error from master merge.
aarant Oct 15, 2022
c46f12e
Made follower pokemon inactive on vanilla saves.
aarant Oct 18, 2022
5d9e9d3
Fixed some follower movements.
aarant Oct 22, 2022
70d95ee
Fixed Mirage Tower falling fossil palette.
aarant Oct 28, 2022
e6d1cfa
Merge branch 'master' into followers
aarant Nov 22, 2022
beb282a
Added movements/scripts for overworld follower field moves.
aarant Dec 18, 2022
a59564f
Improved follower pokemon animation code.
aarant Dec 27, 2022
72e723d
Expanded graphicsId field.
aarant Jan 7, 2023
ac6e8cd
Updated Squirtle & evolutions OW graphics. Credit: andrian_timeswift
aarant Jan 13, 2023
5d5d97b
Fixed most functions that take/return graphicsIds to accept u16s.
aarant Jan 8, 2023
3a0dc0f
Reworked how OW pokemon's graphics are loaded.
aarant Jan 11, 2023
7b40e48
Improved saving & loading expanded OWs.
aarant Jan 12, 2023
95b98ef
Updated existing OW pokemon events with new system.
aarant Jan 13, 2023
5047f12
Improved saving & loading object events.
aarant Jan 26, 2023
66c57e3
Merge branch 'master' into followers
aarant Jan 29, 2023
b733cd1
Merge branch 'followers' into followers-expanded-id
aarant Feb 11, 2023
1387372
Updated README with new branches.
aarant Feb 11, 2023
84e8df9
Fix bug with ledge jumps and invisible followers.
aarant Feb 11, 2023
edbb95f
Cherry-pick of d6bac9895: Fixed contest palette load errors.
aarant Sep 3, 2022
2c922ad
Merge branch 'followers' into followers-expanded-id
aarant Feb 26, 2023
b1ea5fb
Fixed bug with applymovement not hiding followers after a battle.
aarant Mar 5, 2023
96c829c
Merge branch 'followers' into followers-expanded-id
aarant Mar 13, 2023
2ec895f
Updated CreateObjectGraphicsSprite with new system.
aarant Mar 8, 2023
0d30615
Made follower disappear when decorating.
aarant Jun 10, 2022
921baa7
Merge branch 'followers' into followers-expanded-id
aarant Apr 23, 2023
9e00e23
Added OW daycare pokemon.
aarant Mar 27, 2023
d12efe8
Merge branch 'master' into followers
aarant May 15, 2023
5d39224
Merge branch 'followers' into followers-expanded-id
aarant May 15, 2023
8b04571
Updated follower color fill palette logic.
aarant May 5, 2023
341ce6f
Merge remote-tracking branch 'merrp_origin/followers-expanded-id' int…
AsparagusEduardo Jun 17, 2023
db5e334
Follower Pokemon
AsparagusEduardo Jun 17, 2023
ab6c7a1
Fixed Castform
AsparagusEduardo Jun 17, 2023
116f61f
Removed unneeded calls to bufferspeciesname
AsparagusEduardo Jun 17, 2023
33012d8
Cleaning up follower Object Event IDs + Reverted OW Regis
AsparagusEduardo Jun 18, 2023
621ca11
Added OBJ_EVENT_GFX_SPECIES macro to help setting up OW Graphic IDs
AsparagusEduardo Jun 18, 2023
4bbe327
Cleanup pt1
AsparagusEduardo Jun 18, 2023
e7a1c93
Removed MON_DATA_NATURE
AsparagusEduardo Jun 18, 2023
148641d
Cleanup pt2
AsparagusEduardo Jun 18, 2023
bf814e1
Cleanup
AsparagusEduardo Jun 18, 2023
634bb19
Removed colored nature.
AsparagusEduardo Jun 18, 2023
c391c66
Cleanup pt4
AsparagusEduardo Jun 18, 2023
03a4793
Added LoadPlayerObjectEventPalette to load gender pals
AsparagusEduardo Jun 18, 2023
fbec37b
Merge branch 'followers' into followers-expanded-id
aarant Jun 28, 2023
712669c
Added support for follower bobbing. See event_objects.h
aarant Jul 29, 2023
394b4cb
Merge branch 'followers' into followers-expanded-id
aarant Jul 29, 2023
d929aa6
Added support for 48x48 and 64x64 followers. See event_objects.h
aarant Sep 3, 2023
8df5384
Merge branch 'master' into followers
aarant Sep 3, 2023
bf80e5c
Merge branch 'followers' into followers-expanded-id
aarant Sep 3, 2023
9c77aa3
Improved support for 64x64 followers. Updated reflection code.
aarant Sep 17, 2023
94a2e04
Made Deoxys rock palette dynamic.
aarant Oct 12, 2023
f27a252
Merge branch 'followers' into followers-expanded-id
aarant Oct 15, 2023
294657a
Fixes for `make modern`.
aarant Oct 15, 2023
f5580c4
Updated README.
aarant Oct 29, 2023
934a1fd
Remove old debug function
Jaizu Dec 25, 2023
dcaaac9
Added support for compressed OW graphics.
aarant Dec 25, 2023
7842a83
Fixed follower elevation/subpriority issues when player crosses eleva…
aarant Oct 29, 2023
7d7531f
Merge branch 'master' into followers
aarant Dec 31, 2023
630541c
Updated README.
aarant Dec 31, 2023
398a9ee
Merge branch 'followers' into followers-expanded-id
aarant Dec 31, 2023
ddc752e
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo Jan 17, 2024
5d372b5
Merge remote-tracking branch 'merrp_origin/followers-expanded-id' int…
AsparagusEduardo Jan 18, 2024
381a0bf
Fixed compile issues
AsparagusEduardo Jan 18, 2024
d53d34b
Restored missing code
AsparagusEduardo Jan 18, 2024
5233d0d
Showing followers in debug menu (no animation yet)
AsparagusEduardo Jan 18, 2024
47578fc
Unified loading of mon palettes
AsparagusEduardo Jan 18, 2024
396a44c
Follower animation in debug menu
AsparagusEduardo Jan 18, 2024
d4f97c7
Fixed Groudon follower size
AsparagusEduardo Jan 19, 2024
1aa7fea
Made OW_GFX_COMPRESS into C ifs
AsparagusEduardo Jan 19, 2024
d1f02a8
Centered follower sprite better in debug menu
AsparagusEduardo Jan 19, 2024
9d27aa7
Fixed Steelix, Lugia, Ho-Oh, Wailord, Kyogre and Rayquaza sizes
AsparagusEduardo Jan 19, 2024
17a7c26
Reverted accidental INCBIN_COMPs
AsparagusEduardo Jan 19, 2024
11b9759
Moved old mon graphics to its own folder so it's easier for the scrip…
AsparagusEduardo Jan 19, 2024
e452ee9
Preparing ready for Gen 4+ followers
AsparagusEduardo Jan 20, 2024
9ff5999
0xFFFF -> TAG_NONE
AsparagusEduardo Jan 20, 2024
48df875
Ascending frames
AsparagusEduardo Jan 20, 2024
89958a0
Gen 4+ followers
AsparagusEduardo Jan 20, 2024
b561584
Added new follower pokeballs & toggle.
aarant Jan 21, 2024
19b4731
Added subfolders to follower sprites (to be moved to the general mon …
AsparagusEduardo Jan 22, 2024
ea10a1d
Fixed compile
AsparagusEduardo Jan 22, 2024
ebbcb7d
Whitespace, documentation and style
AsparagusEduardo Jan 22, 2024
c29a33e
Moved follower sprites to graphics/pokemon folder
AsparagusEduardo Jan 23, 2024
45caead
Missing ascending frames
AsparagusEduardo Jan 23, 2024
2e1a3d4
Pic table capitalization
AsparagusEduardo Jan 23, 2024
f5239aa
Reading Follower data from gSpeciesInfo
AsparagusEduardo Jan 24, 2024
5119ee2
Can disable follower graphics
AsparagusEduardo Jan 24, 2024
a407c72
Cleaned up follower code.
aarant Jan 26, 2024
915f40c
Improved follower message system.
aarant Feb 11, 2024
c990851
Revert "Added function to check for newer emulators/hardware."
aarant Jan 26, 2024
1e5fd80
Revert "Allowed running inside buildings."
aarant Jan 26, 2024
949fc48
Revert "Added nature colors to stats."
aarant Jan 26, 2024
7e2bbac
Updated README.
aarant Jan 27, 2024
502a56e
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo Feb 13, 2024
f861504
Undo map.json changes.
aarant Feb 16, 2024
afbb88d
Undo (most) indentation changes.
aarant Feb 16, 2024
7252529
Merge branch 'merrp/pr/style' into followers
aarant Feb 16, 2024
4afb386
Added `.git-blame-ignore-revs` to hide whitespace-only changes from `…
aarant Feb 16, 2024
6bceacf
Added override table for standalone follower palettes.
aarant Feb 17, 2024
195d2bb
Merge branch 'followers' into followers-expanded-id
aarant Feb 17, 2024
ed4a291
Revert Object Event change from vanilla
AsparagusEduardo Feb 14, 2024
124c17d
Merge remote-tracking branch 'merrp_origin/followers-expanded-id' int…
AsparagusEduardo Feb 18, 2024
f350000
Option to disabling follower Pokémon
AsparagusEduardo Feb 18, 2024
1a4bc69
Moved follower settings to overworld config
AsparagusEduardo Feb 18, 2024
70924c6
Better handling of disabling followers
AsparagusEduardo Feb 19, 2024
ead108d
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo Feb 19, 2024
11def0f
Optimized IsLZ77Data to return size.
aarant Feb 21, 2024
c4323a2
Merge remote-tracking branch '_RHH_origin/upcoming' into _RHH/pr/upco…
AsparagusEduardo Feb 22, 2024
ad839d0
Lower followers gfx
Jaizu Dec 19, 2023
3486097
Merge branch 'followers' into followers-expanded-id
aarant Mar 7, 2024
39ed856
Merge remote-tracking branch '_RHH_origin/upcoming' into _RHH/pr/upco…
AsparagusEduardo Mar 18, 2024
e479fa1
Merge with latest merrp branch + starting to move the functionality o…
AsparagusEduardo Mar 18, 2024
3d9c773
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo Apr 20, 2024
6061400
Added separate palette data for followers
AsparagusEduardo Apr 20, 2024
a200fe1
Read separate palettes and apply it to Gen 1-3
AsparagusEduardo Apr 21, 2024
3710fb5
Fixed Shiny Palettes not visible in the debug menu
AsparagusEduardo Apr 24, 2024
89a1abd
Added separate palettes for Gen4-6 mon
AsparagusEduardo Apr 25, 2024
b006e2d
Shiny Gen 7 sprites (gotta fix regular palettes)
AsparagusEduardo Apr 26, 2024
5e2ffef
Fixed (most) normal Gen 7 palettes
AsparagusEduardo Apr 26, 2024
5b223cf
Fixed Decidueye normal follower palette
AsparagusEduardo Apr 26, 2024
d7a021a
fix: Made `Common_Movement_*` 'safe' for followers
aarant Mar 15, 2022
dbc11ad
fix: improved follower pokemon `lock` and `applymovement` code
aarant Apr 28, 2024
42d9b28
Merge branch 'followers' into followers-expanded-id
aarant Apr 28, 2024
5322127
Fixed game not compiling when followers are disabled
AsparagusEduardo Apr 28, 2024
7c5357c
Fixed placeholder follower
AsparagusEduardo Apr 28, 2024
bd2c683
Fixed several follower palettes
AsparagusEduardo Apr 28, 2024
ee0d7a4
fix: reverted Wailord OW gfx back to 32x32
aarant Apr 29, 2024
4948d80
fix: follower pokemon should disappear when healed by nurse
aarant May 12, 2022
758e404
fix: `LARGE_OW_SUPPORT` and affine OW movements
aarant May 3, 2024
e36a7c5
Merge branch 'followers' into followers-expanded-id
aarant May 3, 2024
f3b637c
fix: castform OW sprite & palette
aarant May 4, 2024
35a7624
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo May 6, 2024
dda9c79
Fixed Cyndaquil Shiny Palettes
AsparagusEduardo May 6, 2024
2a7298b
Fixed sprites for Kyogre/Jangmo-O family/Female Meostic/Calyrex forms
AsparagusEduardo May 6, 2024
d5111ad
Fixed Arceus' Palettes
AsparagusEduardo May 6, 2024
48ce617
Fixed Vivillon palettes
AsparagusEduardo May 6, 2024
248980a
Fixed Flabébé family follower palettes
AsparagusEduardo May 6, 2024
58e3bb0
Fixed Furfrou follower palettes
AsparagusEduardo May 6, 2024
85885d8
Gen 8 palettes (except Enamorus)
AsparagusEduardo May 7, 2024
0ef8a79
Adjusted format of Follower Macro
AsparagusEduardo May 7, 2024
aa81f30
Less #if/#endifs in graphics file
AsparagusEduardo May 8, 2024
45ee5b5
Multiple fixes (see commit description)
AsparagusEduardo May 11, 2024
2e8f6c6
Fixed Galar follower palettes + some Gen 5 (by Gerben BSc)
AsparagusEduardo May 11, 2024
4f87975
Forgot to stage Eternatus' spritesheet rule
AsparagusEduardo May 11, 2024
ff49551
Hisuian Mon
AsparagusEduardo May 12, 2024
5ada0f8
Fixed Dusk Mane Necrozma
AsparagusEduardo May 12, 2024
6eba5bc
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo May 16, 2024
5b734d4
End of line
AsparagusEduardo May 16, 2024
d5268b9
Final cleanup
AsparagusEduardo May 16, 2024
f6b38ec
Restore check_history.sh permissions
AsparagusEduardo May 17, 2024
47e8851
Fix code style (pt 1)
AsparagusEduardo May 17, 2024
3160cbb
Removed usages of DEBUG define
AsparagusEduardo May 17, 2024
6b641be
Restore padding to ROM
AsparagusEduardo May 17, 2024
dca0305
FLAG_TEMP_HIDE_FOLLOWER is now an alias for FLAG_TEMP_E
AsparagusEduardo May 17, 2024
24913f5
TEMPORARY: Reverted Gen 4-8 followers
AsparagusEduardo May 17, 2024
ddd92b9
Removed unused garbage
AsparagusEduardo May 17, 2024
6856bcf
refactor: code review for expansion
aarant May 18, 2024
d3849f2
Merge branch 'followers' into followers-expanded-id
aarant May 18, 2024
d785fad
refactor: code review for expansion
aarant May 18, 2024
569749f
Merge remote-tracking branch '_merrp_origin/followers-expanded-id' in…
AsparagusEduardo May 18, 2024
73a13e5
Some review changes
AsparagusEduardo May 18, 2024
9dd0395
Moved follower scripts to new folder
AsparagusEduardo May 18, 2024
06094a2
More style fixes.
AsparagusEduardo May 18, 2024
a6bfcc1
More style fixes
AsparagusEduardo May 18, 2024
9dab5d5
Add more type immunities for followers
AsparagusEduardo May 18, 2024
2358ee8
Fix virtual object events
Jaizu May 19, 2024
689f418
fix uppercase typo
Jaizu May 21, 2024
05e58c7
Improved GetTypeEffectiveness check
AsparagusEduardo May 21, 2024
2fe18c2
Style fixes
AsparagusEduardo May 21, 2024
9fc7e37
Comment updates
AsparagusEduardo May 21, 2024
14ab00c
Moved message counts to their own file + remove unneeded include
AsparagusEduardo May 21, 2024
b37d9b3
fix: disable followers in Union Room
aarant May 22, 2024
c0ca88d
Merge pull request #36 from Jaizu/followers-expanded-id
aarant May 22, 2024
a49d908
Merge branch 'followers' into followers-expanded-id
aarant May 22, 2024
2556707
Moved callfuncs to general macros folder + added comments + removed u…
AsparagusEduardo May 22, 2024
1be5581
Revert NUM_DECORATION_FLAGS definition
AsparagusEduardo May 22, 2024
0630acc
fix: make `LoadSheetGraphicsInfo` load, then free, tiles
aarant May 27, 2024
8854eaa
Removed duplicated object event tags
AsparagusEduardo May 28, 2024
021074c
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo May 28, 2024
6d5cd7c
Removed duplicate tags
AsparagusEduardo May 28, 2024
2f4077b
Adjusted function names to align with pret
AsparagusEduardo May 28, 2024
5812ca7
Added comment to Nurse movement
AsparagusEduardo May 28, 2024
ff480de
More review comments
AsparagusEduardo May 28, 2024
d1e2f62
Proper macro capitalization
AsparagusEduardo May 29, 2024
3d05961
getdirectiontoface macro
AsparagusEduardo May 29, 2024
e7f66e6
Convert callfuncs to callnative
AsparagusEduardo May 29, 2024
5bd440f
Metatile + commas
AsparagusEduardo May 30, 2024
de760e6
More review
AsparagusEduardo May 31, 2024
3727be9
fix: fixed a few oversights with follower message generation
aarant Jun 1, 2024
e420f99
Merge branch 'followers' into followers-expanded-id
aarant Jun 1, 2024
1359966
Merge remote-tracking branch '_merrp_origin/followers-expanded-id' in…
AsparagusEduardo Jun 2, 2024
3202625
Restored Gen 4-8 followers
AsparagusEduardo Jun 2, 2024
da91e6a
Remove unused callfunc
AsparagusEduardo Jun 2, 2024
ee1d147
Merge branch '_RHH/upcoming' into _RHH/pr/upcoming/merrpFollowers
AsparagusEduardo Jun 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
42 changes: 40 additions & 2 deletions asm/macros/event.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,7 @@
@ The specified id can be used to refer to the sprite again later with turnvobject.
.macro createvobject graphicsId:req, id:req, x:req, y:req, elevation=3, direction=DIR_SOUTH
.byte 0xaa
.byte \graphicsId
.2byte \graphicsId
.byte \id
.2byte \x
.2byte \y
Expand Down Expand Up @@ -1813,7 +1813,6 @@
_dynmultichoice \left, \top, \ignoreBPress, \maxBeforeScroll, \shouldSort, \initialSelected, \callbacks, NULL
.endm


@ Supplementary

.macro goto_if_unset flag:req, dest:req
Expand Down Expand Up @@ -2185,3 +2184,42 @@
.byte \type
.2byte \slot
.endm

@ Saves species and forms of Daycare Pokémon to specific vars. Saves the amount of Daycare mon to VAR_RESULT.
.macro getdaycaregfx varSpecies1:req varSpecies2:req varForm1:req varForm2:req
callnative GetDaycareGraphics
.2byte \varSpecies1
.2byte \varSpecies2
.2byte \varForm1
.2byte \varForm2
.endm

@ Plays the cry of the first alive party member.
.macro playfirstmoncry
callnative PlayFirstMonCry
.endm

@ Buffers the nickname of the first alive party member.
.macro bufferlivemonnickname out:req
callnative BufferFirstLiveMonNickname
.byte \out
.endm

@ Executes Follower actions
.macro getfolloweraction
callnative GetFollowerAction
.endm

@ Checks if Field move is being used by the current follower.
.macro isfollowerfieldmoveuser var:req
callnative IsFollowerFieldMoveUser
.2byte \var
.endm

@ Saves the direction from where source object event would need to turn to to face the target into the specified var.
.macro getdirectiontoface var:req, sourceId:req, targetId:req
callnative GetDirectionToFaceScript
.2byte \var
.byte \sourceId
.byte \targetId
.endm
3 changes: 1 addition & 2 deletions asm/macros/map.inc
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
@ Defines an object event template for map data, to be used by a normal object. Mirrors the struct layout of ObjectEventTemplate in include/global.fieldmap.h
.macro object_event index:req, gfx:req, x:req, y:req, elevation:req, movement_type:req, x_radius:req, y_radius:req, trainer_type:req, sight_radius_tree_etc:req, script:req, event_flag:req
.byte \index
.byte \gfx
.2byte \gfx
Bassoonian marked this conversation as resolved.
Show resolved Hide resolved
.byte OBJ_KIND_NORMAL
.space 1 @ Padding
.2byte \x, \y
.byte \elevation
.byte \movement_type
Expand Down
2 changes: 2 additions & 0 deletions asm/macros/movement.inc
Original file line number Diff line number Diff line change
Expand Up @@ -165,4 +165,6 @@
create_movement_action emote_double_exclamation_mark, MOVEMENT_ACTION_EMOTE_DOUBLE_EXCL_MARK
create_movement_action emote_x, MOVEMENT_ACTION_EMOTE_X

create_movement_action exit_pokeball, MOVEMENT_ACTION_EXIT_POKEBALL
create_movement_action enter_pokeball, MOVEMENT_ACTION_ENTER_POKEBALL
create_movement_action step_end, MOVEMENT_ACTION_STEP_END
2 changes: 2 additions & 0 deletions data/event_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ Common_EventScript_OutOfCenterPartyHeal::
playfanfare MUS_HEAL
waitfanfare
special HealPlayerParty
callnative UpdateFollowingPokemon
fadescreen FADE_FROM_BLACK
return

Expand Down Expand Up @@ -1069,6 +1070,7 @@ EventScript_VsSeekerChargingDone::
.include "data/scripts/move_tutors.inc"
.include "data/scripts/trainer_hill.inc"
.include "data/scripts/test_signpost.inc"
.include "data/scripts/follower.inc"
.include "data/text/frontier_brain.inc"
.include "data/text/save.inc"
.include "data/text/birch_speech.inc"
15 changes: 15 additions & 0 deletions data/field_effect_scripts.s
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ gFieldEffectScriptPointers::
.4byte gFldEffScript_UseVsSeeker @ FLDEFF_USE_VS_SEEKER
.4byte gFldEffScript_XIcon @ FLDEFF_X_ICON
.4byte gFldEffScript_DoubleExclMarkIcon @ FLDEFF_DOUBLE_EXCL_MARK_ICON
.4byte gFieldEffectScript_TracksSlither @ FLDEFF_TRACKS_SLITHER
.4byte gFieldEffectScript_TracksBug @ FLDEFF_TRACKS_BUG
.4byte gFieldEffectScript_TracksSpot @ FLDEFF_TRACKS_SPOT

gFieldEffectScript_ExclamationMarkIcon1::
field_eff_callnative FldEff_ExclamationMarkIcon
Expand Down Expand Up @@ -359,3 +362,15 @@ gFldEffScript_XIcon::
gFldEffScript_DoubleExclMarkIcon::
field_eff_callnative FldEff_DoubleExclMarkIcon
field_eff_end

gFieldEffectScript_TracksBug::
field_eff_loadfadedpal_callnative gSpritePalette_GeneralFieldEffect0, FldEff_TracksBug
field_eff_end

gFieldEffectScript_TracksSpot::
field_eff_loadfadedpal_callnative gSpritePalette_GeneralFieldEffect0, FldEff_TracksSpot
field_eff_end

gFieldEffectScript_TracksSlither::
field_eff_loadfadedpal_callnative gSpritePalette_GeneralFieldEffect0, FldEff_TracksSlither
field_eff_end
2 changes: 1 addition & 1 deletion data/map_events.s
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
#include "constants/trainer_hill.h"
#include "constants/trainer_types.h"
#include "constants/berry.h"
#include "constants/species.h"
.include "asm/macros.inc"
.include "constants/constants.inc"

.section .rodata

.include "data/maps/events.inc"

3 changes: 3 additions & 0 deletions data/maps/BattleFrontier_BattleArenaLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ BattleFrontier_BattleArenaLobby_EventScript_SaveAfterChallenge::
frontier_checkairshow
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
arena_save 0
playse SE_SAVE
waitse
Expand Down Expand Up @@ -133,6 +134,7 @@ BattleFrontier_BattleArenaLobby_EventScript_TryEnterChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleArenaLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -194,6 +196,7 @@ BattleFrontier_BattleArenaLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattleArenaLobby_EventScript_LoadPartyAndCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattleArenaLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattleArenaLobby_Text_AwaitAnotherChallenge, MSGBOX_DEFAULT
BattleFrontier_BattleArenaLobby_EventScript_EndCancelChallenge::
Expand Down
1 change: 1 addition & 0 deletions data/maps/BattleFrontier_BattleDomeBattleRoom/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ BattleFrontier_BattleDomeBattleRoom_MapScripts::
.byte 0

BattleFrontier_BattleDomeBattleRoom_OnTransition:
setflag FLAG_TEMP_HIDE_FOLLOWER
dome_setopponentgfx
frontier_get FRONTIER_DATA_BATTLE_NUM
copyvar VAR_TEMP_F, VAR_RESULT
Expand Down
4 changes: 4 additions & 0 deletions data/maps/BattleFrontier_BattleDomeLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ BattleFrontier_BattleDomeLobby_EventScript_GiveBattlePoints::
dome_set DOME_DATA_WIN_STREAK_ACTIVE, TRUE
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
goto BattleFrontier_BattleDomeLobby_EventScript_AskRecordBattle

BattleFrontier_BattleDomeLobby_EventScript_LostChallenge::
Expand All @@ -82,6 +83,7 @@ BattleFrontier_BattleDomeLobby_EventScript_LostChallenge::
dome_set DOME_DATA_ATTEMPTED_CHALLENGE, TRUE
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattleDomeLobby_EventScript_AskRecordBattle::
dome_save 0
playse SE_SAVE
Expand Down Expand Up @@ -160,6 +162,7 @@ BattleFrontier_BattleDomeLobby_EventScript_TryEnterChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleDomeLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -222,6 +225,7 @@ BattleFrontier_BattleDomeLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattleDomeLobby_EventScript_LoadPartyCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattleDomeLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattleDomeLobby_Text_HopeToSeeYouAgain, MSGBOX_DEFAULT
BattleFrontier_BattleDomeLobby_EventScript_EndCancelChallenge::
Expand Down
3 changes: 3 additions & 0 deletions data/maps/BattleFrontier_BattleFactoryLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ BattleFrontier_BattleFactoryLobby_EventScript_GiveBattlePoints::
waitmessage
frontier_checkairshow
special LoadPlayerParty
callnative UpdateFollowingPokemon
factory_save 0
playse SE_SAVE
waitse
Expand All @@ -71,6 +72,7 @@ BattleFrontier_BattleFactoryLobby_EventScript_LostChallenge::
waitmessage
frontier_checkairshow
special LoadPlayerParty
callnative UpdateFollowingPokemon
factory_set FACTORY_DATA_WIN_STREAK_ACTIVE, FALSE
factory_save 0
playse SE_SAVE
Expand Down Expand Up @@ -196,6 +198,7 @@ BattleFrontier_BattleFactoryLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattleFactoryLobby_EventScript_LoadPartyAndCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattleFactoryLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattleFactoryLobby_Text_LookForwardToNextVisit, MSGBOX_DEFAULT
release
Expand Down
3 changes: 3 additions & 0 deletions data/maps/BattleFrontier_BattlePalaceLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ BattleFrontier_BattlePalaceLobby_EventScript_SaveAfterChallenge::
frontier_checkairshow
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
palace_save 0
playse SE_SAVE
waitse
Expand Down Expand Up @@ -151,6 +152,7 @@ BattleFrontier_BattlePalaceLobby_EventScript_TryEnterChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattlePalaceLobby_Text_NowSelectThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -215,6 +217,7 @@ BattleFrontier_BattlePalaceLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattlePalaceLobby_EventScript_LoadPartyAndCancelChallenge::
special LoadPlayerParty
callnative LoadPlayerParty
BattleFrontier_BattlePalaceLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattlePalaceLobby_Text_ReturnWhenFortified, MSGBOX_DEFAULT
BattleFrontier_BattlePalaceLobby_EventScript_EndCancelChallenge::
Expand Down
4 changes: 4 additions & 0 deletions data/maps/BattleFrontier_BattlePikeLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ BattleFrontier_BattlePikeLobby_EventScript_GiveBattlePoints::
pike_set PIKE_DATA_TOTAL_STREAKS, VAR_RESULT
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
pike_resethelditems
message BattleFrontier_BattlePikeLobby_Text_ShallRecordResults
waitmessage
Expand All @@ -80,6 +81,7 @@ BattleFrontier_BattlePikeLobby_EventScript_LostChallenge::
pike_set PIKE_DATA_WIN_STREAK_ACTIVE, FALSE
special LoadPlayerParty
special HealPlayerParty
callnative UpdateFollowingPokemon
pike_resethelditems
pike_save 0
playse SE_SAVE
Expand Down Expand Up @@ -119,6 +121,7 @@ BattleFrontier_BattlePikeLobby_EventScript_TryEnterChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattlePikeLobby_Text_PleaseChooseThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -183,6 +186,7 @@ BattleFrontier_BattlePikeLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattlePikeLobby_EventScript_LoadPartyAndCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattlePikeLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattlePikeLobby_Text_LookForwardToSeeingYou, MSGBOX_DEFAULT
BattleFrontier_BattlePikeLobby_EventScript_EndCancelChallenge::
Expand Down
4 changes: 4 additions & 0 deletions data/maps/BattleFrontier_BattlePyramidLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_GiveBattlePoints::
special LoadPlayerParty
pyramid_clearhelditems
special HealPlayerParty
callnative UpdateFollowingPokemon
message BattleFrontier_BattlePyramidLobby_Text_UsedBattleBagWillBeKept
waitmessage
playse SE_EXP_MAX
Expand All @@ -83,6 +84,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_LostChallenge::
special LoadPlayerParty
pyramid_clearhelditems
special HealPlayerParty
callnative UpdateFollowingPokemon
lockall
message BattleFrontier_BattlePyramidLobby_Text_DisappointingHereIsBag
waitmessage
Expand Down Expand Up @@ -132,6 +134,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_TryEnterChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattlePyramidLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -196,6 +199,7 @@ BattleFrontier_BattlePyramidLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattlePyramidLobby_EventScript_LoadPartyAndCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattlePyramidLobby_EventScript_CancelChallenge::
msgbox BattleFrontier_BattlePyramidLobby_Text_AwaitFutureChallenge, MSGBOX_DEFAULT
BattleFrontier_BattlePyramidLobby_EventScript_EndCancelChallenge::
Expand Down
7 changes: 7 additions & 0 deletions data/maps/BattleFrontier_BattleTowerLobby/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ BattleFrontier_BattleTowerLobby_EventScript_LookForwardToChallenge::
msgbox BattleFrontier_BattleTowerLobby_Text_LookForwardToAnotherChallenge, MSGBOX_DEFAULT
closemessage
setvar VAR_TEMP_CHALLENGE_STATUS, 255
callnative UpdateFollowingPokemon
release
end

Expand All @@ -114,6 +115,7 @@ BattleFrontier_BattleTowerLobby_EventScript_LostThanksForPlaying::
msgbox BattleFrontier_BattleTowerLobby_Text_LookForwardToAnotherChallenge, MSGBOX_DEFAULT
closemessage
setvar VAR_TEMP_CHALLENGE_STATUS, 255
callnative UpdateFollowingPokemon
release
end

Expand Down Expand Up @@ -200,6 +202,7 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterSinglesChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleTowerLobby_Text_SelectThreeMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_PARTY_SIZE
Expand Down Expand Up @@ -263,6 +266,7 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterDoublesChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleTowerLobby_Text_PleaseSelectFourMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_DOUBLES_PARTY_SIZE
Expand Down Expand Up @@ -327,6 +331,7 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterMultisChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleTowerLobby_Text_PleaseSelectTwoMons, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_MULTI_PARTY_SIZE
Expand Down Expand Up @@ -390,6 +395,7 @@ BattleFrontier_BattleTowerLobby_EventScript_TryEnterLinkMultisChallenge::
frontier_set FRONTIER_DATA_LVL_MODE, VAR_RESULT
msgbox BattleFrontier_BattleTowerLobby_Text_PleaseSelectTwoMons2, MSGBOX_DEFAULT
fadescreen FADE_TO_BLACK
callnative RemoveFollowingPokemon
call BattleFrontier_EventScript_GetLvlMode
copyvar VAR_0x8004, VAR_RESULT
setvar VAR_0x8005, FRONTIER_MULTI_PARTY_SIZE
Expand Down Expand Up @@ -582,6 +588,7 @@ BattleFrontier_BattleTowerLobby_EventScript_CancelChallengeSaveFailed::

BattleFrontier_BattleTowerLobby_EventScript_LoadPartyCancelChallenge::
special LoadPlayerParty
callnative UpdateFollowingPokemon
BattleFrontier_BattleTowerLobby_EventScript_CancelChallenge::
special CloseLink
msgbox BattleFrontier_BattleTowerLobby_Text_LookForwardToAnotherChallenge, MSGBOX_DEFAULT
Expand Down
1 change: 1 addition & 0 deletions data/maps/FortreeCity_Gym/scripts.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FortreeCity_Gym_MapScripts::

FortreeCity_Gym_OnTransition:
special RotatingGate_InitPuzzle
setflag FLAG_TEMP_HIDE_FOLLOWER @ Hide follower bc of rotating gates
end

FortreeCity_Gym_OnWarp:
Expand Down
5 changes: 5 additions & 0 deletions data/maps/MossdeepCity_Gym/scripts.inc
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
MossdeepCity_Gym_MapScripts::
map_script MAP_SCRIPT_ON_TRANSITION, MossdeepCity_Gym_OnTransition
map_script MAP_SCRIPT_ON_LOAD, MossdeepCity_Gym_OnLoad
.byte 0

@ NOTE: Mossdeep Gym was redesigned between R/S and E. Leftover (and now functionally unused) scripts are commented below

MossdeepCity_Gym_OnTransition:
setflag FLAG_TEMP_HIDE_FOLLOWER @ Hide follower since it can collide with moving statues
end

@ All the below checks are leftover from RS. FLAG_MOSSDEEP_GYM_SWITCH_X is never set
MossdeepCity_Gym_OnLoad:
goto_if_set FLAG_MOSSDEEP_GYM_SWITCH_1, MossdeepCity_Gym_EventScript_SetSwitch1Metatiles
Expand Down
Loading
Loading