• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
108
Posts
13
Years
  • Seen Mar 31, 2024
Why is it when I click to compile a RBC file and it startts to compile I get a "Buf Rite" error saying Vlad Morgandorfer. and it won't let me compile.
 
79
Posts
13
Years
  • Seen Aug 27, 2014
Script Disaster

Im trying to make a script where the professor in my game walks three steps down looks right and runs right tells me that im in a jam and that i need to fight off ariados and then use the multi box script to have the player choose between the starters in my game here is the script that i tried but there are quite a few errors lurking in it

'-----------------------
#dynamic 0x71A3C0

#org @start
applymovement 0x03 @move
waitmovement 0x0
lock
faceplayer
msgbox @speak
boxset 0x6
multichoice 0xE 0x0 0x1E 0x0
copyvar 0x800D 0x8000
compare 0x8000 0x0
if 0x1 goto @Houndour
compare 0x8000
if 0x1 goto @Ralts
compare 0x8000
if 0x1 goto @Heracross
compare 0x8000
setflag 0x828
release
end

#org @move
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x2
#raw 0x62
#raw 0x20
#raw 0x20
#raw 0xFE

#org @speak
= What are you boys doing all the way out here?


#org @Houdour
showpokepic 0xE4 0x10 0x03
msgbox @ask
boxset 0x5
if 0x1 goto @give
hidepokepic
fanfare 0x13E
msgbox @given
boxset 0x6
waitfanfare

#org @Ralts
showpokepic 0x188 0x10 0x03
msgbox @ask1
boxset 0x5
if 0x1 goto @give1
hidepokepic
fanfare 0x13E
msgbox @given1
boxset 0x6
waitfanfare

#org @Heracross
showpokepic 0xD6 0x10 0x03
msgbox @ask2
boxset 0x5
if 0x1 goto @give2
hidepokepic
fanfare 0x13E
msgbox @given2
boxset 0x6
waitfanfare

#org @ask
= Would you like Houndour?
#org @ask1
= Would you like Ralts?
#org @ask2
= Would you like Heracross?

#org @give
givepokemon 0xE4 0x5 0x0 0x0 0x0 0x0

#org @give1
givepokemon 0x188 0x5 0x0 0x0 0x0 0x0

#org @give2
givepokemon 0xD6 0x5 0x0 0x0 0x0 0x0

#org @given
= \v\h01 recieved Houdour!

#org @given1
= \v\h01 recieved Ralts!

#org @given2
= \v\h01 recieved Heracross!
 

DrFuji

[I]Heiki Hecchara‌‌[/I]
1,691
Posts
14
Years
Im trying to make a script where the professor in my game walks three steps down looks right and runs right tells me that im in a jam and that i need to fight off ariados and then use the multi box script to have the player choose between the starters in my game here is the script that i tried but there are quite a few errors lurking in it

'-----------------------
#dynamic 0x71A3C0

#org @start
checkflag 0x828
if 0x1 goto @skip
lock
applymovement 0x03 @move
waitmovement 0x0
lock
faceplayer
msgbox @speak 0x6
boxset 0x6
goto @Continue


#org @Continue
msgbox @Talk 0x6
setflag 0x828
multichoice 0xE 0x0 0x1E 0x0
copyvar 0x800D 0x8000
compare 0x8000 0x0
if 0x1 goto @Houndour
compare 0x8000 0x1
if 0x1 goto @Ralts
compare 0x8000 0x2
if 0x1 goto @Heracross
goto @Continue
compare 0x8000
setflag 0x828
release
end

#org @skip
end

#org @move
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x2
#raw 0x62
#raw 0x20
#raw 0x20
#raw 0xFE

#org @speak
= What are you boys doing all the way out here?

#org @Houdour
showpokepic 0xE4 0x10 0x03
msgbox @ask 0x5
boxset 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0xE4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given 0x5
boxset 0x6
waitfanfare

#org @Ralts
showpokepic 0x188 0x10 0x03
msgbox @ask1 0x5
boxset 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0x188 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given1 0x6
boxset 0x6
waitfanfare

