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

Item that makes Pokémon shiny when you have it

79
Posts
9
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:

    DeKay

    Mega Evolved
    22
    Posts
    9
    Years
    • Seen Oct 11, 2015
    There was some asking pretty much the same question.
    It's even called "Item that turns on a Switch"
    https://www.pokecommunity.com/showthread.php?t=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:
    79
    Posts
    9
    Years
    • Seen Dec 8, 2015
    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
    ---------------------------
     

    KillerMapper

    Helix Follower
    200
    Posts
    9
    Years
  • 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.
     
    79
    Posts
    9
    Years
    • Seen Dec 8, 2015
    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