• 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 Requests/Sharing/Discussion

Status
Not open for further replies.
I have a question about #raw 0x60 ( disappear )
If i use flags and i let them dissappear they won't show up again?
#org 0x blablabla
checkflag 0x100
blablabla
setflag 0x100
end

blablabla

is this correct with the flags?
 
.........

can someone make me a script , a boat script its for a ruby rom and it needs to go to bank 35. map 9. i'd like it to say your a trainer arent you? Would you like me to take you overseas to newbark town? Yes/No ,
and then another taking me back to bank 35 map 7, saying ; would you like to return to london? yes/no.........
 
If you want an event to block the person it's not like the E4's script. You can use the "setmaptile" command to edit a block like in the E4's script to unblock the entrance to the forest.

Whats that is that done in advanced map?If so what block number?
 
Whats that is that done in advanced map?If so what block number?
No, that's not done in AM.. You need to script that part..
Rubikon Commands said:
setmaptile (A2)
setmaptile iX iY iTileNo iTileAttr
Sets a tile on the map. You must somehow refresh that part, can be done by scrolling out of view and back in or by calling this command from a Level Script.

can someone make me a script , a boat script its for a ruby rom and it needs to go to bank 35. map 9. i'd like it to say your a trainer arent you? Would you like me to take you overseas to newbark town? Yes/No ,
and then another taking me back to bank 35 map 7, saying ; would you like to return to london? yes/no.........
Here's a script made by Dark E.. maybe you can use it and edit it. ;)
Spoiler:
 
Last edited:
I need help opening the Pokescript program. I mean I download but how do I load the rom? (Ruby)
 
Hey There,

This relates to Pokemon Ruby by the way,

I was just thinking about this and was curious. I'm quite aware that there is a script command for CheckItem but I was wondering whether there is a command for CheckPokemon. The idea behind this is say for example you picked the fire type pokemon at the start of the game then a certain event would occur however if you picked another then a different event would occur.

Get back to me when you can,
~Davie~

Well, I'll tell you how the game deals with that. They just have a variable and they set that variable into three possible values. But making things short, as long as you are dealing with FR, and you still use the original Pokeball choosing script, I can tell you what you'd need to do...

compare 0x4031 0x0
if 0x1 call 0xEVENT1
compare 0x4031 0x1
if 0x1 call 0xEVENT2
compare 0x4031 0x2
if 0x1 call 0xEVENT3

[EDIT]: Argh, you were doing things in Ruby, well, at least this may help someone else, if someone knows the value in Ruby...

I have a question about #raw 0x60 ( disappear )
If i use flags and i let them dissappear they won't show up again?
#org 0x blablabla
checkflag 0x100
blablabla
setflag 0x100
end

blablabla

is this correct with the flags?

Basically, all you'd need to do in the script is the movement, and then a setflag 0x100, then in Advance Map assign to that sprite that "100" into its People ID., that's enough to make it dissappear forever, once you've refreshed the screen (Don't forget that #raw 0x60 won't really disappear the sprite, just will hide it, so better move it somewhere safe once it has been "hidden", so our player won't be able to interact with the "hidden" sprite). Once the screen has been refreshed (by warping or whatever) you won't have to worry 'bout that sprite ever again.
 
Last edited:
And if you have 2 people?
Can i give both the flag in their people ID?

( they are in the same script )

EDIT: and they the people ID haves 4 numbers, is it 0100 or 1000.
 
Last edited:
when i compile a script in scriptED it says overflow how does thit cames?

i do push on the ... and load firered
then i copy the script in scriptED
then i save it
then i compile it

some1 that know the probleme?

does some1 got a move script for scriptED for fr so the persone moves after the E4 is defeated? or pokewitch?
 
Last edited:
never mind about that earlier question, that's solved.

Does anybody knows what songs are the fanfare codes in FR/LG?
I tried certain fanfare codes, but they all just did that sound when you get a item.
 
when i compile a script in scriptED it says overflow how does thit cames?

i do push on the ... and load firered
then i copy the script in scriptED
then i save it
then i compile it

some1 that know the probleme?

does some1 got a move script for scriptED for fr so the persone moves after the E4 is defeated? or pokewitch?

I can tell you what that is...
The value LASTRESULT is equal to the value 0x800d which (as a signed int) interprets as a negitive value. There are other values that do that too, You'll see it written there in the script! While it decode the value as a negitive value when you encode it again the program will crash cause you can't have negetive offsetts. You have to replace those negetive values with the apropriate hex value manually!

- EDIT -
Note: Pokescript doesn't have that trouble.. I've tested this!
 
Last edited:
In the beginning of the game when you wanna go in the grass Prof Oak stops you.
Well, I wanna change the way how he walks after that :)
So:

Normaly:
He comes to get you, goes down, then to the right and then he enters his lab.

I want:
For example that he goes 4 staps down, 4 left, ...

This is my first day of scripting so this is what I think it should be.. (Or something like it)
Code:
#org 0x800000
checkflag 0x10A
compare LASTRESULT 0x1
if 0x1 goto 0x80050
setflag 0x10A
message 0x800010
boxset 0x2
applymovement 0x1 0x800020
pause 0x40
faceplayer
message 0x800030
boxset 0x2
applymovement 0x3 0x800040
pause 0x90
end

#org 0x800010
= Hey! Wait!

#org 0x800020
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0x09
#raw 0xFE

#org 0x800030
= Don't go in the grass, blabla

#org 0x800040
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x09
#raw 0xFE

#org 0x800050
end

Is it something like this? Or what is wrong? Didn't tried to insert it yet :)

PS. You can also tell me in dutch if that's easyer for you :p
 
Ok, My question:
What is the script to make event dissapear?
Can I set when player step on a tile, a man will auto walk towards player? Then how?
How to set trainer events? How to set the trainer own what pokemon?
 
Ok, My question:
What is the script to make event dissapear?
Can I set when player step on a tile, a man will auto walk towards player? Then how?
How to set trainer events? How to set the trainer own what pokemon?
I'll try to answer your questions..
1. I've heard you just need to 'setflag' with as flag the Person ID (right ?)
2. Now: Make a new trigger using AM (It's called Script there../The green S in EventView) Put your script anywhere.. and I THINK, when you walk over it, it'll be activated.
For the person walking to you, put that in your script using 'applymovement'
3. Using 'trainerbattle'.. with the new trainer ID go to PET and edit his Pokémon
 
There is another method if you are simply creating a trainer. In Advanced map click the 'Trainer' checkbox to active. Then set the view range field to a number of spaces. If both you and the trainer are on the screen at the same time, and the trainer's facing you (and close enough) he will walk towards you and activate!


As for doing it with scripts
In elite map create (or commodeer) a script object.
Set it's properties to read like this:

Flag Value: 03 00
Flag Number: <A flag you set to stop the script happening again>
Unknown (Both of these are 0)
Script offset: You're offset!

... Inside the script do as Trogh said. Make your applymove effect a sprite on the map and if the character is supposed to disapear then set a flag for the sprite as well!
 
Does anybody knows what songs are the fanfare codes in FR/LG?
I tried certain fanfare codes, but they all just did that sound when you get a item.
 
I am write multi questions.
1.How generate non-repeat scripts??
2.How are byte commands(setbyte,copybyte etc.)
3.How add or delete move data?
 
1. Use flags.. checkflag & setflag; or maybe killscript ^^
2. Don't know
3. applymovement $personID $movementoffset
#org $movementoffset
#raw movement_here
#raw movement_here
#raw 0xFE 'needs to be here..
 
Status
Not open for further replies.
Back
Top