• 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.

NatureKeeper

Guest
0
Posts
Guys, Excuse me but I need a script for Shade Mew:

This is how it goes:

Sorry, but the legendary Pokemon
Rayquaza lives here and I must test you in
a Lv.70 battle to pass. [Yes/No]

Yes= trainer battle
No= go 1 tile left

If the trainer battle's done, the flag is set for the script and the player can pass automatically.
 

ckret2

usually pronounced "secret 2"
518
Posts
15
Years
I'm working on the first script I've ever made, and I'm having trouble with XSE. I made one script and gave it a new offset I found with the FSF, compiled into my rom (at least I guess that's what I managed to do; you compile it just by clicking the button that looks like two blue gears, right?), went into the game and checked it out--it worked fine, the character talked just like he was supposed to. Except I'd messed up some of the dialogue and wanted to change it, so I went back into the script, changed the dialogue, and compiled it again.

But when I went back into the game it hadn't changed. I've tried several times. I've closed and opened XSE and compiled it again to see if it'd change, and saved in AdvanceMap after compiling to see if that would do any good. It hasn't.

What do I need to do to change a script once it's been compiled?
 

Andryandrew

Italian Asm Hacker
117
Posts
17
Years
  • Age 30
  • Seen Jul 4, 2015
I'm working on the first script I've ever made, and I'm having trouble with XSE. I made one script and gave it a new offset I found with the FSF, compiled into my rom (at least I guess that's what I managed to do; you compile it just by clicking the button that looks like two blue gears, right?), went into the game and checked it out--it worked fine, the character talked just like he was supposed to. Except I'd messed up some of the dialogue and wanted to change it, so I went back into the script, changed the dialogue, and compiled it again.

But when I went back into the game it hadn't changed. I've tried several times. I've closed and opened XSE and compiled it again to see if it'd change, and saved in AdvanceMap after compiling to see if that would do any good. It hasn't.

What do I need to do to change a script once it's been compiled?
Uh... Did you change offset of script in A.Map with the new one?

Hey, I have writed a gymleader script for the 5ft gym and when i compile it into my rom and I open it from my rom, the script is whole changed...
Are there some faults in my script?

