Soldier NPCs

Everything about Illarion that fits nowhere else. / Alles über Illarion was inhaltlich in kein anderes Board passt.

Moderator: Gamemasters

Post Reply
Lucy Bann
Posts: 135
Joined: Sun Mar 15, 2009 8:40 am
Contact:

Soldier NPCs

Post by Lucy Bann »

I've felt for myself in game, and I've read on the boards that people see this as an issue, and I've come up with a sort of loose idea on how to address it. Basically, people feel as if they aren't living in a occupied town when visiting or going about daily business in Troll's Bane. Some GMs have stated they cannot put soldier NPCs in town, because they would mindlessly attack everyone. I propsed that soldier NPCs be made static, just scattered about town and occasionally uttering phrases at passerby. Although, I of course wouldn't know, being completely inept at any kind of coding, coding static NPCs doesn't seem to be too daunting a task for a decent coder. (Sorry if I'm underestimating, I honestly don't know. :oops: )
As a side note, I think having a small soldier 'camp' in the town square might be intresting, although that's up to you.



Just my two cents.
User avatar
Mesha
Posts: 1238
Joined: Sat Nov 08, 2008 11:49 am
Location: Chris Colfer's underpants
Contact:

Post by Mesha »

In fact, I am asking Nitram this right now. Good suggestion miss Bran.
User avatar
Llama
Posts: 7685
Joined: Sun May 29, 2005 7:02 pm
Location: The VBU is awesome
Contact:

Post by Llama »

Mesha wrote:Good suggestion miss Bran.
Fancy you (of all people) mis-writing her surname :P
User avatar
Mesha
Posts: 1238
Joined: Sat Nov 08, 2008 11:49 am
Location: Chris Colfer's underpants
Contact:

Post by Mesha »

Oh my! I was in such a hurry to post.
User avatar
rakust dorenstkzul
Posts: 2300
Joined: Fri Mar 21, 2008 2:47 pm
Location: In the heart of every smiling child

Post by rakust dorenstkzul »

Mesha wrote:Good suggestion miss Bran.
ALWAYS SEEMED FLAKEY LOL

But uh, mabye there's a way to script non hostile, non attackable soldiers?, could you just put the Rabbit/Deer AI in, and trigger some boolean value? and shove the soldiers in an area that would prevent a lot of wandering that would make sense to put them in like the guard towers?
David Turner
Posts: 151
Joined: Wed Sep 23, 2009 12:32 am

Post by David Turner »

If you put them in a limited area and program them to go berserk when they are harmed (have lost hit points) than they could defend themselves, this is the only simple way to have a character "defend themselves" and this only works if the scripting language can be tweaked to work with this aspect. Having them differentiate between "hostiles" and "non-hostiles" is a much more difficult task where the programing has almost certainly not been created and would not be simple to create considering the scripting options that I remember seeing. What I mean is that an NPC would have to "see" that a person has a weapon out and that they have the NPC targeted, or to recognize who attacked them, or (unfortunately) all of the above depending on the circumstances. It isn't perfect, I already have four or five ideas on how to sabotage this, but I won't write them here just in case part of this idea does get implemented.

The best option for having "town guards" is probably this: Modify the scripting language to include a statement to the effect of "if [player name/player ID #] than [attack]; else [ignore]" option. Once a player becomes a known enemy of the town, either through roll play or by attacking a guard or some other means, than add them to the list of players to attack. This would have the downside of allowing a player to walk into town and kill the guards with no immediate repercussion one time (depending on how adaptable the system is in terms of immediately updating the list of "enemies", most likely it will have to be updated by a GM the next time they sign on and see the event) but will create a "friendly town guard" who only attacks "town enemies" and only requires one addition to the current scripting options as opposed to the multiple additions that would be required with any other option that I can think of.
User avatar
Tanistian_Kanea
Posts: 646
Joined: Mon Aug 14, 2006 2:22 am

Post by Tanistian_Kanea »

unless i am mistaken there is in the programming language already the option to increase or decrease one's standing in a particular faction. in this case salkmarian. create an npc that attacks people with very low standing with salk army. at the very least you could program npc's that attack people that are in low standing when they are talked to.
User avatar
Llama
Posts: 7685
Joined: Sun May 29, 2005 7:02 pm
Location: The VBU is awesome
Contact:

Post by Llama »

@ David: While that would be a viable programming option - it is not supported currently by the AI of the monsters. Also if they just turn hostile when you attack them - they might attack someone else if you run away or something.

That said pharse is working on something like this - but it'll come out with the VBU (Very Big Update)
-

@ Tanistan : Yes, you're right about there being a faction value. Again - them going hostile is a bad option - but you could very easily program it so that NPC vendors don't supply certain people with goods , or something like that.
Keikan Hiru
Posts: 3482
Joined: Thu Jun 26, 2003 5:46 pm

Re: Soldier NPCs

Post by Keikan Hiru »

Lucy Bann wrote:I propsed that soldier NPCs be made static, just scattered about town and occasionally uttering phrases at passerby.
There you go:

