26 Commits

Author SHA1 Message Date
7866e3c17a Start by removing badge requirements for HM moves. 2022-10-12 13:23:33 +00:00
885e74c81b stuff 2022-10-12 13:05:24 +00:00
a2b55c487b Revert "Fairy type"
This reverts commit 4b02cad24b.
2022-10-12 01:20:23 +00:00
8eaf584c8b Update some text 2022-10-11 21:41:19 +00:00
cb19ebccec Merge branch 'unionpatch' into 'main'
Union room shenanigans (fixes !4)

See merge request tbld/game!10
2022-10-11 17:52:45 +00:00
f0a61f8324 Merge branch 'fairy' into 'main'
Fairy type

See merge request tbld/game!9
2022-10-11 17:46:54 +00:00
4b02cad24b Fairy type 2022-10-11 17:43:31 +00:00
5b4b9a390b bug: close my quotes lmao 2022-10-11 11:50:49 +00:00
67b3f7021e Update the Gitpod YAML to automatically build and install agbcc. 2022-10-11 11:46:31 +00:00
7eece44655 fix submodules 2022-10-11 11:39:36 +00:00
608f0982cb More broken reimplementation fixes... 2022-10-11 02:10:54 +00:00
34e697e91d Fix the reimplemented events by using the right flag this time. 2022-10-11 01:53:55 +00:00
2cc33db24a Revert "oops"
This reverts commit c2d9e83c22.
2022-10-11 01:20:25 +00:00
06200d422d Revert "more oops"
This reverts commit 2fd2705498.
2022-10-11 01:19:52 +00:00
4e3c9597fc Revert "Speed up saving some more."
This reverts commit f1bf8fcfdc.
2022-10-11 01:19:10 +00:00
2fd2705498 more oops
oops oops oops
2022-10-11 01:15:41 +00:00
c2d9e83c22 oops 2022-10-11 01:14:55 +00:00
f1bf8fcfdc Speed up saving some more. 2022-10-11 01:14:16 +00:00
7d8b1ff8a7 Union room shenanigans (fixes !4) 2022-10-11 00:31:02 +00:00
d3f3b60816 Make some issue templates. 2022-10-11 00:13:07 +00:00
dfdec42bc8 chore: set up Gitpod's config to auto-install
build deps and pull the latest agbcc
2022-10-09 16:30:47 +00:00
b934b928f1 readme update 2022-10-09 06:21:40 +00:00
f0743b5f6b chore: make the player actually come quickly. 2022-10-08 06:28:29 +00:00
04f97628c1 Merge branch 'reimplement_farawayisland' into 'main'
Reimplement event tickets and Faraway Island  (closes #1)

Closes #1

See merge request tbld/game!8
2022-10-05 14:28:25 +00:00
a179459765 Reimplement Faraway Island 2022-10-05 14:16:44 +00:00
e2767c1d6d hope things work 2022-10-04 17:38:20 +00:00
17 changed files with 298 additions and 83 deletions

View File

@ -0,0 +1,14 @@
# Bug Report
## What issue have you found?
<!--- Please provide a detailed explanation of the bug here. -->
## What did you expect to happen instead of this bug?
<!--- What did you expect to happen instead? Please explain in detail. -->
<!--- Please check the following boxes. -->
- [ ] I am using the **latest version** of TumbledEmerald.
- [ ] I am using mGBA, the official CIA package, or a Game Boy Advance flashcart.

View File

@ -0,0 +1,4 @@
<!---
Please make sure to look at the issue templates and use the one that best describes your problem. If your issue
doesn't fit into one of these categories, please type your issue below. If we need more information, we'll ask!
-->

View File

@ -0,0 +1,18 @@
# Feature Request
## Requested feature: <!--- type what you want added here. -->
## Why do you want this feature?
<!--- Please check the following boxes. -->
- [ ] I have submitted a merge request to implement this feature. <!--- not required, but if this is the case, please indicate so! -->
- If you have submitted a merge request, please reference it here: <!--- use the !NUMBER format. -->
- [ ] This feature has not been requested in another issue before.
- [ ] I would like to be listed in the credits.

View File

@ -0,0 +1,16 @@
## Save Porting Request
Version of my save: <!--- replace this text with the game version that your save was created in. -->
Version I want to have my save ported to: <!--- replace this text with the game version you want to use your save in. -->
- [ ] I have attached my save file in `.sav` format to this request.
- [ ] I would like to authorize my save file to be used for testing and debugging purposes. (OPTIONAL)
<!---
Please note:
I might not get to your save right away. If it takes longer than a month to make you a new save, I'll update
it to work with the latest version of the game for you.
This process is NOT a conversion. This is me (an idiot!) rummaging through your save and trying to replicate it on the version you chose. I might miss something. If you notice something I missed, let me know.
-->

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "agbcc"]
path = agbcc
url = https://github.com/pret/agbcc

