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)

Red Silvers September 18th, 2008 1:01 PM

Quote:

Whats the PET ID of the person?
003. My understanding is that I have to reverse it, though?

Satoshi Sugimori September 18th, 2008 1:51 PM

BIGGIE script :O
Can someone check this script I can't do it i'm to tired of writing it :P
Spoiler:
#org $startrocket
lock
checkflag 0x802
if B_TRUE goto $done
applymovement 0x6 $move
pausemove 0x10
message $rocketv1
boxset 6
applymovement 0x7 $movea
pausemove 0x0
message $kid
boxset 6
message $hero
boxset 6
applymovement 0x1 $moveb
applymovement 0x2 $moveb
applymovement 0x3 $moveb
applymovement 0x4 $moveb
applymovement 0x5 $moveb
applymovement 0x6 $moveb
applymovement 0x7 $moveb
pausemove 0x0
message $hero1
boxset 6
message $rocketv2
boxset 6
applymovement 0xFF $movehero
pausemove 0x0
applymovement 0x4 $rocketbounce
pausemove 0x0
message $rocket
boxset 6
applymovement 0x1 $movec
applymovement 0x2 $movec
applymovement 0x3 $movec
applymovement 0x5 $movec
applymovement 0x6 $movec
pausemove 0x0
applymovement 0x1 $moved
applymovement 0x2 $moved
applymovement 0x3 $moved
applymovement 0x5 $moved
applymovement 0x6 $moved
pausemove 0x0
#raw 0x53 0x01 0x00
#raw 0x53 0x02 0x00
#raw 0x53 0x03 0x00
#raw 0x53 0x05 0x00
#raw 0x53 0x06 0x00
applymovement 0x4 $movee
pausemove 0x0
applymovement 0x4 $movef
pausemove 0x0
#raw 0x53 0x04 0x00
setflag 0x802
release
end

#org $done
release
end

#org $move
#raw 0x53 0x65 0xFE
#org $rocketv1
$rocketv1 1 =Rocket Grunt : \nWhere is the ball!\pYou little brat!
#org $movea
#raw 0x53 0x64 0x00 0x64 0x01 0x64 ox02 0x64 0x03 0x64 0x00 0xFE
#org $kid
$kid 1 =I..I Do..n't..\nkn..o.oooowww\pWheee...Wheee\nWheee...Wheee
#org $hero
$hero 1 =Hey you!
#org $moveb
#raw 0x53 0x63 0xFE
#org $hero1
$hero1 1 =Do you always tease \nlittle kids!
#org $rocketv1
$rocketv1 1 =Rocket Grunt : SHUT UP!\nGo and ask your mommy\pto give you a lolly!
#org $movehero
#raw 0x11 0x11 0x00 0x1D 0x1D 0x1D 0xFE
#org $rocketbounce
#raw 0x31 0x01 0xFE
#org $rocket
$rocketv1 1 =Rocket: Whoow kid!\nDidn't want to piss \pyou off!\nTEAM ROCKET GO!
#org $movec
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
#org $moved
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

#org $movee
#raw 0x02 0x03 0x00 0x1D 0x1D 0x1F 0x00 0x01 0x2 0xFE
#org $movef
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

+Sneasel™ September 18th, 2008 1:55 PM

Quote:

