• 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] Special Fossil NPC

  • 40
    Posts
    4
    Years
    • Seen Jan 13, 2022
    I want to make a new NPC that can revive the Jaw Fossil into a Level 39 Tyrantrum variant.
    Anyone who can give me pointers, appreciated.
     
    Do you want your NPC to only revive Jaw Fossils? Maybe try this?

    Text: If you give me Jaw Fossil you found on your adventure, I can revive it into a powerful Pokémon.
    Text: Would you like me to revive a Jaw Fossil?
    Show Choices: Yes, No
    When [Yes]
    Conditional Branch: Script: $PokemonBag.pbHasItem?(:JAWFOSSIL)
    Script: pbAddPokemon(:TYRANTRUM,39)
    Script: $PokemonBag.pbDeleteItem(:JAWFOSSIL)
    Text: I've finished reviving your Fossil.
    Text: It was Tyrantrum, like I thought.
    Text: Come back with more Jaw Fossils. I will revive them into Pokémon.
    Else
    Text: Sorry, It looks like you don't have a Jaw Fossil.
    Branch End
    When [No]
    Text: OK. Come back if you want me to revive a Jaw Fossil.
    Branch End
     
    Back
    Top