View File

@ -3,6 +3,6 @@
# and commit this file to your remote git repository to share the goodness with others. # and commit this file to your remote git repository to share the goodness with others.
tasks: tasks:
- init: echo "See INSTALL.md for compilation instructions." - init: make clean && sudo apt install binutils-arm-none-eabi -y && git submodule update --remote && cd agbcc && ./build.sh && ./install.sh ../

View File

@ -17,6 +17,7 @@ These people have built or compiled TumbledEmerald releases in a pinch, lending
- @sh4/@Daisenryaku: you know why. (yes, I'm still using that "clicky clicky `****` frontend" ;) - @sh4/@Daisenryaku: you know why. (yes, I'm still using that "clicky clicky `****` frontend" ;)
- @issotm: for running my awful sprite editing attempts through GIMP. - @issotm: for running my awful sprite editing attempts through GIMP.
- @cosarara: for showing me how to use `CTRL`+`Shift`+`F` in VSCodium. - @cosarara: for showing me how to use `CTRL`+`Shift`+`F` in VSCodium.
- @pokechu22: for dealing with my GNU hatred. (no luck with clang and CMake yet, but I'm working on it!)
# Cool people who put up with me on Discord/GitHub: # Cool people who put up with me on Discord/GitHub:
- @Rangi42: sorry for sliding into ur dm's. - @Rangi42: sorry for sliding into ur dm's.

View File

@ -15,3 +15,7 @@ titles and update them while still remaining faithful to the original games.
* The "move grammar" table leftover from the Japanese versions has been completely nuked, making the game faster. * The "move grammar" table leftover from the Japanese versions has been completely nuked, making the game faster.
* Pokémon Center receptionists now heal your Pokémon without prompt, and you turn around once the process is over to avoid accidentally healing again * Pokémon Center receptionists now heal your Pokémon without prompt, and you turn around once the process is over to avoid accidentally healing again
* Default options have been changed to make the game quicker. * Default options have been changed to make the game quicker.
* The Aurora Ticket, Mystic Ticket, and Old Sea Map have been reimplemented:
* For the tickets, beat Wallace and talk to the girl who originally blocks Route 101 back in Littleroot Town.
* For the map, beat Wallace and talk to the fisherman who gives you the Old Rod, telling him that fishing is "not so good."
* The Fairy type from Generation VI+ has been added.

174
README.md
View File

@ -1,44 +1,160 @@
# tumbledemerald [![Chat on Matrix](https://matrix.to/img/matrix-badge.svg)](https://matrix.to/#/#rebirthteam:matrix.org) # tumbledemerald
`tumbledemerald` is an open-source project to modernize and update Pokémon: Emerald Version.
This is a decompilation of Pokémon Emerald, with many improvements and edits, similar to Rangi42's [polishedcrystal](https://github.com/Rangi42/polishedcrystal) [TOC]
It builds the following ROM: ## Why?
About a year ago, I started working on the `pokecrystal` code to update and modernize it. That fell through for two main reasons:
**tumbledemerald.gba** - People were already doing it, a lot.
- I suck at assembly language.
`sha1: varies` Eventually, the project was put on hold while I looked for a new project to take on. I found the `pokeemerald` decompilation about a week later. It was nice, it was clean, and it seemed like almost no one was making QoL hacks out of it. It started as a "running indoors and Repel system" hack. Then it got bigger. And bigger. And bigger. That's about all there is to it; a little project to work on when I have nothing better to do.
To set up the repository, see [INSTALL.md](INSTALL.md), or see the "scripts" directory in our `binaries` repo for buildscripts. ## How do I play `tumbledemerald`?
Tumbled has [releases](https://gitlab.com/tbld/game/-/releases) once or twice every week on average, with pre-compiled ROM images. I test the latest changes, run a [specific buildscript](https://gitlab.com/tbld/binaries/-/blob/main/scripts/gitpod.sh) to build the files, clean up the repository, and push it to GitLab.
For those who prefer to compile themselves, we have comprehensive [install documentation](INSTALL.md), or you can use the T.E.C.S. (TumbledEmerald Compilation Script) [here](https://gitlab.com/tbld/binaries/-/blob/main/scripts/main.sh)
Here is the last time Tumbled was updated to `pret:master` Once you've found your way over to the releases, or compiled the latest code yourself, you'll need a way to run the game:
**20 December 2021**, 8 months ago > Please note that save files are not compatible between versions of the game, and regular Emerald saves are not compatible *at all*.
If you have the know-how and time and are willing to help keep tumbledemerald up to date with `pret:master`, feel free to send a ### Game Boy Advance, Game Boy Advance SP, Game Boy micro, Game Boy Player, Nintendo DS, Nintendo DS lite, Nintendo DSi, and Nintendo DSi XL/LL consoles
merge request. We recommend the usage of a device known as a "flashcart" to play `tumbledemerald` on the Game Boy line and Nintendo DS/DSi consoles. A cart we recommend can be found [here](https://krikzz.com/our-products/cartridges/everdrive-gba-mini.html).
## See also ### Nintendo 3DS, Nintendo 3DS XL/LL, Nintendo 2DS, New Nintendo 3DS, New Nintendo 3DS XL/LL, and New Nintendo 2DS XL/LL consoles
All Nintendo 3DS and 2DS consoles will need to be modified by the end-user (that's you!) to play `tumbledemerald`.
> This is a limitation imposed by Nintendo's default software. There's no better way to go about this, sadly. (Believe me, I've looked!)
* Follow [the recommended guide](https://3ds.hacks.guide) to install the necessary software modifications onto the console.
> We are not liable for any hardware or software damage caused by this procedure. While we believe this process to be perfectly safe, and have used it ourselves, this is being done **at your own risk**.
Other disassembly and/or decompilation projects (not mine): * Download the latest `tumbledemerald.cia` package from the [releases](https://gitlab.com/tbld/game/-/releases) page and transfer it to your console's SD or μSD card.
* [**Pokémon Red and Blue**](https://github.com/pret/pokered) * Open the **FBI** application on your console.
* [**Pokémon Gold and Silver (Space World '97 demo)**](https://github.com/pret/pokegold-spaceworld) - Select **SD** on the menu that appears.
* [**Pokémon Yellow**](https://github.com/pret/pokeyellow) - Navigate to the `tumbledemerald.cia` package.
* [**Pokémon Trading Card Game**](https://github.com/pret/poketcg) - Select **Install and delete CIA**.
* [**Pokémon Pinball**](https://github.com/pret/pokepinball) - Wait while the program is installed.
* [**Pokémon Stadium**](https://github.com/pret/pokestadium) * Return to the HOME Menu and unwrap the "tumbledemerald version xx.xx" present.
* [**Pokémon Gold and Silver**](https://github.com/pret/pokegold) * Launch the game and enjoy!
* [**Pokémon Crystal**](https://github.com/pret/pokecrystal)
* [**Pokémon Ruby and Sapphire**](https://github.com/pret/pokeruby)
* [**Pokémon Pinball: Ruby & Sapphire**](https://github.com/pret/pokepinballrs)
* [**Pokémon FireRed and LeafGreen**](https://github.com/pret/pokefirered)
* [**Pokémon Mystery Dungeon: Red Rescue Team**](https://github.com/pret/pmd-red)
* [**Pokémon Diamond and Pearl**](https://github.com/pret/pokediamond)
* [**Pokémon HeartGold and SoulSilver**](https://github.com/pret/pokeheartgold)
### Nintendo Switch
## Contacts All Nintendo Switch consoles will need to be modified by the end-user (that's you!) to play `tumbledemerald`.
You can slide into my **[matrix]** PM's: @fierymewtwo:matrix.org. However, there is an official Rebirth "room" (see the **[matrix]** badge above) Running `tumbledemerald` on the Nintendo Switch is a little more complex than other platforms. Nevertheless, the instructions are relatively simple:
> The old GitHub repositories are now unmaintained, and all future development will take place on GitLab. * Follow [the recommended guide](https://switchgui.de) to install the necessary software modifications onto the console. Please note that later Nintendo Switch consoles, as well as all Nintendo Switch Lite and Nintendo Switch (OLED version) consoles are not compatible with `tumbledemerald`.
> We are not liable for any hardware or software damage caused by this procedure. While we believe this process to be perfectly safe, and have used it ourselves, this is being done **at your own risk**.
* Download the latest `tumbledemerald.gba` file from the [releases](https://gitlab.com/tbld/game/-/releases) page and transfer it to your console's μSD card.
* Open the [4TU QuickStore](https://apps.fortheusers.org/switch/quickstore) on your computer.
> If **Homebrew App Store** is selected, de-select it by clicking on it or touching it.
- Select **mGBA** from the list.
- Click **Download 1 Selected**.
- Copy the *contents* of the downloaded `.zip` file to the [root](https://ibin.co/6xpoMqUta7Dm.jpg) of the µSD card, overwriting any existing files.
- Reinsert the µSD card and boot Atmosphère.
* Open the **Album** from Atmosphère's HOME Menu to open the Homebrew Menu.
* Open **mGBA**
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
### PlayStation Vita
All PlayStation Vita consoles will need to be modified by the end-user (that's you!) to play `tumbledemerald`.
> This is a limitation imposed by Sony's default software. There's no better way to go about this, sadly. (Believe me, I've looked!)
* Follow [the recommended guide](https://vita.hacks.guide) to install the necessary software modifications onto the console.
> We are not liable for any hardware or software damage caused by this procedure. While we believe this process to be perfectly safe, this is being done **at your own risk**.
* Download the latest `tumbledemerald.gba` file from the [releases](https://gitlab.com/tbld/game/-/releases) page and transfer it to your console's Memory Card.
* Install the latest version of [**mGBA**](https://mgba.io) using the `.vpk` package.
* Open **mGBA**
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
### Windows
On some devices, you may need to disable S mode before you can play `tumbledemerald`. For instructions on how to do so, see [this](https://support.microsoft.com/en-us/windows/switching-out-of-s-mode-in-windows-4f56d9be-99ec-6983-119f-031bfb28a307) knowledge base article.
> Why do I need to disable these settings? Is this safe to use?
> mGBA, the program used on macOS to play `tumbledemerald` is perfectly safe to use. You are welcome to browse the [source code](https://github.com/mgba-emu/mgba) to verify this. The reason that you may need to tweak system settings is due to the fact that `endrift`, mGBA's developer, has not submitted mGBA to the Microsoft Store. S mode allows **only** apps from the Microsoft Store, hence why S mode needs to be disabled.
> Disabling S mode won't cause your computer to lose any functionality. However, disabling S mode *is* permanent. Once disabled, S mode **can't be re-enabled**.
* Download the latest `tumbledemerald.gba` file from the [releases](https://gitlab.com/tbld/game/-/releases) page.
* Install the latest version of [**mGBA**](https://mgba.io), depending on what kind of computer you have.
* Open **mGBA**
* Navigate to File > Load ROM.
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
### macOS
Playing `tumbledemerald` on macOS is a bit more complicated due to macOS security features. You may have to change several preferences on your Mac before you can play.
See [this page](https://support.apple.com/en-us/HT202491) for more details.
> Why do I need to disable these settings? Is this safe to use?
> mGBA, the program used on macOS to play `tumbledemerald` is perfectly safe to use. You are welcome to browse the [source code](https://github.com/mgba-emu/mgba) to verify this. The reason that you may need to tweak system settings is due to the fact that `endrift`, mGBA's developer, has not gotten mGBA notarized and signed by Apple as of yet. Additionally, mGBA is *not* available in the Mac App Store. You will need to allow apps from outside the Mac App Store, and you may or may not need to add mGBA to the Gatekeeper whitelist.
* Download the latest `tumbledemerald.gba` file from the [releases](https://gitlab.com/tbld/game/-/releases) page.
* Install the latest version of [**mGBA**](https://mgba.io), depending on what kind of Mac and/or what version of macOS you have.
* Open **mGBA**
* Navigate to File > Load ROM.
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
### Linux
(No, I will *not* call it GNU/Linux.)
To play `tumbledemerald` on Steam Deck, we recommend the use of the standalone `mgba` program rather than RetroArch.
> Handy tip: When using Steam Deck in Desktop mode, press the Steam and X buttons simultaneously to open the virtual keyboard.
* Power on your Deck.
* Once Deck UI loads, press and hold the power key.
* Select **Switch to Desktop**.
- If you have never used Steam Deck's desktop mode, you will need to set a password. Do this now if necessary.
> mGBA can usually be found in your distribution's repositories or ports tree. If not, download the latest development `appimage` from [here](https://mgba.io/download)
* Open a web browser on your computer and download `tumbledemerald.gba` from [this page](https://gitlab.com/tbld/game/-/releases).
* Open the mGBA application.
* Navigate to File > Load ROM.
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
### Steam Deck
To play `tumbledemerald` on Steam Deck, we recommend the use of the standalone `mgba` program rather than RetroArch.
> Handy tip: When using Steam Deck in Desktop mode, press the Steam and X buttons simultaneously to open the virtual keyboard.
* Power on your Deck.
* Once Deck UI loads, press and hold the power key.
* Select **Switch to Desktop**.
- If you have never used Steam Deck's desktop mode, you will need to set a password. Do this now if necessary.
* Use the right trackpad to open **Discover**. It looks like a small shopping bag with a "K" on it.
* Search for **mGBA**.
* Select **Install**.
- You *will* be prompted to enter your password at this step. Don't forget it!
- If you have never used Steam Deck's desktop mode, you will need to install a web browser:
- Use the right trackpad to open **Discover**. It looks like a small shopping bag with a "K" on it.
- Search for any web browser you like. (I personally prefer Firefox)
- Select **Install**.
- You *will* be prompted to enter your password at this step. Don't forget it!
* Open a web browser on your Deck and download `tumbledemerald.gba` from [this page](https://gitlab.com/tbld/game/-/releases).
* Open the mGBA application.
* Navigate to File > Load ROM.
* Browse to and select `tumbledemerald.gba`.
* Enjoy!
## How can I contribute?
Merge Requests and Issues are appreciated greatly. If you find a bug, have a cool idea, or need help with something, just tell us in an issue! (Make sure to mark it with `not-issue`.)
We do not, have not, cannot, and will not accept **any** financial contributions due to legal issues. If someone tries to solicit money while masquerading as us, let us know!
***If you paid for any part of `tumbledemerald`, you were ripped off and should ask your bank or credit union for a refund directly.***

1
agbcc Submodule

Submodule agbcc added at d59cfb5ac1

View File

@ -118,6 +118,19 @@ DewfordTown_EventScript_FishingExcellent::
DewfordTown_EventScript_FishingNotSoGood:: DewfordTown_EventScript_FishingNotSoGood::
msgbox DewfordTown_Text_FishingAdvice, MSGBOX_DEFAULT msgbox DewfordTown_Text_FishingAdvice, MSGBOX_DEFAULT
goto_if_set FLAG_SYS_GAME_CLEAR, DewfordTown_EventScript_Intermediate_GiveOldSeaMap
release
end
DewfordTown_EventScript_Intermediate_GiveOldSeaMap::
goto_if_unset FLAG_RECEIVED_OLD_SEA_MAP, DewfordTown_EventScript_GiveOldSeaMap
release
end
DewfordTown_EventScript_GiveOldSeaMap::
msgbox DewfordTown_Text_MaybeExploringWouldBeBetter, MSGBOX_DEFAULT
giveitem ITEM_OLD_SEA_MAP
setflag FLAG_RECEIVED_OLD_SEA_MAP
release release
end end
@ -723,6 +736,12 @@ DewfordTown_Text_ThrowInFishingAdvice:
.string "you need to time the pulls on your Rod\l" .string "you need to time the pulls on your Rod\l"
.string "to haul them in.$" .string "to haul them in.$"
DewfordTown_Text_MaybeExploringWouldBeBetter:
.string "Hmmm... Well, if you aren't having much\n"
.string "luck with fishing...\l"
.string "Maybe exploring would be a better\n"
.string "fit for a Trainer like you?$"
DewfordTown_Text_ThatsTooBadThen: DewfordTown_Text_ThatsTooBadThen:
.string "Oh, is that so?\n" .string "Oh, is that so?\n"
.string "That's too bad, then.$" .string "That's too bad, then.$"

View File

@ -259,6 +259,7 @@ LittlerootTown_EventScript_Twin::
faceplayer faceplayer
goto_if_set FLAG_ADVENTURE_STARTED, LittlerootTown_EventScript_GoodLuck goto_if_set FLAG_ADVENTURE_STARTED, LittlerootTown_EventScript_GoodLuck
goto_if_set FLAG_RESCUED_BIRCH, LittlerootTown_EventScript_YouSavedBirch goto_if_set FLAG_RESCUED_BIRCH, LittlerootTown_EventScript_YouSavedBirch
goto_if_set FLAG_SYS_GAME_CLEAR, LittlerootTown_EventScript_Intermediate_DustyTickets
goto_if_ne VAR_LITTLEROOT_TOWN_STATE, 0, LittlerootTown_EventScript_GoSaveBirch goto_if_ne VAR_LITTLEROOT_TOWN_STATE, 0, LittlerootTown_EventScript_GoSaveBirch
msgbox LittlerootTown_Text_IfYouGoInGrassPokemonWillJumpOut, MSGBOX_DEFAULT msgbox LittlerootTown_Text_IfYouGoInGrassPokemonWillJumpOut, MSGBOX_DEFAULT
release release
@ -285,6 +286,20 @@ LittlerootTown_EventScript_GoodLuck::
release release
end end
LittlerootTown_EventScript_Intermediate_DustyTickets::
goto_if_unset FLAG_AURORA_MYSTIC_RECEIVED, LittlerootTown_EventScript_DustyTickets
end
LittlerootTown_EventScript_DustyTickets::
msgbox LittlerootTown_Text_FoundTickets, MSGBOX_DEFAULT
giveitem ITEM_MYSTIC_TICKET
giveitem ITEM_AURORA_TICKET
setflag FLAG_RECEIVED_AURORA_TICKET
setflag FLAG_RECEIVED_MYSTIC_TICKET
setflag FLAG_AURORA_MYSTIC_RECEIVED @ because I'm bad at hacking.
release
end
LittlerootTown_EventScript_NeedPokemonTriggerLeft:: LittlerootTown_EventScript_NeedPokemonTriggerLeft::
lockall lockall
applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinApproachPlayerLeft applymovement LOCALID_TWIN, LittlerootTown_Movement_TwinApproachPlayerLeft
@ -997,6 +1012,13 @@ LittlerootTown_Text_GoodLuckCatchingPokemon:
.string "Are you going to catch Pokémon?\n" .string "Are you going to catch Pokémon?\n"
.string "Good luck!$" .string "Good luck!$"
LittlerootTown_Text_FoundTickets:
.string "Um, hi!\p"
.string "I found these in an old suitcase. My\n"
.string "daddy doesn't want them, so I decided\n"
.string "to give these to you!$"
LittlerootTown_Text_TownSign: LittlerootTown_Text_TownSign:
.string "Littleroot Town\n" .string "Littleroot Town\n"
.string "“A town that can't be shaded any hue.”$" .string "“A town that can't be shaded any hue.”$"

View File

@ -1258,7 +1258,7 @@ EventScript_CloseMossdeepGameCornerBarrier::
return return
CableClub_OnResume: CableClub_OnResume:
special InitUnionRoom @ special InitUnionRoom commented out by default, but can be easily re-enabled, see docs.
end end
MossdeepCity_GameCorner_1F_EventScript_InfoMan2:: MossdeepCity_GameCorner_1F_EventScript_InfoMan2::

View File

@ -1,7 +1,6 @@
@ Interact with cuttable tree @ Interact with cuttable tree
EventScript_CutTree:: EventScript_CutTree::
lockall lockall
goto_if_unset FLAG_BADGE01_GET, EventScript_CheckTreeCantCut
checkpartymove MOVE_CUT checkpartymove MOVE_CUT
goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CheckTreeCantCut goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CheckTreeCantCut
setfieldeffectargument 0, VAR_RESULT setfieldeffectargument 0, VAR_RESULT
@ -54,7 +53,6 @@ Text_CantCut:
@ Interact with smashable rock @ Interact with smashable rock
EventScript_RockSmash:: EventScript_RockSmash::
lockall lockall
goto_if_unset FLAG_BADGE03_GET, EventScript_CantSmashRock
checkpartymove MOVE_ROCK_SMASH checkpartymove MOVE_ROCK_SMASH
goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CantSmashRock goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CantSmashRock
setfieldeffectargument 0, VAR_RESULT setfieldeffectargument 0, VAR_RESULT
@ -111,7 +109,6 @@ Text_CantSmash:
EventScript_StrengthBoulder:: EventScript_StrengthBoulder::
lockall lockall
goto_if_unset FLAG_BADGE04_GET, EventScript_CantStrength
goto_if_set FLAG_SYS_USE_STRENGTH, EventScript_CheckActivatedBoulder goto_if_set FLAG_SYS_USE_STRENGTH, EventScript_CheckActivatedBoulder
checkpartymove MOVE_STRENGTH checkpartymove MOVE_STRENGTH
goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CantStrength goto_if_eq VAR_RESULT, PARTY_SIZE, EventScript_CantStrength

View File

@ -17,7 +17,7 @@ EventScript_PkmnCenterNurse_HealPkmn::
waitmessage waitmessage
call EventScript_PkmnCenterNurse_TakeAndHealPkmn call EventScript_PkmnCenterNurse_TakeAndHealPkmn
goto_if_unset FLAG_POKERUS_EXPLAINED, EventScript_PkmnCenterNurse_CheckPokerus goto_if_unset FLAG_POKERUS_EXPLAINED, EventScript_PkmnCenterNurse_CheckPokerus
goto EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom goto EventScript_PkmnCenterNurse_ReturnPkmn
end end
EventScript_PkmnCenterNurse_IllTakeYourPkmn:: EventScript_PkmnCenterNurse_IllTakeYourPkmn::
@ -75,7 +75,7 @@ EventScript_PkmnCenterNurse_PlayerWaitingInUnionRoom::
EventScript_PkmnCenterNurse_CheckPokerus:: EventScript_PkmnCenterNurse_CheckPokerus::
specialvar VAR_RESULT, IsPokerusInParty specialvar VAR_RESULT, IsPokerusInParty
goto_if_eq VAR_RESULT, TRUE, EventScript_PkmnCenterNurse_ExplainPokerus goto_if_eq VAR_RESULT, TRUE, EventScript_PkmnCenterNurse_ExplainPokerus
goto_if_eq VAR_RESULT, FALSE, EventScript_PkmnCenterNurse_CheckTrainerHillAndUnionRoom goto_if_eq VAR_RESULT, FALSE, EventScript_PkmnCenterNurse_ReturnPkmn
end end
EventScript_PkmnCenterNurse_ExplainPokerus:: EventScript_PkmnCenterNurse_ExplainPokerus::

View File

@ -116,7 +116,7 @@ PlayersHouse_2F_EventScript_SetWallClock::
PlayersHouse_2F_Movement_MomEntersMale: PlayersHouse_2F_Movement_MomEntersMale:
delay_8 delay_8
walk_down walk_faster_down
walk_in_place_faster_left walk_in_place_faster_left
delay_16 delay_16
delay_8 delay_8
@ -124,18 +124,18 @@ PlayersHouse_2F_Movement_MomEntersMale:
step_end step_end
PlayersHouse_2F_Movement_MomExitsMale: PlayersHouse_2F_Movement_MomExitsMale:
walk_right walk_faster_right
walk_up walk_up
delay_8 delay_8
step_end step_end
PlayersHouse_2F_Movement_MomEntersFemale: PlayersHouse_2F_Movement_MomEntersFemale:
delay_8 delay_8
walk_down walk_faster_down
walk_in_place_faster_right walk_in_place_faster_right
delay_16 delay_16
delay_8 delay_8
walk_right walk_faster_right
step_end step_end
PlayersHouse_2F_Movement_MomExitsFemale: PlayersHouse_2F_Movement_MomExitsFemale:
@ -221,11 +221,11 @@ PlayersHouse_1F_EventScript_WatchGymBroadcast::
PlayersHouse_1F_Movement_MomApproachDadMale: PlayersHouse_1F_Movement_MomApproachDadMale:
walk_up walk_up
walk_right walk_faster_right
walk_right walk_faster_right
walk_right walk_faster_right
walk_right walk_faster_right
walk_down walk_faster_down
walk_in_place_faster_right walk_in_place_faster_right
step_end step_end
@ -235,12 +235,12 @@ PlayersHouse_1F_Movement_MomApproachDadFemale:
walk_left walk_left
walk_left walk_left
walk_left walk_left
walk_down walk_faster_down
walk_in_place_faster_left walk_in_place_faster_left
step_end step_end
PlayersHouse_1F_Movement_MomApproachPlayerMale: PlayersHouse_1F_Movement_MomApproachPlayerMale:
walk_right walk_faster_right
step_end step_end
PlayersHouse_1F_Movement_MomApproachPlayerFemale: PlayersHouse_1F_Movement_MomApproachPlayerFemale:
@ -277,8 +277,8 @@ PlayersHouse_1F_Movement_MomApproachPlayerAfterTVMale:
PlayersHouse_1F_Movement_MomApproachPlayerAfterTVFemale: PlayersHouse_1F_Movement_MomApproachPlayerAfterTVFemale:
walk_up walk_up
walk_right walk_faster_right
walk_right walk_faster_right
step_end step_end
PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale: PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale:
@ -287,19 +287,19 @@ PlayersHouse_1F_Movement_MomMakeRoomToSeeTVMale:
step_end step_end
PlayersHouse_1F_Movement_MomMakeRoomToSeeTVFemale: PlayersHouse_1F_Movement_MomMakeRoomToSeeTVFemale:
walk_right walk_faster_right
walk_in_place_faster_left walk_in_place_faster_left
step_end step_end
PlayersHouse_1F_Movement_MomReturnToSeatMale: PlayersHouse_1F_Movement_MomReturnToSeatMale:
walk_left walk_left
walk_down walk_faster_down
walk_in_place_faster_right walk_in_place_faster_right
step_end step_end
PlayersHouse_1F_Movement_MomReturnToSeatFemale: PlayersHouse_1F_Movement_MomReturnToSeatFemale:
walk_right walk_faster_right
walk_down walk_faster_down
walk_in_place_faster_left walk_in_place_faster_left
step_end step_end
@ -393,27 +393,27 @@ PlayersHouse_1F_EventScript_Vigoroth2::
end end
PlayersHouse_1F_Movement_PlayerApproachTVForGymMale: PlayersHouse_1F_Movement_PlayerApproachTVForGymMale:
walk_down walk_faster_down
walk_down walk_faster_down
walk_left walk_faster_left
walk_left walk_faster_left
walk_left walk_faster_left
step_end step_end
PlayersHouse_1F_Movement_PlayerMoveToTVMale: PlayersHouse_1F_Movement_PlayerMoveToTVMale:
walk_left walk_faster_left
step_end step_end
PlayersHouse_1F_Movement_PlayerApproachTVForGymFemale: PlayersHouse_1F_Movement_PlayerApproachTVForGymFemale:
walk_down walk_faster_down
walk_down walk_faster_down
walk_right walk_faster_right
walk_right walk_faster_right
walk_right walk_faster_right
step_end step_end
PlayersHouse_1F_Movement_PlayerMoveToTVFemale: PlayersHouse_1F_Movement_PlayerMoveToTVFemale:
walk_right walk_faster_right
step_end step_end
PlayersHouse_1F_Movement_MovePlayerAwayFromDoor: PlayersHouse_1F_Movement_MovePlayerAwayFromDoor:
@ -603,8 +603,8 @@ PlayersHouse_1F_EventScript_MomApproachPlayerAfterTVFemale::
return return
PlayersHouse_1F_Movement_DadApproachPlayerMale: PlayersHouse_1F_Movement_DadApproachPlayerMale:
walk_right walk_faster_right
walk_right walk_faster_right
step_end step_end
PlayersHouse_1F_Movement_DadApproachPlayerFemale: PlayersHouse_1F_Movement_DadApproachPlayerFemale:
@ -621,24 +621,24 @@ PlayersHouse_1F_Movement_DadFaceMomFemale:
step_end step_end
PlayersHouse_1F_Movement_DadExitsMale: PlayersHouse_1F_Movement_DadExitsMale:
walk_down walk_faster_down
walk_right walk_faster_right
walk_down walk_faster_down
delay_8 delay_8
step_end step_end
PlayersHouse_1F_Movement_DadExitsFemale: PlayersHouse_1F_Movement_DadExitsFemale:
walk_down walk_faster_down
walk_left walk_left
walk_down walk_faster_down
delay_8 delay_8
step_end step_end
PlayersHouse_1F_Movement_PlayerEnterRoomMale: PlayersHouse_1F_Movement_PlayerEnterRoomMale:
delay_16 delay_16
walk_down walk_faster_down
walk_down walk_faster_down
walk_down walk_faster_down
walk_in_place_faster_left walk_in_place_faster_left
step_end step_end
@ -651,9 +651,9 @@ PlayersHouse_1F_Movement_MomAndPlayerWatchDadExit:
PlayersHouse_1F_Movement_PlayerEnterRoomFemale: PlayersHouse_1F_Movement_PlayerEnterRoomFemale:
delay_16 delay_16
walk_down walk_faster_down
walk_down walk_faster_down
walk_down walk_faster_down
walk_in_place_faster_right walk_in_place_faster_right
step_end step_end
@ -668,10 +668,10 @@ PlayersHouse_1F_Movement_PlayerApproachTVForLatiMale:
PlayersHouse_1F_Movement_PlayerApproachTVForLatiFemale: PlayersHouse_1F_Movement_PlayerApproachTVForLatiFemale:
walk_up walk_up
walk_right walk_faster_right
walk_right walk_faster_right
walk_right walk_faster_right
walk_right walk_faster_right
walk_in_place_faster_up walk_in_place_faster_up
step_end step_end

View File

@ -97,7 +97,7 @@
#define FLAG_LEGENDARIES_IN_SOOTOPOLIS 0x53 #define FLAG_LEGENDARIES_IN_SOOTOPOLIS 0x53
#define FLAG_REMOVE_WARP_FADE 0x54 // Custom flag used in tumbledemerald. #define FLAG_REMOVE_WARP_FADE 0x54 // Custom flag used in tumbledemerald.
#define FLAG_UNUSED_0x055 0x55 // Unused Flag #define FLAG_AURORA_MYSTIC_RECEIVED 0x55 // Custom flag used in tumbledemerald. Basically a workaround.
#define FLAG_HIDE_CONTEST_POKE_BALL 0x56 // Always set after new game, object it hides is added directly #define FLAG_HIDE_CONTEST_POKE_BALL 0x56 // Always set after new game, object it hides is added directly
#define FLAG_MET_RIVAL_MOM 0x57 #define FLAG_MET_RIVAL_MOM 0x57