The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Changing a pre-existing script

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old February 19th, 2015 (3:07 PM). Edited February 19th, 2015 by bradmarx.
bradmarx bradmarx is offline
 
Join Date: Jan 2015
Posts: 26
I am trying to add on to what happens when you chose your pokemon in FR but every time after I copy the off set over and I open the script again the edits I made are gone. Are you able to edit pre-existing scripts or do you have to start from scratch?

edit: I am using advance maps and pksv
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 19th, 2015 (3:49 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by bradmarx View Post
I am trying to add on to what happens when you chose your pokemon in FR but every time after I copy the off set over and I open the script again the edits I made are gone. Are you able to edit pre-existing scripts or do you have to start from scratch?

edit: I am using advance maps and pksv
You can edit existing scripts, but unless you know what you're doing it's harder. I suggest you copy the existing script, add a dynamic offset and then just add the parts you are trying to change. Some times by adding things without making a new script you will overwrite important and existing data.
__________________
...
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 19th, 2015 (5:10 PM).
bradmarx bradmarx is offline
 
Join Date: Jan 2015
Posts: 26
I tried that but even with a new start offset it brings up the old unedited script. Is there a certain way I am suppose to save a script like this?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old February 19th, 2015 (5:33 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by bradmarx View Post
I tried that but even with a new start offset it brings up the old unedited script. Is there a certain way I am suppose to save a script like this?
Copy-paste the script and tell me what you're trying to change.
__________________
...
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old February 19th, 2015 (5:46 PM).
bradmarx bradmarx is offline
 
Join Date: Jan 2015
Posts: 26
I am working on adding a second rival that chooses the remaining pokemon. Also thanks for your help.
Spoiler:
#dyn 0x740000
#org @start
'-----------------------------------
lock
faceplayer
setvar 0x4001 0x0
setvar 0x4002 0x1
setvar 0x4003 0x4
setvar 0x4004 0x7
compare 0x4055 0x3
if >= jump 0x8169DE4 ' Larger Than or Equal To
compare 0x4055 0x2
if == jump 0x8169BE1 ' Equal To
msgbox 0x818EA19 ' Those are POK\e BALL...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end

#org 0x8169DE4
'-----------------------------------
msgbox 0x818EA45 ' That's PROF. OAK's l...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end

#org 0x8169BE1
'-----------------------------------
applymovement 0x4 0x81A75EF ' look_right end
pauseevent 0x0
showpokepic 0x4002 0xA 0x3
textcolor BLUE
compare 0x4001 0x0
if == jump 0x8169C14 ' Equal To
compare 0x4001 0x1
if == jump 0x8169C33 ' Equal To
compare 0x4001 0x2
if == jump 0x8169C52 ' Equal To
end

#org 0x8169C14
'-----------------------------------
msgbox 0x818E272 ' I see! BULBASAUR is ...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169C74
'-----------------------------------
hidepokepic
disappear LASTTALKED
msgbox 0x818E2E5 ' This POK\eMON is rea...
callstd MSG_NOCLOSE ' Non-closing message
call 0x81A6675
setflag FR_POKEMON
setflag 0x291
addpokemon 0x4002 5 NONE 0x0 0x0 0x0
copyvar 0x4031 0x4001
storepokemon 0x0 0x4002
message 0x818E30D ' \v\h01 received the ...
showmsg
fanfare 0x13E
waitfanfare
msgbox 0x81A56A7 ' Do you want to give ...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169CCC ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169CDC ' Equal To
end

#org 0x81A6675
'-----------------------------------
copyvar 0x8012 0x8013
return

#org 0x8169C33
'-----------------------------------
msgbox 0x818E207 ' Hm! SQUIRTLE is your...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169C71
'-----------------------------------
hidepokepic
release
end

#org 0x8169C52
'-----------------------------------
msgbox 0x818E194 ' Ah! CHARMANDER is yo...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169CCC
'-----------------------------------
setvar 0x8004 0x0
call 0x81A74EB
jump 0x8169CDC

#org 0x81A74EB
'-----------------------------------
fadescreen FADEOUT_BLACK
special NAME_POKEMON
waitspecial
return

#org 0x8169CDC
'-----------------------------------
closemsg
compare 0x4001 0x0
if == jump 0x8169CFF ' Equal To
compare 0x4001 0x1
if == jump 0x8169D1F ' Equal To
compare 0x4001 0x2
if == jump 0x8169D0F ' Equal To
end

#org 0x8169CFF
'-----------------------------------
applymovement 0x8 0x8169D62 ' walk_down walk_down ...
pauseevent 0x0
jump 0x8169D2F

#org 0x8169D2F
'-----------------------------------
textcolor BLUE
msgbox 0x818DD34 ' \v\h06: I'll take th...
callstd MSG_NOCLOSE ' Non-closing message
disappear 0x4004
textcolor GRAY
storepokemon 0x0 0x4003
message 0x818DD52 ' \v\h06 received the ...
showmsg
fanfare 0x13E
waitfanfare
setvar 0x4055 0x3
checkflag 0x83E
if true call 0x8169D5C ' Flag is set
release
jump 0x87400FA

#org 0x8169D5C
'-----------------------------------
setvar 0x4070 0x1
return

#org 0x8169D1F
'-----------------------------------
applymovement 0x8 0x8169D72 ' walk_down walk_right...
pauseevent 0x0
jump 0x8169D2F

#org 0x8169D0F
'-----------------------------------
applymovement 0x8 0x8169D6B ' walk_down walk_right...
pauseevent 0x0
jump 0x8169D2F

#org 0x874007B
'-----------------------------------
setvar 0x4070 0x1
return

#org 0x874009C
'-----------------------------------
textcolor BLUE
msgbox 0x874007B
callstd MSG_NOCLOSE
disappear 0x4004
textcolor GRAY
storepokemon 0x0 0x4003
message 0x8740058
showmsg
fanfare 0x13E
waitfanfare
setvar 0x4055 0x3
checkflag 0x83E
if true call 0x874007B
release
end

#org 0x87400CA
'-----------------------------------
applymovement 0x11 0x874003F
pauseevent 0x0
jump 0x874009C

#org 0x87400DA
'-----------------------------------
applymovement 0x11 0x8740047
pauseevent 0x0
jump 0x874009C

#org 0x87400EA
'-----------------------------------
applymovement 0x11 0x874004F
pauseevent 0x0
jump 0x874009C

#org 0x87400FA
'-----------------------------------
closemsg
compare 0x4001 0x0
if == jump 0x87400DA ' Equal To
compare 0x4001 0x1
if == jump 0x87400EA ' Equal To
compare 0x4001 0x2
if == jump 0x87400CA ' Equal To
end


#org 0x818EA19
= Those are POK\e BALLS.\nThey contain POK\eMON!

#org 0x818EA45
= That's PROF. OAK's last POK\eMON.

#org 0x818E272
= I see! BULBASAUR is your choice.\nIt's very easy to raise.\pSo, \v\h01, you want to go with\nthe GRASS POK\eMON BULBASAUR?

#org 0x818E2E5
= This POK\eMON is really quite\nenergetic!

#org 0x818E30D
= \v\h01 received the \v\h02\nfrom PROF. OAK!

#org 0x81A56A7
= Do you want to give a nickname to\nthis \v\h02?

#org 0x818E207
= Hm! SQUIRTLE is your choice.\nIt's one worth raising.\pSo, \v\h01, you've decided on the\nWATER POK\eMON SQUIRTLE?

#org 0x818E194
= Ah! CHARMANDER is your choice.\nYou should raise it patiently.\pSo, \v\h01, you're claiming the\nFIRE POK\eMON CHARMANDER?

#org 0x818DD34
= \v\h06: I'll take this one, then!

#org 0x818DD52
= \v\h06 received the \v\h02\nfrom PROF. OAK!

#org 0x81A75EF
M look_right end

#org 0x8169D62
M walk_down walk_down walk_right walk_right walk_right walk_right walk_right walk_up end

#org 0x8169D72
M walk_down walk_right walk_right walk_right look_up_delayed end

#org 0x8169D6B
M walk_down walk_right walk_right walk_right walk_right look_up_delayed end

#org 0x874003F
M walk_down walk_down walk_right walk_right walk_up end

#org 0x8740047
M walk_down walk_down walk_right walk_right walk_right walk_up end

#org 0x874004F
M walk_down walk_down walk_right walk_right walk_right walk_right walk_up end

#org 0x8740058
= \v\h07 received the \v\h02\nfrom PROF. OAK!

#org 0x874007B
= \v\h07: Then this lucky mon is mine!

Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old February 19th, 2015 (8:18 PM).
Blah's Avatar
Blah Blah is offline
Free supporter
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 1,924
Quote:
Originally Posted by bradmarx View Post
I am working on adding a second rival that chooses the remaining pokemon. Also thanks for your help.
Spoiler:
#dyn 0x740000
#org @start
'-----------------------------------
lock
faceplayer
setvar 0x4001 0x0
setvar 0x4002 0x1
setvar 0x4003 0x4
setvar 0x4004 0x7
compare 0x4055 0x3
if >= jump 0x8169DE4 ' Larger Than or Equal To
compare 0x4055 0x2
if == jump 0x8169BE1 ' Equal To
msgbox 0x818EA19 ' Those are POK\e BALL...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end

#org 0x8169DE4
'-----------------------------------
msgbox 0x818EA45 ' That's PROF. OAK's l...
callstd MSG_NOCLOSE ' Non-closing message
release
' Release commands close any open messages
end

#org 0x8169BE1
'-----------------------------------
applymovement 0x4 0x81A75EF ' look_right end
pauseevent 0x0
showpokepic 0x4002 0xA 0x3
textcolor BLUE
compare 0x4001 0x0
if == jump 0x8169C14 ' Equal To
compare 0x4001 0x1
if == jump 0x8169C33 ' Equal To
compare 0x4001 0x2
if == jump 0x8169C52 ' Equal To
end

#org 0x8169C14
'-----------------------------------
msgbox 0x818E272 ' I see! BULBASAUR is ...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169C74
'-----------------------------------
hidepokepic
disappear LASTTALKED
msgbox 0x818E2E5 ' This POK\eMON is rea...
callstd MSG_NOCLOSE ' Non-closing message
call 0x81A6675
setflag FR_POKEMON
setflag 0x291
addpokemon 0x4002 5 NONE 0x0 0x0 0x0
copyvar 0x4031 0x4001
storepokemon 0x0 0x4002
message 0x818E30D ' \v\h01 received the ...
showmsg
fanfare 0x13E
waitfanfare
msgbox 0x81A56A7 ' Do you want to give ...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169CCC ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169CDC ' Equal To
end

#org 0x81A6675
'-----------------------------------
copyvar 0x8012 0x8013
return

#org 0x8169C33
'-----------------------------------
msgbox 0x818E207 ' Hm! SQUIRTLE is your...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169C71
'-----------------------------------
hidepokepic
release
end

#org 0x8169C52
'-----------------------------------
msgbox 0x818E194 ' Ah! CHARMANDER is yo...
callstd MSG_YESNO ' Yes/No message
compare LASTRESULT YES
if == jump 0x8169C74 ' Equal To
compare LASTRESULT 0x0
if == jump 0x8169C71 ' Equal To
end

#org 0x8169CCC
'-----------------------------------
setvar 0x8004 0x0
call 0x81A74EB
jump 0x8169CDC

#org 0x81A74EB
'-----------------------------------
fadescreen FADEOUT_BLACK
special NAME_POKEMON
waitspecial
return

#org 0x8169CDC
'-----------------------------------
closemsg
compare 0x4001 0x0
if == jump 0x8169CFF ' Equal To
compare 0x4001 0x1
if == jump 0x8169D1F ' Equal To
compare 0x4001 0x2
if == jump 0x8169D0F ' Equal To
end

#org 0x8169CFF
'-----------------------------------
applymovement 0x8 0x8169D62 ' walk_down walk_down ...
pauseevent 0x0
jump 0x8169D2F

#org 0x8169D2F
'-----------------------------------
textcolor BLUE
msgbox 0x818DD34 ' \v\h06: I'll take th...
callstd MSG_NOCLOSE ' Non-closing message
disappear 0x4004
textcolor GRAY
storepokemon 0x0 0x4003
message 0x818DD52 ' \v\h06 received the ...
showmsg
fanfare 0x13E
waitfanfare
setvar 0x4055 0x3
checkflag 0x83E
if true call 0x8169D5C ' Flag is set
release
jump 0x87400FA

#org 0x8169D5C
'-----------------------------------
setvar 0x4070 0x1
return

#org 0x8169D1F
'-----------------------------------
applymovement 0x8 0x8169D72 ' walk_down walk_right...
pauseevent 0x0
jump 0x8169D2F

#org 0x8169D0F
'-----------------------------------
applymovement 0x8 0x8169D6B ' walk_down walk_right...
pauseevent 0x0
jump 0x8169D2F

#org 0x874007B
'-----------------------------------
setvar 0x4070 0x1
return

#org 0x874009C
'-----------------------------------
textcolor BLUE
msgbox 0x874007B
callstd MSG_NOCLOSE
disappear 0x4004
textcolor GRAY
storepokemon 0x0 0x4003
message 0x8740058
showmsg
fanfare 0x13E
waitfanfare
setvar 0x4055 0x3
checkflag 0x83E
if true call 0x874007B
release
end

#org 0x87400CA
'-----------------------------------
applymovement 0x11 0x874003F
pauseevent 0x0
jump 0x874009C

#org 0x87400DA
'-----------------------------------
applymovement 0x11 0x8740047
pauseevent 0x0
jump 0x874009C

#org 0x87400EA
'-----------------------------------
applymovement 0x11 0x874004F
pauseevent 0x0
jump 0x874009C

#org 0x87400FA
'-----------------------------------
closemsg
compare 0x4001 0x0
if == jump 0x87400DA ' Equal To
compare 0x4001 0x1
if == jump 0x87400EA ' Equal To
compare 0x4001 0x2
if == jump 0x87400CA ' Equal To
end


#org 0x818EA19
= Those are POK\e BALLS.\nThey contain POK\eMON!

#org 0x818EA45
= That's PROF. OAK's last POK\eMON.

#org 0x818E272
= I see! BULBASAUR is your choice.\nIt's very easy to raise.\pSo, \v\h01, you want to go with\nthe GRASS POK\eMON BULBASAUR?

#org 0x818E2E5
= This POK\eMON is really quite\nenergetic!

#org 0x818E30D
= \v\h01 received the \v\h02\nfrom PROF. OAK!

#org 0x81A56A7
= Do you want to give a nickname to\nthis \v\h02?

#org 0x818E207
= Hm! SQUIRTLE is your choice.\nIt's one worth raising.\pSo, \v\h01, you've decided on the\nWATER POK\eMON SQUIRTLE?

#org 0x818E194
= Ah! CHARMANDER is your choice.\nYou should raise it patiently.\pSo, \v\h01, you're claiming the\nFIRE POK\eMON CHARMANDER?

#org 0x818DD34
= \v\h06: I'll take this one, then!

#org 0x818DD52
= \v\h06 received the \v\h02\nfrom PROF. OAK!

#org 0x81A75EF
M look_right end

#org 0x8169D62
M walk_down walk_down walk_right walk_right walk_right walk_right walk_right walk_up end

#org 0x8169D72
M walk_down walk_right walk_right walk_right look_up_delayed end

#org 0x8169D6B
M walk_down walk_right walk_right walk_right walk_right look_up_delayed end

#org 0x874003F
M walk_down walk_down walk_right walk_right walk_up end

#org 0x8740047
M walk_down walk_down walk_right walk_right walk_right walk_up end

#org 0x874004F
M walk_down walk_down walk_right walk_right walk_right walk_right walk_up end

#org 0x8740058
= \v\h07 received the \v\h02\nfrom PROF. OAK!

#org 0x874007B
= \v\h07: Then this lucky mon is mine!

You mean in addition to Green picking a Pokemon? You're better off just re-writing the whole script then. The addition of a new person means that a large chunk of the script is going to be reworked anyways. You should rework the body, and keep the pointers to the text. Just reference the text pointers when you need them.
__________________
...
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old February 21st, 2015 (11:04 AM).
bradmarx bradmarx is offline
 
Join Date: Jan 2015
Posts: 26
That worked perfectly thank you!
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:10 AM.