Originally Posted by Poke-Roy (Post 3949514)
BIGGIE script :O
Can someone check this script I can't do it i'm to tired of writing it :P
Spoiler:
#org $startrocket
lock
checkflag 0x802
if B_TRUE goto $done
applymovement 0x6 $move
pausemove 0x10
message $rocketv1
boxset 6
applymovement 0x7 $movea
pausemove 0x0
message $kid
boxset 6
message $hero
boxset 6
applymovement 0x1 $moveb
applymovement 0x2 $moveb
applymovement 0x3 $moveb
applymovement 0x4 $moveb
applymovement 0x5 $moveb
applymovement 0x6 $moveb
applymovement 0x7 $moveb
pausemove 0x0
message $hero1
boxset 6
message $rocketv2
boxset 6
applymovement 0xFF $movehero
pausemove 0x0
applymovement 0x4 $rocketbounce
pausemove 0x0
message $rocket
boxset 6
applymovement 0x1 $movec
applymovement 0x2 $movec
applymovement 0x3 $movec
applymovement 0x5 $movec
applymovement 0x6 $movec
pausemove 0x0
applymovement 0x1 $moved
applymovement 0x2 $moved
applymovement 0x3 $moved
applymovement 0x5 $moved
applymovement 0x6 $moved
pausemove 0x0
#raw 0x53 0x01 0x00
#raw 0x53 0x02 0x00
#raw 0x53 0x03 0x00
#raw 0x53 0x05 0x00
#raw 0x53 0x06 0x00
applymovement 0x4 $movee
pausemove 0x0
applymovement 0x4 $movef
pausemove 0x0
#raw 0x53 0x04 0x00
setflag 0x802
release
end

#org $done
release
end

#org $move
#raw 0x53 0x65 0xFE
#org $rocketv1
$rocketv1 1 =Rocket Grunt : \nWhere is the ball!\pYou little brat!
#org $movea
#raw 0x53 0x64 0x00 0x64 0x01 0x64 ox02 0x64 0x03 0x64 0x00 0xFE
#org $kid
$kid 1 =I..I Do..n't..\nkn..o.oooowww\pWheee...Wheee\nWheee...Wheee
#org $hero
$hero 1 =Hey you!
#org $moveb
#raw 0x53 0x63 0xFE
#org $hero1
$hero1 1 =Do you always tease \nlittle kids!
#org $rocketv1
$rocketv1 1 =Rocket Grunt : SHUT UP!\nGo and ask your mommy\pto give you a lolly!
#org $movehero
#raw 0x11 0x11 0x00 0x1D 0x1D 0x1D 0xFE
#org $rocketbounce
#raw 0x31 0x01 0xFE
#org $rocket
$rocketv1 1 =Rocket: Whoow kid!\nDidn't want to piss \pyou off!\nTEAM ROCKET GO!
#org $movec
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
#org $moved
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

#org $movee
#raw 0x02 0x03 0x00 0x1D 0x1D 0x1F 0x00 0x01 0x2 0xFE
#org $movef
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

Looks fine except I don't htink the lock is needed. Otherwise, I don't think anything glitchy will happen, unless you messed up on movemetns or soemthing =X Nah, you're too good to do that ;)

Hiche.. September 18th, 2008 1:59 PM

Poke-Roy

You wrote pausemove 0x10 .. I don't think there is such a command. replace 0x10 with 0x0 or 0, and for the people numbers in the applymovement command, I think you should add a 0 before all the numbers( 0x04 not 0x4)

Hope that helps.

Satoshi Sugimori September 18th, 2008 2:33 PM

Quote:

Originally Posted by Tamerhaidar (Post 3949551)
Poke-Roy

You wrote pausemove 0x10 .. I don't think there is such a command. replace 0x10 with 0x0 or 0, and for the people numbers in the applymovement command, I think you should add a 0 before all the numbers( 0x04 not 0x4)

Hope that helps.

Thanks for the help ill try it ;)

KhaosKnight September 18th, 2008 3:11 PM

Quote:

