• 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.
This is my XSE givepoke script:
Spoiler:

I want it to be a pokeball (like the one when your'e choosing the starter in FR/LG). But it doesn't work. The event doesn't want to start ;<

PS. Do I have to change the ID in A-Map?
 
Try opening the give Pokémon scripts with XSE from a different Rom, and get an idea from what it looks like. That should help you probably. That should be similar to the script your trying to make.
 
Time said:
since my question's related to scripting, I better ask it here.

elow everyone...
I wanna know how to activate, and deactivate the Latios flying around the region after beating the LEAGUE in a Ruby ROM...

edit:
also, is there a script command to play an attack move sound?

Thankies~
Well for Ruby, after you beat the Elite4 and you watch TV, it'll say that Latias/Latios has been sighted, well to solve just cancel the tv event and there's a special enabling that event.

For the sound, use sound command, and find an attack sound and use it.
 
This is my XSE givepoke script:
Content hidden:
Click here to view.
#Dynamic 8000A2

#org @start
lock
faceplayer
givepokemon 0x123 0x5 0x0 0x0 0x0 0x0
setflag 0x828
release
end





I want it to be a pokeball (like the one when your'e choosing the starter in FR/LG). But it doesn't work. The event doesn't want to start ;<

PS. Do I have to change the ID in A-Map?

Try This

#Dynamic 0x8000A2

#org @start
lock
faceplayer
checkflag 0x828
if b_true goto @pokemon
givepokemon 0x123 0x5 0x0 0x0 0x0 0x0
setflag 0x828
release
end

#org @pokemon
hidesprite 0x828
end



It should work now. Put it into a person in A-Map and change the ID to 828 (flag number)
 
Well for Ruby, after you beat the Elite4 and you watch TV, it'll say that Latias/Latios has been sighted, well to solve just cancel the tv event and there's a special enabling that event.

For the sound, use sound command, and find an attack sound and use it.

oh...
so it's a special, ei?
thanks for that info, but i need to know what special it is.

also, is the sound command used like fanfare or playsound like...
Code:
playsound 0x195
nop
nop
 
Well, all you need to know to find out the special is to open the level script!
 


oh...
so it's a special, ei?
thanks for that info, but i need to know what special it is.

also, is the sound command used like fanfare or playsound like...
Code:
playsound 0x195
nop
nop

I think playsound need only one nop.
There's also a command called sound 0x<sound number>.
I think It doesn't need a nop.
For the special thing, where does exactly the event "Latios flying around the region after beating the league" takes place? I know it but I need to recheck it.
 
somebody can give me structure script for XSE for trainer battle?
i would know how i can do a script for trainer battle by XSE
 
I have a question.
When I did my first level script, it worked perfectly.
I did another one, but it seems that I get weird messages.
I followed cooley's tutorial, but it doesn't work.
Video:
https://www.youtube.com/watch?v=SvSI373ySSg
Is there another way?
Thanks.
It seems like it tried to retrieve text from the wrong place... But I cannot tell anymore than that without seeing the script.
 
It seems like it tried to retrieve text from the wrong place... But I cannot tell anymore than that without seeing the script.

Spoiler:

It's a simple script.
I made it also in XSE and didn't work(tried it on different roms to)
 
Spoiler:

It's a simple script.
I made it also in XSE and didn't work(tried it on different roms to)
Hmmm... Worked fine for me... Although I had to change the line that said "pausemove 0" to "pause" to make it compile.

All I can think of is that you did something funky when you loaded the script into the rom.

Try inserting it again, but use diffrent pointers then you used last time.
 
Hmmm... Worked fine for me... Although I had to change the line that said "pausemove 0" to "pause" to make it compile.

All I can think of is that you did something funky when you loaded the script into the rom.

Try inserting it again, but use diffrent pointers then you used last time.

Thanks for trying.
But it didn't work in any way. I even compiled Cooley's script.
I will try and figure it out later.
Thanks again.
 
Time said:
oh...
so it's a special, ei?
thanks for that info, but i need to know what special it is.

also, is the sound command used like fanfare or playsound like...
Oh, I forgot to ask which script editor you use. Anyway, the sound command is simple:
sound 0xSound
The sound command can also play songs like the playsound/playsong command.

As for the TV thingy, these should help :)
special 0x129
clearflag 0x85D
setflag 0xFF
special 0x3E
 
Is bufferitem 0x<item number>, same as checkitem?
Also, the CMD_3E or something like that. I tried it in a script, and it acted like a pause command.
Is that it?
 
Status
Not open for further replies.
Back
Top