- 8
- Posts
- 4
- Years
- USA
- Seen Dec 3, 2023
Anyone Who knows code, will know that segments of this code won't work. I know because I placed the segment and tested it. It failed. What did I do wrong? Something I did not add? A definition I failed to mention? A magic word I did'nt know existed? : ) How long can a single instruction be before the rom runs out of space?
What I am trying to do is initiate a "follow along" sequence where the NPC "0x09" takes our player 0xFF on a tour of the town that ends inside a building, once inside I want to then program a pokemon exchange animation.
I realize I have not programmed for 0xFF because my tests on 0x09 haven't worked yet. How do I make one follow the other? how long can the code segment be? Are there any limitations? What is proper code structure? What has to happen first and what can happen later? Thank you for any light you can shed on my problem. From what I know, I think this code can only apply to r/s/e and not Lg/Fr as they are written slightly differently.
Here's my code so far :
---Start-Of-Code---
------ ------
------ ------
#dynamic 0x740000
#org @start
lock
faceplayer
message @talk
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @yes
jump @no
#org @yes
message @speakyes
callstd MSG_NORMAL
applymovement 0x09 @move
release
end
#org @no
message @speakno
callstd MSG_NORMAL
release
end
#org @speakyes
message @speakyes
callstd MSG_NORMAL
#org @talk
= Hey, ya'll from out of town?
#org @speakyes
= Wonderful! Follow me!
#org @speakno
= Dang, been want'n to give a grand ole tour.
#org @move
M raw_53 look_up raw_40 walk_down_slow raw_41 end
------ ------
------ ------
---End-Of-Code---
The code that dosen't work is : "applymovement 0x09 @move" & "#org @move M raw_53 look_up raw_40 walk_down_slow raw_41 end"
What I am trying to do is initiate a "follow along" sequence where the NPC "0x09" takes our player 0xFF on a tour of the town that ends inside a building, once inside I want to then program a pokemon exchange animation.
I realize I have not programmed for 0xFF because my tests on 0x09 haven't worked yet. How do I make one follow the other? how long can the code segment be? Are there any limitations? What is proper code structure? What has to happen first and what can happen later? Thank you for any light you can shed on my problem. From what I know, I think this code can only apply to r/s/e and not Lg/Fr as they are written slightly differently.
Here's my code so far :
---Start-Of-Code---
------ ------
------ ------
#dynamic 0x740000
#org @start
lock
faceplayer
message @talk
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @yes
jump @no
#org @yes
message @speakyes
callstd MSG_NORMAL
applymovement 0x09 @move
release
end
#org @no
message @speakno
callstd MSG_NORMAL
release
end
#org @speakyes
message @speakyes
callstd MSG_NORMAL
#org @talk
= Hey, ya'll from out of town?
#org @speakyes
= Wonderful! Follow me!
#org @speakno
= Dang, been want'n to give a grand ole tour.
#org @move
M raw_53 look_up raw_40 walk_down_slow raw_41 end
------ ------
------ ------
---End-Of-Code---
The code that dosen't work is : "applymovement 0x09 @move" & "#org @move M raw_53 look_up raw_40 walk_down_slow raw_41 end"