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)
-   -   Script Requests/Sharing/Discussion (https://www.pokecommunity.com/showthread.php?t=80304)

BOH August 29th, 2007 5:15 AM

tnx now i try, but another question: i usually begin the script with #org 0xOFFSET and not with #org $legendcelebi, because the offset indicates the correct sprites to apply the script....is the same?

for kazaam: i'm sorry

Pokeman69 August 29th, 2007 6:05 AM

Quote:

Originally Posted by ~Kazaam~ (Post 2823075)
#org $start
lock
faceplayer
message $hallo
$hallo 1 = hey, you can kiss my ass NOOB!
boxset 2
release
end

Changes are in bold.

thnx kazaam for helping me ;)

cooley August 29th, 2007 9:32 AM

Does anyone know why This Give Pokémon Script, after I get the Pokémon If I talk back to the Person I can keep on getting Eevee's and the start menu is the Safari zones'. The Script also Doesn't Say "Arggghhh" if you Refuse the Pokémon.
Code:

#org $begin
lock
faceplayer
checkflag 0x200
message $person
boxset 5
compare LASTRESULT  1
if B_False goto $notwanted
givepokemon 133 5 0
message $gotEevee
$gotEevee 1 =\v\h01! received Eevee.
boxset 6
setflag 0x800
setflag 0x200
release
end

#org $done
message $doneperson
boxset 6
release
end

#org $person
$person =Do you\n  Want it.

#org $doneperson
$doneperson =.............\n.............?!?

#org $notwanted
message $nwperson
$nwperson 1 =Arggghhh!!
release
end




And this One doesn't do what it's suppose to. If I say no then It will say "you left it there"(this is Right) but if I say Yes then I get Gibberish and don't get the Pokémon Eevee.
Code:

#org $start
faceplayer
message $take
boxset 5
compare LASTRESULT 1
if b_true goto $yes
message $leave
boxset 6
release
end

#org $yes
givepokemon 133 5 0
message $recieve
boxset 6
0x800
release
end

#org $take
$take 1 =Should I take it?

#org $leave
$leave 1 =You left it there.

#org $recieve
$receive 1 =You recieved an EEVEE


Picture of what I Mean

thethethethe August 29th, 2007 12:35 PM

Quote:

Originally Posted by cooley (Post 2824106)
Does anyone know why This Give Pokémon Script, after I get the Pokémon If I talk back to the Person I can keep on getting Eevee's and the start menu is the Safari zones'. The Script also Doesn't Say "Arggghhh" if you Refuse the Pokémon.
Code:

#org $begin
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $person
boxset 5
compare LASTRESULT  1
if B_true goto $wanted
message $nwperson
$nwperson 1 =Arggghhh!!
release
end

#org $done
message $doneperson
boxset 6
release
end

#org $person
$person 1=Do you\n  Want it.

#org $doneperson
$doneperson 1=.............\n.............?!?

#org $wanted
givepokemon 133 5 0
message $gotEevee
$gotEevee 1 =\v\h01! received Eevee.
boxset 6
setflag 0x828
setflag 0x200
release
end




And this One doesn't do what it's suppose to. If I say no then It will say "you left it there"(this is Right) but if I say Yes then I get Gibberish and don't get the Pokémon Eevee.
Code:

#org $start
faceplayer
message $take
boxset 5
compare LASTRESULT 1
if b_true goto $yes
message $leave
boxset 6
release
end

#org $yes
givepokemon 133 5 0
message $recieve
boxset 6
setflag 0x829
release
end

#org $take
$take 1 =Should I take it?

#org $leave
$leave 1 =You left it there.

#org $recieve
$receive 1 =You recieved an EEVEE


Picture of what I Mean

