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.

If Flags 0x84A and 0x84B are cleared, the Vermilion City dockworker won't even bother checking for the MysticTicket and AuroraTicket, respectively. You won't be able to use them. I don't know what sets or clears these flags.

camera control commands
111 elevator scene + small animation
113 freeze screen, but only on scripts, not on signposts or people. Call again to unfreeze
114 unfreeze screen\camera. Works on all surfaces
11F returns to a variable the facing you had when activating the event

If Flags 0x84A and 0x84B are cleared, the Vermilion City dockworker won't even bother checking for the MysticTicket and AuroraTicket, respectively. You won't be able to use them. I don't know what sets or clears these flags.

camera control commands
111 elevator scene + small animation
113 freeze screen, but only on scripts, not on signposts or people. Call again to unfreeze
114 unfreeze screen\camera. Works on all surfaces
11F returns to a variable the facing you had when activating the event

Hi everyone, I already asked this over in the Script Help thread, but I figure this might be simple enough for someone to help me here as well. I just need this one last thing to work before I can start my romhack in full.

Can anybody tell me why my Script Event tile isn't running (see attached image), I've read all the threads I can find about Var numbers, Values, Unknown, and flags, but I still can't get it to run when I step on it. Either nothing happens or the game freezes. Could somebody give me the proper values to put in my Var fields and Unknown field to get this thing running when I step on it? Spent 8+ hours on this tile already and it's no good so far.

Hi everyone, I already asked this over in the Script Help thread, but I figure this might be simple enough for someone to help me here as well. I just need this one last thing to work before I can start my romhack in full.

Can anybody tell me why my Script Event tile isn't running (see attached image), I've read all the threads I can find about Var numbers, Values, Unknown, and flags, but I still can't get it to run when I step on it. Either nothing happens or the game freezes. Could somebody give me the proper values to put in my Var fields and Unknown field to get this thing running when I step on it? Spent 8+ hours on this tile already and it's no good so far.

Okay. So ummm.... Maybe you were just reading it and NOT understanding it.

Well here.

I'll explain.

Spoiler:

Script Tiles

This is probably the most confusing thing for a beginner: how to use those green s-tiles in A-map.

Essentially, these tiles will activate the script, which you put in the Script Offset box in the settings, when stepped on. However, it isn't that simple. Look at the picture below:

Spoiler:

You will notice that I circled the boxes for "Var Number" and "Var Value". These are pretty cool. What they allow you to do is prevent a script from running again. As we learned above, vars can be any value up to a little over 65,000. So, what do these have to do with a script running? Well, it is quite simple:

The script will run, if and only if, the var in the box is equal to the value

So, let's say you put the var 0x4050 in the space for a var and 0 in the space for the value. Can you guess what happens? If you said that the script will only run if the var 0x4050 is 0, then you are correct.

Even if you want the script to run every time you step on it, you have to provide a valid var. If you leave the var space blank or at 0, then the script won't run. Just make sure that nothing else changes the var and you will be good.

Now, if you only want your script to run the first time you step on it, or to not run again, just add this line to the end of your script:

Code:
setvar 0x[valid var] 0x[another number other than the one in the value box]
(Remember, all vars that haven't ever been used will be at 0 to begin with.)

So, if we take the situation above where we had the var as 0x4050 and the value at 0 and we don't want the script to run again, simply add this to the end of your script:

Code:
setvar 0x4050 0x1
Make sense?

Now, one last thing: the Unknown. As you can see in the image, the Unknown is set to 0003. This is not necessary. I almost never use it, but most people do use it simply for continuity. It is something that Game Freak, or their compiler for that matter, inserted that has no real purpose that has been identified. It is simply a constant whose use is just personal preference.

Simpler Words:

Create a Script Tile Event.
Assign a script to it by putting the offset of your script in the "Script Offset".
Fill out the "Unknown" Box with 0003.
Fill out the "Var Number" Box with 4050.
Save.
Test it.
It works now doesn't it?

Note: Nobody would've read that 5 times and yet not understand it. (Well, unless you don't know how to read English well, know English grammar well, don't know some spelling etc.)

__________________

LET'S PARTY!

BlackWhiteRobin

Also Known As:The Superbly Awesome Great Dynamic Fantastic Super High Majestic Robin!

I have a new error arising in my hack - I removed the truck animation at the beginning of Emerald, but now when I warp out of the truck (or any starting map), the rom's framerate is severely decreased. Text runs normally, but walking and background animations are something like quarter speed.

Trying to locate the source of the problem so far has been erratic and fruitless; putting any sort of level script in the warped-to map seems to fix the problem on a given map, but as soon as I enter a map which has no level scripts again, everything slows down. My previous emerald hacking never had this problem.
Thoughts?

Create a Script Tile Event.
Assign a script to it by putting the offset of your script in the "Script Offset".
Fill out the "Unknown" Box with 0003.
Fill out the "Var Number" Box with 4050.
Save.
Test it.
It works now doesn't it?

Note: Nobody would've read that 5 times and yet not understand it. (Well, unless you don't know how to read, grammar, spelling etc.)