Code: Select all

-- Generic Salk Soldier
name="Salkamerian Soldier"
position=[Somewhere in TB]
sex=male
race=human
direction=west

cycletext "Bleibt wachsam.", "Stay alert."
cycletext "#me schaut nach Links.", "#me turns his head to the left."
cycletext "#me schaut nach Rechts.", "#me turns his head to the right."
cycletext "Haltet eure Papiere bereit.", "Always have your papers in reach."
cycletext "Diese Bauern hier machen mich krank.", "These pesants here make me sick."
cycletext "Endlich bringen wir das Licht der Zivilisation in diese götterverlassene Gegend.", "Finaly we bring the light of civilisation into this godsforsaken place."
Feel free to add flavour text as much as you like, and earn your very own forum rank with these soldiers.
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Re: Soldier NPCs

Post by AlexRose »

Keikan Hiru wrote:

Code: Select all

cycletext "Haltet eure Papiere bereit.", "Always have your papers in reach."
cycletext "Diese Bauern hier machen mich krank.", "These pesants here make me sick."
cycletext "Endlich bringen wir das Licht der Zivilisation in diese götterverlassene Gegend.", "Finaly we bring the light of civilisation into this godsforsaken place."
Cycling actions is fine but please don't cycle speech.

Anyone played the Morrowind Tribunal expansion?

"Mournhold! City of light! City of magic"

That got so annoying.

And it's pretty daft that a guard would just sit there repeating the same few phrases over and over.
User avatar
Kenneth Ladrus
Posts: 348
Joined: Tue Feb 13, 2007 6:50 pm
Location: Trolls' Bane
Contact:

Re: Soldier NPCs

Post by Kenneth Ladrus »

AlexRose wrote:
Keikan Hiru wrote:

Code: Select all

cycletext "Haltet eure Papiere bereit.", "Always have your papers in reach."
cycletext "Diese Bauern hier machen mich krank.", "These pesants here make me sick."
cycletext "Endlich bringen wir das Licht der Zivilisation in diese götterverlassene Gegend.", "Finaly we bring the light of civilisation into this godsforsaken place."
Cycling actions is fine but please don't cycle speech.

Anyone played the Morrowind Tribunal expansion?

"Mournhold! City of light! City of magic"

That got so annoying.

And it's pretty daft that a guard would just sit there repeating the same few phrases over and over.
Remember it. Hated it. ;)
IF there is cycle speech, please put in many phrases, so you don't hear four or five sentences again and again.

Oh, by the way. Not everyone hates it!
Keikan Hiru
Posts: 3482
Joined: Thu Jun 26, 2003 5:46 pm

Re: Soldier NPCs

Post by Keikan Hiru »

AlexRose wrote:repeating the same few phrases over and over.
Kenneth Ladrus wrote:please put in many phrases
If the two of you would have provide at least one more sentance, the chances of hearing the same phrase again would have been reduced.

Otherwise, what I have posted was just an example on how the initial proposal could be realized in a couple of minutes, if someone is feeling creative in giving the Soldier NPCs some text. (Notice the link at the end of my post.)
I am well aware how limited these NPCs are, and that they will happily and idly watch how player character would duke it out with each other right infront of them.

The goal was to add more flavour to the town, displaying it is occupied by soldiers, this is the most easiest solution.
It's also the perfect ground to start leaving the "pure consumer" part of playing Illarion and becoming part of the "creative process".
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

So give them commands they reply to and cycle actions but cycle speech doesn't make sense.
Keikan Hiru
Posts: 3482
Joined: Thu Jun 26, 2003 5:46 pm

Post by Keikan Hiru »

What in: "Make proposals!" do you not understand?

***

Me: "Yeah, this is like just an example. Tell me what to add."
You: "Like ... add text."
Me: "..."
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

I'm not telling you to add text, I'm asking you NOT to add text.
Rye
Posts: 48
Joined: Thu Jul 23, 2009 1:33 pm
Location: Great Smoky Mountains

Post by Rye »

What about the possibility of guards that actually...guarded? I remember somewhere being told when I arrived that it was illegal to have weapons armed when in Bane proper. Guards that attack anyone who actually has a weapon in their hands until it is either disarmed or they are ghosted? Problem is in differentiating between a sickle and a sword perhaps? it goes without saying that a guard will attack anyone that targets them. I think these guards should remain in some form permanently. When a citizen who is a non-combatant type, a Druid or a baker for example is attacked by some jerk of a player who think pk'ing is all the fun they could run to the guard for protection.
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

If you target NPCs you automatically untarget them.
Keikan Hiru
Posts: 3482
Joined: Thu Jun 26, 2003 5:46 pm

Post by Keikan Hiru »

AlexRose wrote:So give them commands they reply to and cycle actions but cycle speech doesn't make sense.
Equals
AlexRose wrote:Like ... add text.
Be specific.
Write down keywords and replies to that.
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