Okay I'll edit the scripts in your spoilers. The first one had a couple of mistakes. and the second one, only one. I've changed the setflag 0x800 to 0x829 because 0x800 is for RS and 0x829 is for FR LG.(This flag's to activate pokemon menu.
For the second script I'd say try putting it onto a different OW and see if it works then. Sometimes, OW's and triggers are the problem.


And BOH the offset at the beginning depends whether you are writing for pokescript or for scripted. Pokescript assings the offset to it(so you write $start), but in scripted, you have to do it.(so you write 0x800000)

cooley August 29th, 2007 6:23 PM

The Video:
http://www.youtube.com/watch?v=Op8MAL3rHC4
Don't know what went wrong but it might be a little Fast sorry.

I made a working Script.
Code:

#org $start
lock
faceplayer
message $celebi
$celebi 1 = Celebi: Bii
wildbattle 251 59 3
setflag 0x201
fadescreen 0
end


Pokemon celebi battle test it and see wonders(lol)

mackoo August 29th, 2007 9:48 PM

Please look at spoiler, and answer me, if you can, its very important for me - please.

Spoiler:
Quote:

Hello, I was trying to make a script, for a man number 2, to say:

Hello, we meets again!
You are really promising
trainer! I want to give
you this!
Obtained the trainer tools.
Now, I must go, but we
will meet again soon.

And to give me Pokedex, running shues, and PokeNav, and then go 3 squares down (GO not jump), and jump into the water with "plum" (like in Mitic Island trailer/okemon Jaspe - Alexmad or Magma members in Team Magma Hideout to submarine), and thisappear, and don't reapear any more time.

I've tried all, but I really don't know how to do it - please make it for me to work with PokeScript - the base rom is Ruby - I will be very pleased, and after looking on It, I will know how to do it next time ;)
Quote:

Originally Posted by mackoo (Post 2823339)
Does someone know an answer for my question?
I don't know how to good place command for giving 3 items, and for going (not jumping) , and for "plum", and how to insert so much messeages. When I'm trying to put so much things, I always do many bugs, so I need help with it.



Please look at spoiler, and answer me, if you can, its very important for me - please.

Spoiler:
Quote:

Originally Posted by mackoo (Post 2822843)
Hello, I was trying to make a script, for a man number 2, to say:

Hello, we meets again!
You are really promising
trainer! I want to give
you this!
Obtained the trainer tools.
Now, I must go, but we
will meet again soon.

I've tried all, but I really don't know how to do it - please make it for me to work with PokeScript - the base rom is Ruby - I will be very pleased, and after looking on It, I will know how to do it next time ;)


And to give me Pokedex, running shues, and PokeNav, and then go 3 squares down (GO not jump), and jump into the water with "plum" (like in Mitic Island trailer/okemon Jaspe - Alexmad or Magma members in Team Magma Hideout to submarine), and thisappear, and don't reapear any more time.

destinedjagold August 29th, 2007 10:12 PM

Quote:

Originally Posted by cooley (Post 2826198)
The Video:
http://www.youtube.com/watch?v=Op8MAL3rHC4
Don't know what went wrong but it might be a little Fast sorry.

In the video, 1:23, why did a pop-up appeared..? When I do a script using the same method, a pop-up won't appear after I assign offsets... Sometimes, it'll pop-up, but I realized, there is lacking in the script. Also, the People ID is "YES" very important. what's the script..?

Diggeh August 29th, 2007 10:16 PM

Quote:

Originally Posted by Diggeh (Post 2821983)
I have a complicated script request for Pokescript on Fire Red.

----------------------------------

