Help - Search - Members - Calendar
Full Version: [sub] Basic Karma System and Karma Checker
RPG RPG Revolution Forums > Scripting > Event Emporium > Eventing Tutorials
masterofrotten
Hey guys what's up? I've been experimenting with a few things on my latest project and recently came up with a very basic and easy way to develop a Karma system. Kind of like a way to keep track of good/evil characters. Now I'm sure there are probably way cooler and much better ways to do this but I couldn't find any tutorials on it so yeah. LET'S GET STARTED


Why a Karma System?
Why would you want this you may ask? Well besides being a pretty nifty feature in games, it gives a basic "building block" for variables for people new to RPG Maker VX. In other words, it's a good way to start using variables.
Other than that there are so many things you can do. You can change Dialogue based on how evil or good your character is, learn certain spells, change the way a character looks, or even get access to special characters and items.

How To
So to do this we are just going to create a new variable. It's best to name it "Karma".
Congratulations you just made a karma system haha, simple as that.
Thing is though, now we have to decide when to add or subtract Karma from the player.

SO, Let's say for a mission you have to get a druggie off of his addictions. You are presented with two options Threaten or Persuade. Obviously we want threaten to reward bad karma and Persuade to reward good karma. So, in our event we a "Show Choices" like this and of course you can add dialogue and such afterwords
CODE
@>Show Choices: Threaten, Persuade
: When [Threaten]
@>Control Variables: [0001: Karma] -=1
: When [Persuade]
@>Control Variables: [0001: Karma] +=1



Simple as that.

How Do I See My Karma

In our basic system +#=good -#= bad but of course you can make whatever you want. I like to use -10 to 10 my neutral area. But that is neither here nor there if we can't check what our karma level is. So to do this we simply make a new item and attach it to a common even.

Make a Karma Checker item (make sure it has no scope and use from menu only) then go to common events and label it Karma Checker then type

CODE
@>Text: -,-,Normal,Bottom
:     : Current Karma Level : \V[*Variable #]*



and there you have it any questions comments and concerns are appreciated thanks for reading this and hope it helps
Redd
So simple, and yet I've never thought of doing this! Thanks for bringing this to light masterofrotten smile.gif
masterofrotten
no problem glad you liked it
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.