#org @Heracross
showpokepic 0xD6 0x10 0x03
msgbox @ask2 0x5
boxset 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0xD6 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given2 0x6
boxset 0x6
waitfanfare

#org @ask
= Would you like Houndour?
#org @ask1
= Would you like Ralts?
#org @ask2
= Would you like Heracross?

#org @give

#org @give1

#org @give2

#org @given
= \v\h01 recieved Houdour!

#org @given1
= \v\h01 recieved Ralts!

#org @given2
= \v\h01 recieved Heracross!

#org @Talk
= ???

Changes in red, deletions in yellow.

I had to assume that this script was made for XSE, as many of your commands are constructed for it yet you were using boxsets. I've had to restructure it more than I would have liked, because if the player clicks no when the Professor asks "Would you like X?", not only would they not recieve the Pokemon but the script would continue and remove their chance to get another.

The green part of the text is an addition that (While not necessary) I'd stongly advise adding. Make the professor ask something along the lines of "So, which Pokemon do you want?" so the player has some context as to why a multichoice box suddenly pops up in their face.

Also, consider starting from #dynamic 0x800000

Hopefully this all works out :D
 
79
Posts
13
Years
  • Seen Aug 27, 2014
Changes in red, deletions in yellow.

I had to assume that this script was made for XSE, as many of your commands are constructed for it yet you were using boxsets. I've had to restructure it more than I would have liked, because if the player clicks no when the Professor asks "Would you like X?", not only would they not recieve the Pokemon but the script would continue and remove their chance to get another.

The green part of the text is an addition that (While not necessary) I'd stongly advise adding. Make the professor ask something along the lines of "So, which Pokemon do you want?" so the player has some context as to why a multichoice box suddenly pops up in their face.

Also, consider starting from #dynamic 0x800000

Hopefully this all works out :D

i did that and now the script is not showing the text for what the professor is trying to say and also for the line "multichoice" it is asking me if i wast 4 different tms what bytes do i need to use for the three pokemon to show up in the multichoice box?

thank you guys for all of the help
 
108
Posts
13
Years
  • Seen Mar 31, 2024
Why is it when I have Advanced Map open and pick a trainer and open their script in xse, copy and paste their script to word pad so i can change what they say and then go through the process of burning it to the cd with the new offset, then paste it into the offset for that same person in advanced map, i get crazy numbers letters a symbols when i talk to them?
 

DeepKickSavior

is readin' up on his XSE :3
10
Posts
13
Years
  • Age 29
  • USA
  • Seen Feb 28, 2013
Hmm Long Time No See Pokescript but Im Pretty Sure Its 0x142

Don't Forget Closeonkeypress without that boxset 4 wont be closeable

This didn't work, when I put in HEX # 0x421, I got a ?????? Pokémon.

I prefer not to use XSE because all the tutorials I watched and learned with were for PoketScript, and XSE changes my scripts around so I have no idea what they are talking about TT-TT I guess I'll just learn to use XSE, but in the meantime, how would you put Sableye into a Give Pokémon script (for XSE)?
 

colcolstyles

Yours truly
1,588
Posts
15
Years
This didn't work, when I put in HEX # 0x421, I got a ?????? Pokémon.

I prefer not to use XSE because all the tutorials I watched and learned with were for PoketScript, and XSE changes my scripts around so I have no idea what they are talking about TT-TT I guess I'll just learn to use XSE, but in the meantime, how would you put Sableye into a Give Pokémon script (for XSE)?

0x421 (a number in hexadecimal) is equivalent to 1,057 in decimal (the numbering system that you're most familiar with). Seeing how there is no 1,057th Pokémon, the game gives you a ?????????? Pokémon. Learath2 said '0x142', not '0x421', and you should use what he told you to use.
 

pokeguy9000

Ghost Ralts
43
Posts
15
Years
Hi i'm using XSE and Advance Map and trying to script all the people in an art gallery scene. Ive never used XSE before but because it is good for editing scripts and can be opened on A-Map i am trying to learn.

Anyway this is the script
Spoiler:


and the problem is that whenever i talk to the sprite she faces me but nothing happens and i can just walk away, this only happens once and i have to double tap A again to get her to face me but there is still no text.

Thanks
 

metapod23

Hardened Trainer
673
Posts
15
Years
  • Seen Aug 18, 2016
Hi i'm using XSE and Advance Map and trying to script all the people in an art gallery scene. Ive never used XSE before but because it is good for editing scripts and can be opened on A-Map i am trying to learn.

Anyway this is the script
Spoiler:


and the problem is that whenever i talk to the sprite she faces me but nothing happens and i can just walk away, this only happens once and i have to double tap A again to get her to face me but there is still no text.

Thanks

My only suggestion is to use msgbox 0x2 (msg_face) instead and remove the faceplayer command. You can also try removing the lock and release commands - they don't seem to be necessary for simple dialogues.
 

Collen

I have returned.
71
Posts
14
Years
  • Seen Jan 1, 2015
I need help with my script.
Spoiler:

(yes, I haven't made the battle script yet.)
The problem is that once I compile it, it goes down to this:
Spoiler:

and it won't work. What do I do? I'm using XSE, by the way.
 

FANOFFIRESTARTERS!!!

Call me FOFS
40
Posts
15
Years
  • Seen Sep 11, 2021
Need help with my script Idea!
My idea is to have someone say something at random, yes I know how to do random numbers. But the difference is, a script tile would set the flag that corresponds with something the person would say, so that what the man says could be different each time you play, so if someone good at scripting is willing to help me please leave a VM.
 
79
Posts
13
Years
  • Seen Aug 27, 2014
This script is supposed to make the professors walk up to me notice me and my rival are getting attacked by some pokemon and then tell us quick take a starter we take a starter and then the script ends.

He walks up to me then when he is supposed to ask what starter we would like he instead asks me what tm i want then if i choose any of the four a picture of houdour shows up on the screena nd then it freezes. any help would be greatly appreciated

#dynamic 0x71A3C0

#org @start
checkflag 0x828
if 0x1 goto @skip
lock
applymovement 0x03 @move
waitmovement 0x0
msgbox @speak 0x6
goto @Continue


#org @Continue
msgbox @Talk 0x6
setflag 0x828
multichoice 0xE 0x0 0x1E 0x0
copyvar 0x800D 0x8000
compare 0x8000 0x0
if 0x1 goto @Houndour
compare 0x8000 0x1
if 0x1 goto @Ralts
compare 0x8000 0x2
if 0x1 goto @Heracross
goto @Continue

#org @skip
end

#org @move
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x2
#raw 0x62
#raw 0x20
#raw 0x20
#raw 0xFE

#org @speak
= What are you boys doing all the way out here?

#org @Houndour
showpokepic 0xE4 0x10 0x03
msgbox @ask 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0xE4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given 0x6
waitfanfare

#org @Ralts
showpokepic 0x188 0x10 0x03
msgbox @ask1 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0x188 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given1 0x6
waitfanfare

#org @Heracross
showpokepic 0xD6 0x10 0x03
msgbox @ask2 0x5
if 0x0 goto @Continue
hidepokepic
givepokemon 0xD6 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @given2 0x6
waitfanfare

#org @ask
= Would you like Houndour?
#org @ask1
= Would you like Ralts?
#org @ask2
= Would you like Heracross?

#org @given
= \v\h01 recieved Houdour!

#org @given1
= \v\h01 recieved Ralts!

#org @given2
= \v\h01 recieved Heracross!

#org @Talk
= Quick choose a pokemon!
 

SKRoy

Pokémon Hacker
66
Posts
14
Years
  • Age 27
  • Seen Feb 8, 2016
Hello (first sorry about my English, I'm Dutch),

I want to make a wild battle script. I have te overworld of a Lugia. I make my wild battle script in PokéTronic, because I'm not very good with scripting. But when you fight with the Lugia and the fight is over he's not away... How can I make a wild battle fight, that when the fight is over that the Pokémon is gone?

I'm a beginner so maby someone have a tutorial or a easy script or something?
 

Collen

I have returned.
71
Posts
14
Years
  • Seen Jan 1, 2015
Hello (first sorry about my English, I'm Dutch),

I want to make a wild battle script. I have te overworld of a Lugia. I make my wild battle script in PokéTronic, because I'm not very good with scripting. But when you fight with the Lugia and the fight is over he's not away... How can I make a wild battle fight, that when the fight is over that the Pokémon is gone?

I'm a beginner so maby someone have a tutorial or a easy script or something?
http://www.pokecommunity.com/showthread.php?t=164276
Use CTRL+F and search "wildbattle". Make sure to know some flags.
 

Collen

I have returned.
71
Posts
14
Years
  • Seen Jan 1, 2015
Need help.
Trying to compile script. It won't work.
Using XSE

'-----------------------
#dynamic 0x71F050

#org @start
msgbox @talk 0x6
giveitem 0xD 0x1 MSG_OBTAIN
end

#org @talk
= Hi.

Says I need to define the perimeter for "giveitem 0xD 0x1 MSG_OBTAIN"
In the tutorial, it doesn't say that. I don't get it.
 

SKRoy

Pokémon Hacker
66
Posts
14
Years
  • Age 27
  • Seen Feb 8, 2016
What's wrong whit this script?:


#org $start
lock
faceplayer
cry 0xA1 406
#raw 0x33
pause 0x30
message $cry
$cry 1 = Grrrawwhh!
boxset 6
wildbattle 406 1 1
pause 0x60
fadescreen 0
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end

In XSE I get:
Fout 13 'type mismatch' op lijn 1.
Geen #define of parameter.
Lijn: #org $start
 

Collen

I have returned.
71
Posts
14
Years
  • Seen Jan 1, 2015
I don't think that's an XSE script. It looks more like a PKSV script. But, anyway, in XSE you need

#dynamic 0x(offset here)

#org @start
 
79
Posts
13
Years
  • Seen Aug 27, 2014
Need help.
Trying to compile script. It won't work.
Using XSE

'-----------------------
#dynamic 0x71F050

#org @start
msgbox @talk 0x6
giveitem 0xD 0x1 MSG_OBTAIN
end

#org @talk
= Hi.

Says I need to define the perimeter for "giveitem 0xD 0x1 MSG_OBTAIN"
In the tutorial, it doesn't say that. I don't get it.

Try this out.

'-----------------------
#dynamic 0x71F050

#org @start
lock
faceplayer
msgbox @talk 0x6
giveitem 0xD 0x1 0x0 0x0 0x0
release
end

#org @talk
= Hi.
 

DrFuji

[I]Heiki Hecchara‌‌[/I]
1,691
Posts
14
Years
Need help.
Trying to compile script. It won't work.
Using XSE

'-----------------------
#dynamic 0x71F050

#org @start
msgbox @talk 0x6
giveitem 0xD 0x1 MSG_OBTAIN
end

#org @talk
= Hi.

Says I need to define the perimeter for "giveitem 0xD 0x1 MSG_OBTAIN"
In the tutorial, it doesn't say that. I don't get it.

There are some .RKC files that come with XSE that translate other scripting tool commands so XSE can understand them. You will have to use the preprocessing directive '#include std' (std is the file that translates MSG_OBTAIN) at the beginning to make this script run in its current format.

Otherwise, you can replace MSG_OBTAIN with 0x0 and still have the same result. MSG_FIND can be replaced with 0x1.
 

Collen

I have returned.
71
Posts
14
Years
  • Seen Jan 1, 2015
Okay, I'm having more problems.

Spoiler:

When I give the running shoes, she disappears for a second and then runs away when I walk. If I follow her, the game crashes...
 
Last edited:
Status
Not open for further replies.
Back
Top