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

[Scripting Question] Check ID Player

Here you have methods for both showing your ID and comparing it to random number (like lottery does)

Paste it anywhere in PSystem_PokemonUtilities

Spoiler:
 
Here you have methods for both showing your ID and comparing it to random number (like lottery does)

Paste it anywhere in PSystem_PokemonUtilities

Spoiler:

Okay, I want to make a conditional that checks the coach with ID 5000, I want the event to happen only with that player, which command do I use?
 
Okay, I want to make a conditional that checks the coach with ID 5000, I want the event to happen only with that player, which command do I use?

There's a problem with that, and it's that the ID is always much, much higher than 5000, but if you want to make it, paste this script with the other two

Spoiler:


On a conditional branch, use the Script pbcompareID([S-HIGHLIGHT]the number you want[/S-HIGHLIGHT]) and it'll work
 
There's a problem with that, and it's that the ID is always much, much higher than 5000, but if you want to make it, paste this script with the other two

Spoiler:


On a conditional branch, use the Script pbcompareID([S-HIGHLIGHT]the number you want[/S-HIGHLIGHT]) and it'll work

OKAYY! THANKSSSS
 
There's a problem with that, and it's that the ID is always much, much higher than 5000, but if you want to make it, paste this script with the other two

Spoiler:


On a conditional branch, use the Script pbcompareID([S-HIGHLIGHT]the number you want[/S-HIGHLIGHT]) and it'll work

I imagined that with your script I could conditionally verify the trainer ID generated on your Trainer Card, but I tested it and it didn't work ...
 
I imagined that with your script I could conditionally verify the trainer ID generated on your Trainer Card, but I tested it and it didn't work ...

Found the issue, sorry.

Change the two codes to:
Code:
def pbshowID
    pbMessage(_INTL("Your id is {1}.",$Trainer.publicID($Trainer.id)))
end

def pbcompareID(num)
pbMessage(_INTL("Your num is {1}.",num))
  if num == $Trainer.publicID($Trainer.id)
      return true
  else
      return false
  end
end

I thought there was one trainer ID, but there are actually three!

The trainer ID I was using
The trainer public ID (the one in your traier card)
And a secret ID

You learn something everyday...

[PokeCommunity.com] Check ID Player
[PokeCommunity.com] Check ID Player
[PokeCommunity.com] Check ID Player
 
Back
Top