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

[Archive] Script help thread

Status
Not open for further replies.
Alright since i was told to put this question here, I will.
Under normal(pokescript) circumstances, is it possible to make a script like when you use secret power to open a hole?
and sorry if this sounds like a request but, if possible, can anyone show me how to make one?
 
Yeah, you can.. but um, I'm not entirely sure how to make it do the whole "GO SLAKOTH!" *BOOM hole in wall* (I'm assuming your using ruby, right?)
I'll edit this with the basic of the script, I'll tell you what to fill in.

The script would go a little like this..:
thethethe said:
#org $start
setmaptile 0xA 0xD 0x1 0x0
special 0x8E
release
end
Explanation..:
Spoiler:

Credit to thethethe.. I'm just lazy to explain it myself :D
Also, if you would like me to right you a script that uh, well, basicly, if you want me to right you a script that will do exactly the same as the secret power. Just tell me.. I'll have a go for you.
 
Last edited:
Here's the script:
#org $begin
lock
faceplayer
message $yoplayer
$yoplayer 1 =Yo \v\h01! I hear\n PROF.ELM discovered\n some new POKéMON.
boxset 6
release
end
Since it's a normal message box, I don't see any problems.
 
Does it say user cancel or file not found when u compile?
 
Here's the script:

Since it's a normal message box, I don't see any problems.

I don't use PokeScript, but in other scripting languages you need to use a different order... Try:
Code:
#org $begin
lock
faceplayer
message $yoplayer
boxset 6
release
end

#org $yoplayer 1 =Yo \v\h01! I hear\n PROF.ELM discovered\n some new POKéMON.

I think that will work. :P
 
Here's the script:

Since it's a normal message box, I don't see any problems.

hm... I think the space between words and the equal sign is causing ya problems... :\

why not try this one...
Code:
#org $begin
lock
faceplayer
message $yo
boxset 6
release
end

#org $yo
$yo 1 = Yo! \v\h01! I heard  PROF.ELM\n discovered some new POKéMON.
 
hi.
i really need help with a script.
in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

compare 0x4003 0x5
if 0x1 goto $option7

if thats not right can sombody please help.

thanks in advance
link
 
Last edited:
Yeah, you can.. but um, I'm not entirely sure how to make it do the whole "GO SLAKOTH!" *BOOM hole in wall* (I'm assuming your using ruby, right?)
I'll edit this with the basic of the script, I'll tell you what to fill in.

The script would go a little like this..:

Explanation..:
Spoiler:

Credit to thethethe.. I'm just lazy to explain it myself :D
Also, if you would like me to right you a script that uh, well, basicly, if you want me to right you a script that will do exactly the same as the secret power. Just tell me.. I'll have a go for you.

Any help would be appreciated so it would be nice if you could try to make a script like that.
anyways i have another question about a script.
I know how to make a simple national dex script but can anyone tell me how to make it possible to insert the "you got a pokemon" music when your dex is updated and also to make the character who updates it "fly" away like your rival in lilycove city?
Here is the script i have right now but i don't know where to add the other stuff like the music and movements.
#org $start
lock
faceplayer
message $dex
boxset 6
special 0x16F
release
end

#org $dex
$dex 1 =Elm: Proffesor Oak told me \nthat there are foreign wild\lpokemon ahead. So he has told me to\lupdate your pokedex.\p\v\h01 hands Elm the pokedex.\p......\lThere!\lYour pokedex is updated!\l Enjoy!
Help would be greatly appreciated.
Oh and i'm using a firered rom.
 
I need the script of the oldman in CherryGrove City, he will lead us to visit houses and after that he gives us items Townmap! :D

Who can help me :|
 
This is a script help thread, not a script request thread. Sorry and there used to be a script request thread. If you want a script, pm a scripter you know, if any.
 
hi.
i really need help with a script.
in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

compare 0x4003 0x5
if 0x1 goto $option7

if thats not right can sombody please help.

thanks in advance
link
 
hi.
i really need help with a script.
in my script there is 17 parts that are different and each set the variable 0x4003 to 0x1 / 0x2 etc. the problem is that when i compare that variable to any of the set values it dosnt work.

ie: if the variable 0x4003 = 0x5 then is this the right way to compare it?:

compare 0x4003 0x5
if 0x1 goto $option7

if thats not right can sombody please help.

thanks in advance
link

Yes. That's the right way to compare variables.
 
Script...help!

I want to make a script when the player go out of town, a person stop the player.
But each time I step on the script, it freeze. Can anyone help out? Am I suppose to put the outset on the person I want or the script?
 
Uhm... Hi.
I have a problem. How can I make an earthquake on FR with pokescript without using 'special 0x136'. That special doesn't work though.
How can I do it?
Thanks. See you!
 
u need to use the special ^^''
set it like this:
#raw 0x2F 0x4B 0x01
setvar 0x8004 0x0
setvar 0x8005 0x3
setvar 0x8006 0x9
setvar 0x8007 0x2
special 0x136
pause 0x10


i'm not sure what every setvar means, but as far as I know the 8006 sets the duration.
u can change the pause, of course.
 
does anypone know how to make a cellphone in the scipt the pictur of one
 
Hi guys! I need a fast help!

I made a script which schould do the following :

1) A person says : "Hey, PLAYER! Are you..." --> It does.
2) Give egg and print message "You recived egg!" --> It does.
3) Person says : "Good luck for adventure!" --> It doesn't!!!
4) Person goes away and sprite dissapers --> It does.

If you go 1 step Up/Down/Left/Right after the script, then the person appears again!

Please, I need your help right now because I want to release the Beta1 Version of my Hack.

#org $begin
lock
faceplayer
message $wait
boxset 6
#raw 0x7A 0x93 0x00
fanfare 0x13E
message $gotit
$gotit 1 = You received an egg!
boxset 6
message $seeya
applymovement 0x07 $1
pausemove 0
#raw 0x53 0x07 0x00
setflag 0x201
waitfanfare
release
end

#org $wait
$wait 1 = Hey, [PLAYER]! Are you leaving now?\pI will miss you. But before you\ngo, I want you to obtain this.\pTake care of it, okay?

#org $seeya
$seeya 1 = Good luck for your adventure!\p

#org $1
$1 1 ; #binary 0x04 0x06 0x06 0x06 0x04 0x06 0x06 0x06 0x06 0x05 0xFE
 
Status
Not open for further replies.
Back
Top