• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll 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.
I dunno, pokepal seems to know more about that, since I never used that special, I always used the fadescreen, since that is how I learned it...

Okay, special 0x8E refreshes the map, nothing else invloved :P It's a simple refresh and is commonly used for setmaptile but could alsp be used when hiding a person by setting a flag and activating that special, so hidesprite isn't neede. Similar thing for showing people events

hey all i guess nobody knows me since this is my 1st post :P
but i need help with this script im doing.

its with pokescript but i see alotta ppl talkin about XSE so idk if anyone uses pokescript but i thought id still try :)

well what i want to do is make the guy giving me the running shoes to dissapear after he gives me them but everytime he dissapears as soon as i take one step he reappears so here is the script
Spoiler:


so if anyone can help me id really appreciate it
thx in advanced ^^
The person event in A-map sould have it's ID equivalent to the flag which you set.
#raw 0x53 is hidesprite in Pokescript :P

What is wrong with this script?
#dynamic 0x800461

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x395 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello!\nYou are late!! I am\nalmost out of pokemon for you new\ntrainers!\pYou are lucky I have this for\nit for you!

#org @2
= Take this pokemon please.

#org @3
= [black_fr]You received a Bagon!

#org @4
= [black_fr]Would you like to give a\nnickname to Bagon?

#org @5
= Enjoy your pokemon!

#org @6
= I gave BULBASAUR CHARMANDER and \nSQUIRTLE to the other trainers.

What's wrong with it, you haven't said why it doesn't work right.

here's a script of a man giving you beldum is that OK?this script is in XSE
#Dynamic 0xoffset

#org @start
lock
faceplayer
givepokemon 0x18E 0x20 0x0 0x0 0x0 0x0
setflag 0x828
release
end

where to add text here?

Where do you want the text to appear in-game. Before or after the givepokemon? Then just add a msgbox with a pointer to the message :P
 
Hi I used this script

Code:
#org 0x800000
message 0x800100
boxset 0x5
compare LASTRESULT 0x1 
if 0x1 goto 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800200 
message 0x800400
boxset 0x6
release
end

#org 0x800100
Hello.

#org 0x800300
= You picked "NO".

#org 0x800400
= You picked "YES".


It's working but text is messed up. Does anyone know how to fix it?
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)

 
Hi I used this script

Code:
#org 0x800000
message 0x800100
boxset 0x5
compare LASTRESULT 0x1 
if 0x1 goto 0x800200
message 0x800300
boxset 0x6
release
end

#org 0x800200 
message 0x800400
boxset 0x6
release
end

#org 0x800100
Hello.

#org 0x800300
= You picked "NO".

#org 0x800400
= You picked "YES".


It's working but text is messed up. Does anyone know how to fix it?
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)


You forgot = before Hello.
It would be = Hello.
 
The person event in A-map sould have it's ID equivalent to the flag which you set.
#raw 0x53 is hidesprite in Pokescript :P

so do you mean that

No. XX is it or do i have to put the number from
person event no. ??

thanks for you answer i jus need a little more explanation well really just the little number thing after that im all gud :P
 
Hi, I'm new here and ive already got a problem.

#dynamic 0x2DD611

#org @start
lock
faceplayer
checkflag 0x7D0
if 0x1 goto @jaaa
if 0x0 goto @janee
release
end

#org @jaaa
message @komdan 0x4
closeonkeypress
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x3E9
release
end

#org @komdan
= Come with me.

#org @janee
message @TEEK 0x5
if 0x1 goto @jaaa
if 0x0 goto @gaweg
release
end

#org @TEEK
= explanation here. Want to join TEAM EEKHOORN?

#org @gaweg
msgbox @LEEK 0x5
if 0x1 goto @jaaa
if 0x0 goto @gaweg
release
end

#org @LEEK
= You dont have a choice

The script doesn't work.
What it should do:
You talk to a guy. He gives his explanation and then asks to join TEAM EEKHOORN. If you answer YES he says: ok come with me and he dissappears. When you answer NO he says you dont have a choice and then you ahev to choose again until you click YES...

The problem is: even if i choose yes, he always says again and again: You don't have a choice, it also happens when i choose no (which is supposed to be btw). :s Help, I've tried what I can.


Firered with XSE
 
What's wrong with it, you haven't said why it doesn't work right.
It won't compile in XSE it says it needs #define on line 7. Where do I put it in on the line so it will work? Thanks if you know.
 
does anybody know if this script is correct when you first go down stairs your mothers supposed to do the following but it doesn,t work but when I go back to that spot it freezes the game

Spoiler:
 
does anybody know if this script is correct when you first go down stairs your mothers supposed to do the following but it doesn,t work but when I go back to that spot it freezes the game

Spoiler:

Your Dynamic offset is terrible, you are trying to insert this script into a terrible location, filled with fragile code.

Change your Dynamic offset, and start with a CLEAN ROM, nothing edited yet, kay?
Insert it at 0x800000, and from then on.
 
Oh yeah :D thx but still it looks this way...
[PokeCommunity.com] Script Help Thread (DO NOT REQUEST SCRIPTS)


Do you think it could be that I'm doing script in notepad and then compile it with Poket Script?
Do it in XSE, Pokescript is buggy. Wait are you making the script in XSE and them compiling it with Pokescript? Because that's what probably causes it.

