The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other 2 level scripts on 1 map

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 August 29th, 2015 (9:20 PM). Edited August 29th, 2015 by pokemaster215.
pokemaster215's Avatar
pokemaster215 pokemaster215 is offline
AceTrainerBrown
 
Join Date: Dec 2013
Age: 25
Gender: Male
Posts: 5
I am trying to have two level scripts in one map.
You start in your room and then I set the var for the second event so that it doesn't occur when the first event does.
Then you walk out of the house and your friend walks you to school
There I setvar 0x4014 0x0 so that the second event can happen when I walk out of the school
When I walk out nothing happens
I know there's probably an extremely simple answer for this but help is much appreciated.
I can also post my full scripts if it helps.

House Script
Spoiler:

#dynamic 0x800000

#org @main
lock
setvar 0x4010 0x1
setvar 0x4014 0x1
msgbox @wakeup 0x6
release
end

#org @wakeup
= [red_fr]Mom: \v\h01!\nWake up sweetie!\pIt's your last day!


School Script
Spoiler:

#dynamic 0x800000

#org @main
lock
setvar 0x4013 0x1
setvar 0x4014 0x0
msgbox @teacher1 0x6
applymovement 0x1 @jake
applymovement 0x2 @jacob
applymovement 0x3 @rich
applymovement 0x4 @jenny
applymovement 0x6 @joey
applymovement 0x7 @rival
applymovement 0xFF @you
waitmovement 0x0
msgbox @teacher2 0x6
applymovement 0x7 @rival2
applymovement 0xFF @you2
waitmovement 0x0
msgbox @rivaltalk 0x6
applymovement 0x7 @rival3
waitmovement 0x0
applymovement 0x4 @jenny2
release
end

#org @teacher1
= [red_fr]\v\h01,\n\v\h06,\lYou guys have finally shown up!

#org @teacher2
= [red_fr]Well we all came to school today\njust to see you guys off.\lMaybe I should have all of them\lstudy more so they can be as\lsuccessful as you two!\lHaha!\lWell, anyway\lI wanted to say I'm very proud of\lboth of you!\lAnd goodluck at the Academy!

#org @rivaltalk
= [green_fr]I'm gunna go brag to Rich about\nhow we got in and he didn't.\lHeh heh.

#org @jake
#raw 0x13
#raw 0xFE

#org @jacob
#raw 0x11
#raw 0x12
#raw 0x7
#raw 0xFE

#org @rich
#raw 0x12
#raw 0xFE

#org @jenny
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0xFE

#org @joey
#raw 0x3
#raw 0xFE

#org @rival
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @you
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @rival2
#raw 0x2
#raw 0xFE

#org @rival3
#raw 0x10
#raw 0x3
#raw 0xFE

#org @jenny2
#raw 0x1
#raw 0xFE

#org @you2
#raw 0x3
#raw 0xFE


Script Not Working
Spoiler:
#dynamic 0x800000

#org @main
lock
faceplayer
setvar 0x4014 0x1
applymovement 0x2 @acewalk
waitmovement 0x0
applymovement 0x2 @acewalk2
waitmovement 0x0
msgbox @acetalk 0x6
applymovement 0x2 @acewalk3
waitmovement 0x0
msgbox @acetalk2 0x6
doanimation 0x1E
warp 0x3 0x2 0x3 0x0 0x0
release
end

#org @acewalk
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @acewalk2
#raw 0x3
#raw 0x0
#raw 0x2
#raw 0xFE

#org @acewalk3
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x1
#raw 0xFE

#org @acetalk
= [darknavyblue_fr]Oh!\pThere you are \v\h01!

#org @acetalk2
= [White_fr]We don't have any time to waste!\nLet's get you to school!\p....I'm kind of supposed to be\nthere already\pHeh...\pWell, let's go!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 30th, 2015 (12:25 AM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Where you want to have 2 level scripts do a checkflag for leaving your house. Then in the school script set that flag and also setvar 0x4014 0x0. Should work.
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 30th, 2015 (2:30 AM).
pokemaster215's Avatar
pokemaster215 pokemaster215 is offline
AceTrainerBrown
 
Join Date: Dec 2013
Age: 25
Gender: Male
Posts: 5
Okay, thank you very much I'm sure it will work.I think I was thinking about using flags but opted out.
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:09 AM.