• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist 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.

[Scripting Question] Telling the player what the value of a variable currently is

  • 41
    Posts
    4
    Years
    • Seen Sep 19, 2023
    I am implementing a town development via donations thing in one of my towns. Think Animal Crossing Public Works Projects. If the player has not yet met the next major milestone then I want to be able to tell them how far they are away from the next goal.

    Is there a way to have the game tell the character what the exact value of a variable is?

    Example.
    I just donated $1,000, so Variable 49 was increased by 1,000
    The Goal for the next building is $30,000 so if Variable 49 is 30,000 or higher it unlocks a switch to open a building
    If variable 49 is under 30,000 I want to tell the player what the variable is so they know how much they need to donate.
     
    Back
    Top