• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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.
Game: FireRed Editor: XSE

I want to create a person event script where you talk to a guy and he tells you 'now playing sound X' and plays that sound at the same time. The next time you talk to him, he plays sound X + 1. So on and so forth throughout all the sounds in the game that are called by the 'sound 0x01' command.

Right now all I can think of doing is using a variable, adding one to the variable each time the sound is played. A flag check is used for the first time you talk to him to set the variable to 0x0. All I can think of doing from there is ham-handedly throwing in [variable 0x5000] in where I want it to go, but I know that's not going to make it work.

Spoiler:

Disclaimer: I know I cannot put #org scripts so close to eachother. The above is an example with simpler numbers to be easier to read.
 
how to make a script such that when i enter roue 22 first a charmander thumbs to me then it goes back then suddenly the screen fades white when the screen turned normal the charmander has evolved to charmeleon or its OW sprite is changed and then it starts to battle me.How can i make this script please help me.
 
I'm having trouble with this level script on FR. It all works perfectly until after the setflags in the bottom, which after that I can't move even though I have the release and end commands.
Here is the script
Spoiler:


btw "the hood" is the town you start in.
So yeah can anyone tell me why I cant move after the script?
 
I'm having trouble with this level script on FR. It all works perfectly until after the setflags in the bottom, which after that I can't move even though I have the release and end commands.
Here is the script
Spoiler:


btw "the hood" is the town you start in.
So yeah can anyone tell me why I cant move after the script?

Maybe this is why?
Code:
#org @start
checkflag 0x1202
if 0x1 goto @end
msgbox @craphelp 0x6
applymovement 0xFF @omw
[COLOR="Red"]waitmovement 0x0[/COLOR]
msgbox @shutup 0x6
msgbox @choose 0x6
msgbox @douwantsneasel 0x5
compare 0x800D 0x1
if 0x1 goto @sneasel
msgbox @gligar 0x5
compare 0x800D 0x1
if 0x1 goto @givegligar
msgbox @sneasel2 0x5
compare 0x800D 0x1
if 0x1 goto @sneasel
compare 0x800D 0x0
if 0x0 goto @choose
release
end
 
Maybe this is why?
Code:
#org @start
checkflag 0x1202
if 0x1 goto @end
msgbox @craphelp 0x6
applymovement 0xFF @omw
[COLOR="Red"]waitmovement 0x0[/COLOR]
msgbox @shutup 0x6
msgbox @choose 0x6
msgbox @douwantsneasel 0x5
compare 0x800D 0x1
if 0x1 goto @sneasel
msgbox @gligar 0x5
compare 0x800D 0x1
if 0x1 goto @givegligar
msgbox @sneasel2 0x5
compare 0x800D 0x1
if 0x1 goto @sneasel
compare 0x800D 0x0
if 0x0 goto @choose
release
end

I tried that already, still doesn't work.
 
I have one problem, I can't figure out how fix it!

I'm making a hack of pokemon emerald, I just wanna put the legendaries in the game (Entei, Suicune, Raikou, Moltres etc). So, I try to use this script for articuno:

Spoiler:


But the pokemon wont desapear when the battle ends.

Sorry my bad english...

I try to find the script for put pokemons in the emerald game, but every script then I use, the same mistake happen. What I'm doing wrong?
 
Last edited by a moderator:
#dynamic 0x800000

#org @start
msgbox @1 0x6
closeonkeypress
applymovement 0xFF @move
release
end

#org @1
= Red's Mom:[Player]\nIts locked upstairs.

#org @move
#raw 0x12
#raw 0x10



whats wrong with the script ? halts the game :/
basically i just want to make the player move left once then down when i step on a tile
 
#dynamic 0x800000

#org @start
msgbox @1 0x6
closeonkeypress
applymovement 0xFF @move
release
end

#org @1
= Red's Mom:[Player]\nIts locked upstairs.

#org @move
#raw 0x12
#raw 0x10



whats wrong with the script ? halts the game :/
basically i just want to make the player move left once then down when i step on a tile

Msgbox 0x6 doesn't use closekeyonpress.

You would have to replace 0x6 with 0x4 I'm pretty sure.
 
Msgbox 0x6 doesn't use closekeyonpress.

You would have to replace 0x6 with 0x4 I'm pretty sure.

ORRRRRRR
You could remove closeonkeypress and just end the movement. Without FE the game continues reading and obviously freezes.
 
ORRRRRRR
You could remove closeonkeypress and just end the movement. Without FE the game continues reading and obviously freezes.


#dynamic 0x8000AD

#org @start
msgbox @1 0x6 ( tried replacing with 0x4 too )
applymovement 0xFF @move
release
end

#org @1
= Red's Mom:[Player]\nIts locked upstairs.

#org @move
#raw 0x12
#raw 0x10
#raw 0xFE


still no luck :'(
 
#org @start
msgbox @1 0x6
applymovement 0xFF @move
waitmovement 0
release
end

#org @1
= Red's Mom:[Player]\nIts locked upstairs.

#org @move
#raw 0x12
#raw 0x10
#raw 0xFE
 
Didnt work :/ :( it just freezes as soon as i step on that tile

That's because you don't know how tiles work then. You forgot to put a var for the tile
 
ahem ahem :P i think your right
but i want this script to stay there
for the whole game ?

You still need a var. var 0000 is nonexistent and points to the wrong RAM area and your game freezes on contact.
 
You still need a var. var 0000 is nonexistent and points to the wrong RAM area and your game freezes on contact.

thanks for pointing in a direction i will look it up which var would you use for a tile in reds house ? in a non hacked rom
 
Status
Not open for further replies.
Back
Top