Alternate Endings in game?

So I want there to be three different endings to the game depending on how the main character has been answering questions and reacting to others over the course of the game. I also want them to have different stats according to their choices. Example: The main character is kind and gives a beggar gold. +3 to luck or something like that. Is there a way to make either of these happen? Or will I end up having to do a ton of switches for the choices 'cause that's the only thing I can think of right now.
I would probably use variables. Switches are also an option, but variables are probably the best option if you're making alternate endings. 
one option would be to use three variables, one for each ending, and add to each variable whenever the player behaves or acts toward that ending.


In the end, check the three values and display the ending of the variable with the highest number.


And stats of the actors can be changed by event commands, so there is no problem to implement those rewards.


If you're new to the program and it's options, then I suggest to follow the link in my signature.
Here are possible solutions for each problem.

Alternate endings:

As LSG stated use variables to calculate the actions.

Save a cat +3 to Good Ending, -3 to Evil Ending

Step on a dog -10 to Good Ending, +10 to Evil Ending

Then on the event that initiates the ending have it evaluate the Ending Variables, and turn on an appropriate switch. (Good Switch, Evil Switch)

This switch will be the condition for hte endings

Bonus for action:

This can be done through eventing I believe. Within each individual event just have it end by giving the actor an increase in stats. Use the event function: Change Parameter and add or subtract what you want.

**EDIT: NINJA'D**
Awesome! Thank you guys, I'm very happy to learn this. I will get to work on it soon, I've almost finished all my maps. It's taken me months laying out the world map and dungeons. I've got the plot typed out and progression and preparing for my next steps so...soon, I'll mess with npc's, events, etc....

Original thread: https://forums.rpgmakerweb.com/threads/alternate-endings-in-game.25875/