There's no script command or special for setting friendship. You should create a C function that does it with SetMonData, and call that from your script.I would like to make a script that forces happiness on pokemon, so I can easily evolve pokemon that need their happiness close to max to evolve. Which commands could i use?
I would like that, do u have a script in mind I can kinda edit/alter to get that result, one that already has a similar function. And would I need the encryption thing from Ghoulslash?There's no script command or special for setting friendship. You should create a C function that does it with SetMonData, and call that from your script.
You can find a minimal example of a similar C function, and how it's used in a script here on the wiki.I would like that, do u have a script in mind I can kinda edit/alter to get that result, one that already has a similar function. And would I need the encryption thing from Ghoulslash?
That's good this is what I came up with but, I dont think its working.You can find a minimal example of a similar C function, and how it's used in a script here on the wiki.
And no, you don't need an "encryption thing" as the SetMonData function already handles the substruct encryption