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.

Pokémon Sun and Moon are now available! Read our extensive Sun and Moon review at Daily!

The finale of the fourth annual Favorite Pokémon Tournament is underway in Pokémon General!View the poll and vote for as many Pokémon as you'd like. Voting is only open until the 5th of December though, so don't wait to make your picks!

I never said I tried all of them, but considering what Pedro12 said, the varnumber only has to be changed if I want it to activate after a certain var has been set to a certain value, determined by what i enter in the Var value box.
Because I dis not need that, I thought i could leave them all on 0000.
The reason I set those which did not work on 4051 is, that in one of the first tutorials I read, the guy said the var number HAD to be on 4051...
Thats why I tool that one. but WHY cant i just leave it on 0000?

Okay, I took 5000, that's working. Now I've got the same problem as mentioned already:
I have a script one step away from the entrance to a town, so hwne I now walk from the route into the town, the towns name appears. But as I make two steps forward, I walk over the script. At that moment, the towns name just didappears immediately, instead of remaining there for a few seconds. Why is this and how can I fix it?

I'm trying to make [compare] send the script to @2 when the variable 0x10AA reaches 3 (adding 1 in this script and 2 in another beforehand) however nothing happens - I'm not sure if its the adding which isn't working or my method of comparing the value .

I'm trying to make [compare] send the script to @2 when the variable 0x10AA reaches 3 (adding 1 in this script and 2 in another beforehand) however nothing happens - I'm not sure if its the adding which isn't working or my method of comparing the value :S.

The copyvar command is being used incorrectly, when you don't even need to use it at all. The first variable you put in copyvar is the destination while the second is the source (i.e the first variable copies the value of the second variable). In your script, variable 0x10AA will be taking on the value of 0x800D rather than the other way around, which is why the script will never work in the way you want it to. In addition, you don't need to copyvar 0x10AA to 0x800D at all, as the 'compare' command doesn't discriminate based on the variable used. Just use this:

The copyvar command is being used incorrectly, when you don't even need to use it at all. The first variable you put in copyvar is the destination while the second is the source (i.e the first variable copies the value of the second variable). In your script, variable 0x10AA will be taking on the value of 0x800D rather than the other way around, which is why the script will never work in the way you want it to. In addition, you don't need to copyvar 0x10AA to 0x800D at all, as the 'compare' command doesn't discriminate based on the variable used. Just use this:

Code:

...
addvar 0x10AA 0x1
compare 0x10AA 0x3
if 0x1 call @2
...

Thank you! Fixed my problem.

I did start at what you gave me, however it didn't work >< but now I'm using 0x4000 it works fine :s

Okay, I took 5000, that's working. Now I've got the same problem as mentioned already:
I have a script one step away from the entrance to a town, so hwne I now walk from the route into the town, the towns name appears. But as I make two steps forward, I walk over the script. At that moment, the towns name just didappears immediately, instead of remaining there for a few seconds. Why is this and how can I fix it?

Just to explain the variable thing, if a variable is set to 0000, then it is always going to activate (all variables are initially set to 0 when the game starts). If a script activates when you step on it, and you don't change the variable to a different value in the script, the game will freeze because it becomes an endless loop, trying to repeat the script over and over again. You would need to deactivate the script by setting its value to something other than 0.

As for the town's name disappearing, it probably has to do with the fact that the script is active and running when you step on it. If you don't want the script to activate until a certain time, set the script's var value to 0001 instead. Then when you want that script to activate, use another script (dialogue, variable script, etc.) and use setvar to change the variable's value to 0x1.

I had a question about events...like the one in Pallet Town when you step on a certain tile near the grass and Oak comes over and stops you. What is it that causes that and what type of script to you use? From what I'm reading, it looks like Variables? I've been looking at tutorials or videos and there's really no definitive answers on what exactly is used and what it would look like

For example....walking on the event, Oak appears and walks up to you. That's the sort of thing I'm looking to be able to create. Up until now I've been using PKSV, but if this isn't the recommended program for this I can switch. I just want to know how to do things like this so I can edit or create some new events to spice the game up a bit for friends etc. Not really getting into the making an entirely new game scene, but I would like to know how to do small things like this. Doing well up until this. Thanks for any help.

I had a question about events...like the one in Pallet Town when you step on a certain tile near the grass and Oak comes over and stops you. What is it that causes that and what type of script to you use? From what I'm reading, it looks like Variables? I've been looking at tutorials or videos and there's really no definitive answers on what exactly is used and what it would look like

