- 19
- Posts
- 5
- Years
- Seen Jan 9, 2022
I currently have two guards blocking the path out of Pallet Town in Fire Red. I have a variable in place so once the player receives his starter, the guards apologize for the blockade and step out of the way. My goal is to have them permanently be out of the way and no longer blocking the entrance to Route 1 after they initially apologize and move. I have the following script set (correctly) in the Pallet Town map script section:
Seems simple, right? The 0x5007 variable is set to 0x1 once the player receives his starter. If it's set to 0x1, the guards should be permanently moved (by means of movesprite2) out of the way. I tried this code, and it just doesn't work. If I walk further down into Pallet Town (regardless of entering a building or not) or further up into Route 1, and the guards go offscreen, they move back to their original position and block the passageway when I return. I figured maybe their script was reset somehow? But the variable 0x5007 is still set to 0x1 because they give me the dialogue set in place after they move out of the way. I have the map script above ^ set as option 03 "On entering map/not on menu close." I tried the "Validates values" option 02, but that didn't seem to work either. Is there something I'm missing? Do I need to set some special value to the NPCs in AdvanceMap? My only other idea (that I'd be a little peeved in having to do so) is to fade the screen to black and remove the NPCs from the map entirely, but I sorta wanted them to be there permanently and have it feel natural and organic.
Entaro Ceraphenine, if you come to my rescue again, I'll have to add you on Discord or something for quicker help 😂 Thanks for reading! I appreciate your guys' help as always.
Code:
#dynamic 0x800000
#org @start
compare 0x5007 0x1
if 0x1 call @position
end
#org @position
movesprite2 0x8 0x0B 0x02
movesprite2 0x9 0x0E 0x02
return
Seems simple, right? The 0x5007 variable is set to 0x1 once the player receives his starter. If it's set to 0x1, the guards should be permanently moved (by means of movesprite2) out of the way. I tried this code, and it just doesn't work. If I walk further down into Pallet Town (regardless of entering a building or not) or further up into Route 1, and the guards go offscreen, they move back to their original position and block the passageway when I return. I figured maybe their script was reset somehow? But the variable 0x5007 is still set to 0x1 because they give me the dialogue set in place after they move out of the way. I have the map script above ^ set as option 03 "On entering map/not on menu close." I tried the "Validates values" option 02, but that didn't seem to work either. Is there something I'm missing? Do I need to set some special value to the NPCs in AdvanceMap? My only other idea (that I'd be a little peeved in having to do so) is to fade the screen to black and remove the NPCs from the map entirely, but I sorta wanted them to be there permanently and have it feel natural and organic.
Entaro Ceraphenine, if you come to my rescue again, I'll have to add you on Discord or something for quicker help 😂 Thanks for reading! I appreciate your guys' help as always.