Nah, I swear I read it 5 times. The issue was I just wasn't understanding it with it all drawn out like that. Yepp, It worked the way you said. What was confusing me was how it said the "var number and var value must match for the script to run"...so I would try to put 4050 in BOTH the value and number fields, ya know, to make them match. Idk how that made sense to everybody but me after so many hours...but yes, that DID work for me and I owe you big time. I apologize for absolutely dropping the ball on this one, but i've got it now and will get out of your hair now. Again, I swear I read it over and over...that one part just tripped me up.

Okay. So ummm.... Maybe you were just reading it and NOT understanding it.

Well here.

I'll explain.

Simpler Words:

Create a Script Tile Event.
Assign a script to it by putting the offset of your script in the "Script Offset".
Fill out the "Unknown" Box with 0003.
Fill out the "Var Number" Box with 4050.
Save.
Test it.
It works now doesn't it?

Note: Nobody would've read that 5 times and yet not understand it. (Well, unless you don't know how to read, grammar, spelling etc.)

Firstly, no need to offend his grammar, reading and spelling skills. It's just plain rude.

Secondly if you looked at his attachment, the picture looks perfect. The error lies within the script or variable.

Thirdly Unknown does not have to be set as 03, this is a convention used by gamefreak and does can be left as 00 00.

@Zemekis, try a new variable, you may have used this before. In Karatekid552's tut the variable 0x4050 is used,

4050 Unknown or multi-use.
Set to 0x1 after the "Don't go out yet!" OAK Script event.
Set to 0x2 during the Hall of Fame room level script, if the National Dex is NOT already unlocked.
Set to 0x3 after OAK's chat with the player in PALLET TOWN after beating the E4.

As you can see if you have activated the first script in PALLET TOWN, the variable would have set to 1.

I would look at the vars in this tut and try one that hasn't been used. Try 4027, I am using this variable in my hack and this works.

Firstly, no need to offend his grammar, reading and spelling skills. It's just plain rude.

Secondly if you looked at his attachment, the picture looks perfect. The error lies within the script or variable.

Thirdly Unknown does not have to be set as 03, this is a convention used by gamefreak and does can be left as 00 00.

@Zemekis, try a new variable, you may have used this before. In Karatekid552's tut the variable 0x4050 is used,

4050 Unknown or multi-use.
Set to 0x1 after the "Don't go out yet!" OAK Script event.
Set to 0x2 during the Hall of Fame room level script, if the National Dex is NOT already unlocked.
Set to 0x3 after OAK's chat with the player in PALLET TOWN after beating the E4.

As you can see if you have activated the first script in PALLET TOWN, the variable would have set to 1.

I would look at the vars in this tut and try one that hasn't been used. Try 4027, I am using this variable in my hack and this works.

Thanks Kearnsey,
Yeah, that was a kinda rough way for him to answer my honest question, but he DID at least provide me with an answer so i've gotta give him credit for that.

Your answer worked as well, so thanks for your input! Again, the wording in the tutorial just flew right over my head somehow and i'm sorry if my question was silly but i'm a total beginner with this stuff.

Thanks Kearnsey,
Yeah, that was a kinda rough way for him to answer my honest question, but he DID at least provide me with an answer so i've gotta give him credit for that.

Your answer worked as well, so thanks for your input! Again, the wording in the tutorial just flew right over my head somehow and i'm sorry if my question was silly but i'm a total beginner with this stuff.

