• 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.

[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