• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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