Sierra's MEGA-HUGE XSE Scripting Tutorial Page 46

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Hey does anyone know if there is a scripting limit per map? I have roughly 16 scripts on my 'Route 1' in my game and when I add one more the game freezes whenI walk into Route 1. Anyone know why?
As far as I know, there isn't. What kind of script did you add last?
Male
Seen July 14th, 2020
Posted September 14th, 2015
215 posts
10.7 Years
As far as I know, there isn't. What kind of script did you add last?
Well here is my issue.

So I have a giant map with roughly 25 OWs (all trainers) and so I've been adding trainerbattle offsets to them. Let's just use Route 1 (1.1) and Route 1 (1.2) as examples. Most of the scripts (I would say four of them) are in Route 1 (1.1) and the other 12 are in Route 1 (1.2). With the 16 scripts, the game works perfectly fine. Then I tried adding script 17 to Route 1 (1.2) and now anytime I try walking into Route 1 (1.1) or Route 1 (1.2) the game freezes. I triple checked the script and it's exactly like the others. I'm not writing over any used space. Any ideas?
Check out my Pokemon Rom! Click the Image Below!

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
Well here is my issue.

So I have a giant map with roughly 25 OWs (all trainers) and so I've been adding trainerbattle offsets to them. Let's just use Route 1 (1.1) and Route 1 (1.2) as examples. Most of the scripts (I would say four of them) are in Route 1 (1.1) and the other 12 are in Route 1 (1.2). With the 16 scripts, the game works perfectly fine. Then I tried adding script 17 to Route 1 (1.2) and now anytime I try walking into Route 1 (1.1) or Route 1 (1.2) the game freezes. I triple checked the script and it's exactly like the others. I'm not writing over any used space. Any ideas?
So thats 17 OWs yes? Yeah the limit per map is 16 iirc. It might be your issue, try the same script on 1.1 rather than 1.2.

chrunch

Male
Seen December 10th, 2021
Posted February 24th, 2021
1,343 posts
13.6 Years
So thats 17 OWs yes? Yeah the limit per map is 16 iirc. It might be your issue, try the same script on 1.1 rather than 1.2.
I don't believe there's any (small) limit to OWs on a map. There is a limit to how many you can have on screen at the same time, but I have multiple maps with 16+ OWs and no problems with them.

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
So.. i just tried the Givepokemon command, i'm using Pokemon Ruby and i have 3 problems:

1) What's the exact command to quote the Player's Name?
I silly thought that "[PLAYER's Name]" would work, it don't xD..

2) How can i make stop the NPC after it gave me the Pokemon one time?
After received the Pokemon (Bulbasaur), she told me the first msgbox again, asking me if i wanted it, basically, it repeated from the beginning after ending once D:

3) How can i fix in the nickname screen, the Pokemon's icon?
In the Command i've specified 0x1 0x5 0xC5 0x0 0x0 0x0 (Bulbasaur, Lv5 with a Lucky Egg) but in the nickname screen the icon was Combusken's one D: ...

Thanks in advance, greetings from Uruguay <3

EDIT:
Oh, yeah, here's the script, just in case:
#dynamic 0x8004C8

#org @inicio
checkflag 0x828
if 0x1 goto @entregado
msgbox @give1 0x5
compare LASTRESULT 0x1
if 0x1 goto @tomado
msgbox @give2 0x6
release
end

#org @tomado
givepokemon 0x1 0x5 0xC5 0x0 0x0 0x0
fanfare 0x13E
msgbox @give3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @give4 0x5
compare LASTRESULT 0x1
if 0x1 call @nombre
msgbox @give5 0x6
release
end

#org @nombre
call 0X1A74EB
return

#org @entregado
msgbox @give6 0x6
release
end

#org @give1
= Hola, soy Blue, vine con un amigo\ndesde la Region Kanto y me temo\lque en el viaje se enfermó este\lpequeño BULBASAUR, está claro que\lno soy su entrenadora ideal, asi\lque.. ¿Podrias llevarle a un\lCentro Pokemon y cuidarle de ahora\len adelante?

#org @give2
= No te preocupes, lo entiendo,\nquiza sea demasiada\lresponsabilidad para un entrenador\lcomo tu, estoy segura de que\lalguien mas lo cuidará.

