• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Help Thread: Quick Questions & Answers

Status
Not open for further replies.
Last edited:
Did you remember to +1 the offset of the ASM?
As in, you inserted the ASM at 0x800000 so the inserted bytes at 0801687E would be 01 48 00 47 00 00 01 00 80 08
And if you did do all that, I don't know what would be wrong.


I did exactly that. I've inserted it in the correct location and stuff (I even tried it in a vanilla FIreRed Rom). The only thing that might be wrong is if I complied it incorrectly.

This is the compiled code I got.
05480078002805D104490548007808700449054805480047B8700302E23B0202CC3B02028A3E0202896801088D680108
 
Hi all, I have a very weird problem.

Spoiler:
 
Does anybody know how to make a daily event happen once a week? Like the way it was in G/S/C and R/S/E where the event would not repeat itself during the same day. The command from R/S/E doesn't work for FRLG since those games originally didn't have RTC.
I know how to script time based events already, I just want to know how to make them occur only once a day. For instance I have a Bug Catching Contest occuring on Wednesday and Fridays, but if the player did the event then were to save their game on Wednesday and resume their game on Friday, the event would just be reading the "day of week byte" and the event would not occur on Friday unless I manually reset the flag, which is obviously not ideal or a true daily event.
 
Hi all, I have a very weird problem.

Spoiler:

The only reason I can think of is that the NPC was moved too far off camera, which can cause issues. I've encountered the problem before because of that. Wish I could explain it better.
 
I'm trying to add a bed for a room, what are the movement perms? I tried to do it from memory, and the results are not what they should be.

Wouldn't it be easier just to open a Firered ROM and check for yourself?
 
I'm trying to add a bed for a room, what are the movement perms? I tried to do it from memory, and the results are not what they should be.

This makes no sense ... they should be C just like the rest of the tiles. If you mean what are the behavior bytes, then you could go into the blocks and set them to have like "Hero blocks downwards" on the tiles right above the bed or vice versa so that you don't walk up into the bed and only side ways. Or I guess if you are still hellbent on movements instead, fill the room with the movement 10. This will have the player above every image so if there are blocks you can stand behind, don't use 10 on them. Put C on the bed only and 0s where you want the player to walk to get into the bed so it should look like:

....10 10 10 10
10 00 CC CC 00 10
10 00 CC CC 00 10
....10 10 10 10

0 movement allows you to walk across two different movement codes.
 
I'm just starting out with ROM hacking and getting tools set up, and I'm having an issue connecting a script editor to A-Map. When I go to "Choose Script Editor" in A-Map and select XSE.exe it tells me "the program file does not exist or is not executable." XSE works fine for me on its own and I haven't messed with the XSE files, but I keep getting this error. I've tried redownloading XSE, I've tried using PKSV instead, and I just keep getting the same error message. Any advice?
 
I'm just starting out with ROM hacking and getting tools set up, and I'm having an issue connecting a script editor to A-Map. When I go to "Choose Script Editor" in A-Map and select XSE.exe it tells me "the program file does not exist or is not executable." XSE works fine for me on its own and I haven't messed with the XSE files, but I keep getting this error. I've tried redownloading XSE, I've tried using PKSV instead, and I just keep getting the same error message. Any advice?

I'd guess trying to redownload A-Map.
 
Where can I download JPAN Save Variable Patch and JPAN's save block recycling

Both the original attachment to the original posts are broken
 
How do I stop a script from happening more than once. I have it so the script wont start again when im in the same area. but when I go out the area and activate the script. It plays over again.
 
How do I stop a script from happening more than once. I have it so the script wont start again when im in the same area. but when I go out the area and activate the script. It plays over again.

Not sure if you're using a level script or a script tile/event, but in either case, when you set it up in A-Map, you specify a variable and a value. The script runs if the variable currently has the specified value. If you want it to stop after one instance, make the script increment that variable. So let's say you picked var 4011 and a value of 0x0 in A-Map. You'd need to add a line of "setvar 0x4011 0x1" in your script to change the value of the variable.
 
Not sure if you're using a level script or a script tile/event, but in either case, when you set it up in A-Map, you specify a variable and a value. The script runs if the variable currently has the specified value. If you want it to stop after one instance, make the script increment that variable. So let's say you picked var 4011 and a value of 0x0 in A-Map. You'd need to add a line of "setvar 0x4011 0x1" in your script to change the value of the variable.

Its an Event Script. Yes ive done 0x1 always at the end of my script. Does 0x0 need to be in the script somewhere? I always keep the var value blank (0000) on Advance Map. When I leave a route, then enter back in, the script begins a new.

For Example:

Spoiler:
 
Its an Event Script. Yes ive done 0x1 always at the end of my script. Does 0x0 need to be in the script somewhere? I always keep the var value blank (0000) on Advance Map. When I leave a route, then enter back in, the script begins a new.

For Example:

Spoiler:

So I assume you are using var 49C0 in A-Map (as the "Var number")? That variable may be temporary or unsafe. As a quick test, try it with something like 4011 (4011-40FF are known to be safe, according to this reference).

No, you don't need 0x0 in the script, just the 0000 in A-Map like you said.
 
So I assume you are using var 49C0 in A-Map (as the "Var number")? That variable may be temporary or unsafe. As a quick test, try it with something like 4011 (4011-40FF are known to be safe, according to this reference).

No, you don't need 0x0 in the script, just the 0000 in A-Map like you said.

Oh I see, ok one last thing.
Would there be a problem if I use the same variable with more than one Script in the area or the whole game?
 
Oh I see, ok one last thing.
Would there be a problem if I use the same variable with more than one Script in the area or the whole game?

No, that's actually ok, as long as you use a different var value for each one (Ex. var 4011, first script has a var value of 0000 in A-Map and the script sets it to 0x1, then the next script has a value of 0001 in A-Map and the script sets it to 0x2, etc.).
 
No, that's actually ok, as long as you use a different var value for each one (Ex. var 4011, first script has a var value of 0000 in A-Map and the script sets it to 0x1, then the next script has a value of 0001 in A-Map and the script sets it to 0x2, etc.).

Ok so to wrap this up

Using something like

setvar 0x4060 0x1 will conflict if i have setvar 0x4060 0x1 anywhere else in the game?

But something like
setvar 0x4060 0x1 will not conflict if i have setvar 0x4060 0x2 anywhere else in the game?
 
Status
Not open for further replies.
Back
Top