For example....walking on the event, Oak appears and walks up to you. That's the sort of thing I'm looking to be able to create. Up until now I've been using PKSV, but if this isn't the recommended program for this I can switch. I just want to know how to do things like this so I can edit or create some new events to spice the game up a bit for friends etc. Not really getting into the making an entirely new game scene, but I would like to know how to do small things like this. Doing well up until this. Thanks for any help.

XSE (Extreme Script Editor) is recommended over PKSV.

In A-Map, the script you step on will have a Var number and a Var value. The Variable # is the number of the variable, and the value is what the value of that number is set to.

So if you look at Oak's script, you see that it is activated when Var # 4050 is set to 0000. By default, all variables are set to the value of 0, which means that script will activate the first time you step on it no matter what, because the value of that script is 0 when the game begins.

Now, in order to prevent the script from glitching once you step on it, you must do one of two things - either move the player off the script tile in the script, or deactivate the script by setting its var value to something other than 0 (because that is the value it is set to in A-Map for it to be activated).

There are some scripts that are blocks, and don't deactivate, but only move the player back so they can't leave the town. Likely this script will be deactivated by changing the variable's value later in a future script.

If you want to deactivate the script as soon as you step on it, though, you can simply change the variable's value. To do this, you would use this command setvar.

^ I bolded the one that actually deactivated the script, though. By using setvar, the script has changed the value of variable 4050 to 0001. Now that it is changed to 1 instead of 0, that script will not activate again, unless you were to change the value of 4050 back to 0 in a separate script.