#org @give3
= ¡[PLAYER's name] ha recibido un\nBULBASAUR!

#org @give4
= ¿Te gustaria darle un apodo a tu\nBULBASAUR?

#org @give5
= Espero que tu y BULBASAUR sean\nmuy buenos amigos de ahora en\ladelante.

#org @give6
= ¿Como han estado tu y BULBASAUR?\nSeguro que ya han tenido un monton\lde aventuras.

Splash

But nothing happened.

Male
Just use an Old Rod
Seen 6 Days Ago
Posted September 9th, 2020
658 posts
13.6 Years
So.. i just tried the Givepokemon command, i'm using Pokemon Ruby and i have 3 problems:

1) What's the exact command to quote the Player's Name?
I silly thought that "[PLAYER's Name]" would work, it don't xD..


It's [player] and [rival] for the you guessed it.. the rival :)
2) How can i make stop the NPC after it gave me the Pokemon one time?
After received the Pokemon (Bulbasaur), she told me the first msgbox again, asking me if i wanted it, basically, it repeated from the beginning after ending once D:

Use flags for this one.. Use only safe ones though..

3) How can i fix in the nickname screen, the Pokemon's icon?
In the Command i've specified 0x1 0x5 0xC5 0x0 0x0 0x0 (Bulbasaur, Lv5 with a Lucky Egg) but in the nickname screen the icon was Combusken's one D: ...

Thanks in advance, greetings from Uruguay <3

EDIT:
Oh, yeah, here's the script, just in case:
#dynamic 0x8004C8

#org @inicio
checkflag 0x828
if 0x1 goto @entregado
msgbox @give1 0x5
compare LASTRESULT 0x1
if 0x1 goto @tomado
msgbox @give2 0x6
release
end

#org @tomado
givepokemon 0x1 0x5 0xC5 0x0 0x0 0x0
fanfare 0x13E
msgbox @give3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @give4 0x5
compare LASTRESULT 0x1
if 0x1 call @nombre
msgbox @give5 0x6
release
end

#org @nombre
call 0X1A74EB
return

#org @entregado
msgbox @give6 0x6
release
end

#org @give1
= Hola, soy Blue, vine con un amigo\ndesde la Region Kanto y me temo\lque en el viaje se enfermó este\lpequeño BULBASAUR, está claro que\lno soy su entrenadora ideal, asi\lque.. ¿Podrias llevarle a un\lCentro Pokemon y cuidarle de ahora\len adelante?

#org @give2
= No te preocupes, lo entiendo,\nquiza sea demasiada\lresponsabilidad para un entrenador\lcomo tu, estoy segura de que\lalguien mas lo cuidará.

#org @give3
= ¡[PLAYER's name] ha recibido un\nBULBASAUR!

#org @give4
= ¿Te gustaria darle un apodo a tu\nBULBASAUR?

#org @give5
= Espero que tu y BULBASAUR sean\nmuy buenos amigos de ahora en\ladelante.

#org @give6
= ¿Como han estado tu y BULBASAUR?\nSeguro que ya han tenido un monton\lde aventuras.
Dunno about this one cause i cant understand spanish XD
But I guess the problem comes from you calling a pointer in @nombre
It's probably better to make your own nicknaming script.
༼ つ ◕_◕ ༽つ PRAISE Splash ༼ つ ◕_◕ ༽つ
|VM|PM
|

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
Use flags for this one.. Use only safe ones though..
Uff.. i've fixed it by reading the script and using the if 0x1 command <3
I've modified this:
#org @tomado
givepokemon 0x1 0x5 0xC5 0x0 0x0 0x0
fanfare 0x13E
msgbox @give3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @give4 0x5
compare LASTRESULT 0x1
if 0x1 call @nombre
msgbox @give5 0x6
checkflag 0x828
if 0x0 goto @give6
release
end
Uff, thank you so much <3
Now, the nickname thing is irrelevant, it doesn't matter <3

Lone_Darkrai

Darkrai Unleashed !

Male
India
Seen June 9th, 2016
Posted May 29th, 2016
24 posts
7.7 Years
Firstly WoW Awesome Tutorial ! :D
Second How Can I Make the Hack Start With Just a Single Gender ?
I Mean Removal of Choice .
This signature has been disabled.
Exceeds the 350px height limit.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.

Splash

But nothing happened.

Male
Just use an Old Rod
Seen 6 Days Ago
Posted September 9th, 2020
658 posts
13.6 Years
Firstly WoW Awesome Tutorial ! :D
Second How Can I Make the Hack Start With Just a Single Gender ?
I Mean Removal of Choice .
DiegoisAwesome has a nifty editor named GBA IntroEd that can make that happen along with a few other things.. You should really check it out.
༼ つ ◕_◕ ༽つ PRAISE Splash ༼ つ ◕_◕ ༽つ
|VM|PM
|

Lone_Darkrai

Darkrai Unleashed !

Male
India
Seen June 9th, 2016
Posted May 29th, 2016
24 posts
7.7 Years
Thanks !
I Had it in my PC But never Actually Tried it :p
This signature has been disabled.
Exceeds the 350px height limit.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
DiegoisAwesome has a nifty editor named GBA IntroEd that can make that happen along with a few other things.. You should really check it out.
Thanks !
I Had it in my PC But never Actually Tried it :p
Actually I just wanted to clarify, my tool is called GBA Intro Manager, IntroEd is someone else's (ancient) tool.
Restarted and revamped.

Public alpha out now!

destinedjagold

You can contact me in PC's discord server...

Age 32
Male
Seen 2 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
I've found an error on the Special: 0x9C is "Choose your Pokèmon" (the one with Birch's bag) while "Wally capture" is actually 0x9D!

