• 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!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • 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