I'm looking for a code for a specific event if

essentially I need a script for My game where you need to keep animal happy , Provide food for it, play with it, but also protect it.  now protecting it is in the battle and I have that all set but I need a way that the animals Happiness can be gauged so if it goes to long with out attention the Gage drops and something bad happens.

But I don't know how to go about even beginning to set something like that up.  Is there a script already out there that can do that? or would anyone know how to implement something like that? I'd appreciate the help.
I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.
Does it have to be a script? Because I think you might be able to do this with eventing.
Sounds like a farming system to me, just using animals rather than plants.  There are tutorials for those using events & variables that you could probably modify.
I've moved this thread to Script Request. Please be sure to post your threads in the correct forum next time. Thank you.

I'm sorry, I though the forum was right because I was asking for help, I appologize for misunderstanding.

Does it have to be a script? Because I think you might be able to do this with eventing.

Either works really essentially the point is if you keep the animal happy it won't make noises and out you to the monsters.

Sounds like a farming system to me, just using animals rather than plants.  There are tutorials for those using events & variables that you could probably modify.

It's not eally farming, the aime of the game is to keep the creature happy while you make your way through monster infested areas, this will keep it quiet so it dosen't alert the monsters, and stay in hiding.
Well, if you want to do this via eventing, I think you'd want a common event that looks something like this:

affection psuedo slip.png
Well, if you want to do this via eventing, I think you'd want a common event that looks something like this:

AHH This is perfect thats exactly the sort of thing I was looking for thank you!
AHH This is perfect thats exactly the sort of thing I was looking for thank you!

No problem! Just remember that eventing is a lot more powerful than it looks, so you should always check to see if something is possible without the use of scripts.

Original thread: https://forums.rpgmakerweb.com/threads/im-looking-for-a-code-for-a-specific-event-if.70153/