Could someone help me make a situation in which:
-There's a Pokeball that you pick up with an Eevee in it.
-When you say "Yes", a Team Rocket Member steals the Pokeball
-He moves up three spaces, left one space, up two more spaces, and right once; this leaves him next to the Pokeball
-He takes the Pokeball, says a few things [what you put in the script doesn't matter], and runs upwards off of the screen.

----------------------------------

Important things bolded since I was ignored last time.

I know it's a complicated script, but I know someone out there can help me.

Sorry for quoting this again, but I posted it before the major scripters were on, so it kind of fell back and died.

BOH August 30th, 2007 12:38 AM

Quote:

Originally Posted by thethethethe (Post 2824705)
And BOH the offset at the beginning depends whether you are writing for pokescript or for scripted. Pokescript assings the offset to it(so you write $start), but in scripted, you have to do it.(so you write 0x800000)

when i compile a rbc file appear this error:

"error runtime 6: overflow"

what can i do?

thethethethe August 30th, 2007 4:11 AM

Quote:

Originally Posted by BOH (Post 2826826)
when i compile a rbc file appear this error:

"error runtime 6: overflow"

what can i do?

I'm not sure, I've never, ever had any problems with pokescript, but for some reason, so many people do. I've never had that problem so I couldn't tell you how to fix it.

destinedjagold August 30th, 2007 6:26 AM

Hey all! It's me again! ^^

Culd someone give me a list of all items in Ruby with their offsets...?

Ex.., MASTERBALL - 0x01

Thanks in advance... (though I feel like I already asked this one... Don't know.., I always forget some things I already done in the past... Oh well...)

Good day!!! ^^

BOH August 30th, 2007 6:27 AM

What database have you in the pokewitch directory?

maybe i haven't installed all datebase

mackoo August 30th, 2007 7:17 AM

Is it possible, that someon will be able to make mine script?

Christos August 30th, 2007 7:18 AM

Quote:

Originally Posted by Diggeh (Post 2826646)
Sorry for quoting this again, but I posted it before the major scripters were on, so it kind of fell back and died.

I made this one quickly, but it's for ScriptED. You can change the offsets if you used those.

Code:

#org 0x800000
message 0x800100
boxset 0x5
compare LASTRESULT 0x0
if 0x0 goto 0x800200
release
end

#org 0x800200
applymovement 0x[TR People number] 0x800300
pause 0x70
message 0x800400
boxset 0x6
#raw 0x53
#raw 0x[Pokéball's People number]
#raw 0x0
applymovement 0x[TR People number] 0x800500
pause 0x50
#raw 0x53
#raw 0x[TR People number]
release
end

#org 0x800100
= It's a POKéBALL. Take it?

#org 0x800400
= ...

#org 0x800300
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0xFE

#org 0x800500
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE



cooley August 30th, 2007 7:43 AM

Quote:

Originally Posted by mackoo (Post 2826576)
Please look at spoiler, and answer me, if you can, its very important for me - please.

Spoiler:






Please look at spoiler, and answer me, if you can, its very important for me - please.


And to give me Pokedex, running shues, and PokeNav, and then go 3 squares down (GO not jump), and jump into the water with "plum" (like in Mitic Island trailer/okemon Jaspe - Alexmad or Magma members in Team Magma Hideout to submarine), and thisappear, and don't reapear any more time.

If someone could answer it, don't you think they would. There is no such Item entitled "Trainer
Tools" but you can substitute the Item, for Something else, like Vs Seeker, and Rename it to "Trainer Tools".

BOH August 30th, 2007 7:56 AM

ok, now my pokescript go perfectly.

I use this script and the wild pokemon after cathc do not rebattle but his sprite remains, why? is not the end of the world but i prefer if he go awy

this is the script

Code:

#org $legendcelebi
lock
faceplayer
cry 251
message $celebicry
$celebicry 1 = CELEBI: Brrriii...
boxset 6
checkflag 0x200
if B_TRUE goto $endbattle
wildbattle 251 30 3
setflag 0x200
release
end

#org $endbattle
$endbattle 1 ; 0x54 0xFE



boon August 30th, 2007 8:16 AM

can sombody help me?
I insterted script and when I touch it the screen turns pink(?)
Do I have to set some thing in A-map that will make it work?
thanks in advance

the-ben August 30th, 2007 11:12 AM

can anyone post a basic traine script or perhaps a tut on how to make one?

thanks in advance

thethethethe August 30th, 2007 12:37 PM

Quote:

Originally Posted by cooley (Post 2827618)
If someone could answer it, don't you think they would. There is no such Item entitled "Trainer
Tools" but you can substitute the Item, for Something else, like Vs Seeker, and Rename it to "Trainer Tools".

I think he's using Trainer Tools as a group. Instead of saying take this pokedex, running shoes, and pokaballs, I think it was easier to say trainer tools.

Quote:

Originally Posted by BOH (Post 2827659)
ok, now my pokescript go perfectly.

I use this script and the wild pokemon after cathc do not rebattle but his sprite remains, why? is not the end of the world but i prefer if he go awy

this is the script

Code:

#org $legendcelebi
lock
faceplayer
cry 251
message $celebicry
$celebicry 1 = CELEBI: Brrriii...
boxset 6
checkflag 0x200
if B_TRUE goto $endbattle
wildbattle 251 30 3
setflag 0x200
release
end

#org $endbattle
$endbattle 1 ; 0x54 0xFE



There were a few problems with this script, I corrected it a few posts earlier.
Code:

#org $legendcelebi
lock
faceplayer
cry 251
message $celebicry
$celebicry 1 = CELEBI: Brrriii...
boxset 6
wildbattle 251 30 3
setflag 0x200
fadescreen 0
release
end

#org $endbattle
$endbattle 1 ; 0x54(for RS)(0x60 for FR LG) 0x(Get it out of the way.) 0xFE


Quote:

Originally Posted by the-ben (Post 2828152)
can anyone post a basic traine script or perhaps a tut on how to make one?

thanks in advance

Yeh here it is.
Quote:

#org $start
checkflag 0x208
if B_true goto $done
trainerbattle 1 0x002 $before $after $further
release
end

#org $further
setflag 0x208
release
end

#org $done
message $boo
boxset 6
release
end

#org $before
$before 1 =Check out my bugs

#org $after
$after 1 =Oh no!

#org $boo
$boo 1 =I'll get you back for this.

cooley August 30th, 2007 12:58 PM

Quote:

Originally Posted by the-ben (Post 2828152)
can anyone post a basic traine script or perhaps a tut on how to make one?

thanks in advance

There is A tool For Scripting named "ESM" aka Easy Script maker, I have it and it is Super Easy to make Scripts, all you have to do is click the buttons and type in what you want to do(Wild battle=Type the pokemon, level and Item) and it does the Rest for you.
If you Want it then I'll PM you.

Diggeh August 30th, 2007 2:01 PM

Quote:

Originally Posted by Semele (Post 2827546)
I made this one quickly, but it's for ScriptED. You can change the offsets if you used those.

Code:

#org 0x800000
message 0x800100
boxset 0x5
compare LASTRESULT 0x0
if 0x0 goto 0x800200
release
end

#org 0x800200
applymovement 0x[TR People number] 0x800300
pause 0x70
message 0x800400
boxset 0x6
#raw 0x53
#raw 0x[Pokéball's People number]
#raw 0x0
applymovement 0x[TR People number] 0x800500
pause 0x50
#raw 0x53
#raw 0x[TR People number]
release
end

#org 0x800100
= It's a POKéBALL. Take it?

#org 0x800400
= ...

#org 0x800300
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0xFE

#org 0x800500
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0xFE



Okay, thanks. ScriptED it is then.

I have a few questions, though.

1) Would I need a separate TR Member script? If so, could you help me with that? I mostly use PokeScript, so I'm not familiar with ScriptED.
2) Which script offsets would go where in AdvanceMap? Could you possibly create this script on a copy of a ROM and show me which offset goes where?
3) I also have a script outline for a trainer battle for ScriptED, but I was wondering if it was possible to add a "givepokemon" command for a level 5 Eevee after the battle, and to make him disappear.

