• 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!
  • Our weekly protagonist poll is now up! Vote for your favorite Conquest protagonist in the poll by clicking here.
  • 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] It depends on the character does different things

  • 50
    Posts
    5
    Years
    • Seen Oct 17, 2023
    I was testing the command: $ Trainer.gender == 0, it is really useful when you have two characters, but I have a doubt as to how I could do it with more than one. Suppose I have 4 different characters and depending on which one you use they tell you one thing or another. Is it possible to do that or should I find another way?
     
    I was testing the command: $ Trainer.gender == 0, it is really useful when you have two characters, but I have a doubt as to how I could do it with more than one. Suppose I have 4 different characters and depending on which one you use they tell you one thing or another. Is it possible to do that or should I find another way?
    Code:
    case $Trainer.gender
    when 0
    #CODE 1
    when 1
    #CODE 2
    when 2
    #CODE 3
    when 3
    #CODE 4
    end
     
    Code:
    case $Trainer.gender
    when 0
    #CODE 1
    when 1
    #CODE 2
    when 2
    #CODE 3
    when 3
    #CODE 4
    end

    It's great that there is an answer, I suppose that to put it, it is enough to make a new script and put in the code part what one needs, right?

    To activate it, it would be with the same code but with the numbers that one requires

    Being so dumb, but I'm kind of a newbie at these things
     
    Back
    Top