I'm personally not bothered if there are NPCs in town, I'm just saying if someone else decides to make them they should use emotes, not speech.
User avatar
Olaf Tingvatn
Posts: 935
Joined: Wed Sep 10, 2008 12:23 am
Location: Norway, Lyngdal, Scandinavia

Post by Olaf Tingvatn »

oooo suggestions for emotes for the NPC guards.

#me eyes you suspiciously for a moment then scoffs dissapointedly

#me Throws a couple of quick glances behind him as if expecting an ambush/attack from behind

#me crosses his arms over his chest while rocking back and forth on his heels and staring blankly up at the sky

#me stands at attention with one hand on the hilt of his sword, as you get closer you see his eyes following your every move

#me grumbles something about pessants and their unholy smell

#me takes out a bottle of water then takes a quick sip before spitting the water out with a disgusted look on his face

#me briefly checks his armor and finds a small speck of dirt, with a annoyed sigh he quickly rubs the dirt of with a hankerchief made of silk


the reason for so many emotes is so that they dont do the same thing over and over and over, mmmmmmkay?
User avatar
pharse
Posts: 1787
Joined: Wed Oct 04, 2006 9:33 pm

Post by pharse »

Don't be afraid. The NPC guards won't talk that much. They'll throw you out of town or kill you. :)
User avatar
Christopher..Rigden
Posts: 103
Joined: Wed Aug 20, 2008 10:57 pm
Location: Way back home...

Post by Christopher..Rigden »

here:

#me takes over your town by force

#me kills you

#me (( you're doing it all wrong you can't oppose us))
User avatar
Mesha
Posts: 1238
Joined: Sat Nov 08, 2008 11:49 am
Location: Chris Colfer's underpants
Contact:

Post by Mesha »

Christopher..Rigden wrote:here:

#me takes over your town by force

#me kills you

#me (( you're doing it all wrong you can't oppose us))
Someone does not know how to read the English language and interpret it! Much hurt in this one, I sense.
User avatar
Kenneth Ladrus
Posts: 348
Joined: Tue Feb 13, 2007 6:50 pm
Location: Trolls' Bane
Contact:

Post by Kenneth Ladrus »

I have a proposal:
Close this before a massacre arises :roll:.
User avatar
Alli Zelos
Posts: 464
Joined: Sat Jun 03, 2006 2:52 pm

Post by Alli Zelos »

*readies gynk fires*
User avatar
CJK
Developer
Posts: 970
Joined: Sat Feb 16, 2008 4:58 pm
Location: cjk@illarion.org

Post by CJK »

rakust dorenstkzul wrote:
Mesha wrote:Good suggestion miss Bran.
ALWAYS SEEMED FLAKEY LOL

But uh, mabye there's a way to script non hostile, non attackable soldiers?, could you just put the Rabbit/Deer AI in, and trigger some boolean value? and shove the soldiers in an area that would prevent a lot of wandering that would make sense to put them in like the guard towers?
Great... the soldiers will be eating grass and being turned into rabbit dishes... :shock:

But yes, I like the two ideas. Because there would be patrolling or wandering guards such as these. And there would also be ones that hold their stations.

Good suggestion miss Bran. :P
User avatar
AlexRose
Posts: 4790
Joined: Sat Oct 22, 2005 8:18 pm
Location: Megajiggawhat?

Post by AlexRose »

NPCs can walk around.
User avatar
Alli Zelos
Posts: 464
Joined: Sat Jun 03, 2006 2:52 pm

Post by Alli Zelos »

Tell that to the mules.
User avatar
Kenneth Ladrus
Posts: 348
Joined: Tue Feb 13, 2007 6:50 pm
Location: Trolls' Bane
Contact:

Post by Kenneth Ladrus »

AlexRose wrote:NPCs can walk around.
Is there still this bug with the walking-radius of the NPCs?
User avatar
Galim
Posts: 1843
Joined: Tue Dec 24, 2002 1:01 am
Location: Sitting and drinking at Irmoroms table
Contact:

Post by Galim »

Hmmm...in my opinion such npc's would be just good when they are actually defending someone in need. Like attacking anyone who attacks someone enlisted on the citizenlist.
Why that?

Well..imagine this...someone attacks another char, and that infront of a npc guard watching the victim to be killed and quoting the same moment "Greetings citizens! don't think of any crimes, we are always watching!" or "Have a nice day, citizen", or "#me's head turns to the left and the right, looking for possible criminals" ;)

would be quite awkward from the point of roleplay ^.^. For my character that would mean that the guards of the town dont care for peoples being killed or robbed infront of them ;)

A solution to this: The static guard gets an "area" of protection like the cross. Any monster walking close a cross gets repelled, so how about any character comming with weapons in their hands too close to a guard will be repelled too? or maybe even harmed? That would offer victims the possibility to run into a guards safety area...means, running into the guards protection.

From the point of RP that would be much better...since it wouldnt cause "ingame flame posts" against the nondoing guards ;)
Post Reply