Originally Posted by Poke-Roy (Post 3949514)
BIGGIE script :O
Can someone check this script I can't do it i'm to tired of writing it :P
Spoiler:
#org $startrocket
lock
checkflag 0x802
if B_TRUE goto $done
applymovement 0x6 $move
pausemove 0x10
message $rocketv1
boxset 6
applymovement 0x7 $movea
pausemove 0x0
message $kid
boxset 6
message $hero
boxset 6
applymovement 0x1 $moveb
applymovement 0x2 $moveb
applymovement 0x3 $moveb
applymovement 0x4 $moveb
applymovement 0x5 $moveb
applymovement 0x6 $moveb
applymovement 0x7 $moveb
pausemove 0x0
message $hero1
boxset 6
message $rocketv2
boxset 6
applymovement 0xFF $movehero
pausemove 0x0
applymovement 0x4 $rocketbounce
pausemove 0x0
message $rocket
boxset 6
applymovement 0x1 $movec
applymovement 0x2 $movec
applymovement 0x3 $movec
applymovement 0x5 $movec
applymovement 0x6 $movec
pausemove 0x0
applymovement 0x1 $moved
applymovement 0x2 $moved
applymovement 0x3 $moved
applymovement 0x5 $moved
applymovement 0x6 $moved
pausemove 0x0
#raw 0x53 0x01 0x00
#raw 0x53 0x02 0x00
#raw 0x53 0x03 0x00
#raw 0x53 0x05 0x00
#raw 0x53 0x06 0x00
applymovement 0x4 $movee
pausemove 0x0
applymovement 0x4 $movef
pausemove 0x0
#raw 0x53 0x04 0x00
setflag 0x802
release
end

#org $done
release
end

#org $move
#raw 0x53 0x65 0xFE
#org $rocketv1
$rocketv1 1 =Rocket Grunt : \nWhere is the ball!\pYou little brat!
#org $movea
#raw 0x53 0x64 0x00 0x64 0x01 0x64 ox02 0x64 0x03 0x64 0x00 0xFE
#org $kid
$kid 1 =I..I Do..n't..\nkn..o.oooowww\pWheee...Wheee\nWheee...Wheee
#org $hero
$hero 1 =Hey you!
#org $moveb
#raw 0x53 0x63 0xFE
#org $hero1
$hero1 1 =Do you always tease \nlittle kids!
#org $rocketv1
$rocketv1 1 =Rocket Grunt : SHUT UP!\nGo and ask your mommy\pto give you a lolly!
#org $movehero
#raw 0x11 0x11 0x00 0x1D 0x1D 0x1D 0xFE
#org $rocketbounce
#raw 0x31 0x01 0xFE
#org $rocket
$rocketv1 1 =Rocket: Whoow kid!\nDidn't want to piss \pyou off!\nTEAM ROCKET GO!
#org $movec
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
#org $moved
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE

#org $movee
#raw 0x02 0x03 0x00 0x1D 0x1D 0x1F 0x00 0x01 0x2 0xFE
#org $movef
#raw 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE



If you are using XSE then there is a proofread function built in that tells you the line and char were it notices an unrecognized command.

Red Silvers September 18th, 2008 3:11 PM

Looks like its still not working :(

Still thanks for the help... I'm gonna keep reading around and hope I figure it out.

Satoshi Sugimori September 19th, 2008 12:56 AM

Quote:

Originally Posted by KhaosKnight (Post 3949782)
If you are using XSE then there is a proofread function built in that tells you the line and char were it notices an unrecognized command.

I don't use XSE..

But does anyone know how to make sprites disappeatr in a script and I really mean disappear not that when you move their back or if you re enter the map their back????

Kaizer-X September 19th, 2008 1:08 AM

Quote:

Originally Posted by Poke-Roy (Post 3950812)
I don't use XSE..

But does anyone know how to make sprites disappeatr in a script and I really mean disappear not that when you move their back or if you re enter the map their back????

hmm try putting this number 002C in advance map under player id
if it doesn't work try 003B

Satoshi Sugimori September 19th, 2008 2:16 AM

Quote:

Originally Posted by Kaizer-X (Post 3950827)
hmm try putting this number 002C in advance map under player id
if it doesn't work try 003B

worked it out thank you :)

Hiche.. September 19th, 2008 3:46 AM

Spoiler:

#dynamic 0x800000

#org @poke
lock
faceplayer
checkflag 0x829
if b_true goto @done
message @poke
boxset 0x6
message @take
boxset 0x6
applymovement 0x1 @move
waitmovement
special 0x16F
setflag 0x829
release
end

#org @poke
= ..(message here)

#org @take
= (message here)

#org @done
release
end

#org @move
#raw 0x60 0xFE


