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

[Scripting Question] Custom items can't be picked up?

Plutoniarch

Ghost King
  • 9
    Posts
    9
    Years
    • Seen May 13, 2018
    I'm trying to add items to function like HMs, but for some reason I get an error message whenever I try to give one to the player. It's the same error every time:

    ---------------------------
    Pokemon Redshift
    ---------------------------
    Exception: RuntimeError

    Message: Script error within event 14, map 22 (Gedeo Town):

    Exception: NoMethodError

    Message: Section135:792:in `pbStoreItem'undefined method `length' for nil:NilClass

    ***Full script:

    Kernel.pbItemBall(:DARKLANTERN)

    Interpreter:243:in `pbExecuteScript'

    PField_Field:2084:in `pbItemBall'

    (eval):1:in `pbExecuteScript'

    Interpreter:794:in `eval'

    Interpreter:243:in `pbExecuteScript'

    Interpreter:794:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:794:in `command_111'

    Interpreter:320: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'

    Registered Items:102:in `main'



    This exception was logged in

    C:\Users\Thomas\Saved Games/Pokemon Redshift/errorlog.txt.

    Press Ctrl+C to copy this message to the clipboard.
    ---------------------------
    OK
    ---------------------------

    Anyone have a fix for this or can tell me what's happening? Thank you.
     
    Back
    Top