Welcome to the PokéCommunity!

Hi there! Thanks for visiting PokéCommunity. We’re a group of Pokémon fans dedicated to providing the best place on the Internet for discussing ideas and sharing fan-made content. Welcome! We’re glad you’re here.

In order to join our community we need you to create an account with us. Doing so will allow you to make posts, submit and view fan art and fan fiction, download fan-made games, and much more. It’s quick and easy; just click here and follow the instructions.

Help me So i was editing or hacking my map with A map when i opened A trainer to edit trainers and i added trainers and such when i closed it and came back the names of the pokemons were messed up they would have codes with europeen accents and stuff or they would be blank so it would say a wild appered WTF this has happened 2 times on pokemon emerald and i tested it out on saphire and i happened on it as well should i use PET but i need to add new trainers and these codes would affect every thing including in a map it would say the codes? what is happening any advice would be appreciated.

It's "impossible" to tell what's causing it but I'd advise you to check out the following:
1) You're using right ending commands (there are different scripting commands for ending level scripts and normal scripts in G/S/C, probably also for Firered).
2) You're calling "right" type of a level script

Go to the header tab in A-Map, click Ctrl + H, copy the map script offset, paste it into XSE and decompile it with "level script" checked. If you look down from there a few lines, you should see something like this:

Go to the header tab in A-Map, click Ctrl + H, copy the map script offset, paste it into XSE and decompile it with "level script" checked. If you look down from there a few lines, you should see something like this:

Hey i've made my own script for an Item called the Codec. I put it in the Scripts.rxdata and in the Items PBS. It was all made and I clicked 'Save'. It acted as if it saved. When I took out my flash drive containing both my RPG maker xp and Pokemon essentials stuff, then put it into another computer, my scripts.rxdata reverted back to the original info from the starter kit. What happened to my modified scripts? Please help

How do I make a trigger script?
Im not sure if this i the right place to post this and I hope im not requesting a script, but I want to know the basics of making a trigger script like one that prevents you from advancing in an area until a certain flag is set.

How do I make a trigger script?
Im not sure if this i the right place to post this and I hope im not requesting a script, but I want to know the basics of making a trigger script like one that prevents you from advancing in an area until a certain flag is set.

Basically, in a part of your trigger your script, you are going to want to check if a separate event happened first before it activates: then it goes to the right script depending on whether the event happened or not.

It'll make the script check if another event has happened yet. Therefore, in a separate event, you'll need to put a:setflag 0x200 (the same flag number we are checkign for above)
When that flag is set, the trigger script will check and see that the event already happened, and allow you to do anything you want (advance into next area, etc..)

Basically, in a part of your trigger your script, you are going to want to check if a separate event happened first before it activates: then it goes to the right script depending on whether the event happened or not.

It'll make the script check if another event has happened yet. Therefore, in a separate event, you'll need to put a:setflag 0x200 (the same flag number we are checkign for above)
When that flag is set, the trigger script will check and see that the event already happened, and allow you to do anything you want (advance into next area, etc..)

#org 0x818DA16
= Roberta: I'm not sure where \v\h06\nwent, but he was excited!

Okay here's what happens:
The 'on entering map' script is supposed to make prof. oak walk to the player, take him halfway to his lab, tell the player about the journey and ask him to tell his mother, and then oak goes to his lab (and his sprite disappears), however this only happens after flag 0x258 is set, which is set when you talk to Roberta (second script, she is inside). But when I leave Roberta's house, the screen just turns black. The music continues normally, but the screen is completely black, making it unplayable. Any ideas as to what the problem is? Not totally sure if it's the scripts or something wrong with my rom, but this doesnt happen before the flag 0x258 is set. I've tried it with different flags and it still won't work. Does anyone know how to fix this?

Thank you so much for this, I finally got it to work!
One last question, what are the move player commands, and how do you get them to work at the same time as the move NPC commands?
Also what is the best hiding NPC command? I heard hidesprite was buggy.

#org 0x818DA16
= Roberta: I'm not sure where \v\h06\nwent, but he was excited!

Okay here's what happens:
The 'on entering map' script is supposed to make prof. oak walk to the player, take him halfway to his lab, tell the player about the journey and ask him to tell his mother, and then oak goes to his lab (and his sprite disappears), however this only happens after flag 0x258 is set, which is set when you talk to Roberta (second script, she is inside). But when I leave Roberta's house, the screen just turns black. The music continues normally, but the screen is completely black, making it unplayable. Any ideas as to what the problem is? Not totally sure if it's the scripts or something wrong with my rom, but this doesnt happen before the flag 0x258 is set. I've tried it with different flags and it still won't work. Does anyone know how to fix this?

Alright. Kinda frustrated here. I am attempting to hack Pokemon Gold. I am using JohtoMap, PKSV, and Translhextion. I am attempting to do things through hex editing, not scripting. Here's my question: Why is it that I can edit pre-placed events text and functions for the most part, but whenever I try to edit in another event of my own, the game just melts down? For example:

This is the info that JohtoMap shows for my person that I added to New Bark Town that I want to say "Hi." Next is a my hex editing that I did to make this happen. On the start of offset x1225A0:

51 A4 65 00 87 A8 E8 57 00 00 00 00 00 00 00 00

That is all that I've edited. That is starting at the beginning of offset x1225A0, and finishes halfway through. All i want him to do is turn to you and say "Hi." And then let the game resume. This is what his script looks like in PKSV:

It repeats the \h00 part over and over forever. I don't understand. Whenever I try to do anything text related, the infinite \hoo comes up, along with the #raw. I just have no idea what to do. I've tried tutorials, but I guess I'm just inept. Any help please? Thanks in advance.

The PokéCommunity

Meta

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, or The Pokémon Company International. We just love Pokémon.