Soldier NPCs
Moderator: Gamemasters
Soldier NPCs
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. )
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.
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.
- rakust dorenstkzul
- Posts: 2300
- Joined: Fri Mar 21, 2008 2:47 pm
- Location: In the heart of every smiling child
ALWAYS SEEMED FLAKEY LOLMesha wrote:Good suggestion miss Bran.
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?
-
- Posts: 151
- Joined: Wed Sep 23, 2009 12:32 am
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.
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.
- Tanistian_Kanea
- Posts: 646
- Joined: Mon Aug 14, 2006 2:22 am
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.
@ 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.
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.
-
- Posts: 3482
- Joined: Thu Jun 26, 2003 5:46 pm
Re: Soldier NPCs
There you go:Lucy Bann wrote:I propsed that soldier NPCs be made static, just scattered about town and occasionally uttering phrases at passerby.
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."
Re: Soldier NPCs
Cycling actions is fine but please don't cycle speech.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."
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.
- Kenneth Ladrus
- Posts: 348
- Joined: Tue Feb 13, 2007 6:50 pm
- Location: Trolls' Bane
- Contact:
Re: Soldier NPCs
Remember it. Hated it.AlexRose wrote:Cycling actions is fine but please don't cycle speech.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."
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.
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!
-
- Posts: 3482
- Joined: Thu Jun 26, 2003 5:46 pm
Re: Soldier NPCs
AlexRose wrote:repeating the same few phrases over and over.
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.Kenneth Ladrus wrote:please put in many phrases
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".
-
- Posts: 3482
- Joined: Thu Jun 26, 2003 5:46 pm
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.
-
- Posts: 3482
- Joined: Thu Jun 26, 2003 5:46 pm
- Olaf Tingvatn
- Posts: 935
- Joined: Wed Sep 10, 2008 12:23 am
- Location: Norway, Lyngdal, Scandinavia
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?
#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?
- Christopher..Rigden
- Posts: 103
- Joined: Wed Aug 20, 2008 10:57 pm
- Location: Way back home...
- Kenneth Ladrus
- Posts: 348
- Joined: Tue Feb 13, 2007 6:50 pm
- Location: Trolls' Bane
- Contact:
- CJK
- Developer
- Posts: 970
- Joined: Sat Feb 16, 2008 4:58 pm
- Location: cjk@illarion.org
Great... the soldiers will be eating grass and being turned into rabbit dishes...rakust dorenstkzul wrote:ALWAYS SEEMED FLAKEY LOLMesha wrote:Good suggestion miss Bran.
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?
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.
- Kenneth Ladrus
- Posts: 348
- Joined: Tue Feb 13, 2007 6:50 pm
- Location: Trolls' Bane
- Contact:
- Galim
- Posts: 1843
- Joined: Tue Dec 24, 2002 1:01 am
- Location: Sitting and drinking at Irmoroms table
- Contact:
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
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