• 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.
Is there any way to change the PC option in your house through scripting?

Example:
Ash booted up his PC.

> Withdraw Items
> Deposit Items
> Play Mini-Game

Bolded option.

Any way?

Yes, use Advance Text for that.
I think it's in the bottom.
 
what is command script for XSE substitute jingle command in poketscrpit?
 
Hey, I was wondering if it was possible to start a trainer battle, but have the script continue after the Player loses?

Thanks in advance
 
No, you can't continue after a loss. After losing, the battle stuff shows you losing moneys and stuff and then you get warped to a Pokemon center.
 
Oh woops didn't read it properly, my bad.

trainerbattle 0x9 0x[trainerNumber] 0x3 [textBefore] [textAfter]
goto [scriptAfter]

Unfortunately if you use this the Oak dialouge appears like when you battle Rival for the first time.
 
Oh woops didn't read it properly, my bad.

trainerbattle 0x9 0x[trainerNumber] 0x3 [textBefore] [textAfter]
goto [scriptAfter]

Unfortunately if you use this the Oak dialouge appears like when you battle Rival for the first time.
You can just use A-text or a hex editor to edit the text in the dialouge though. =D
I do have one question on that subject though.
If I were to delete all of the text from the dialouge box, will an empty box show up, or will the boxes disappear?
And also, how do you define which script will be picked if you win or lose the battle?
For instance, if you win the battle the opponent would say:
"Aww, you are too good"
and if you lose:
"HA! I won!"

How can I do that?
 
You can just use A-text or a hex editor to edit the text in the dialouge though. =D
I do have one question on that subject though.
If I were to delete all of the text from the dialouge box, will an empty box show up, or will the boxes disappear?
And also, how do you define which script will be picked if you win or lose the battle?
For instance, if you win the battle the opponent would say:
"Aww, you are too good"
and if you lose:
"HA! I won!"

How can I do that?
Yeah I imagine it would since you're only editing the text.

I made a mistake again, it should be [textLose] [textWin] instead of what I wrote. Those are only pointers to text anyway not for another script. To go to a script after you need to use the goto/call command.
 
Yeah I imagine it would since you're only editing the text.

I made a mistake again, it should be [textLose] [textWin] instead of what I wrote. Those are only pointers to text anyway not for another script. To go to a script after you need to use the goto/call command.
Oh... I meant like when you fight Gary Oak in the very beginning of Fire Red Version.
If you win, then you exit the battle screen. He says different text than if you lost.

So, how would I do that?
 
I have made a script where you get the running shoes using the special command but after the event , i cant run using the b button. Can anyone help me? Thks

The command for running shoes isn't a special.
It's setflag 0x82F for Fire red.
Hope that helps.
 
The command for running shoes isn't a special.
It's setflag 0x82F for Fire red.
Hope that helps.

opps i meant to say setflag nt special. I use setflag in my script, but i m gonna check it out just in case thks.
 
When you use fadescreen, is it possible to write text? As in, when the screen goes black, and before it's back to normal, a text appears. Like the one when you faint(Ash rushed to the pokemon center keeping......).
 
Can you show me how?
Or a guide ? (I lost all the saved sites(favorites) on my Fire fox)
Thanks.

Im not quite to sure, but i think it
goes like this.

Code:
fadescreen 0x1
message $message
boxset 6(whatever you want)
fadescreen 0x0

Ill go try it out myself.

EDIT: it does work. I hope this helps.
 
Last edited:
Im not quite to sure, but i think it
goes like this.

Code:
fadescreen 0x1
message $message
boxset 6(whatever you want)
fadescreen 0x0
Ill go try it out myself.

Thanks it worked.
I only misspelled fadescreen.
Thanks for the reply again.
 
Status
Not open for further replies.
Back
Top