NPC Dialog Script
Used when interacting with any NPC that is not a shopkeeper, or a quest giver.
pbNpcDialog(
"Ben", # The trainer's name; required
# Talk; required
DialogTree, # The Dialog Tree to be used
# Battle; optional
[
:YOUNGSTER, # The trainer's base
_I("Aww, I lost.") # The trainer's loss message
]
# Play PokeTriad; optional
[
0, # minLevel in pbTriadDuel
5, # maxLevel in pbTriadDuel
]
)
Shadow Pokemon
In the background, the following is assigned as part of the DialogTree, given that the NPC had any Shadow Pokemon in their party:
- After defeating any NPC with a dark poke, options are:
- Claim the poke (intimidation, hight)
- Ask for the poke (intelligence, medium)
- Only one of those can be attempted
- If passed, the dark poke is handed over
- If failed, the NPC immediately disappears from the location