Script Help Thread (DO NOT REQUEST SCRIPTS) Page 339

Started by HackMew December 20th, 2008 5:10 AM
  • 625717 views
  • 9682 replies

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Im using XSE version 1.1.1
I just compiled and tested the script you sent. It works fine. Make sure the Person EVENT is set to 1 for the character you want to move, not the Person ID or No.

Paired with Simba

GoGoJJTech

(☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)

Age 24
Female
Earth
Seen December 9th, 2016
Posted December 5th, 2016
2,475 posts
10.5 Years
Oh, my bad. I forgot :(
I have my Waitmovement usually set to the person.
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
Romhack.me Profile - Pokecommunity Profile - Youtube Channel

Support me at my site!
Pokémon Platinum Red and Blue

destinedjagold

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

Age 32
Male
Seen 3 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
Waitmovement 0x0 waits for all sprites to finish moving, whereas any other number is particular to the event. You can't have a person event 0. That creates issues if you do.
From my experience, waitmovement 0x0 waits for the last person event during the applymovement to finish and then the script continues.

#org @start
...
applymovement 0x1 @m1
applymovement 0x2 @m2
applymovement 0x3 @m3
waitmovement 0x0
...
end

#org @m1
#raw 0x08 0x08 0x08 0x08 0x08 0x01 0xFE

#org @m2
#raw 0x08 0x08 0x01 0xFE

#org @m3
#raw 0x01 0xFE
The script continues after person event number 3 is done moving, even though person events 1 and 2 aren't done moving yet.
But that's from my experience on hacking Ruby for so many years. No idea about FireRed though.


I haven't edited any bulbasaur sprite but I have changed some other images. I hope I haven't corrupted anything.. :S

EDIT: I can change the summary page if I'm fast enough. But after the cry and the animation, game freezes.. :(
EDIT2: This happens also in the original first Pokemon script in Pallet town so I have probably corrupted something. My backups have this same problem so I must copy all my work to a new fresh vanilla rom.. Luckily I haven't done so much content that it won't probably take so long. :(
You have probably overwrote data on a non-free space on your ROM by accident. =/

Okay, I have a simple applymovement msgbox script, and it freezes right after the applymovement part of my script, and the textbox never comes up. When I step on the green script block, the npc moves properly, stops, and the music just keeps playing and nothing else can be done. I am sure that i have the proper unknown and var numbers for my script, but it still isn't working.

Here is the code:
Spoiler:
#dynamic 0x802E51

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
playsong 0x13B 0x0
applymovement 0x01 @move1
waitmovement 0x0
msgbox @1 0x6
applymovement 0x01 @move2
waitmovement 0x0
hidesprite 0x01
fadesong 0x012C
setflag 0x200
release
end

#org @done
hidesprite 0x1
end

#org @move1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @move2
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @1
= [rival]: Hey [player] I was just\nabout to get you! You're about\lto be late to class! Hurry up and\lget to the classroom downstairs.\lRoom 101.\nSee ya there.
Try adding “nop1” right after your ‘playsong’ and ‘fadesong’ codes.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
From my experience, waitmovement 0x0 waits for the last person event during the applymovement to finish and then the script continues.

#org @start
...
applymovement 0x1 @m1
applymovement 0x2 @m2
applymovement 0x3 @m3
waitmovement 0x0
...
end

#org @m1
#raw 0x08 0x08 0x08 0x08 0x08 0x01 0xFE

#org @m2
#raw 0x08 0x08 0x01 0xFE

#org @m3
#raw 0x01 0xFE
The script continues after person event number 3 is done moving, even though person events 1 and 2 aren't done moving yet.
But that's from my experience on hacking Ruby for so many years. No idea about FireRed though.
I did experience this in Ruby. I always make sure my movements are the same length, just out of habit, using delays and such, so maybe this carries over into FireRed. However, the main point was that it doesn't wait for person event 0. So, yeah... Thanks, I need to look into that for other games.

Try adding “nop1” right after your ‘playsong’ and ‘fadesong’ codes.
It ran just fine when I compiled it, so I don't think it is the script itself, but it is worth a try.

This is what it looks like:

That is correct. hmmmm

Paired with Simba
Male
German
Seen January 23rd, 2016
Posted February 17th, 2015
7 posts
9.9 Years
Hello, I am new here.
I wanted to make a script for Pokemon Firered. I made an applymovement script and at the end of it I wanted that the person who talk to me disappears after it.

So here is the script

Spoiler:
#dynamic 0x800928

#org @start
msgbox @talk1 0x6
playsong 0x0131 0x0
applymovement 2 @walk1
waitmovement 2
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk2 0x6
applymovement 2 @walk3
waitmovement 2
hidesprite 2
setvar 0x6000 0x1
setflag 0x2000
fadesong 0x0131
release
end

#org @talk1
= Text......

#org @talk2
= Text....

#org @walk1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x01
#raw 0xFE

#org @walk2
#raw 0x62
#raw 0xFE

#org @walk3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE


So the script works fine everytime, but the problem is that you can't see the sprite of the person sometimes. Also after the script sometimes the person is there again and sometimes not. It isn't regulary. I have this problem with all sprites which I want to hide.
Hope you understand my problem and someone can fix it.
it's not about how hard you hit it's about how hard you can get hit!

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Hello, I am new here.
I wanted to make a script for Pokemon Firered. I made an applymovement script and at the end of it I wanted that the person who talk to me disappears after it.

So here is the script

Spoiler:
#dynamic 0x800928

#org @start
msgbox @talk1 0x6
playsong 0x0131 0x0
applymovement 2 @walk1
waitmovement 2
applymovement 0xFF @walk2
waitmovement 0xFF
msgbox @talk2 0x6
applymovement 2 @walk3
waitmovement 2
hidesprite 2
setvar 0x6000 0x1
setflag 0x2000
fadesong 0x0131
release
end

#org @talk1
= Text......

#org @talk2
= Text....

#org @walk1
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x01
#raw 0xFE

#org @walk2
#raw 0x62
#raw 0xFE

#org @walk3
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE


So the script works fine everytime, but the problem is that you can't see the sprite of the person sometimes. Also after the script sometimes the person is there again and sometimes not. It isn't regulary. I have this problem with all sprites which I want to hide.
Hope you understand my problem and someone can fix it.
Read this: http://www.pokecommunity.com/showthread.php?t=302347

Paired with Simba

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
So you have to use the "safe flags" between 200 and 2FF?!
I think it works now, thanks a lot!
mhmm, your script used a flag that being constantly changed by the RAM, so of course it wouldn't work.

Paired with Simba
Male
Seen 2 Weeks Ago
Posted December 22nd, 2022
498 posts
10.2 Years
I have a legendary event with Mew (that I've posted here before) which works as intended except for a small detail: whenever I catch or defeat it and return to the game he's still there until a fadescreen happens at wich point he's removed from the map. Is there a way to make it gone as soon as I defeat/catch it like every other legendary?

Here's the script:

Spoiler:
'---------------
#org 0x7404A7
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x8740523
special 0x188
lock
faceplayer
checksound
cry 0x97 0x2
msgbox 0x8740562 MSG_FACE '"Mew!"
waitcry
pause 0x14
playsong 0x156 0x0
waitkeypress
setflag 0x2FF
setwildbattle 0x97 0x3 0x0
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x7
if 0x1 goto 0x8740526
compare LASTRESULT 0x1
if 0x1 goto 0x8740530
compare LASTRESULT 0x4
if 0x1 goto 0x8740530
setflag 0x201
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8740569 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end

'---------------
#org 0x740523
release
end

'---------------
#org 0x740526
setflag 0x201
goto 0x874053C

'---------------
#org 0x740530
setvar 0x8004 0x97
goto 0x8740549

'---------------
#org 0x74053C
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
release
end

'---------------
#org 0x740549
fadescreen 0x1
setflag 0x2FF
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x8740569 MSG_KEEPOPEN '"The [buffer1] flew away!"
release
end


'---------
' Strings
'---------
#org 0x740562
= Mew!

#org 0x740569
= The [buffer1] flew away!
Could anyone help? I've tried the suggestion made above, but it still didn't work.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Could anyone help? I've tried the suggestion made above, but it still didn't work.
Set the flags that make him disapear before the battle. This might work.

Paired with Simba

Golden Warrior

Pokemon Professor

Age 25
Male
Hoenn
Seen August 30th, 2014
Posted May 30th, 2014
375 posts
12 Years
Hm... This is interesting. Alright, so I'm using Pokemon Ruby. Upon scripting giving the player a Pokedex and a Charmander, the Pokedex doesn't work properly. It is completely blank and you can't move around in it. (like this: http://gyazo.com/674339abac7cd82e1ebdc06d09d5de17)

I know the cause is that the national Pokedex doesn't activate until you trade with FR/LG/E but I am here because I want to know if there is a way around this. Is there a code (special 0x?? or something) that can give the player the national Pokedex to begin with?

Thank you in advance.

EDIT:

Another question while I'm here.

Special 0x140
showpokepic 0x4 0x0A 0x03
msgbox @1 0x6

The script part above gives me this: http://gyazo.com/4ec99cca82aa95ec5fbdf43a3467ad95

Any way around that?
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Hm... This is interesting. Alright, so I'm using Pokemon Ruby. Upon scripting giving the player a Pokedex and a Charmander, the Pokedex doesn't work properly. It is completely blank and you can't move around in it. (like this: http://gyazo.com/674339abac7cd82e1ebdc06d09d5de17)

I know the cause is that the national Pokedex doesn't activate until you trade with FR/LG/E but I am here because I want to know if there is a way around this. Is there a code (special 0x?? or something) that can give the player the national Pokedex to begin with?

Thank you in advance.

EDIT:

Another question while I'm here.

Special 0x140
showpokepic 0x4 0x0A 0x03
msgbox @1 0x6

The script part above gives me this: http://gyazo.com/4ec99cca82aa95ec5fbdf43a3467ad95

Any way around that?
1)Ummmm, it is a special in FR, so I would assume it is the same in Ruby. Why not look at the script in which he gives it to you? I think it is the one where he talks to you after you beat the elite four, not when you trade with FRLG. In FR it is special 0x16F. Give that a try, and if it doesn't work, try and find the script in Ruby.


2)Nobody knows what special 0x140 does, so why are you using it? That is probably the issue.
Edit: Forgot you were on Ruby, we don't have a specials list for Ruby.

Paired with Simba

Golden Warrior

Pokemon Professor

Age 25
Male
Hoenn
Seen August 30th, 2014
Posted May 30th, 2014
375 posts
12 Years
1)Ummmm, it is a special in FR, so I would assume it is the same in Ruby. Why not look at the script in which he gives it to you? I think it is the one where he talks to you after you beat the elite four, not when you trade with FRLG. In FR it is special 0x16F. Give that a try, and if it doesn't work, try and find the script in Ruby.


