• 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 ned some help with a a script in xse: it gives the player a charizard all thats fine i need to know where i can find the different fanfares b/c the one i have is different than the one i need

[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

this is what happens when i it says player recieves charizard

[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

it wont goaway unless i press A again

[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

then its gone :D

any help will be appreciated:\

this the script:

Spoiler:
 
Yeah! After some searching I found this script:
Code:
'---------------
#org 0x2C8D5F
virtualgotoif 0xBC 0x2FFFFBAD
nop
cmdc3 0x0
warp4 0x1 0xFF 0xFF 0x9398 0x82C
fadescreendelay 0x93 0x2C
gotostd 0xB3
Is that the script that tells you where to teleport after choosing are you boy or girl?
If so how to change the teleport location to whatever you want?
And if it isn't that script, could you tell me the right one? Please answer because I need that
 
Game=Fire Red
Script type=Person
Engine= XSE
Problem= The hero is moving more than he should at the end.He moves up two spaces when there is no command for such.He also becomes hidden like what the other sprite should do after all messages. This happens right before the message with "Here... This is my house!"
Code:
'---------------
#org 0x802BE2
lock
faceplayer
msgbox 0x8802D2A MSG_YESNO '"You're a rookie trainer, aren't\ny..."
compare LASTRESULT 0x1
if 0x1 goto 0x8802C02
msgbox 0x88037D4 MSG_FACE '"Oh... It's something I enjoy\ndoin..."
release
end

'---------------
#org 0x802C02
msgbox 0x880381D MSG_FACE '"OK, then!\nFollow me!"
playsong 0x14C 0x0
applymovement MOVE_PLAYER 0x8802CC1
applymovement 0x1 0x8802CC8
waitmovement 0x0
msgbox 0x8803834 MSG_NORMAL '"This is a Pokemon Center. They\nhe..."
applymovement MOVE_PLAYER 0x8802CD0
applymovement 0x1 0x8802CD0
waitmovement 0x0
msgbox 0x88038BB MSG_NORMAL '"This is a Pokemon Mart.\pThey sell..."
applymovement MOVE_PLAYER 0x8802CD9
applymovement 0x1 0x8802CD9
waitmovement 0x0
msgbox 0x8803917 MSG_NORMAL '"Route 30 is out this way.\pTrainer..."
applymovement 0x1 0x8802CE5
applymovement MOVE_PLAYER 0x8802CF1
waitmovement 0x0
msgbox 0x8803969 MSG_NORMAL '"This is the sea, as you can see.\p..."
applymovement 0x1 0x8802CFC
applymovement MOVE_PLAYER 0x8802D12
waitmovement 0x0
msgbox 0x88039B2 MSG_NORMAL '"Here...\pIt's my house! Thanks for..."
giveitem 0x169 0x1 MSG_OBTAIN
msgbox 0x8803A02 MSG_NORMAL '"I wish you luck on your journey!"
fadesong 0x159
setdooropened 0x10 0xD
doorchange
applymovement 0x1 0x8802D25
waitmovement 0x0
setdoorclosed 0x20 0xB
doorchange
setflag 0x379
clearflag 0x378
release
end


'---------
' Strings
'---------
#org 0x802D2A
= You're a rookie trainer, aren't\nyou? I can tell!\pThat's OK! Everyone is a rookie at\nsome point!\pIf you'd like, I can teach you a\nfew things.

#org 0x8037D4
= Oh... It's something I enjoy\ndoing...\pFine. Come see me when you like.

#org 0x80381D
= OK, then!\nFollow me!

#org 0x803834
= This is a Pokemon Center. They\nheal your Pokemon in no time at\lall.\pYou'll be relying on them a\nlot, so you better learn about\lthem.

#org 0x8038BB
= This is a Pokemon Mart.\pThey sell Balls for catching wild\nPokemon and other useful items.

#org 0x803917
= Route 30 is out this way.\pTrainers will be battling their\nprized Pokemon there.

#org 0x803969
= This is the sea, as you can see.\pSome Pokemon are found only in\nwater.

#org 0x8039B2
= Here...\pIt's my house! Thanks for your\ncompany.\pLet me give you a small gift.

#org 0x803A02
= I wish you luck on your journey!


'-----------
' Movements
'-----------
#org 0x802CC1
#raw 0x13 'Step Right (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x802CC8
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x802CD0
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x802CD9
#raw 0x11 'Step Up (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements

#org 0x802CE5
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org 0x802CF1
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements

#org 0x802CFC
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org 0x802D12
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x802D25
#raw 0x11 'Step Up (Normal)
#raw 0x60 'Hide
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
 
I've tried everything but in this script, when you pick yes, it says what it should say for no but when you pick no, it says what you should pick for no aswell. And in the 2nd yes/no when you pick no it picks yes and when you pick yes it picks yes. Confusing I know but...help?

Spoiler:
#dynamic 0x800000

#org @start
checkflag 0x360
if 0x1 goto @end
checkflag 0x361
if 0x1 goto @tryagain
lock
faceplayer
msgbox @text1 0x5
if 0x1 goto @yes
if 0x0 goto @no
closeonkeypress
release
end

#org @end
msgbox @hey 0x6
closeonkeypress
release
end

#org @tryagain
msgbox @text6 0x5
if 0x1 goto @yes
if 0x0 goto @no
release
end

#org @yes
msgbox @text2 0x6
closeonkeypress
countpokemon
compare 0x800D 0x6
if 0x1 goto @sorry
fanfare 0x10D
giveegg 0xEC
msgbox @text3 0x6
msgbox @text4 0x6
closeonkeypress
setflag 0x360
release
end

#org @no
msgbox @text5 0x6
closeonkeypress
setflag 0x361
release
end
 
Last edited:
I've tried everything but in this script, when you pick yes, it says what it should say for no but when you pick no, it says what you should pick for no aswell. And in the 2nd yes/no when you pick no it picks yes and when you pick yes it picks yes. Confusing I know but...help?

#dynamic 0x800000

#org @start
checkflag 0x360
if 0x1 goto @end
checkflag 0x361
if 0x1 goto @tryagain
lock
faceplayer
msgbox @text1 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
goto @no
release
end

#org @end
msgbox @hey 0x6
release
end

#org @tryagain
msgbox @text6 0x5
compare LASTRESULT 0x1
if 0x1 goto @yes
goto @no
release
end

#org @yes
msgbox @text2 0x6
countpokemon
compare 0x800D 0x6
if 0x1 goto @sorry
fanfare 0x10D
giveegg 0xEC
msgbox @text3 0x6
msgbox @text4 0x6
setflag 0x360
release
end

#org @no
msgbox @text5 0x6
setflag 0x361
release
end
You should really try to brush up on your Yes-/No message-skills. After every type 5-message, you should include a compare LASTRESULT 0x1 or 0x0. Also, I don't think you can put 2 if's in a row. You'd have to either compare again, or, when there's just 2 possibilities, compare for one, and if that's not correct, just goto or call the other possibility. And another thing, closeonkeypress is only used after a type 4-msgbox. The other ones close themselves, so there's no use in having a closeonkeypress there.
 
Yeah! After some searching I found this script:
Code:
'---------------
#org 0x2C8D5F
virtualgotoif 0xBC 0x2FFFFBAD
nop
cmdc3 0x0
warp4 0x1 0xFF 0xFF 0x9398 0x82C
fadescreendelay 0x93 0x2C
gotostd 0xB3
Is that the script that tells you where to teleport after choosing are you boy or girl?
If so how to change the teleport location to whatever you want?
And if it isn't that script, could you tell me the right one? Please answer because I need that

The kind of script you are looking for is not a 'script' per say... it is more of an ASM routine... I am afraid you are going to have to edit the room it teleports to, or get a tool that will change which map the player starts in.
 
You should really try to brush up on your Yes-/No message-skills. After every type 5-message, you should include a compare LASTRESULT 0x1 or 0x0. Also, I don't think you can put 2 if's in a row. You'd have to either compare again, or, when there's just 2 possibilities, compare for one, and if that's not correct, just goto or call the other possibility. And another thing, closeonkeypress is only used after a type 4-msgbox. The other ones close themselves, so there's no use in having a closeonkeypress there.

Oh my bad I thought it would work like a checkflag. But thanks alot dude you really helped :)
 
I'm using XSE. This is my first script. What is wrong with it? It says it can't compile.
#dynamic 0x2C50AC
lock
faceplayer
Message @2C50AC
boxset 6
release
end

#org @tutorial
= This is my first script!
 
I'm using XSE. This is my first script. What is wrong with it? It says it can't compile.
#dynamic 0x2C50AC
lock
faceplayer
Message @2C50AC
boxset 6
release
end

#org @tutorial
= This is my first script!

Here's how the script should look if you're using the newest version of XSE.

Code:
#dynamic 0x2C50AC

#org @start
lock
faceplayer
msgbox @tutorial 0x6
release
end

#org @tutorial
= This is my first script!
You just had some things incorrectly pointed and the wrong commands were used.
 
Thanks for the help!! I'll check to see if it works for me.
Edit: In my ruby rom it says the person is a max revive
 
Thanks for the help!! I'll check to see if it works for me.
Edit: In my ruby rom it says the person is a max revive

Hmm, I don't know. I've never scripted with a Ruby ROM. It might be different. I'm not sure though. Sorry I can't help.
 
I think I was able to fix the problem.

How do you make a script have two lines? My script overlaps if it is long.
 
I think I was able to fix the problem.

How do you make a script have two lines? My script overlaps if it is long.

Each line can have up to 34 characters. To go to the next line use \n. After \n is used, \l should be used. Then, if you want to put the text in in a new paragraph or box, use \p.

Examples:
This is an example of a script I'm\nshowing you.

Would look like this:

This is an example of a script I'm
showing you.
 
Thanks. Now I can script!

I don't mean to sound like I am trying to undermined sasquatchd00d's information, but a much simpler way to type text out would be to use XSE's text adjuster... It will automatically Make sure your text is the right length, and you wont have to worry about typing \n \p or \l, it does it for you. Simply click 'Tools', and click 'Text Adjuster'.
 
I don't mean to sound like I am trying to undermined sasquatchd00d's information, but a much simpler way to type text out would be to use XSE's text adjuster... It will automatically Make sure your text is the right length, and you wont have to worry about typing \n \p or \l, it does it for you. Simply click 'Tools', and click 'Text Adjuster'.
... or just press Ctrl + T :P

I have a question, which I'm not sure belongs here, but it is script related. Where can I get a list of fanfares? More specifically, I need to know the earthquake fanfare...
 
... or just press Ctrl + T :P

I have a question, which I'm not sure belongs here, but it is script related. Where can I get a list of fanfares? More specifically, I need to know the earthquake fanfare...
Fanfares are just songs. Simply open up your ROM with Sappy, search for the fanfare, and look at the number in front of it.
 
I have a script; a simple script in which you step on a space, someone comes running and gives you an item, before returning to where they originally were. That part works fine; I recieve the item without any problems. The problem is with the flags I use to prevent the script from repeating; if you re-step on the tile, it just freezes the game. I can't see what's wrong with the script, but I'll see if someone else can. I'll only give the relevant parts of the script.

Code:
#org @RightMom
checkflag 0x200
if 0x1 goto @Epilogue
setflag 0x200
...
#org @Epilogue
end

It may be my ROM; if nobody can spot any errors, I'll re-download it.

Where did I mess up?
 
I have a script; a simple script in which you step on a space, someone comes running and gives you an item, before returning to where they originally were. That part works fine; I recieve the item without any problems. The problem is with the flags I use to prevent the script from repeating; if you re-step on the tile, it just freezes the game. I can't see what's wrong with the script, but I'll see if someone else can. I'll only give the relevant parts of the script.

Code:
#org @RightMom
checkflag 0x200
if 0x1 goto @Epilogue
setflag 0x200
...
#org @Epilogue
end
It may be my ROM; if nobody can spot any errors, I'll re-download it.

Where did I mess up?
You could try this: add a setvar 0x5000 0x1 after the flag. No, better yet, remove the flag. Because Level scripts and Trigger scripts (the green S in A-Map) usually don't need flags. So, remove the checkflag, and the setflag, and replace that with setvar 0x5000 0x1. Then, in A-Map, give the script tile the following values: Var number: 5000, Var value: 0000. That means, the script will only activate if variable 0x5000 has the value 0x0, and since you're setting it to 0x1 once you run the script, it won't activate a second time.
Like this:
Code:
#org @RightMom
...
setvar 0x5000 0x1
end
That's all. No need for setflags. Remember that. And since you're not using flags, there's no need for #org @Epilogue, either.
 
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
 
Status
Not open for further replies.
Back
Top