• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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.

Item Ball Printer

FL

Pokémon Island Creator
  • 2,544
    Posts
    14
    Years
    • Seen yesterday
    Example:
    Code:
    Created at 2021-07-16 14:41:35
    -------------------------------
    Map ID: 005. Route 1
    001. ID: 010 (010,010) item: random_item = apricorns.sample;random_item  event: Apricorn tree
    002. ID: 011 (026,014) item: GREATBALL  event: Item
    -------------------------------
    Map ID: 021. Route 2
    001. ID: 015 (027,036) item: LEFTOVERS  event: Item
    002. ID: 016 (024,006) item: GREATBALL  event: Item
    003. ID: 017 (014,011) item: RARECANDY  event: HiddenItem
    004. ID: 018 (025,012) item: POTION  event: HiddenItem
    005. ID: 027 (029,062) item: RARECANDY, 2  event: HiddenItem

    Prints all item ball events locations on txt/Output Window.

    Link

    Tested on Essentials v19.1 and v20.1. Doesn't work with Essentials version 18.1 and older. If this script isn't working on latest Essentials version, please inform on this thread.
     
    Last edited:
    This is a really simple and elegant script! I can see this being useful for something like planning a route or planning specific items in your game.

    Edit: Not relevant to this script specifically, but it occurs to me that it would be interesting to see a script that prints out all trainers on each map with basic party info and stuff in a similar format to this one. I imagine that could also be useful to planning routes with trainers.
     
    Last edited:
    Not relevant to this script specifically, but it occurs to me that it would be interesting to see a script that prints out all trainers on each map with basic party info and stuff in a similar format to this one. I imagine that could also be useful to planning routes with trainers.
    Hmmm, this is generally a minor issue, since people can comment the trainers location on trainter.txt (I always do this), so only the x/y event coordinates are missing. But if I receive more requests, I may do something.
     
    Would it be possible to also make this count items given by NPCs?
    Yes! To do this, in the script, change line
    Code:
    ret.push([event, command.parameters[1]]) if command.parameters[1].include?("pbItemBall")
    To
    Code:
    ret.push([event, command.parameters[1]]) if command.parameters[1].include?("pbItemBall") || command.parameters[1].include?("pbReceiveItem")
    And change line
    Code:
    ret.push([event, script]) if script.include?("pbItemBall")
    To
    Code:
    ret.push([event, script]) if script.include?("pbItemBall") || script.include?("pbReceiveItem")
    .
     
    Back
    Top