so do you mean that


No. XX is it or do i have to put the number from
person event no. ??

thanks for you answer i jus need a little more explanation well really just the little number thing after that im all gud :P

No, it's the ID Code near the bottom of the person event data. Change it to equale the flag you set and then you're done :P

It won't compile in XSE it says it needs #define on line 7. Where do I put it in on the line so it will work? Thanks if you know.

You proably didn't extract everything from the XSE package which means that the std.rbh hasn't been included which means it doesn't know LASTRESULT. Download the XSE package and extract all of it. For now change LASTRESULT to 0x800D :P
 
I got it in my firered but I get this:

and I got these errors too:
 
Last edited by a moderator:
Do it in XSE, Pokescript is buggy. Wait are you making the script in XSE and them compiling it with Pokescript? Because that's what probably causes it.
No no I write script in notepad, save as rbc and then compile with Pokescript.
Ok I'll try it with XSE (I have to compile in XSE right?)

 
No no I write script in notepad, save as rbc and then compile with Pokescript.
Ok I'll try it with XSE (I have to compile in XSE right?)

Yeah. Script in XSE format and the compile it. Pokescript is buggy and I never use it
 
I fixed my old problem. But now the game freezes when he gives you the pokemon
 
Here's my script:
Code:
#org 0x2BF712
checkflag 0x214
if 0x1 goto 0x816A995
checkflag 0x218
if 0x1 goto 0x82BF769
msgbox 0x82BF7C9 MSG_FACE
fanfare 0x13E
givepokemon 0x45 0x5 0x0 0x0 0x0 0x0
lock
msgbox 0x82BF773 MSG_KEEPOPEN
waitfanfare
closeonkeypress
msgbox 0x82BF794 MSG_YESNO
compare LASTRESULT 0x1
if 0x1 call 0x82BF8A1
msgbox 0x82BF875 MSG_FACE
setflag 0x218
end

#org 0x16A995
#org 0x2BF769
msgbox 0x82BF875 MSG_FACE
end

#org 0x2BF8A1
countpokemon
subvar LASTRESULT 0x1
copyvar 0x8004 LASTRESULT
fadescreen 0x1
special 0x166
waitstate
return

#org 0x2BF7C9
= I-I'm scared[.]\pWill bad people try to come and\ntake my Pokémon?\p[.] [.] [.]\pYou seem like a nice person.\nPlease, take care of my\lBELLSPROUT for me.\pDon't let bad people get it!

#org 0x2BF773
= [black_fr][player] received the BELLSPROUT!

#org 0x2BF794
= [black_fr]Would you like to rename the\ngirl's BELLSPROUT?

#org 0x2BF875
= A-Are you taking good care of\nBELLSPROUT?
Everything works...but the nicknaming.
Instead of nicknaming the BELLSPROUT, it names the second to last Pokémon in my PC box.
Can anybody help?
 
Here's my script:
Code:
#org 0x2BF712
checkflag 0x214
if 0x1 goto 0x816A995
checkflag 0x218
if 0x1 goto 0x82BF769
msgbox 0x82BF7C9 MSG_FACE
fanfare 0x13E
givepokemon 0x45 0x5 0x0 0x0 0x0 0x0
lock
msgbox 0x82BF773 MSG_KEEPOPEN
waitfanfare
closeonkeypress
msgbox 0x82BF794 MSG_YESNO
compare LASTRESULT 0x1
if 0x1 call 0x82BF8A1
msgbox 0x82BF875 MSG_FACE
setflag 0x218
end
 
#org 0x16A995
#org 0x2BF769
msgbox 0x82BF875 MSG_FACE
end
 
#org 0x2BF8A1
countpokemon
subvar LASTRESULT 0x1
copyvar 0x8004 LASTRESULT
fadescreen 0x1
special 0x[B]9E[/B]
waitstate
return
 
#org 0x2BF7C9
= I-I'm scared[.]\pWill bad people try to come and\ntake my Pokémon?\p[.] [.] [.]\pYou seem like a nice person.\nPlease, take care of my\lBELLSPROUT for me.\pDon't let bad people get it!
 
#org 0x2BF773
= [black_fr][player] received the BELLSPROUT!
 
#org 0x2BF794
= [black_fr]Would you like to rename the\ngirl's BELLSPROUT?
 
#org 0x2BF875
= A-Are you taking good care of\nBELLSPROUT?
Everything works...but the nicknaming.
Instead of nicknaming the BELLSPROUT, it names the second to last Pokémon in my PC box.
Can anybody help?

I use tha bolded special and it works for me :P
 
Umm I hve this fadescreen effect and it works but when it fades back in the map is all distorted?

fadescreen 0x1
hidesprite 0x7
hidesprite 0x4
hidesprite 0x6
hidesprite 0x5
fadescreen 0x0
 
I have a problem.

In text, I'm having trouble using the apostrophe. I just have an apostrophe, but it'll look strange (see attachment). I checked the actual game scripts using an apostrophe (specifically the Oak script in Pallet Town), and it just uses an apostrophe in the same way I do. Except, those don't look weird like mine do. Why?
 
Okay here is the script I am trying to make:

Spoiler:


And when I save it it changes to someting like this:

Spoiler:
 
Status
Not open for further replies.
Back
Top