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

[Scripting Question] Compiler Confusion

220
Posts
13
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