• 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.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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.

[Error] Argument Error in Event

  • 11
    Posts
    5
    Years
    • Seen Sep 23, 2022
    Okay... I've tried looking all over for a solution to this but can't find anything. Basically, the issue is that I'm trying to make an event to change Cosplay Pikachu's form. But every time I choose an option that would change the form (not "something else" or "don't change"), the game crashes and I get this error message:

    Code:
    ---------------------------
    Pokemon Essentials
    ---------------------------
    [Pokémon Essentials version 17.2]
    
    Exception: ArgumentError
    
    Message: comparison of String with 0 failed
    
    Game_Event:152:in `<'
    
    Game_Event:152:in `nf_particles_game_map_refresh'
    
    Game_Event:139:in `each'
    
    Game_Event:139:in `nf_particles_game_map_refresh'
    
    ParticleEngine:596:in `refresh'
    
    Game_Map:410:in `refresh'
    
    Game_Map:409:in `each'
    
    Game_Map:409:in `refresh'
    
    Game_Map:423:in `update'
    
    Game_Map:422:in `each'

    Here's the entire event page for reference:
    https://imgur.com/a/hu1P6Y2
    (for some reason the forums won't let me actually post pictures here? idk)


    For the most part, I just copied and pasted the Deoxys form change event from the test map, edited it to apply to Cosplay Pikachu, then added some more choices and text. I've created events like this the same way before with no issue. The Essentials wiki says that "comparison of String with 0 failed" errors have something to do with variables, but I'm not using variables in the event, so I'm kind of confused about what the cause is. Anyone got any ideas?
     
    Your event page has a Variable XXX is 0 or above condition, but variable XXX is not a number. It's a string of text.

    Maybe you're using variable XXX in multiple instances, which is causing it to be a string. I'd suggest picking a different variable, to ensure that it is indeed empty (i.e. an integer).
     
    Back
    Top