• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] Script is running while Main character moving freely

  • 55
    Posts
    4
    Years
    • Seen Feb 27, 2022
    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
     
    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.
     
    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
     
    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.
     
    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.
     
    Back
    Top