• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • Red, Hilda, Paxton, or Kellyn - 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] Updated Variables - v18 to v19 Transferring

Atlat

Atlat
  • 90
    Posts
    5
    Years
    • Seen yesterday
    Some variables like playerID, character_ID, or metaID are to be slated in v20, or have already been changed. I would like to know what the replacements of these variables are for future coding ordeals please. I've tried to use #$game_player.charsetData[0] in order to get the ID of the player's character, but that just gives me an "undefined method []" error. I don't know if I'm missing something obvious, but I'm definitely missing something.
     
    The wikia is still being updated so there isn't a definitive list of all the deprecated methods, but if you go to your script editor hit "Ctrl + Shift + F" then search for "v20" you will find the comments that mention a method being slated for removal.

    Also have you tried $Trainer.character_ID
     
    Honestly I was trying to avoid things involving $Trainer because from what I see it seems like it was going to be replaced with $Player or something like that. That does seem to work though. Now I've just got errors involving "moving?" and "transparent=", so that's fun. Not entirely certain as to why since they do exist. Anyways, thank you!
     
    Last edited:
    Back
    Top