Here is my script
Code:
#org 0x816D54E
'-----------------------------------
setvar 0x8004 0x6
setvar 0x8005 0x2
special 0x174
trainerbattle 0x1 0x1A2 0x0 0x819832E 0x8198444 0x816D580
checkflag 0x259
if 0x0 jump 0x816D5A6 ' Smaller Than
msgbox 0x8198481 ' When a pokémon uses IRON TAIL,\nit changes it's tail to steel\nand hits the opponent!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x816D580
'-----------------------------------
setvar 0x8004 0x6
setvar 0x8005 0x1
special 0x173
clearflag 0x9F
setflag 0x4B4
setflag 0x824
setvar 0x8008 0x5
call 0x81A6B18
jump 0x816D5A6
#org 0x81A6B18
'-----------------------------------
copyvar 0x8000 0x8008
compare 0x8000 0x1
if 0x1 jump 0x81A6B76 ' Equal To
compare 0x8000 0x2
if 0x1 jump 0x81A6B7A ' Equal To
compare 0x8000 0x3
if 0x1 jump 0x81A6B81 ' Equal To
compare 0x8000 0x4
if 0x1 jump 0x81A6B8B ' Equal To
compare 0x8000 0x5
if 0x1 jump 0x81A6BA1 ' Equal To
compare 0x8000 0x6
if 0x1 jump 0x81A6BB4 ' Equal To
compare 0x8000 0x7
if 0x1 jump 0x81A6BCA ' Equal To
compare 0x8000 0x8
if 0x1 jump 0x81A6BE0 ' Equal To
end
#org 0x81A6B76
'-----------------------------------
cleartrainerflag 0x8E
return
#org 0x816D5A6
'-----------------------------------
msgbox 0x819850E ' Now that you have the STEELBADGE,\nthe DEFENSE of your POKéMON rises.\pIt also lets you SURF outside of\nbattle.\pAh!\nTake this, too!
callstd MSG_NOCLOSE ' Non-closing msg
checkitemamount 0x137 0x1
compare LASTRESULT 0x0
if 0x1 jump 0x816D5E7 ' Equal To
additem 0x137 0x1
msgbox 0x819858F ' \v\h01 received TM23\nfrom RUBEN.
copyvarifnotzero 0x8000 0x126
copyvarifnotzero 0x8001 0x1
copyvarifnotzero 0x8002 0x101
callstd 0x9 ' 
setflag 0x259
msgbox 0x81985AB ' This TM contains IRON TAIL,\nyou can teach it to each\npokémon that has a tail!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x816D5E7
'-----------------------------------
msgbox 0x819860D ' Make space for this, kid!
callstd MSG_NOCLOSE ' Non-closing msg
release
end
#org 0x81A6B7A
'-----------------------------------
cleartrainerflag 0x96
cleartrainerflag 0xEA
return
#org 0x81A6B81
'-----------------------------------
cleartrainerflag 0x8D
cleartrainerflag 0xDC
cleartrainerflag 0x1A7
return
#org 0x81A6B8B
'-----------------------------------
cleartrainerflag 0x84
cleartrainerflag 0x85
cleartrainerflag 0xA0
cleartrainerflag 0x109
cleartrainerflag 0x10A
cleartrainerflag 0x10B
cleartrainerflag 0x192
return
#org 0x81A6BA1
'-----------------------------------
cleartrainerflag 0x126
cleartrainerflag 0x127
cleartrainerflag 0x120
cleartrainerflag 0x121
cleartrainerflag 0x124
cleartrainerflag 0x125
return
#org 0x81A6BB4
'-----------------------------------
cleartrainerflag 0x118
cleartrainerflag 0x119
cleartrainerflag 0x11A
cleartrainerflag 0x11B
cleartrainerflag 0x1CE
cleartrainerflag 0x1CF
cleartrainerflag 0x1D0
return
#org 0x81A6BCA
'-----------------------------------
cleartrainerflag 0xB1
cleartrainerflag 0xB2
cleartrainerflag 0xB3
cleartrainerflag 0xB4
cleartrainerflag 0xD5
cleartrainerflag 0xD6
cleartrainerflag 0xD7
return
#org 0x81A6BE0
'-----------------------------------
cleartrainerflag 0x128
cleartrainerflag 0x129
cleartrainerflag 0x142
cleartrainerflag 0x143
cleartrainerflag 0x144
cleartrainerflag 0x188
cleartrainerflag 0x190
cleartrainerflag 0x191
return
 
#org 0x819832E
= RUBEN: Fwahahaha!\pA mere child like you dares to\nchallenge me?\pThe very idea makes me shiver\nwith mirth!\pWell then, if you wish,\nI'll show you the real, horrific\nstrengt of STEEL-TYPE POKéMON!\hFC\h0B\h56\h01
#org 0x8198444
= Humph!\nYou have proven your worth!\pHere!\nTake the STEELBADGE!
#org 0x8198481
= When a pokémon uses IRON TAIL,\nit changes it's tail to steel\nand hits the opponent!
#org 0x819850E
= Now that you have the STEELBADGE,\nthe DEFENSE of your POKéMON rises.\pIt also lets you SURF outside of\nbattle.\pAh!\nTake this, too!
#org 0x819858F
= \v\h01 received TM23\nfrom RUBEN.
#org 0x81985AB
= This TM contains IRON TAIL,\nyou can teach it to each\npokémon that has a tail!
#org 0x819860D
= Make space for this, kid!

I hope you can help me with that!
you have to compile the script with dynamicals offsets... Otherwise it delete some parts if you add instructions
 
Last edited:
136
Posts
16
Years
Guys, Excuse me but I need a script for Shade Mew:

This is how it goes:

Sorry, but the legendary Pokemon
Rayquaza lives here and I must test you in
a Lv.70 battle to pass. [Yes/No]

Yes= trainer battle
No= go 1 tile left

If the trainer battle's done, the flag is set for the script and the player can pass automatically.

