Jump to content

[AOG] Alignment System Add On - Gaining/Losing Alignment Points


Ainz Ooal Gown

Recommended Posts

Description:

This is a add on to the alignment system from this tutorial and is require for this add on to do anything:

 

Video:

None

 

Process:

As a player kills MOBs and NPCs in game they will gain or lose Alignment Points.

In my game I have 6 different types of MOBs and NPCs:

  1. Animals - Sheep, Pigs, Cows (Friendly MOBs)
  2. Creatures - Snakes, Bats, Orcs (Non-Friend MOBs)
  3. Monsters - Trolls, Orges, Giants (Non-Friendly MOBs)
  4. Demonics - Demons, Hell Hounds, Succubus (Non-Friendly MOBs)
  5. NPCs - Paul, Chris, Shopekeeper (Friendly NPCs)
  6. Heroes - Champion Of Light (Friendly NPCs)

Depending on what you kill will gain or lose alignment points. Such as killing a Monster will give you + Alignment, and killing a NPC will give you - Alignment.

 

Issue:

None

 

Build: 

First we need to make the variables

Spoiler

I enter a Text Id to display the value of the variable in the players "Journal" (Look at my Journal/Tradeskill Book Tutorial).

53086e1ba88bcba3216acd27c2fdb1e8.jpg

 

Now we have the variables time to make the "Common Events"

Spoiler

Each common event does the math based on the type of kill you did. Such as killing a "Animal" will Add 11 Alignment Points (which is not a lot), adds 1 to "Animal Slain" variable and adds 1 to "Evil Kills" variable. This is just how my game was structure, you can change the stats and the variables as you please.

 

I also add text to some such as when you kill a NPC test appears in chat saying "Murder" and also says to player they have lost some alignment.

 

I recommend you change below to the way you want it, as this is what my game uses :P

 

b3c8c373f08f560a055519364c36eaf8.jpg

 

12b4f44ff442fa66305dea27c42381de.jpg

 

04889de94d4a421d8202aa7226eb2462.jpg

 

ee9145c07d2755ca5442b5a0a3ef6cb1.jpg

 

14ffdb80cd028622cb7cdbe845752693.jpg

 

c8c06388321021dac66fde25a9db7d48.jpg

 

The last thing we need to do is apply these "Common Events" based on a MOB or NPC being killed by the player

Spoiler

When you create a NPC or MOB you just need to apply the "Common Events" at the bottom of the NPC Editor.

 

So this is for when a Orc is killed in my game which is a "Creature":

fc2afc3055fdd3f5dc1e47bd87e5bc44.jpg

 

Complete!

 

Now you should have events based on when a NPC or MOB is killed in your game and give or remove player alignment points.

 

Enjoy! :)

Link to comment
Share on other sites

  • 7 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...