The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Issue with Tiles scripting

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 February 13th, 2021 (1:22 AM).
Naglu Naglu is offline
 
Join Date: Jan 2021
Posts: 49
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)

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



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



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
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 20th, 2021 (8:04 PM).
Meister_anon~Master_o f_None Meister_anon~Master_o f_None is offline
 
Join Date: Dec 2020
Posts: 852
Quote:
Originally Posted by Naglu View Post
T.T
Did you remember to set talking level of the script to height 2 in advance map.
__________________
The A-non Team




Trevenant
Lv. 100 @ 306
Points: 70
Challenge: Souls of the Damned
Legendary: TBA

Chandelure
Lv. 100 @ 213
Points: 100
Challenge: N/A
Legendary: Entei

Rapidash
Lv. 100 @ 497
Points: 70
Challenge: N/A
Legendary: Entei

Flareon
Lv. 100 @ 708
Points: 70
Challenge: TBA
Legendary: TBA

Roselia
Lv. 100 @ 794
Points: 100
Challenge: TBA
Legendary: TBA

Entei
Hatch @ 793
Level 100 @ 1,018
Shiny: No
Points: 100

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
Thread Tools

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:19 AM.