You should consider joining our Discord to ask for support.

We created a support channel using the new Discord Forum feature!

You can also visit our new website, it has a help section in English and French

0 like 0 dislike
497 views
in Script help by (530 points)
closed by
Hello,

I'm trying to create an event where an NPC give you a Pokemon based on how high your first party (or even specific Pokemon) friendship level is, but I have no idea how to do that.

Thank you.
closed with the note: Answered

1 Answer

0 like 0 dislike
by (17.1k points)
selected by
 
Best answer
Hey! PFM::Pokemon got a method called "loyalty" which is basically what you seek : https://psdk.pokemonworkshop.com/yard/PFM/Pokemon.html#loyalty-instance_method
by (530 points)
Hi, I tried
setting a condition branch and setting the script as
$actors.loyalty = 155

But an error message popped up. I'm sure I'm doing something wrong.
by (530 points)
Nvm. I found the solution. Thank you.
...