Anomaly submitted a new resource:

Townfolk 1.0 (Karma-Based NPC) - Random good or evil NPC, that greets players based on it's karma vs theirs

::Townfolk 1.0::

Hello everyone. Here we have Townfolk. Townfolk is an NPC that will speak to players in passing. The response that is delivered is based on the NPC's karma, checked against the player it is speaking to.

The NPC's Karma is random.
Code:
this.Karma = (Utility.RandomMinMax(-500, 500));

And based on it's karma, it's title is determined (also Random).
(example: )
Code:
if (this.Karma < 0)//bad
{
switch( Utility.Random(5) )
{
case 0:
this.Title = "The...

Read more about this resource...
 
Back