2)Nobody knows what special 0x140 does, so why are you using it? That is probably the issue.
Edit: Forgot you were on Ruby, we don't have a specials list for Ruby.
1) That's the thing. There is no scene where he gives it too you. It auto-activates by trading with FR/LG/E. But, I'll give that special a try, thanks.

2) Actually, people on the Whack-a-hack forums found out that it sets the palette correctly for the Pokemon before it displays it with the showpokepic code. (Oh, wait, just saw your edit. Oops. >_>)

When I use that special, it corrects the palette, but places missing no. there infront of the Charmander. If I DON'T have that code, the palette is inverted and messes up a lot, so I have no idea what to do here.

(I COULD make missing no. transparent in UNZL, but I don't want to do that as it would ruin the Pokedex more.)
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.

destinedjagold

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

Age 32
Male
Seen 3 Days Ago
Posted March 24th, 2023
8,579 posts
16 Years
Hm... This is interesting. Alright, so I'm using Pokemon Ruby. Upon scripting giving the player a Pokedex and a Charmander, the Pokedex doesn't work properly. It is completely blank and you can't move around in it. (like this: http://gyazo.com/674339abac7cd82e1ebdc06d09d5de17)

I know the cause is that the national Pokedex doesn't activate until you trade with FR/LG/E but I am here because I want to know if there is a way around this. Is there a code (special 0x?? or something) that can give the player the national Pokedex to begin with?

Thank you in advance.

EDIT:

Another question while I'm here.

Special 0x140
showpokepic 0x4 0x0A 0x03
msgbox @1 0x6

The script part above gives me this: http://gyazo.com/4ec99cca82aa95ec5fbdf43a3467ad95

Any way around that?
special 0x140 corrects the pallete before the box shows up?
That's new to me, and I'm thankful for that info. :D
I'm going to try that out soon.

Anyway, for your questions...
Have this code (edit)beforeafter the flag of the PokeDex...
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A
so you can have the National Dex.

As for your second question, maybe it's connected on the fact that you don't have the national dex yet? not entirely sure...

Golden Warrior

Pokemon Professor

Age 25
Male
Hoenn
Seen August 30th, 2014
Posted May 30th, 2014
375 posts
12 Years
special 0x140 corrects the pallete before the box shows up?
That's new to me, and I'm thankful for that info. :D
Well, yes, but it only seemed to work for one person correctly. The others had to making missing no. transparent in UNZL like I might end up doing. >_>

Thanks for the Pokedex codes!
Current Pokemon re-play through: XD: Gale of Darkness

3DS/Pokemon Y FC: 5300 - 9087 - 1138
I'll be up to battle or trade, I'll also always be up to multibattle. PM me if you add me here, give me a reason that you're adding me, and I'll be sure to add you back!

Friend Safari: Bug Type
Pokemon: Paras, Beautifly, and Pinsir.

GoGoJJTech

(☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)

Age 24
Female
Earth
Seen December 9th, 2016
Posted December 5th, 2016
2,475 posts
10.5 Years
Setflag 0x(person ID number [You find this in AM 1.92/1.95])
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
Romhack.me Profile - Pokecommunity Profile - Youtube Channel

Support me at my site!
Pokémon Platinum Red and Blue
Male
Seen July 16th, 2013
Posted July 16th, 2013
1 posts
9.8 Years
Hey im new in the community and the concept of pokemon hacking but what i want to know is this. I downloaded pocket script and PkmnADV and installed them. Its was all done correctly with no problems i wrote down my script and saved it as an .rbc file. When i right-click the file it does not show me the "compile script" option.

I have reinstalled the programs, i have rewritten the script, I have resaved the file as a .rbc but no luck. Can anyone please tell me what im missing?

All answers are appreciated!

GoGoJJTech

(☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)

Age 24
Female
Earth
Seen December 9th, 2016
Posted December 5th, 2016
2,475 posts
10.5 Years
Use xse since pokecript is dumb and old. Xse is bug free I think.
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
Romhack.me Profile - Pokecommunity Profile - Youtube Channel

Support me at my site!
Pokémon Platinum Red and Blue
Seen January 15th, 2020
Posted November 2nd, 2014
6 posts
10 Years
Okay. Sorry, I didn't find if anyone had this problem because there's like, 340 pages and I can't go through all of them :/ Anyways, here's my 2 problems. or 3. How much I come up with this single post. :D Happy reading! EEEEEDIT! The guy with the ampharos pic solved my stuff. Thanks alot :D 1 question out of the way. Edit numero dos. So I got XSE and I tried making stuff with it like for starters, a green script box event. :< Though it didn't work out.

Script Editor: eXtreme Script Editor
ROM: FireRed

Okay so I changed this post. I got XSE and I'm trying to make a person walk up to the player, talk, give, blah blah BLAH, but for some reason it always freezes the game. Could anybody help?

Spoiler:
#dynamic 0x740000
#org @check
checkflag 0x1200
if 0x1 goto @encounter
end

#org @encounter
lock
faceplayer
applymovement 0x9 @walk1
waitmovement 0x0
applymovement 0x9 @notice
waitmovement 0x0
applymovement 0x9 @come
waitmovement 0x0
msgbox @give 0x6
givepokemon 0xD1 0x5 0x0 0x0 0x0 0x0
setflag 0x1197
message @get-msg
fanfare 0x101
waitfanfare
msgbox @talk1 0x6
trainerbattle 0x0 0x002 0x0 @intro @defeat
msgbox @afterwards2 0x6
applymovement 0x9 @leave
waitmovement 0x0
hidesprite 0x9
setflag 0x9
setflag 0x1201
setvar 0x4011 0x1
release
end

#org @intro
= Battle me!

#org @walk1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11

#org @notice
#raw 0x3
#raw 0x62


#org @come
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13

#org @give
= Hmph. Here, take this.

#org @get-msg
= You got a \v\h02!

#org @talk1
= My father gave that pokemon\nto me, but it's too weak.\pHow about I prove you how weak\nit is.

#org @defeat
= Wha... what? How did you\nbeat me?

#org @leave
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11

#org @afterwards2
= ... ...\pHmph. You got lucky, that's all.\pMy name's Cyan. I'll become\nthe worlds greatest trainer.


So YAAAHH. How do I make these work? Also, if somebody could, PLEEAASEE, how do I keep the person disappeared after the script is over and after a person moves, how does he stay on that spot and not appear on the original spot if he goes off-screen! This is driving me CRAAZYYYY-- no not really. I'll be waiting for your response. Dhank u.

I may be an early scripter but atleast I'm trying. Now could somebody PLEASE help D: Oh btw, @Karatekid552, thanks, it helped me alot on the sprite thingy :D 85 points out of 100.

-Memento

EDIT: Allright, THEERE we go! You go advanced and do that blue ABC button. Probably. :D GO ME! *epic overload* *explodes*

Avara

She/Her
Seen 6 Days Ago
Posted April 10th, 2022
1,305 posts
11.5 Years
Hi again guys. After screwing up the first rom I tried to hack I've started fresh and used JPAN's Clearing Patch on a FR rom just to give me more space in my rom data. Unfortunately I forgot to think about things like pokecentres and PCs. I MIGHT be able to work out a pokemon centre script by myself, but does anyone know what sort of script I would use for the PC?

karatekid552

What happens if I push it?....

Male
Do you really want to know? Really?
Seen January 12th, 2015
Posted December 14th, 2014
1,771 posts
10.5 Years
Hi again guys. After screwing up the first rom I tried to hack I've started fresh and used JPAN's Clearing Patch on a FR rom just to give me more space in my rom data. Unfortunately I forgot to think about things like pokecentres and PCs. I MIGHT be able to work out a pokemon centre script by myself, but does anyone know what sort of script I would use for the PC?
The PCs script is not deleted.... And the PokeCenter script, why not just recompile it into your rom from a clean one?

Actually, wait, don't do that. First, go to the offsets that the script uses in a hex editor and make sure they are all full of FFs. If they aren't, come back. If they are, just recompile it.

Also, the header scripts you will have to rewrite, since JPAN rewrote how the sethealingplace command works.

Paired with Simba

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Use xse since pokecript is dumb and old. Xse is bug free I think.
Wouldn't say "bug-free" as you can bug the ROM even by using XSE. :D
But yeah, XSE is much better and more working alternative.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List