Be cautious of the variable you use. There's a supposed safe range. Refer to XSE's guide to know which ones are best to use (I don't recall at the moment), or just use variables already used by the game, if you do not need those scripts that the game uses.

By using the "add new offset button" I'm able to add 1 new offset (line of text) at a time to the program to be edited, which is very tedious. Does anyone know if there's a way to add an entire block of text rather than adding each individual line of a block one by one by one?

Under "Tools" there's an "Insert Dialog-script" option which I think is what I'm looking for, but I can't figure out how to use it. If I try to insert the start address of a pointer table, I get a message saying:

Code:

Saved script to offset 71A249(Hex).
Use this option in the 'Script' box of your Map-Editor in order to use the script.

How do i activate a script as i enter a house or something like that, or teleport somewhere and a script starts. For example: in Emerald, as you walk off the truck at the beginning of the game and your mum comes out of the house. How is that script activated (as you obviously don't walk up to her and press 'a')?

How do i activate a script as i enter a house or something like that, or teleport somewhere and a script starts. For example: in Emerald, as you walk off the truck at the beginning of the game and your mum comes out of the house. How is that script activated (as you obviously don't walk up to her and press 'a')?

You need to use a level script, there is a tutorial by diegoisawesome here.

By using the "add new offset button" I'm able to add 1 new offset (line of text) at a time to the program to be edited, which is very tedious. Does anyone know if there's a way to add an entire block of text rather than adding each individual line of a block one by one by one?

Under "Tools" there's an "Insert Dialog-script" option which I think is what I'm looking for, but I can't figure out how to use it. If I try to insert the start address of a pointer table, I get a message saying:

Code:

Saved script to offset 71A249(Hex).
Use this option in the 'Script' box of your Map-Editor in order to use the script.

Uhhh, my Map-Editor? What??? Help!

Well...in Advance-Map...
In your case, enter $0071A249 into that entry box I circled.

By using the "add new offset button" I'm able to add 1 new offset (line of text) at a time to the program to be edited, which is very tedious. Does anyone know if there's a way to add an entire block of text rather than adding each individual line of a block one by one by one?

Under "Tools" there's an "Insert Dialog-script" option which I think is what I'm looking for, but I can't figure out how to use it. If I try to insert the start address of a pointer table, I get a message saying:

Code:

Saved script to offset 71A249(Hex).
Use this option in the 'Script' box of your Map-Editor in order to use the script.

Uhhh, my Map-Editor? What??? Help!

The best solution is to not use A-Text, but to simply write your own dialogue w/ XSE (that way there are no letter limitations). A basic dialogue script written in XSE would look like this:

XSE will automatically compile the script to any free space available after offset 0x800000 (in this case, b/c that's the dynamic offset we chose).

Hmm but if I understand correctly, XSE has to be used in conjuct with Advance Map, right? For actually inserting the text. But with A-Map I don't think you can edit anything other than the dialogue. What would you suggest I do for editing for example the text in the battle screen, as well as menu text, map text etc?

Hmm but if I understand correctly, XSE has to be used in conjuct with Advance Map, right? For actually inserting the text. But with A-Map I don't think you can edit anything other than the dialogue. What would you suggest I do for editing for example the text in the battle screen, as well as menu text, map text etc?

No, you INSERT the text by making a NEW script, because that way you can write a whole paragraph of text without worrying about repointing.

Then you take the offset it compiled to, and then you stick it in
that box, in which you now link the script to a OW so you can actually use the script.

And if you want to edit any other kind of text you use a hex editor and this handy little chart:

Hey everyone, i have been tackling this problem for a while now, and have found no solutions. I have a level script (which involves movement and works fine up to there). Near the end of the script i have put in 'warphole 0x1 0x0 0x0'. However, i am warped to the correct map but i land on this certain tile, just a random tile with no warp or script or anything on it. I don't and on my warp tile (which is warp number 0) I have tried putting in multiple warp tiles to land on and changing the last 0x to 0x1 in case the warp was the problem. How can i fix this? Thanks

Hey everyone, i have been tackling this problem for a while now, and have found no solutions. I have a level script (which involves movement and works fine up to there). Near the end of the script i have put in 'warphole 0x1 0x0 0x0'. However, i am warped to the correct map but i land on this certain tile, just a random tile with no warp or script or anything on it. I don't and on my warp tile (which is warp number 0) I have tried putting in multiple warp tiles to land on and changing the last 0x to 0x1 in case the warp was the problem. How can i fix this? Thanks

Have you added the last '0x0 0x0'? I think the warp command needs 5 variables to function, so you would need:

Code:

warp 0x1 0x0 0x0 0x0 0x0

The last two variables are for warping to a position on the map if needed. If you fill in 0xFF as the warp number you can use the last two variables as coordinates of where you want to warp to on the map. But seeing as you only want to warp to warp number 0, just use the code above.

Thanks Lyzo. I could not get it to warp to 'warp 0' but i just used the coordinates of the map. When i tried to warp to a specific warp it just ignored this and went to the 'default warp tile'. Thanks a lot as i managed to solve the problem the other way

I've added the warp (from the previous post to my script) but i was not aware of another problem...This is my script:

#org @oi
= Oi, you! Who are you? What are you\ndoing here? Oh, I see... You are\lthe kid... Follow me...

#org @now
= NOW!

#org @haiya
= I don't know why you bothered to\nget yourslef into this, did\lProfessor WOOD really think you\lcould stop me in my plans to\lharness the ultimate power and take\lover the world? How silly of him...\lYou are going to regret getting\linvolved in all of this... HAIYAAA!!!

#org @mark
#raw 0x56 0xFE

#org @move
#raw 0x00 0x08 0x02 0x0A 0x0A 0xFE

#org @move2
#raw 0x03 0x0B 0x0B 0x09 0xFE

#org @moveplayer
#raw 0x07 0x07 0x01 0x05 0xFE

However, after the script i get loads of random symbols across a text-box, i click 'a' and they reappear again... I get stuck as i can't get them off the screen. I have tried shortening the script (by testing different parts to find the solution) but have not found the answer. I have even taken the warp away completely. Can anyone help?

Hmm but if I understand correctly, XSE has to be used in conjuct with Advance Map, right? For actually inserting the text. But with A-Map I don't think you can edit anything other than the dialogue. What would you suggest I do for editing for example the text in the battle screen, as well as menu text, map text etc?

You can just replace the dialogue w/ A-Text, or even re-point it. I think A-Text gives you the option to re-point it automatically, but I've never used it. But you could try it.

Otherwise, you would have to re-point it yourself using a hex editor. If you did that, you could locate the offset of the text by using A-Text, then search for the reversed pointer in a Hex editor (if the offset was 654321 for instance, you would need to search for 21 43 65 08 in a hex editor - 08 always gets added to the end of the pointer). If you find that data in hex, you can just replace it w/ the offset to your new dialogue that you want displayed. But using A-Text to re-point would be a lot easier, I'm just not sure how reliable it is.

Help

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.