The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Script is running while Main character moving freely

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 October 31st, 2020 (1:31 PM).
Fantaseed's Avatar
Fantaseed Fantaseed is offline
 
Join Date: Aug 2020
Gender: Male
Nature: Quiet
Posts: 55
Hello, is there a way to let a script/level script run on the map while you are controlling or walking the character?

Game: BPRE Fire red
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old October 31st, 2020 (1:58 PM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
You could try writing the script without using the "lock" command, which will prevent the script from locking player movement.

Example:

#dynamic 0x800000
#org @start
faceplayer
msgbox @t1 0x6
end

'-----------

#org @t1
= Test.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old October 31st, 2020 (2:35 PM).
Fantaseed's Avatar
Fantaseed Fantaseed is offline
 
Join Date: Aug 2020
Gender: Male
Nature: Quiet
Posts: 55
Quote:
Originally Posted by mcferaligatr View Post
You could try writing the script without using the "lock" command, which will prevent the script from locking player movement.

Example:

#dynamic 0x800000
#org @start
faceplayer
msgbox @t1 0x6
end

'-----------

#org @t1
= Test.

I tried that before already but after one command(like, show a txtbox) the script it stops afterwards, regardless of adding "end" or not
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old October 31st, 2020 (3:26 PM).
mcferaligatr's Avatar
mcferaligatr mcferaligatr is offline
 
Join Date: Nov 2018
Posts: 120
The only thing that I was able to make is to have an NPC say something, and have that text box stay after interaction is complete.

Instead of msgbox I used preparemsg which will display text and without the release command won't hide it.

#dynamic 0x800000
#org @start
faceplayer
preparemsg @t1
end

'-----------

#org @t1
= Test.

After the NPC finishes talking, you can move around with the text box still active, but I'm not sure how to delay the closing time of the text box if you were to write more than one paragraph of text. I tried using the pause command but that stops player movement as well. The text box closes itself if you read a signpost or talk to an NPC. This information may not be particularly useful, but at least preparemsg doesn't require a button press to be stopped.
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old November 3rd, 2020 (11:36 AM).
Fantaseed's Avatar
Fantaseed Fantaseed is offline
 
Join Date: Aug 2020
Gender: Male
Nature: Quiet
Posts: 55
Quote:
Originally Posted by mcferaligatr View Post
The only thing that I was able to make is to have an NPC say something, and have that text box stay after interaction is complete.

Instead of msgbox I used preparemsg which will display text and without the release command won't hide it.

#dynamic 0x800000
#org @start
faceplayer
preparemsg @t1
end

'-----------

#org @t1
= Test.

After the NPC finishes talking, you can move around with the text box still active, but I'm not sure how to delay the closing time of the text box if you were to write more than one paragraph of text. I tried using the pause command but that stops player movement as well. The text box closes itself if you read a signpost or talk to an NPC. This information may not be particularly useful, but at least preparemsg doesn't require a button press to be stopped.
Thanks, Well I still find this very useful.
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:16 AM.