Page 1 of 1

adding AI civilians

Posted: December 23rd, 2012, 7:11 pm
by Ghostman Gaming
I want to add AI civilians to my RPG city I want them to just walk around the map. Unless the player does something out of the ordinary.
If i kill or steal something i want the people to alert near by guards.
I also want to add sound to my civilians how would i do this?
EX: if i steal something i want the person to yell something like thief guards kill this man!
or just random talk like hi and how are you. :mrgreen:

Re: adding AI civilians

Posted: December 24th, 2012, 3:57 am
by Hirato
Ghostman Gaming wrote:or just random talk like hi and how are you. :mrgreen:

Hi, how are you?
I saw a mud crab the other day, horrible creatures.
I hear the emperor's been murdered.
They say the dark brotherhood comes to you in your sleep.

Now, on a serious-we-are-totally-not-doing-a-parody-of-oblivion note.
The default NPC script will cause NPCs to respond negatively if you open up a container, much more so if there are valuable things in there.
Items in the world currently can't be owned, so they can't really be stolen.
If you murder an NPC, everyone in their faction hates your guts, I've been meaning to make this less "psychic."

It's easy enough to rally nearby allies, just loop through the map's entities, otherwise it simply isn't done at the moment, they'll just ignore you until they see you.
Also, you can make them wander or go wherever you want, but there's currently no means of knowing whether they've reached their destination, or to have them "patrol"

Re: adding AI civilians

Posted: December 28th, 2012, 6:19 am
by kddekadenz
Hirato is right, but he did not really explain it.
Since the RPG module lacks a solid documentation, this is a no-no.

If you're done watching Tobuscus saying, what he thinks of this, let me help you.

I recently added rumors to Kelgar and I planned for a long time to release the code of Kelgar under an open source license.
It still needs more documentation, but I will put it on github now and then give you the link ;)

Re: adding AI civilians

Posted: January 16th, 2013, 9:02 pm
by Ghostman Gaming
Sure thank you!

Re: adding AI civilians

Posted: January 18th, 2013, 12:09 pm
by kddekadenz ... _ridaz.cfg

I uploaded it 12 days ago, but I forgot to send you the link ^^
Feel free to use it, but take a look at the readme for information about the license.