• 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!
  • Dawn, Gloria, Juliana, or Summer - 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.

[Scripting Question] Compiler Confusion

  • 217
    Posts
    15
    Years
    • Seen Nov 29, 2021
    So first, the relevant coding:
    Code:
    "Type3"            => [59,"e",PBTypes],
    ...
    if !lastsection["Type3"] || lastsection["Type3"]==""
        lastsection["Type3"] = lastsection["Type1"].clone
    end
    Code:
    "PrimaryAbility"   => [65,"EG",PBAbilities,PBAbilities]
    ...
    if (lastsection["PrimaryAbility"] && lastsection["PrimaryAbility"]!="")
       dexdata[65] = 0;
       dexdata[66] = 0;
    end

    Now then, as far as I can tell these two shouldn't be interacting at all, let alone conflicting.
    But if I set PrimaryAbility to just wonderguard it doesn't appear.
    If I set it to wonderguard,wonderguard it appears.
    If I then add Type3=Fire it appears in game as Normal and wonderguard is changed to Volt Absorb.

    What. The Actual. Is going on here?
     
    Last edited:
    Back
    Top