• 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!
  • Scottie, Todd, Serena, Kris - 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.

Item that makes Pokémon shiny when you have it

  • 79
    Posts
    10
    Years
    • Seen Dec 8, 2015
    Hy guys,

    I really need help from you.

    1 Question : [SOLVED]
    Can I create an item that global switches the shiny pokemon encounters(31)?


    2. Question: [SOLVED]

    How Can i do a script that do the global switch 31(Shiny Pokemon) only if I have 'x' items in the bag?

    3. Question:

    I would create a script move a character immediately after finishing a dialogue with another. The character should then talk.

    Can you help me? Please.

    Thank You :D
     
    Last edited:
    There was some asking pretty much the same question.
    It's even called "Item that turns on a Switch"
    https://www.pokecommunity.com/threads/340721

    Your second part is literally the first Code with a Condition added to it.

    Code:
    $PokemonBag.pbQuantity(:[COLOR="red"]ITEM[/COLOR])==[COLOR="red"]10[/COLOR]

    If you wanted to have something that would Automaticly turn everything into a shiny if you have for example 10 Potions.
    Go into the EncounterModifiers Script. Search for the
    if $Game_Switches [31]
    and add
    if $Game_Switches [31] || $PokemonBag.pbQuantity(:POTION)==10
     
    Last edited:
    It gave me this error

    ---------------------------
    Pokemon Essentials
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 13, map 5 (Route 1):

    Exception: SyntaxError

    Message: (eval):4:in `pbExecuteScript'compile error
    (eval):4: syntax error

    ***Line ' (:POKEBALL)== 1' shouldn't begin with '('. Try

    putting '(' at the end of the previous line instead,

    or using Extendtext.

    ***Line '(PBItems::POKEBALL,1)' shouldn't begin with '('. Try

    putting '(' at the end of the previous line instead,

    or using Extendtext.

    ***Full script:

    $PokemonBag.pbQuantity
    (:POKEBALL)== 1
    $PokemonBag.pbDeleteItem
    (PBItems::POKEBALL,1)




    Interpreter:276:in `pbExecuteScript'

    Interpreter:1600:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'



    This exception was logged in

    C:\Users\Utente\Saved Games/Pokemon Essentials/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------
     
    putting '(' at the end of the previous line instead,

    or using Extendtext.

    What you have to do.
    Extendtext is in the essential folder, it's a .exe you need to run while RMXP is open. It increases the length of the text boxes for bigger scripts in events.
     
    putting '(' at the end of the previous line instead,

    or using Extendtext.

    What you have to do.
    Extendtext is in the essential folder, it's a .exe you need to run while RMXP is open. It increases the length of the text boxes for bigger scripts in events.

    Thank You Very Much :D You can close this topic. Thank You
     
    Back
    Top