• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • 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
3
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?
     

    KP7

    22
    Posts
    3
    Years
    • Seen Jan 14, 2022
    Bumping this because I'd really like to know how to add this please
     
    26
    Posts
    5
    Years
    • Seen Nov 25, 2021
    There is two ways, make a event or just edit this resource: https://reliccastle.com/resources/464/
    Search for this:
    Spoiler:

    And replace with this:
    Spoiler:
     
    Last edited:

    KP7

    22
    Posts
    3
    Years
    • Seen Jan 14, 2022
    Sorry one more question, what would the event look like with this script?
     

    KP7

    22
    Posts
    3
    Years
    • Seen Jan 14, 2022
    I've tried using that but it crashes, I'm not sure what I'm doing wrong
     

    StCooler

    Mayst thou thy peace discover.
    9,301
    Posts
    4
    Years
    • Seen May 5, 2024

    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] 
    ])
     

    KP7

    22
    Posts
    3
    Years
    • Seen Jan 14, 2022
    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:
    13
    Posts
    3
    Years
    • Seen May 16, 2021
    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?
     
    13
    Posts
    3
    Years
    • Seen May 16, 2021
    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'
     
    124
    Posts
    3
    Years
  • 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.
     
    13
    Posts
    3
    Years
    • Seen May 16, 2021
    Yeah, this might be true. Do you know, where I can get the 18.1 version?
     
    124
    Posts
    3
    Years
  • 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:
     
    13
    Posts
    3
    Years
    • Seen May 16, 2021
    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