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

[Custom Feature Question] Egg Market

KP7

  • 22
    Posts
    4
    Years
    • Seen Jan 14, 2022
    I was wondering if there was a way to have a person sell eggs like how items are sold at the marts?
     
    Bumping this because I'd really like to know how to add this please
     
    There is two ways, make a event or just edit this resource: (broken link removed)
    Search for this:
    Spoiler:

    And replace with this:
    Spoiler:
     
    Last edited:
    Sorry one more question, what would the event look like with this script?
     
    Sorry one more question, what would the event look like with this script?
    Exactly the same as explained in the ressource ^^
     
    I've tried using that but it crashes, I'm not sure what I'm doing wrong
     
    I've tried using that but it crashes, I'm not sure what I'm doing wrong

    What did you try? Can you post a screen?
     

    Oh okay, I didn't realise you were new to coding ^^
    So, when you give arguments to the function "pbPokemonCreaturesMart", you need to put them between parentheses:
    Code:
    pbPokemonCreaturesMart( arguments )
    Now, here, for this function, the arguments you need to give consist in one list of lists of the form:
    Code:
    [:POKEMON, price, 1]
    and the list of lists should be between brackets and separated by commas:
    Code:
    [
    [:POKEMON_1, price, 1],
    [:POKEMON_2, price, 1],
    [:POKEMON_3, price, 1]
    ]
    When you combine all that, you need to preserve the parentheses and brackets:
    Code:
    pbPokemonCreaturesMart( [
    [:POKEMON_1, price, 1],
    [:POKEMON_2, price, 1],
    [:POKEMON_3, price, 1]
    ])
    So for your mart with only Togepi:
    Code:
    pbPokemonCreaturesMart( [
    [:TOGEPI, 200, 1] 
    ])
     
    Just tried it with the one you gave me and it works! Thank you so much! I am very new to coding and this had me so confused.
     
    Last edited:
    Hello, I am also new to coding and I also want to integrate a Pokemon Mart into my game.
    Could you maybe please send me the script and the NPC command for this please?
    How do I integrate this to my game?
     
    Because when I use the script, it gives me this error message:

    [Pokémon Essentials version 19]

    Exception: RuntimeError
    Message: Script error in event 2 (coords 10,6), map 22 ():
    Exception: NameError
    Message: uninitialized constant PBSpecies

    ***Full script:
    pbPokemonCreaturesMart([
    [:PIKACHU,12000,10],
    [:ABRA,5000,12]
    ])


    Backtrace:
    356:Pokemon Mart:27:in `block in pbPokemonCreaturesMart'
    356:Pokemon Mart:26:in `each'
    356:Pokemon Mart:26:in `pbPokemonCreaturesMart'
    (eval):1:in `execute_script'
    033:Interpreter:131:in `eval'
    033:Interpreter:131:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:121:in `block in update'
    033:Interpreter:81:in `loop'


    Backtrace:
    033:Interpreter:183:in `rescue in execute_script'
    033:Interpreter:129:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:121:in `block in update'
    033:Interpreter:81:in `loop'
    033:Interpreter:81:in `update'
    032:Scene_Map:156:in `block in update'
    032:Scene_Map:154:in `loop'
    032:Scene_Map:154:in `update'
     
    Because when I use the script, it gives me this error message:

    [Pokémon Essentials version 19]

    Exception: RuntimeError
    Message: Script error in event 2 (coords 10,6), map 22 ():
    Exception: NameError
    Message: uninitialized constant PBSpecies

    ***Full script:
    pbPokemonCreaturesMart([
    [:PIKACHU,12000,10],
    [:ABRA,5000,12]
    ])


    Backtrace:
    356:Pokemon Mart:27:in `block in pbPokemonCreaturesMart'
    356:Pokemon Mart:26:in `each'
    356:Pokemon Mart:26:in `pbPokemonCreaturesMart'
    (eval):1:in `execute_script'
    033:Interpreter:131:in `eval'
    033:Interpreter:131:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:121:in `block in update'
    033:Interpreter:81:in `loop'


    Backtrace:
    033:Interpreter:183:in `rescue in execute_script'
    033:Interpreter:129:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:121:in `block in update'
    033:Interpreter:81:in `loop'
    033:Interpreter:81:in `update'
    032:Scene_Map:156:in `block in update'
    032:Scene_Map:154:in `loop'
    032:Scene_Map:154:in `update'

    My guess would be that this script doesn't work with v19 due to the new data structure.
     
    Yeah, this might be true. Do you know, where I can get the 18.1 version?
     
    Yeah, this might be true. Do you know, where I can get the 18.1 version?

    Here, I updated the script for you. Please credit the original author, JV, not me for this script.

    Spoiler:
     
    Hi,

    wow, thanks a lot for the script update!
    It works fine, however if I use the up/down button, it would crash and give me this error:


    [Pokémon Essentials version 19]

    Exception: RuntimeError
    Message: Script error in event 2 (coords 10,6), map 22 ():
    Exception: ArgumentError
    Message: Invalid argument passed to method.
    Expected nil to be one of [Symbol, GameData::Species, String, Integer], but got NilClass.

    ***Full script:
    pbPokemonCreaturesMart([
    [:PIKACHU,12000,12]
    ])


    Backtrace:
    015:Validation:29:in `validate'
    102:GameData:26:in `get'
    356:Pokemon Mart:91:in `getDescription'
    356:Pokemon Mart:259:in `block (2 levels) in pbChooseBuyItem'
    356:Pokemon Mart:251:in `loop'
    356:Pokemon Mart:251:in `block in pbChooseBuyItem'
    081:MessageConfig:691:in `pbActivateWindow'
    356:Pokemon Mart:249:in `pbChooseBuyItem'
    356:Pokemon Mart:155:in `block in pbBuyScreen'
    356:Pokemon Mart:154:in `loop'


    Backtrace:
    033:Interpreter:183:in `rescue in execute_script'
    033:Interpreter:129:in `execute_script'
    034:Interpreter_Commands:1024:in `command_355'
    034:Interpreter_Commands:116:in `execute_command'
    033:Interpreter:121:in `block in update'
    033:Interpreter:81:in `loop'
    033:Interpreter:81:in `update'
    032:Scene_Map:156:in `block in update'
    032:Scene_Map:154:in `loop'
    032:Scene_Map:154:in `update'
     
    Back
    Top