![]() |
386 Patching: Legendary Encounters
Posted this on Script Help Thread, didn't get a response, will try here.
Game: Pokemon FireRed Type: Person event (Scripted Legendary Encounter) Editor: PKSV-UI by Score_Under (via AdvanceMap 1.95) Script: Spoiler:
The goal for this script: I have all three legendary dogs in a spot. What I want them to do is act like all the other legendary encounters here. I examined other legendary scripts to try to determine how they differed, and then could make my own to do this. Eventually I want to make all of the Gen II legendaries available somewhere. Ultimately I want the game to be a 386 patch (I'll do more stuff beyond this to start making a new game, but I wanted to start simple ) -- and will need to do this for all the legendaries (or at least, the ones with sprites) so figuring out how to make this work is important. What's actually happening:Catching the Pokemon does nothing. That is, it's still there, available for capture as many times as I want. If I run, the flee message displays, then if I walk away, any of the three that I've already ran from comes back after I take a step. If I make the legendary faint, the message doesn't display, but the pokemon still comes back after the next encounter. From the code examination (I have Entei's in the script, Suicune and Raikou's are similar, just with their own flags and coding) they look to be coded the same way as all the legendaries that work fine (ie: Mewtwo, Zapdos, etc.) but... they don't. So... what am I missing here? Screenshots and/or videos: Since I can't post links, apparently, since I'm new here (and this is also my first attempt at hacking), the screencaps aren't available right here... www dot mainstreet52 dot info slash images slash FRIPH slash Dogs1.png is the first image (the others are Dogs2.png and Dogs3.png, and they were taken in numerical order.) I'm not sure how helpful they'll be... this is on fleeing twice. I've fixed the issue where it says ZAPDOS is the one that flees, that was simply fixing the hex var which I hadn't figured out at first. |
You need to give each of the Legendary Beasts' overworlds an individual Person ID, and make it so that the script sets the flag that matches that Person ID after the Beast is defeated / captured / flees. For example, if Raikou has the Person ID of 2F0, you should include setflag 0x2F0 somewhere in the script.
|
Quote:
So, I'll have to ask which person IDs are safe to use, so I can go ahead and use those for these, to match up with the flags correctly. That said, even if the 2xx person IDs aren't "safe", if I just know where they are, if they aren't going to be a problem, I can always just move the person that has that ID to something else as well... |
Quote:
|
Quote:
Okay, so, it works fine now when I flee from the legendary. It also works fine when I cause it to faint. (That is, the sprite becomes hidden as it should.) When I catch it, it still stands there though. (I'm using a Master Ball to do it as I gave myself a bunch to test this easier; I wouldn't think that would be a/the problem, but could it?) (Or maybe it's not actually having the national Pokedex? I'm scared to touch the Oak script with how complicated it is, which is what I'd need to do to get the National Pokedex right off the bat.) (The script up there is exactly what I have still, and Entei's person ID is 0228 now. Similarly for Suicune at 0229 and Raikou at 0227 with their own flags.) |
Quote:
As for the issue of them not disappearing upon capture, the variable for special 0xb4 returns 0x7 if it is captured, but you don't seem to check for that n the script. That may be the issue. |
Quote:
As to the other: Hmmm. The other legends don't seem to check for that, so I don't have a comparison to figure out how to actually do this. I basically compared the Mewtwo and Zapdos scripts, figured out what was different for each, and made mine different for the new ones, to generate these scripts in the first place. Also I note that Mewtwo's person ID is 0081 and his flag is 2BC... so they don't seem to have to be the same... but, it does work that way (for it and for mine), so I'll leave it that way (whichever way it is now). |
| All times are GMT -8. The time now is 9:12 AM. |
![]()
© 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.
Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.