In this script, do I just write waitmovement or waitmovement with a 0?
Also please check if the script is correct.
Another question, when I use "special 0x17B", for a ship script, I always transport me to one of the Islands( 1,2,etc)
Is there a way to change that? I want to go somewhere else.
Thanks in advance.

jin14 September 19th, 2008 11:13 AM

wacht this script why don'go!
when i insert it the people talk but don't move why?
you can help me!

TB Pro September 19th, 2008 12:03 PM

Quote:

Originally Posted by Tamerhaidar (Post 3950962)
Spoiler:

#dynamic 0x800000

#org @poke
lock
faceplayer
checkflag 0x829
if b_true goto @done
message @poke
boxset 0x6
message @take
boxset 0x6
applymovement 0x1 @move
waitmovement
special 0x16F
setflag 0x829
release
end

#org @poke
= ..(message here)

#org @take
= (message here)

#org @done
release
end

#org @move
#raw 0x60 0xFE


In this script, do I just write waitmovement or waitmovement with a 0?
Also please check if the script is correct.
Another question, when I use "special 0x17B", for a ship script, I always transport me to one of the Islands( 1,2,etc)
Is there a way to change that? I want to go somewhere else.
Thanks in advance.

Yeah, just put waitmovement 0 :) And I don't know how t do that, although if I remember right there was a tutorial somewhere about that....

Quote:

Originally Posted by jin14 (Post 3951571)
wacht this script why don'go!
when i insert it the people talk but don't move why?
you can help me!

Uhhh...What exactly are you talking about? It would help if we could see the script.

Ninja Caterpie September 19th, 2008 3:22 PM

Tamerhaider, read the Rom Hackers Newsletter. The second one has a thing on how to do that.

Hiche.. September 20th, 2008 3:30 AM

Quote:

Originally Posted by Dark Lakitu (Post 3952284)
Tamerhaider, read the Rom Hackers Newsletter. The second one has a thing on how to do that.

Thanks Dark Lakitu.
I got it to work now, well half of it.

-DarK- September 20th, 2008 4:42 AM

Code:

#Dynamic 0x9A6740

#org @start
checkflag 0x201
if b_true goto @gone
lock
faceplayer
giveitem 0x3 0x5 0x0
setflag 0x201
release
end

#org @gone
hidesprite 0x8
end


It doesn't work somehow... Anyone knows why?

jin14 September 20th, 2008 6:14 AM

this is correct?
#dynamic 0x877569

#org @start
lock
faceplayer
applymovement 0x0F @lino
waitmovement 0x2
message @trino
boxset 6
release
end

#org @lino
#raw 0x1
#raw 0x1
#raw 0xFE

#org @trino
= Ciao.

Shadows September 20th, 2008 7:42 AM

Quote:

Originally Posted by DarkSalamence (Post 3954141)
Code:

#Dynamic 0x9A6740

