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)
-   -   Facing problem with a script. (https://www.pokecommunity.com/showthread.php?t=175935)

Attilas April 18th, 2009 11:43 AM

Facing problem with a script.
 
First of all i would like to say hi.This is my debut to rom hacking :) i've been watching tutorials today about scripting and i know this is kinda advanced for me >< oh well i tried to figure out some things and ended up here. any help would be accepted and appreciated.


Code:

'-----------------------
#org 0x800315
lock
faceplayer
checkflag 0x258
if 0x1 goto 0x880032A
msgbox 0x880038E '"[player], Oak is looking for you."
callstd 0x6
release
end

'-----------------------
#org 0x80032A
checkflag 0x3200
if 0x1 goto 0x8800384
msgbox 0x88003AB '"I see you got your first pokemon.\n..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800350
msgbox 0x88003E9 '"Alright then, see ya later!"
callstd 0x6
release
end

'-----------------------
#org 0x800384
msgbox 0x8800432 '""
callstd 0x6
release
end

'-----------------------
#org 0x800350
msgbox 0x8800405 '"Alright here you go!"
callstd 0x6
copyvar 0x8004 LASTRESULT
givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
msgbox 0x880041A '"[player] received a Cyndaquil!"
callstd 0x6
setflag 0x3200
release
end

'---------
' Strings
'---------
#org 0x80038E
= [player], Oak is looking for you.

#org 0x8003AB
= I see you got your first pokemon.\nWould you like another one?

#org 0x8003E9
= Alright then, see ya later!

#org 0x800432
=

#org 0x800405
= Alright here you go!

#org 0x80041A
= [player] received a Cyndaquil!


well that's the code and i am trying to put a text on #org 0x800432
i type it compile but when i finish compiling and close the editor and save the rom and reopen the editor and the script there is no text there. :/
P.S. maybe the script is wrong somewhere.

Penumbra April 18th, 2009 12:39 PM

Quote:

Originally Posted by Attilas (Post 4557180)
First of all i would like to say hi.This is my debut to rom hacking :) i've been watching tutorials today about scripting and i know this is kinda advanced for me >< oh well i tried to figure out some things and ended up here. any help would be accepted and appreciated.


Code:

'-----------------------
#org 0x800315
lock
faceplayer
checkflag 0x258
if 0x1 goto 0x880032A
msgbox 0x880038E '"[player], Oak is looking for you."
callstd 0x6
release
end

'-----------------------
#org 0x80032A
checkflag 0x3200
if 0x1 goto 0x8800384
msgbox 0x88003AB '"I see you got your first pokemon.\n..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800350
msgbox 0x88003E9 '"Alright then, see ya later!"
callstd 0x6
release
end

'-----------------------
#org 0x800384
msgbox 0x8800432 '""
callstd 0x6
release
end

'-----------------------
#org 0x800350
msgbox 0x8800405 '"Alright here you go!"
callstd 0x6
copyvar 0x8004 LASTRESULT
givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
msgbox 0x880041A '"[player] received a Cyndaquil!"
callstd 0x6
setflag 0x3200
release
end

'---------
' Strings
'---------
#org 0x80038E
= [player], Oak is looking for you.

#org 0x8003AB
= I see you got your first pokemon.\nWould you like another one?

#org 0x8003E9
= Alright then, see ya later!

#org 0x800432
=

#org 0x800405
= Alright here you go!

#org 0x80041A
= [player] received a Cyndaquil!


well that's the code and i am trying to put a text on #org 0x800432
i type it compile but when i finish compiling and close the editor and save the rom and reopen the editor and the script there is no text there. :/
P.S. maybe the script is wrong somewhere.

Holy mother! When did you start reading up scripting tutorials,
last year!? O_O' I've studied tutorials countless times and it never sunk in.
I was just reading it, but had no idea what was happening.

Anyway, I do have some knowledge of small scripting, but I doubt your problem
is within the scripting. maybe there's a few errors, but it's not the cause. This type
of problem is usually related to offsets and the variable number in A-Map. This is
XSE right? Anyway, I've encountered the same problems, and using FSF to find
a new offset and making a new variable number worked out for me.

Good luck and I hope I helped.
(doubt it, since I know nothing about scripting..)

PokettoMonsuta April 18th, 2009 12:43 PM

Code:

'-----------------------
#org 0x800315
lock
faceplayer
checkflag 0x258
if 0x1 goto 0x880032A
msgbox 0x880038E 0x2 '"[player], Oak is looking for you."
callstd 0x6
release
end

'-----------------------
#org 0x80032A
checkflag 0x3200
if 0x1 goto 0x8800384
msgbox 0x88003AB 0x2 '"I see you got your first pokemon.\n..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8800350
msgbox 0x88003E9 0x2 '"Alright then, see ya later!"
callstd 0x6
release
end

'-----------------------
#org 0x800384
msgbox 0x8800432 0x2 '""
callstd 0x6
release
end

'-----------------------
#org 0x800350
msgbox 0x8800405 '"Alright here you go!"
callstd 0x6
copyvar 0x8004 LASTRESULT
givepokemon 0x9B 0x5 0x8B 0x0 0x0 0x7D
msgbox 0x880041A 0x2'"[player] received a Cyndaquil!"
callstd 0x6
setflag 0x3200
release
end

'---------
' Strings
'---------
#org 0x80038E
= [player], Oak is looking for you.

#org 0x8003AB
= I see you got your first pokemon.\nWould you like another one?

#org 0x8003E9
= Alright then, see ya later!

#org 0x800432
=

#org 0x800405
= Alright here you go!

#org 0x80041A
= [player] received a Cyndaquil!


Hope it works.

Attilas April 18th, 2009 3:51 PM

Quote:

Originally Posted by Penumbra (Post 4557413)
Holy mother! When did you start reading up scripting tutorials,
last year!? O_O' I've studied tutorials countless times and it never sunk in.
I was just reading it, but had no idea what was happening.

Anyway, I do have some knowledge of small scripting, but I doubt your problem
is within the scripting. maybe there's a few errors, but it's not the cause. This type
of problem is usually related to offsets and the variable number in A-Map. This is
XSE right? Anyway, I've encountered the same problems, and using FSF to find
a new offset and making a new variable number worked out for me.

Good luck and I hope I helped.
(doubt it, since I know nothing about scripting..)

Well is FSF a programm?and btw i am interested in joining your group.I am a scripter in studies haha i was hoping to learn some things from the more experienced ones ;)
if possible could you send me your messenger if you have one so i can freely talk with you?Anyway if anyone can tell me what is FSF i will be glad ;) now i am going next door for some meat :) it's Easter after all here in my country bye bye guys

edit : the script works properly in game i just can't get the final dialogue to work properly.just a blank text box appears.
edit 2 : yes i am using XSE :P

~Poke~ April 18th, 2009 4:05 PM

FSF is Free Space Finder by Hackmew. You can just use a Hex Editor, or in XSE use Dynamic scripts, but if you want FSF it's in Hackmew's toolbox.

Attilas April 18th, 2009 4:46 PM

are dynamic scripts difficult? and are they better for rom scripting?


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