Code:
#dynamic 0x[your offset]

#org @check
checkflag 0x501
if b_false goto @start
release
end

#org @start
msgbox @test 0x5
compare LAST_RESULT 0x1
if b_true goto @battle
applymovement 0xFF @stepleft
end

#org @battle
trainerbattle 0x1 0x[trainer number] 0x0 @intro @victory @after
end

#org @after
setflag 0x501
end

#org @stepleft
#raw 0x12 0xFE

#org @test
= Sorry, but the legendary POKéMON\nRAYQUAZA lives here.\pI must test you in a lv. 70\nbattle before letting you in.

#org @intro
= Here we go!

#org @victory
= You have passed the test.
 

Pokepal17

More cowbell~
1,519
Posts
15
Years
I need help.

Game: Pokemon Fire Red
Script Editor: XSE
Script Type: Signpost

Script
Spoiler:


The script is meant to check if the player has walked 500 steps and then give them a random berry and reset the the amount of steps the player has moved.

Instead it gives me a random berry, doesn't close the message box when the berry is given and doesn't reset the amount of steps, therefore letting me get a random berry continuously. Please help.
 

Andryandrew

Italian Asm Hacker
117
Posts
17
Years
  • Age 30
  • Seen Jul 4, 2015
I need help.

Game: Pokemon Fire Red
Script Editor: XSE
Script Type: Signpost

Script
Spoiler:


The script is meant to check if the player has walked 500 steps and then give them a random berry and reset the the amount of steps the player has moved.

Instead it gives me a random berry, doesn't close the message box when the berry is given and doesn't reset the amount of steps, therefore letting me get a random berry continuously. Please help.

Uhm... I deleted returns because you have to use "call" instead of "goto" if you want to return (but in my opinion it should work also with goto)...
 

Robert Conley

GPXPlus.net/user/Robert+Conley
330
Posts
15
Years
Two things:
1.is it possible to make a script where a person will ask you for a meteorite and if you have one take it(the meteorite) and give you a deoxys/if you dont have one say something like "Dont have one huh? OK come see me when you do"?

2.How do I make a script so you cant access a certain area until after the elite four?
really need help so far the only thing ive done successfully is make simple talking scripts.
 
Last edited:

hot_kage

I am like a rose cute and calm
35
Posts
15
Years
lol sorry guys..
Code:
#dynamic 0x2DD4E4

#org @start
checkflag 0x2045
if 0x1 goto @end
fadesong 0x13B
setflag 0x2045
special 0x113
applymovement 0x7F @move
waitmovement 0x0
msgbox @1 0x6
special 0x114
applymovement 0x11 @move2
applymovement 0x12 @move2
special 0x113
applymovement 0x7F @move4
special 0x114
applymovement 0x11 @move3
msgbox @2 0x6
applymovement 0x11 @move5
applymovement 0x12 @move6
fadedefault 
release
setflag 0x205
setflag 0x206
end

#org @move
#raw 0x11 0x11 0x11 0x11 0x11 0xFE

#org @1
= [blue_fr]JUAN:[black_fr] Hhmm..\nIt Appears There Was A Rockslide..\l[red_fr]RYAN:[black_fr] Yes..\lSo It Seems.\lI Guess The Road to [green_fr]Azure Summit\l[black_fr] Is Closed Off For Now..

#org @move2
#raw 0x00 0x62 0xFE

#org @move4
#raw 0x10 0x10 0x10 0x10 0x10 0xFE

#org @move3
#raw 0x10 0x10 0x10 0x10 0x13 0x10 0x10 0x12 0x10 0x4A 0xFE

#org @2
= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.

#org @move5
#raw 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @move6
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @end
end

the move camera is f'd so is the movement that follows and the return camera...in other words i suck a move camera
 

Lyzo

Back from vacation
261
Posts
17
Years
Ok... The problem with this script is that it starts and works, until the 8th line (msgbox @Common 0x6) After that... the script just stops and you can move around, but after you do two steps the game restarts...??? Could someone tell me what's wrong?

Game: FireRed
Type: Trigger
Editor: XSE
Script:
Spoiler:

