The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary ROM Hacking (https://www.pokecommunity.com/forumdisplay.php?f=284)
-   -   [Archive] Script help thread (https://www.pokecommunity.com/showthread.php?t=120081)

-DarK- October 9th, 2008 11:14 AM

Quote:

Originally Posted by Pokepal17 (Post 4016853)
Now when I catch it it stays.
When I run away its says "Suicune ran away" but it stays.
Smoebody please help!

Replace callstd 0x4 with callstd 0x6

destinedjagold October 9th, 2008 3:25 PM

since my question's related to scripting, I better ask it here. :P

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~

エロカメ October 9th, 2008 7:50 PM

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

Tyrantrum October 9th, 2008 9:27 PM

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.

ZodiacDaGreat October 9th, 2008 10:58 PM

Quote:

Originally Posted by Time
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.

Pokepal17 October 9th, 2008 11:03 PM

Quote:

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)

destinedjagold October 9th, 2008 11:17 PM

Quote:

Originally Posted by ZodiacDaGreat (Post 4018990)
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



Ninja Caterpie October 10th, 2008 1:26 AM

Well, all you need to know to find out the special is to open the level script!

Hiche.. October 10th, 2008 6:05 AM

Quote:

Originally Posted by Time (Post 4019024)


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.

jin14 October 10th, 2008 6:51 AM

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

Hiche.. October 10th, 2008 7:23 AM

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:
http://www.youtube.com/watch?v=SvSI373ySSg
Is there another way?
Thanks.

Infamous Amos October 10th, 2008 12:54 PM

Quote:

Originally Posted by Tamerhaidar (Post 4019582)
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:
http://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.

Hiche.. October 10th, 2008 10:40 PM

Quote:

Originally Posted by Infamous Amos (Post 4020388)
It seems like it tried to retrieve text from the wrong place... But I cannot tell anymore than that without seeing the script.

Spoiler:

#org $1
checkflag 0x813
if 1 goto $done
applymovement 0xFF $move
pausemove 0
setvar 0x8008 0x1
setflag 0x813
release
end

#org $done
release
end

#org $move
#raw 0x0D
#raw 0x0D
#raw 0x0D
#raw 0x0D
#raw 0xFE

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

Infamous Amos October 10th, 2008 11:04 PM

Quote:

Originally Posted by Tamerhaidar (Post 4021984)
Spoiler:

#org $1
checkflag 0x813
if 1 goto $done
applymovement 0xFF $move
pause 0
setvar 0x8008 0x1
setflag 0x813
release
end

#org $done
release
end

#org $move
#raw 0x0D
#raw 0x0D
#raw 0x0D
#raw 0x0D
#raw 0xFE

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.

Hiche.. October 10th, 2008 11:29 PM

Quote:

Originally Posted by Infamous Amos (Post 4022026)
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.

Infamous Amos October 10th, 2008 11:31 PM

Quote:

Originally Posted by Tamerhaidar (Post 4022047)
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.

Sorry that I couldn't be much help. -_-;

ZodiacDaGreat October 11th, 2008 12:07 AM

Quote:

Originally Posted by Time
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:
Quote:

sound 0xSound
The sound command can also play songs like the playsound/playsong command.

As for the TV thingy, these should help :)
Quote:

special 0x129
clearflag 0x85D
setflag 0xFF
special 0x3E

Sgt. Custard October 11th, 2008 1:04 AM

How do you use the in-built clock in pkmn Ruby? I mean, is there a scripting function that allows you to check the time of day?
Thanks

destinedjagold October 11th, 2008 2:55 AM

Quote:

Originally Posted by ZodiacDaGreat (Post 4022098)
As for the TV thingy, these should help :)
Code:

special 0x129
clearflag 0x85D
setflag 0xFF
special 0x3E



so will this activate Latios to fly around?
thanks and I am using POKéScript. ;)

Hiche.. October 11th, 2008 3:40 AM

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?

Thrace October 11th, 2008 3:47 AM

Quote:

Originally Posted by Tamerhaidar (Post 4022399)
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?

bufferitem puts the item name into a buffer and its actually bufferitem [buffer] [itemNumber]. checkitem checks if the player has a specific amount of an item.

Err, you used a random command without knowing what it does? CMD_3E is known anyway its a type of warp. You must have remembered the number incorrectly.

Hiche.. October 11th, 2008 3:52 AM

I was going to edit my post.
I only tested it though.
Thanks for the info.

Edit: I have a question. How do I change the text in Multi scripts? Like I was to change one island to Contest 1 for example.

ZodiacDaGreat October 11th, 2008 11:44 AM

Quote:

Originally Posted by Tamerhaidar
Edit: I have a question. How do I change the text in Multi scripts? Like I was to change one island to Contest 1 for example.

Hmm.. This is extremely easy, just search for the text in Hex or with A-Text and edit them :)

Hiche.. October 11th, 2008 12:33 PM

Quote:

Originally Posted by ZodiacDaGreat (Post 4023656)
Hmm.. This is extremely easy, just search for the text in Hex or with A-Text and edit them :)

I knew that but I didn't find it in A-Text.
I go to search and type what?
Thanks for your time.

ZodiacDaGreat October 11th, 2008 2:01 PM

Quote:

Originally Posted by Tamerhaidar
I knew that but I didn't find it in A-Text.
I go to search and type what?
Thanks for your time.

The multi field name ^ ^, for pokemon/places/items it'll mostly be in CAPs. Good Luck!


All times are GMT -8. The time now is 2:34 AM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2016 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.