No worries and unless you plan on using Jambo's patch to extend variables, you can have over 65,000 events off that 1 script tile, assuming these events only ever occur once. So if you plan carefully you wont used all the variable :D

My advice is keep the post by DavidJJCobb, and carefully decide which vars and flags you want to use.

No worries and unless you plan on using Jambo's patch to extend variables, you can have over 65,000 events off that 1 script tile, assuming these events only ever occur once. So if you plan carefully you wont used all the variable :D

My advice is keep the post by DavidJJCobb, and carefully decide which vars and flags you want to use.

For this whole argument, the var must be set to the value. As in, in a previous script:

setvar [var] [value]

This will do the trick. If the script appears right at the beginning of the game, then you won't need this because the var will already equal zero.

Robin22gongon: you have not earned the right to be curt with people yet, nor was Zemekis being rude. He was honestly trying to understand. Remember, you asked which vars were safe and how to use script tiles 3 times and I answered you everytime without being rude, and then you still kind of screwed up. Stop telling people to use var 0x4050. It is used by other scripts! Tell them to use 0x408F -> 0x40FF. Those are guarenteed to be safe.

I honestly have no clue man. Except that it may be your emulator. I have found that mobile emulators often lag while playing the new gen III games and only run RS well. What exactly are you playing on?

Basically I want to insert HGSS sprites into my Emerald hack which is already complete, the sprites can be inserted via an IPS Patch. Now when I use a Clean Emerald ROM and Patch it with the HGSS Patch, it's fine but then I add the Expert Emerald Patch and things become messy, a minor amount of sprites become corrupt and occasionally trainer matches will not start. Is there something I'm doing wrong? Or is it impossible to Patch an already patched Emerald Rom once again?

I honestly have no clue man. Except that it may be your emulator. I have found that mobile emulators often lag while playing the new gen III games and only run RS well. What exactly are you playing on?

Visual Boy Advance on PC.
Were it the emulator, it's being oddly specific. It runs standard Gen III ROMs fine, and all other hacks I've tried so far. And it only affects overworld framerate; the rest of the game (battle animations, title/intro) works fine.

On a possibly related issue, does anyone know why one of the level scripts in the Moving Truck uses cmda6 0x5? I know that it's related to tile behavior, like the breaking tiles or ice tiles, but unless its somehow related to the initial animation, its presence baffles me.

Visual Boy Advance on PC.
Were it the emulator, it's being oddly specific. It runs standard Gen III ROMs fine, and all other hacks I've tried so far. And it only affects overworld framerate; the rest of the game (battle animations, title/intro) works fine.

On a possibly related issue, does anyone know why one of the level scripts in the Moving Truck uses cmda6 0x5? I know that it's related to tile behavior, like the breaking tiles or ice tiles, but unless its somehow related to the initial animation, its presence baffles me.

It may initiate the truck animation (though most likely no). I think it helps the truck animation in some way. I have actually heard problems about Truck Remover with Emerald (none with RS though), so this may be the case. Have you tried changing the start map via SMCA to another location? Maybe it is the truck itself becuase the ASM as been removed (well, not removed, but nop'ed).

Quote originally posted by Suicune™:

Just tryna figure out how to fix this problem;

Basically I want to insert HGSS sprites into my Emerald hack which is already complete, the sprites can be inserted via an IPS Patch. Now when I use a Clean Emerald ROM and Patch it with the HGSS Patch, it's fine but then I add the Expert Emerald Patch and things become messy, a minor amount of sprites become corrupt and occasionally trainer matches will not start. Is there something I'm doing wrong? Or is it impossible to Patch an already patched Emerald Rom once again?

Insert the sprites found in Chaos Rush's DS Styled Pokemon Resource into the game via Wichu's Advanced Sprite Editors. The patch you are talking about probably overwrites the data in the location that you inserted your sprite to. Don't use patches in such a fashion as they overwrite the data at their destined location no matter what. Even if something already exists there. Use tools instead to insert them.

If checkitemamount won't compile, then that is because the name has been changed. Hit F1 in XSE and you will see a command database pop up. Now, scroll through the commands until you get to the command with the number "0x46". This is the command for checkitemamount. See what it's new name is and change your script accordingly.

What do you mean? Also KarateKid serious question..... Are you Albert Einstein?? Lol seriously dude not a question goes unasked without you giving the correct answer to it. Much love and respect to you dude.

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.