adding AI civilians

Chat and ask questions about the RPG Maker Mode here.
Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

adding AI civilians

Postby Ghostman Gaming » December 23rd, 2012, 7:11 pm

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:

Hirato
Developer
Developer
Posts: 689
Joined: May 30th, 2009, 1:23 pm
IRC Username: hirato

Re: adding AI civilians

Postby Hirato » December 24th, 2012, 3:57 am

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.
Bye.
Good-day.





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"
This is not a url, clicking it is pointless

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: adding AI civilians

Postby kddekadenz » December 28th, 2012, 6:19 am

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 ;)
Kelgar is an advanced RPG beeing developed in Sandbox

Ghostman Gaming
Member
Member
Posts: 49
Joined: July 9th, 2012, 6:44 pm
Name: Tyler Mangino
IRC Username: ghostman1996
Contact:

Re: adding AI civilians

Postby Ghostman Gaming » January 16th, 2013, 9:02 pm

Sure thank you!

User avatar
kddekadenz
Member
Member
Posts: 423
Joined: July 17th, 2011, 11:02 am
Name: kdd
Contact:

Re: adding AI civilians

Postby kddekadenz » January 18th, 2013, 12:09 pm

https://github.com/kelgar/Kelgar-data/b ... _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.
Kelgar is an advanced RPG beeing developed in Sandbox


Return to “RPG Maker Mode”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest