• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.
I feel I didn't give enough info to get the help that I needed so here is my skipt again

'---------------
#org 0x80E44C
lock
msgbox 0x880E31D MSG_YESNO '"Welcome to our bank. Would you\nli..."
compare LASTRESULT 0x1
if 0x1 goto 0x880E0C1
release
end

'---------------
#org 0x80E0C1
preparemsg 0x880EA9C '"What would you like to do?"
waitmsg
multichoice 0xE 0x0 0x8 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x880E0F3
compare 0x8000 0x1
if 0x1 goto 0x880E13B
compare 0x8000 0x7F
if 0x1 goto 0x880E183
end

'---------------
#org 0x80E0F3
preparemsg 0x880EAB9 '"How much do you want\nto deposit?"
waitmsg
multichoice 0xE 0x0 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x880E185
compare 0x8000 0x1
if 0x1 goto 0x880E1A0
compare 0x8000 0x2
if 0x1 goto 0x880E1BB
compare 0x8000 0x3
if 0x1 goto 0x880E1D6
compare 0x8000 0x7F
if 0x1 goto 0x880E183
end

'---------------
#org 0x80E13B
preparemsg 0x880EADC '"How much do you want\nto withdrawa..."
waitmsg
multichoice 0xE 0x0 0x1 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x880E1F1
compare 0x8000 0x1
if 0x1 goto 0x880E20B
compare 0x8000 0x2
if 0x1 goto 0x880E225
compare 0x8000 0x3
if 0x1 goto 0x880E23F
compare 0x8000 0x7F
if 0x1 goto 0x880E183
end

'---------------
#org 0x80E183
release
end

'---------------
#org 0x80E185
checkmoney 0x32 0x0
compare LASTRESULT 0x1
if 0x4 goto 0x880E259
msgbox 0x880EB02 MSG_NORMAL '"Sorry, but you have insuffi-\ncien..."
release
end

'---------------
#org 0x80E1A0
checkmoney 0x1F4 0x0
compare LASTRESULT 0x1
if 0x4 goto 0x880E275
msgbox 0x880EB02 MSG_NORMAL '"Sorry, but you have insuffi-\ncien..."
release
end

'---------------
#org 0x80E1BB
checkmoney 0x3E8 0x0
compare LASTRESULT 0x1
if 0x4 goto 0x880E291
msgbox 0x880EB02 MSG_NORMAL '"Sorry, but you have insuffi-\ncien..."
release
end

'---------------
#org 0x80E1D6
checkmoney 0x1388 0x0
compare LASTRESULT 0x1
if 0x4 goto 0x880E2AD
msgbox 0x880EB02 MSG_NORMAL '"Sorry, but you have insuffi-\ncien..."
release
end

'---------------
#org 0x80E1F1
checkitem 0x79 0x1
compare LASTRESULT 0x1
if 0x4 goto 0x880E2C9
msgbox 0x880EB2E MSG_NORMAL '"Sorry, but you don't have\nthat mu..."
release
end

'---------------
#org 0x80E20B
checkitem 0x7A 0x1
compare LASTRESULT 0x1
if 0x4 goto 0x880E2DE
msgbox 0x880EB2E MSG_NORMAL '"Sorry, but you don't have\nthat mu..."
release
end

'---------------
#org 0x80E225
checkitem 0x7B 0x1
compare LASTRESULT 0x1
if 0x4 goto 0x880E2F3
msgbox 0x880EB2E MSG_NORMAL '"Sorry, but you don't have\nthat mu..."
release
end

'---------------
#org 0x80E23F
checkitem 0x7C 0x1
compare LASTRESULT 0x1
if 0x4 goto 0x880E308
msgbox 0x880EB2E MSG_NORMAL '"Sorry, but you don't have\nthat mu..."
release
end

'---------------
#org 0x80E259
paymoney 0x32 0x0
giveitem 0x79 0x1 MSG_OBTAIN
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E275
paymoney 0x1F4 0x0
giveitem 0x7A 0x1 MSG_OBTAIN
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E291
paymoney 0x3E8 0x0
giveitem 0x7B 0x1 MSG_OBTAIN
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E2AD
paymoney 0x1388 0x0
giveitem 0x7C 0x1 MSG_OBTAIN
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E2C9
givemoney 0x32 0x0
removeitem 0x79 0x1
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E2DE
givemoney 0x1F4 0x0
removeitem 0x7A 0x1
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E2F3
givemoney 0x3E8 0x0
removeitem 0x7B 0x1
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end

'---------------
#org 0x80E308
givemoney 0x1388 0x0
removeitem 0x7C 0x1
msgbox 0x880EB65 MSG_NORMAL '"Thank you for\ntrusting in us."
release
end


'---------
' Strings
'---------
#org 0x80E31D
= Welcome to our bank. Would you\nlike to make a transaction?

#org 0x80EA9C
= What would you like to do?

#org 0x80EAB9
= How much do you want\nto deposit?

#org 0x80EADC
= How much do you want\nto withdrawal?

#org 0x80EB02
= Sorry, but you have insuffi-\ncient funds.

#org 0x80EB2E
= Sorry, but you don't have\nthat much in your account.

#org 0x80EB65
= Thank you for\ntrusting in us.

What I need is help to change the yes_no and the moltichoice boxes the yes_no comes up with EGGS VICTORIES the moltichoices come up with JOLTEON VAPOREON FLAREON I need help to change it I have used XSE and A-Text but no luck help pleaz.
Thanx in advance
Well, if you've used A-Text, as you say you have, then you should have found them. Try searching again, and this time, only use results between 4000000 and 5000000. (Result: Found at Offset XXXXXXX (Decimal)! - It says so at the bottom of the search window.) Those are the ones you will need to change. If the first result isn't the correct one, then just press Resume. You should be able to find them this way.
 
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @talkloudly 0X6
countpokemon
compare 0x800D 0x2
compare 0x800D 0x3
compare 0x800D 0x4
compare 0x800D 0x5
compare 0x800D 0x6
if 0x1 goto @continue
if 0x0 goto @stop
release
end

#org @continue
msgbox @next 0x6
setflag 0x841
fadescreen 0x1
hidesprite 0x8
fadescreen 0x0
release
end

#org @talkloudly
= Hi there.\pWould you like a cookie? No?\pIt has chocolate in it...\lYummy yummy! Still no?\l[.]\pOh what?\lYou want to have a GYM BATTLE?

#org @next
= I can see that you're ready...\pBut, young TRAINER, you'll have\lto defeat all the GYM TRAINERS\lfirst. I'll be waiting you!

#org @stop
= I'm very sorry, young one,\nbut you need at least 2 POKeMON\lto enter this GYM.
A veird script I made, doesn't work.
It only goes up to the @talkloudly part.
 
Last edited:
Okay I've come across a problem when trying to write script to block me from going through till I get a badge. When I walk on the spot I get locked but nothing else happens. Can I get some help? I'm dumbfounded :/
Game-Emerald Script Editor-XSE
Spoiler:
 
Last edited:
A veird script I made, doesn't work.
It only goes up to the @talkloudly part.

why do you have a lot of compares? :\
at any rate, your script will check if the player has two or more POKeMON, right?

anyways, try this script...

Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @talkloudly 0X6
countpokemon
compare 0x800D 0x2
if B_>= goto @continue
message @stop 0x6
release
end

#org @continue
msgbox @next 0x6
setflag 0x841
fadescreen 0x1
hidesprite 0x8
fadescreen 0x0
release
end

#org @talkloudly
= Hi there.\pWould you like a cookie? No?\pIt has chocolate in it...\lYummy yummy! Still no?\l[.]\pOh what?\lYou want to have a GYM BATTLE?

#org @next
= I can see that you're ready...\pBut, young TRAINER, you'll have\lto defeat all the GYM TRAINERS\lfirst. I'll be waiting you!

#org @stop
= I'm very sorry, young one,\nbut you need at least 2 POKeMON\lto enter this GYM.
 
why do you have a lot of compares? :\
at any rate, your script will check if the player has two or more POKeMON, right?

anyways, try this script...

Code:
#dynamic 0x800000
Code:
[B][FONT=Book Antiqua][COLOR=green]#org @start[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]lock[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]faceplayer[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]msgbox @talkloudly 0X6[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]countpokemon[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]compare 0x800D 0x2[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]if B_>= goto @continue[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]message @stop 0x6[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]release[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]end[/COLOR][/FONT][/B]
 
[B][FONT=Book Antiqua][COLOR=green]#org @continue[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]msgbox @next 0x6[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]setflag 0x841[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]fadescreen 0x1[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]hidesprite 0x8[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]fadescreen 0x0[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]release[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]end[/COLOR][/FONT][/B]
 
[B][FONT=Book Antiqua][COLOR=green]#org @talkloudly[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]= Hi there.\pWould you like a cookie? No?\pIt has chocolate in it...\lYummy yummy! Still no?\l[.]\pOh what?\lYou want to have a GYM BATTLE?[/COLOR][/FONT][/B]
 
[B][FONT=Book Antiqua][COLOR=green]#org @next[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]= I can see that you're ready...\pBut, young TRAINER, you'll have\lto defeat all the GYM TRAINERS\lfirst. I'll be waiting you![/COLOR][/FONT][/B]
 
[B][FONT=Book Antiqua][COLOR=green]#org @stop[/COLOR][/FONT][/B]
[B][FONT=Book Antiqua][COLOR=green]= I'm very sorry, young one,\nbut you need at least 2 POKeMON\lto enter this GYM.[/COLOR][/FONT][/B]
Still doesn't work... :\
It only goes up to the @talkloudly part, same as before.

EDIT: Here's the XSE "now" version:
'---------------
#org 0x800000
lock
faceplayer
msgbox 0x8800048 MSG_NORMAL '"Hi there.\pWould you like a cookie..."
countpokemon
compare LASTRESULT 0x2
if 0x1 goto 0x8800033
if 0x0 goto 0x8800148
release
end

'---------------
#org 0x800033
msgbox 0x88000CC MSG_NORMAL '"I can see that you're ready...\pBu..."
setflag 0x841
fadescreen 0x1
hidesprite 0x8
fadescreen 0x0
release
end

'---------------
#org 0x800148
cmdc3 0xB4

'---------
' Strings
'---------
#org 0x800048
= Hi there.\pWould you like a cookie? No?\pIt has chocolate in it...\lYummy yummy! Still no?\l[.]\pOh what?\lYou want to have a GYM BATTLE?

#org 0x8000CC
= I can see that you're ready...\pBut, young TRAINER, you'll have\lto defeat all the GYM TRAINERS\lfirst. I'll be waiting you!
 
Last edited:
Okay I've come across a problem when trying to write script to block me from going through till I get a badge. When I walk on the spot I get locked but nothing else happens. Can I get some help? I'm dumbfounded :/
Game-Emerald Script Editor-XSE
Spoiler:

You need a release command, edit is in BOLD
 
Hey can some body help me see I am still learning scripting and I made a one script then i click the right botton and i press Compile Script and it opens another box Open with... and then i press you know that program BufRight . And nothing hapens??? Please help...
 
Hey can some body help me see I am still learning scripting and I made a one script then i click the right botton and i press Compile Script and it opens another box Open with... and then i press you know that program BufRight . And nothing hapens??? Please help...

Sounds like you are doing it the old fashioned way. If you don't have XSE, get it.
If you do have the NEWEST XSE, please read the guide that comes with it, by loading XSE, and pressing F1 after it is done loading. It might seem a might boring at first, but trust me, that guide will be the most help to you, especially since it teaches you everything you need to know about using XSE, and it's features.
 
Wow can't believe I missed that :( thanks but when I walk on the spot I still freeze and my the target sprite doesn't move to me. I'm pretty sure I am pointing to her since her person event no. is 14.
 
Wow can't believe I missed that :( thanks but when I walk on the spot I still freeze and my the target sprite doesn't move to me. I'm pretty sure I am pointing to her since her person event no. is 14.

Are you sure that you set the Event's Unknown to 0003, and the Var Number to 4050?

(Read the XSE Guide that comes with the program, it will tell you how to fix most script activation problems...)
 
Nope now I don't even get locked onto the spot anymore, and the only thing I found in the Guide was what you told me already.
 
Last edited:
Thank you so much Om3ga ARS3NAL!!
 
hello! Could you help me please? OK so i have been learning how to level script recently and I have been running into a problem. So my scripts work perfectly and all...BUT when i try to make another level script it will change all the ones that I already made. I think I know why though. The script offset for the validates values script type is always the same and I cant change it. AMAP wont let me. How do I do this?
 
Can someone help me with this script i'm really new to scripting but i still have read almost every tutorial but no matter what this scipt doesn't work the way i want it to

im trying to make a scipt so that once i enter a new area outside
Prof Oak runs up to me shouting my name with a "!" above his head then walking 2 steps down in front of me and his Prof Oak theme comes on and then he says about 2 paragraphs of text(i know how the \p \n \l works so i got that right) than before we battle the track goes to the ENCOUNTER 4 theme and than we fight(i gave him pokemon in A-trainer)with Gary's Elite Four theme.

the problem is whenever i step on the script either nothing happens or the game freezes and i already changed Var number and Unknown to what some of the tuts said
and when i talk to him myself either the game freezes or it doesn't work or he uses the guys script that's in front of cerulean cave

but when i make another person with the same script as the Green S i made
and talked to him then it works but then the 1st Oak does the script i wanted him to do but no battle occurs, the music doesn't change and then it resetes the script again

i deleted and added some stuff to the script but can someone please tell me what script do i give to Oak and what script i put on that green S mark

this is what it says on the Green S
I opened the script and copied and pasted it here.

please correct any mistakes

I hexed Oak's person event number which was 20
his person ID was 0000


//---------------
#org 0x8036F7
checkflag 0x8C0
if 0x1 goto 0x8803731
msgbox 0x880373A MSG_NORMAL //"OSCIZOR!"
playsong 0x156
applymovement 0x14 0x8803734
waitmovement 0x0
applymovement 0x14 0x8803736
pause 0x30
trainerbattle 0x0 0x1FF 0x0 @2 @ 3
msgbox 0x8803746 MSG_NORMAL //"Hold on OSCIZOR!\pI know you are\n..."
playsong 0x155 0x0
waitmovement 0x0
fadesong 0x12C
release
end
//---------------
#org 0x803731
release
end

//---------
// Strings
//---------
#org 0x80373A
= OSCIZOR!
#org 0x803746
= Hold on OSCIZOR!\pI know you are\ntrying to go onto battle this\lman but you see..I can't let you.\pThe reason being is\nthat you were not supposed to\l get this far and fight him...\pMy grandson was supposed to.\pAnd if you beat him...\lyou...\nyou will just ruin everything!\pWHY ARE YOU TRYING\nTO RUIN EVERYTHING!

//-----------
// Movements
//-----------
#org 0x803734
#raw 0x62 //Exclamation Mark (!)
#org 0x803736
#raw 0x52 //Jump in Place (Facing Down)
#raw 0x1D //Step Down (Fast)
#raw 0x1D //Step Down (Fast)

I also made a youtube video if it helps

i explain a little more there but i can't post a link so just combine all this with no spaces

ww w.
youtube.
com
/watch?v
=9PybIbNXY-8

my username there is Xboxproscar
along with the video
 
Hey Guys, Umm.. I'm too busy, and I wanted to release a beta, but only scripting remains, so I need help with this script:

Code:
#dynamic 0x######
 
#org @start
lock
checkflag 0x
if 0x0 goto @linear
if 0x1 goto @end
release
end
 
#org @linear
lock
msgbox @SM
boxset 0x6
trainerbattle 0x0 0x01D 0x0
@inbattle @outer
setflag 0x
release
end
 
#org @end
release
end
 
#org @SM
=Huh?/nWhat's going on?/lWhat is this cloud?/p.../p.../pHuh?!
 
#org @inbattle
=Gwwaah!
 
#org @outer
=Ughh...

I need 1 thing: To make a cloud overworld appear (use ### as it's ID No.)
and how to do new flags, Umm i'm afraid to react with other Pokemon Ruby flags or else the storyline will be messed up.

gamer2020 said:
hello people!

I have a scripting question that ill try to keep simple.

You know the showpokepic thing? like the comand.

Is there a way to show a pokemon's back sprites like that?

showbackpic 0x# 0x# 0X#, Uhh, I think..., not sure how to hide it *Checks a Private Message* ah, hidebackpic. :)
Not pretty sure- Didn't try it.
 
//---------------
#org 0x8036F7
checkflag 0x1000 or higher
if 0x1 goto 0x8803731
msgbox 0x880373A MSG_NORMAL //"OSCIZOR!"
playsong 0x156
applymovement 0x14 0x8803734
waitmovement 0x0
applymovement 0x14 0x8803736
waitmovement 0x0
pause 0x30
trainerbattle 0x0 0x1FF 0x0 @2 @ 3 missing
msgbox 0x8803746 MSG_NORMAL //"Hold on OSCIZOR!\pI know you are\n..."
playsong 0x155 0x0
fadesong 0x12C
release
end

//---------------
#org 0x803731
release
end

//---------
// Strings
//---------
#org 0x80373A
= OSCIZOR!

#org 0x803746
= Hold on OSCIZOR!\pI know you are\ntrying to go onto battle this\lman but you see..I can't let you.\pThe reason being is\nthat you were not supposed to\l get this far and fight him...\pMy grandson was supposed to.\pAnd if you beat him...\lyou...\nyou will just ruin everything!\pWHY ARE YOU TRYING\nTO RUIN EVERYTHING!

//-----------
// Movements
//-----------
#org 0x803734
#raw 0x62 //Exclamation Mark (!)
#raw 0xFE

#org 0x803736
#raw 0x52 //Jump in Place (Facing Down)
#raw 0x1D //Step Down (Fast)
#raw 0x1D //Step Down (Fast)
#raw 0xFE

Changes are in bold if there is any problems let me know
 
showbackpic 0x# 0x# 0X#, Uhh, I think..., not sure how to hide it *Checks a Private Message* ah, hidebackpic. :)
Not pretty sure- Didn't try it.

Thanks!

One thing I forgot to add lol.

Is there a way to show them in the shiny pallete?
 
Status
Not open for further replies.
Back
Top