- 84
- Posts
- 4
- Years
- Seen Apr 21, 2025
I am trying to make a script that stops the player from moving and forces him to go in a certain direction using XSE for Fire Red.
I made the second part for an NPC and it worked: if you talk to this npc the player is forced to move upward (as intended) so the script in itself works, now i'm trying to make it in a tile so i looke on how to modify the script for a tile and i found a Thread where they were asking this same question and they put dow a script (the guy who posted the question ssaid it worked and helped his issue) and i litterally copy-pasted , i only changed the checkflag to the one i found inside the game (it's the checkflag for when the guy on top of the nugget bridge leaves)
this is the script i LITTERALLY copy-pasted (the guy did not use the setvar so i just did this)
but nothing happens, i can freel walk on the tile and it doesn't trigger, actually, the npc that worked pushing you upward now stops working
so i tried a different thing, looked inside the game itself for similar things so i tried to take parts from the guys that needs tea since they still push you in a direction after walking on a tile, so modified the code like this (adding the lockall and setvar)
still the tile does not activate
i tried both scripts removing the checkflag at start, making it permanent and just trying if that was the issue but NOPE, still nothing
idk what's wrong with those scripts T.T
yes, i set the var number of the tiles to 4050 and the unknown to 0300 (as the other thread said to do to make it work)
but nothing works...what am i doing wrong? T.T it's litterally the same script another guy uses and it works for them T.T
I made the second part for an NPC and it worked: if you talk to this npc the player is forced to move upward (as intended) so the script in itself works, now i'm trying to make it in a tile so i looke on how to modify the script for a tile and i found a Thread where they were asking this same question and they put dow a script (the guy who posted the question ssaid it worked and helped his issue) and i litterally copy-pasted , i only changed the checkflag to the one i found inside the game (it's the checkflag for when the guy on top of the nugget bridge leaves)
this is the script i LITTERALLY copy-pasted (the guy did not use the setvar so i just did this)
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x31
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end
#org @done
release
end
#org @move1
#raw 0x1
#raw 0x11
#raw 0xFE
#org @1
= This is the Nugget Bridge, once\nyou\lstart the cahllenge you have to\lfinish it. Don't be a coward, show\lus what you've got
#org @start
checkflag 0x31
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
release
end
#org @done
release
end
#org @move1
#raw 0x1
#raw 0x11
#raw 0xFE
#org @1
= This is the Nugget Bridge, once\nyou\lstart the cahllenge you have to\lfinish it. Don't be a coward, show\lus what you've got
but nothing happens, i can freel walk on the tile and it doesn't trigger, actually, the npc that worked pushing you upward now stops working
so i tried a different thing, looked inside the game itself for similar things so i tried to take parts from the guys that needs tea since they still push you in a direction after walking on a tile, so modified the code like this (adding the lockall and setvar)
Spoiler:
#dynamic 0x800000
#org @start
lockall
setvar 0x4050 0x0
goto @1
@1
checkflag 0x31
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
releaseall
end
#org @done
releaseall
end
#org @move1
#raw 0x11
#raw 0xFE
#org @1
= This is the Nugget Bridge, once\nyou\lstart the cahllenge you have to\lfinish it. Don't be a coward, show\lus what you've got
#org @start
lockall
setvar 0x4050 0x0
goto @1
@1
checkflag 0x31
if 0x1 goto @done
msgbox @1 0x6
applymovement 0xFF @move1
waitmovement 0x0
releaseall
end
#org @done
releaseall
end
#org @move1
#raw 0x11
#raw 0xFE
#org @1
= This is the Nugget Bridge, once\nyou\lstart the cahllenge you have to\lfinish it. Don't be a coward, show\lus what you've got
still the tile does not activate
i tried both scripts removing the checkflag at start, making it permanent and just trying if that was the issue but NOPE, still nothing
idk what's wrong with those scripts T.T
yes, i set the var number of the tiles to 4050 and the unknown to 0300 (as the other thread said to do to make it work)
but nothing works...what am i doing wrong? T.T it's litterally the same script another guy uses and it works for them T.T