• 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!
  • 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] So how would I go about this?

HeroesFightingFear

"The Champion of Alon"
  • 99
    Posts
    5
    Years
    I want to program an ability for one of my Fakemon, but the issue is, it specifically functions like the Insurgence variant of Protean, which changes the Pokemon to another form reflecting its shifted type. How would I do this? Any help is appreciated.

    Fakemon Ability
    Elemental Shift - Depending on the move used, the Pokemon enters a different Shift form reflecting that move's type.
     
    Look for Protean's code. Make a copy and edit it to have this somewhere in it.
    Code:
    case user.type1
    when PBTypes::FIRE
     form=1
    when PBTypes::WATER
     form=2
    .....
    when PBTypes::FAIRY
      form=18
    end

    You can figure out the rest from here.

    Also, teeny tiny suggestion. Try working on your Recruitment Thread and recruit a scripter if you have trouble with coding. You can't just waltz down here and be like "Hey Dudes I had this cool Idea. Make script for me plez". We're always here to help anyone who needs it but you should try to put in some effort yourself.
     
    Back
    Top