Anyway I've got a question: is there a way to enable the National Dex in Pokèmon Ruby?
Add these lines of code after setting the Pokédex flag in your script.
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A

Male
Seen February 5th, 2021
Posted November 5th, 2018
87 posts
7.7 Years
Add these lines of code after setting the Pokédex flag in your script.
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
Oh I'm an idiot, I've already done it but I haven't changed the Dex in game x) Thanks anyway!

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
And what about Wildbattles against a Legendary Pokémon, I can't make them to work...
And what's the exact problem?
If you don't explain yourself a little, no one ever would be able to help you at all.

GamerChief222

Trying to create a small rom hack

Male
Lisboa, Portugal
Seen August 31st, 2019
Posted February 23rd, 2017
26 posts
7.7 Years
:D my problem is I made a Wildbattle Script for Moltres in Pokémon Emerald, and I checked a tutorial on YouTube on how to make a Wildbattle Script, I followed everty instruction, and in the End the script worked perfectly, except after defeating it, or run, or capture it, if you gave a step to any direction he would re-appear. So I cahnged the flag to 0x1204 and it crashed the game. Finally, I saved the Moltres script from LeafGreen and it doesnt work. You talk to him, he says Gyaoo! and then there's the fadescreen and he's gone or in rare occurances, you control Moltres, which is BS, since he is in a dark cave and your OW sprite (Brandon/May) will be stuck and unmovable I have the same problem with a Youngster at the 3rd Gym, I have made a thread for it, if anyone can help, reply to it. Thanks
"I love sleep. My life has the tendency to fall apart when I'm awake, you know?
-Ernest Hemingway

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
:D my problem is I made a Wildbattle Script for Moltres in Pokémon Emerald, and I checked a tutorial on YouTube on how to make a Wildbattle Script, I followed everty instruction, and in the End the script worked perfectly, except after defeating it, or run, or capture it, if you gave a step to any direction he would re-appear. So I cahnged the flag to 0x1204 and it crashed the game. Finally, I saved the Moltres script from LeafGreen and it doesnt work. You talk to him, he says Gyaoo! and then there's the fadescreen and he's gone or in rare occurances, you control Moltres, which is BS, since he is in a dark cave and your OW sprite (Brandon/May) will be stuck and unmovable I have the same problem with a Youngster at the 3rd Gym, I have made a thread for it, if anyone can help, reply to it. Thanks
Well, obviously it wouldn't work, LeafGreen scripts probably works in a different way than Emerald scripts does..
For the problem with the first script, did you put the Flag you used in the script in the Moltres Overworld Person ID at A-Map?
For example, if you ended the script with a "setflag 0x1000", then you need to put "1000" in the Person ID of Moltres Overworld, if i'm not wrong.