Screenshots and/or Videos: -
 

Andryandrew

Italian Asm Hacker
117
Posts
17
Years
  • Age 30
  • Seen Jul 4, 2015
lol sorry guys..
Code:
#dynamic 0x2DD4E4

#org @start
checkflag 0x2045
if 0x1 goto @end
fadesong 0x13B
setflag 0x2045
special 0x113
applymovement 0x7F @move
waitmovement 0x0
msgbox @1 0x6
special 0x114
applymovement 0x11 @move2
applymovement 0x12 @move2
special 0x113
applymovement 0x7F @move4
special 0x114
applymovement 0x11 @move3
msgbox @2 0x6
applymovement 0x11 @move5
applymovement 0x12 @move6
fadedefault 
release
setflag 0x205
setflag 0x206
end

#org @move
#raw 0x11 0x11 0x11 0x11 0x11 0xFE

#org @1
= [blue_fr]JUAN:[black_fr] Hhmm..\nIt Appears There Was A Rockslide..\l[red_fr]RYAN:[black_fr] Yes..\lSo It Seems.\lI Guess The Road to [green_fr]Azure Summit\l[black_fr] Is Closed Off For Now..

#org @move2
#raw 0x00 0x62 0xFE

#org @move4
#raw 0x10 0x10 0x10 0x10 0x10 0xFE

#org @move3
#raw 0x10 0x10 0x10 0x10 0x13 0x10 0x10 0x12 0x10 0x4A 0xFE

#org @2
= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.= [blue_fr]Juan:[black_fr] Hello Citzen.\nI'm Officer Juan, Isis Region\lPolice. It Appears The Road To\l[green_fr]Azure Summit [black_fr] Is Closed.\lSorry.

#org @move5
#raw 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @move6
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x4E 0x1F 0x1F 0x60 0xFE

#org @end
end

the move camera is f'd so is the movement that follows and the return camera...in other words i suck a move camera
I think camera have to return to the original position BEFORE putting "special 0x114"...
 

Robert Conley

GPXPlus.net/user/Robert+Conley
330
Posts
15
Years
Two things:
1.is it possible to make a script where a person will ask you for a meteorite and if you have one take it(the meteorite) and give you a deoxys/if you dont have one say something like "Dont have one huh? OK come see me when you do"?

2.How do I make a script so you cant access a certain area until after the elite four?
really need help so far the only thing ive done successfully is make simple talking scripts.


So does anyone know how I can do these things?
 
14
Posts
16
Years
  • Seen Jul 1, 2009
Hey could some one tell me how to creat a script were you want to go in to another room but another charactoe stops you and says you need to have beaten the pokemon league? (im usig XSE)
 

ckret2

usually pronounced "secret 2"
518
Posts
15
Years
Game: FireRed
Type: two Person events
Editor: XSE
Script: I've got two scripts, a character and an itemball. You get your first Pokémon from the itemball. The itemball isn't supposed to disappear after you click on it. I have a flag so that if you click the character or the itemball after clicking the itemball once, they will say different things. The flag works, but if I leave the room and come back in, it seems to be reset: the character will say his first, pre-flag script again, and the itemball will give you a second Pokémon. What am I doing wrong?

The character's script:
Spoiler:


The itemball's script:
Spoiler:


(In addition, I also don't know how to make a script that can give a Pokémon a nickname--which is why I tried to avoid the issue altogether in the dialogue above--because I haven't found any instructions on how to do that in any tutorials so far. I've gone through several looking for just that. So if anyone could just tell me what that bit of script is, I'd be grateful.)

Screenshots and/or Videos: I don't have any, and in any case, I think this is a simple problem. The flag just seemingly removes itself if I leave the room and come back into it.
 

darkmewham2

Cold's catch rate- 100%. D:
129
Posts
15
Years
Game: FireRed
Type: BPRE (I think)
Editor: XSE
Script:
Spoiler:
Spoiler:

Spoiler:
Spoiler:
Spoiler:
Spoiler:
 
Status
Not open for further replies.
Back
Top