I'm sorry this is so complicated. D:

...Aaaaaaaaand I can't find ScriptED. I know it's probably wrong to ask, but since it's not in the Toolbox forum nor on Google...

D:

Quilava's Master August 30th, 2007 6:01 PM

Can anybody give me a script for a suicune just a normal everyday script. You talk to suicune it cries you battle

Christos August 30th, 2007 7:47 PM

Quote:

Originally Posted by Diggeh (Post 2828742)
Okay, thanks. ScriptED it is then.

I have a few questions, though.

1) Would I need a separate TR Member script? If so, could you help me with that? I mostly use PokeScript, so I'm not familiar with ScriptED.
2) Which script offsets would go where in AdvanceMap? Could you possibly create this script on a copy of a ROM and show me which offset goes where?
3) I also have a script outline for a trainer battle for ScriptED, but I was wondering if it was possible to add a "givepokemon" command for a level 5 Eevee after the battle, and to make him disappear.

I'm sorry this is so complicated. D:

...Aaaaaaaaand I can't find ScriptED. I know it's probably wrong to ask, but since it's not in the Toolbox forum nor on Google...

D:

Just replace the offsets in the scripts so that you can compile it with PokeScript. "800000" is the main offset.
And for the TR member you just have to put it in the right place in the map so that it will move and take the pokeball.

WindBlows August 30th, 2007 8:03 PM

Hey I need a simple script for ScriptED, please!!


I need a person that tell to you:

Huh?
What are you doing here?!?!
Oh.... you are gonna battle me?!
Nah, you are too weak....
See you!


then he run 2 block to the right, then 5 down and dissapears!!
and if its possible while he says his text, I'd like the TeamRocket music!

Thanks!

destinedjagold August 30th, 2007 10:24 PM

Hi, it's me again!
Can anyone check my script please...

Spoiler:

#org $warpback
checkflag 0x211
if B_TRUE goto $done
applymovement 04 $move
pausemove 0
message $cry
$cry 1 = blahblahblahblahblah......
boxset 6
warp 24 11 13
setflag 0x211
release
end

#org $move
$move 1 ; #binary 0x04 0x04 0x04 0x04 0x04 0x04 0x04 0xFE

#org $done
release
end


The script won't work...

Thanks in advance...


All times are GMT -8. The time now is 2:32 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.