Also, if you used a hidesprite, you need to set its value to the Person Event Number which also appears in A-Map.
For example, let's say that the Person Event Number is "21", then you use a "hidesprite 0x15"
(Because "15" is "21" in Hex)

GamerChief222

Trying to create a small rom hack

Male
Lisboa, Portugal
Seen August 31st, 2019
Posted February 23rd, 2017
26 posts
7.7 Years
Well, obviously it wouldn't work, LeafGreen scripts probably works in a different way than Emerald scripts does..
For the problem with the first script, did you put the Flag you used in the script in the Moltres Overworld Person ID at A-Map?
For example, if you ended the script with a "setflag 0x1000", then you need to put "1000" in the Person ID of Moltres Overworld, if i'm not wrong.

Also, if you used a hidesprite, you need to set its value to the Person Event Number which also appears in A-Map.
For example, let's say that the Person Event Number is "21", then you use a "hidesprite 0x15"
(Because "15" is "21" in Hex)
Ah, forgot the Hidesprite thingy, thanks Lunos, I also have another problem this time with FR and a hack tool, and I can't find the right thread to post it.
"I love sleep. My life has the tendency to fall apart when I'm awake, you know?
-Ernest Hemingway

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
Ah, forgot the Hidesprite thingy, thanks Lunos, I also have another problem this time with FR and a hack tool, and I can't find the right thread to post it.
What is the name of that ool?
If it or its creator doesn't have a thread, you can create one requesting for help in the Beginner's Lounge Zone.

GamerChief222

Trying to create a small rom hack

Male
Lisboa, Portugal
Seen August 31st, 2019
Posted February 23rd, 2017
26 posts
7.7 Years
It's the Advance Pokemon Sprite Editor, the thread for it it's closed. The Moltres Script worked, except after I captured it, I was unable to move and the flash circle stuck in a wall. I entered the bag menu, and I could move again, but the flash circle was buggy and it didn't focused on me. After I left and re-entered, it was solved. Help?
"I love sleep. My life has the tendency to fall apart when I'm awake, you know?
-Ernest Hemingway

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
It's the Advance Pokemon Sprite Editor, the thread for it it's closed. The Moltres Script worked, except after I captured it, I was unable to move and the flash circle stuck in a wall. I entered the bag menu, and I could move again, but the flash circle was buggy and it didn't focused on me. After I left and re-entered, it was solved. Help?
Here you have the one i did, it didn't shown any single problem.
#dynamic 0x0800000

#org @inicio
lock
faceplayer
msgbox @gyao 0x6
cry 0x92 0x0
wildbattle 0x92 0x46 0x0
fadescreen 0x1
hidesprite 0xNumberOfTheMoltresPersonEventNumberInHex
fadescreen 0x0
setflag 0xUnusedFlagI'veUsedThe200
release
end

#org @gyao 
= ¡Gyyaaooooh!
And what problem do you have with Wichu's Advanced Series?
Is one of the most easier tools to use xDDD

GamerChief222

Trying to create a small rom hack

Male
Lisboa, Portugal
Seen August 31st, 2019
Posted February 23rd, 2017
26 posts
7.7 Years
And what problem do you have with Wichu's Advanced Series?
Is one of the most easier tools to use xDDD
1. Are you portuguese or brazilian, because you wrote inicio, or I am assuming you are.
2. Wichu's Advance Series is one of the best tools I've used, the problem is I load FireRed and it says data is not LZ77 compressed and all Pokémon are bunch of symbols ad weird texting.
"I love sleep. My life has the tendency to fall apart when I'm awake, you know?
-Ernest Hemingway

Lunos

Random Uruguayan User

Male
Montevideo (Uruguay)
Seen 4 Hours Ago
Posted 2 Days Ago
2,999 posts
14.6 Years
1. Are you portuguese or brazilian, because you wrote inicio, or I am assuming you are.
2. Wichu's Advance Series is one of the best tools I've used, the problem is I load FireRed and it says data is not LZ77 compressed and all Pokémon are bunch of symbols ad weird texting.
1) Nope, Uruguayan.
2) I've found something in a French forum.
Since i don't know how to speak French i've tried to interpret it as far as i was possible to..
Apparently, it has to do something with the Offset of the Sprite.


Sorry, i can't help you too much with this.. u_u
The best you could do is create a new thread in Beginner's Lounge exposing the problem and waiting for answers.