#org @start
checkflag 0x201
if 0x1 goto @gone
lock
faceplayer
giveitem 0x3 0x5 0x0
setflag 0x201
warp 0x(add the correct # here) 0x 0x 0x 0x
hidesprite 0x8
release
end

#org @gone
release
end

end


It doesn't work somehow... Anyone knows why?

The way hidesprite works for me, is that you need to place a warp in the spot the player will be, and warp to that spot after the hidesprite activates.Add a warp on advanced map, it doesn't have to go anywhere...

jin14 September 20th, 2008 7:45 AM

T can you help me i have post my problem in the before message please help me!

Shadows September 20th, 2008 7:46 AM

Quote:

Originally Posted by jin14 (Post 3954420)
this is correct?
#dynamic 0x877569

#org @start
lock
faceplayer
applymovement 0x0F @lino
waitmovement 0x0
message @trino
callstd 0x6
release
end

#org @lino
#raw 0x1
#raw 0x1
#raw 0xFE

#org @trino
= Ciao.

This should Work properly...

jin14 September 20th, 2008 7:58 AM

BUT CALLSTD ISN'T FOR POKET SCRIPT

Shadows September 20th, 2008 8:03 AM

Quote:

Originally Posted by jin14 (Post 3954744)
BUT CALLSTD ISN'T FOR POKET SCRIPT

Lol, get XSE...
You've been scripting in XSE the whole time...

jin14 September 20th, 2008 8:21 AM

ok thank you i remember you

-DarK- September 20th, 2008 10:43 AM

Code:

#Dynamic 0x86A7E4

#org @start
lockall
applymovement 0x9 @left
waitmovement 0x0
call @start2
releaseall
end

#org @start2
checkflag 0x204
if b_true goto @gone
checkflag 0x861
if b_false goto @nodex
else goto @havedex
end

#org @havedex
msgbox @upgrade
boxset 0x5
compare LASTRESULT 1
if b_true goto @getdex
else goto @notwant
end

#org @upgrade
= Hello there. I just noticed that\nyou have a POKéDEX. I research\lPOKéMON from foreigns lands like\lKANTO and JOHTO. Would you like me\lto upgrade your POKéDEX so that it\lcan store those POKéMON's data?

#org @getdex
msgbox @receivedex
fanfare 0x13E
boxset 0x6
special 0x1F3
waitfanfare
fadescreen 1
hidesprite 0x9
fadescreen 0
setflag 0x204
end

#org @receivedex
= [player]'s POKéDEX got upgraded.

#org @notwant
msgbox @no
boxset 0x6
end

#org @no
= Oh? You don't want to? Well that's\nok then. If you change your mind,\lcome see me again.

#org @nodex
msgbox @hello2
boxset 0x6
end

#org @hello2
= Hi there. I'm researching POKéMON\nfrom foreign lands like KANTO and\lJOHTO. If you could bring me a\lPOKéDEX, I would upgrade it with\lthe information about POKéMON found\lonly there.

#org @gone
hidesprite 0x9
end

#org @left
#raw 0x02
#raw 0xFE


Plz help. I dunno how to use setvar (don't understand how they use it in tutorials) so plz explain. [NOTE: The script without the first part (the part before start2) works perfect, but I need the applymovement thing so that the person who's part of that script turns toward me when I'm passing left to him]

Thrace September 20th, 2008 5:47 PM

Quote:

Originally Posted by DarkSalamence (Post 3955303)
Code:

#Dynamic 0x86A7E4

#org @start
lockall
applymovement 0x9 @left
waitmovement 0x0
call @start2
releaseall
end

#org @start2
checkflag 0x204
if b_true goto @gone
checkflag 0x861
if b_false goto @nodex
else goto @havedex
end

#org @havedex
msgbox @upgrade
boxset 0x5
compare LASTRESULT 1
if b_true goto @getdex
else goto @notwant
end

#org @upgrade
= Hello there. I just noticed that\nyou have a POKéDEX. I research\lPOKéMON from foreigns lands like\lKANTO and JOHTO. Would you like me\lto upgrade your POKéDEX so that it\lcan store those POKéMON's data?

#org @getdex
msgbox @receivedex
fanfare 0x13E
boxset 0x6
special 0x1F3
waitfanfare
fadescreen 1
hidesprite 0x9
fadescreen 0
setflag 0x204
end

#org @receivedex
= [player]'s POKéDEX got upgraded.

#org @notwant
msgbox @no
boxset 0x6
end

#org @no
= Oh? You don't want to? Well that's\nok then. If you change your mind,\lcome see me again.

#org @nodex
msgbox @hello2
boxset 0x6
end

#org @hello2
= Hi there. I'm researching POKéMON\nfrom foreign lands like KANTO and\lJOHTO. If you could bring me a\lPOKéDEX, I would upgrade it with\lthe information about POKéMON found\lonly there.

#org @gone
hidesprite 0x9
end

#org @left
#raw 0x02
#raw 0xFE


Plz help. I dunno how to use setvar (don't understand how they use it in tutorials) so plz explain. [NOTE: The script without the first part (the part before start2) works perfect, but I need the applymovement thing so that the person who's part of that script turns toward me when I'm passing left to him]

Whats wrong with it and why do you need setvar?


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.