The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Flag scripts

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 8th, 2014 (11:09 AM).
Auburns Auburns is offline
 
Join Date: Aug 2014
Posts: 18
So I have a pretty basic situation here. If the flag has not been set, a certain event will happen when the player triggers the script tile (npc appraches player, npc talks, player follows npc, npc talks again, npc leaves). At the end of that event, the flag is set and a different event happens (npc just talks from outside view).

Spoiler:

#dyn 0x740300
#org @main
'-----------------------------------
lockall
checkflag 0x1200
if true goto 0x8740859
if false goto 0x8740856

#org 0x8740856
'-----------------------------------
applymovement PLAYER 0x87400E9 ' say_! end
pauseevent 0x0
pause 0x1E
reappear 0x3
applymovement 0x3 0x874006A ' walk_right walk_righ...
pauseevent 0x0
pause 0x1E
msgbox 0x8740055 ' OAK: My lab is this ...
callstd MSG_LOCK ' Built-in lock command
closemsg
applymovement 0x3 0x87400A3 ' walk_left walk_left ...
applymovement PLAYER 0x8740129 ' walk_left walk_left ...
pauseevent 0x0
pause 0x1E
applymovement 0x3 0x8740361 ' look_right_delayed e...
pauseevent 0x0
msgbox 0x87401C7 ' OAK: Here we are! By...
callstd MSG_LOCK ' Built-in lock command
closemsg
applymovement 0x3 0x87400A3 ' walk_left walk_left ...
pauseevent 0x0
fadedefault
disappear 0x3
setflag 0x1200
pause 0x1E
releaseall
end

#org 0x8740859
'--------------------------------------
msgbox @talk4
callstd MSG_LOCK
closemsg
pause 0x1E
setflag 0x1200
releaseall
end

#org 0x8740055
= [text here]

#org 0x87401C7
= [text here]

#org @talk4
= [text here]

#org 0x87400E9
M say_! end

#org 0x874006A
M walk_right walk_right walk_right walk_right walk_right walk_right walk_right walk_right walk_right walk_right end

#org 0x87400A3
M walk_left walk_left walk_left walk_left walk_left walk_left walk_left end

#org 0x8740129
M walk_left walk_left walk_left walk_left walk_left walk_left walk_left end

#org 0x8740361
M look_right_delayed end


Whenever I start the game, though, the player just locks as soon as they touch the script tile and nothing else happens. Any help?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 8th, 2014 (11:10 AM).
FaeBladez's Avatar
FaeBladez FaeBladez is offline
 
Join Date: Jan 2014
Location: Calgary AB Canada
Gender: Male
Posts: 109
Did you put in a var?
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 8th, 2014 (11:14 AM).
Auburns Auburns is offline
 
Join Date: Aug 2014
Posts: 18
Quote:
Originally Posted by FaeBladez View Post
Did you put in a var?
Nope. I'm relatively new to this, so I don't actually know what var is :pink_confused:
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old August 9th, 2014 (5:05 AM).
JosefigGaming's Avatar
JosefigGaming JosefigGaming is offline
 
Join Date: May 2013
Location: Portugal
Age: 23
Gender: Male
Posts: 287
i suggest you take a look at diegoisawesome's xse tutorial
Here's a tip, var is short for variable, think about it like that. I had a hard time learning it because in my language the word Var ressembles a stick xD
__________________
Working on:


#fasterSneasel :D (nohomo)

Coolest IRC with the coolest people in the coolest rooms:
http://chat.linkandzelda.com:9090/?channels=romhacking,gogo,discovery,fluorite
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old August 10th, 2014 (6:14 PM).
Auburns Auburns is offline
 
Join Date: Aug 2014
Posts: 18
Thanks, you two. I figured it out although I think I've run into a more complicated problem involving variables lol.
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:21 AM.