• 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!
  • Cyndy, May, Hero (Conquest), or Wes - 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.

Poké Mile / PokeMile System (Essentials 18.1)

  • 19
    Posts
    5
    Years
    • Seen Jan 14, 2021
    This script adds in a customisable Poké Mile system. You are able to set how many steps it takes to gain Miles, how many Miles are gained when that many steps are reached, the maximum number of Miles a player can hold, and it supports two switches which, when turned ON, will disable gaining or losing miles from walking/events.

    The script also supports making a Pokemiles Mart, which functions identically to a regular Pokemart, except the player can Buy and Sell using Miles. If you want to make a store that the player can't sell things for Miles at, make sure to set cantsell = true, or use a text choice based store.

    Installation:
    • Download the file, or copy/paste the code below and save it as a .rb file
    • Put the script in to the 023_Custom folder
    • Look at the settings for STEPS_PER_MILE, MILES_PER_STEP, MAX_MILES, EARN_MILES_SWITCH, and SPEND_MILES_SWITCH.
    • Create events that allow the player to see and spend their Poké Miles. Use pbShowMiles as a standalone script call to show the player's Miles in a window similar to \G, and use pbHideMiles to delete that window. Every time the player's Miles count is updated, you'll want to call pbShowMiles again to refresh the window.

    Example event:
    Spoiler:


    Updates:
    • 1.0 - Initial
    • 1.01 - added pbShowMiles and pbHideMiles.

    Download: https://pastebin.com/kdmmi8bx
    Spoiler:
     
    Last edited:
    Back
    Top