Technical question: Cover and Concealment.
Moderator: Top Team
-
- Knight: Church of Pants
- Posts: 905
- Joined: Fri Mar 03, 2006 8:08 pm
- Location: Richmond, VA USA
Technical question: Cover and Concealment.
Has anyone given any thought as to how you would implement modifiers for cover and concealment into the NWN engine? I know the concealment modifiers exist because many spell effects (Improved invis, ghost form) take advantage of them.
If you have one group of combatants standing atop a fortified wall, and another group standing out in the open, trading arrow volleys, the group on the wall should have an advantage. As far as I can tell, the normal NWN engine does not take this into account. Any ideas on how to apply those concealment modifiers to people fighting from prepared positions?
All the recent talk about improving defenses around Mirtho got me thinking about this, so I thought I'd throw it out there as a little mental exercise.
Have fun.
If you have one group of combatants standing atop a fortified wall, and another group standing out in the open, trading arrow volleys, the group on the wall should have an advantage. As far as I can tell, the normal NWN engine does not take this into account. Any ideas on how to apply those concealment modifiers to people fighting from prepared positions?
All the recent talk about improving defenses around Mirtho got me thinking about this, so I thought I'd throw it out there as a little mental exercise.
Have fun.
It takes a [b]Viking[/b] to Raze a Village.
In the example above the archers behind the wall have cover
It would be painfull to take this into account in NWN. The quickest way I can think of doing it is place an effect on the wall giving everyone standing there an ac bonus

Grovel puts the P in swimming pool.
Small in stature, large in power, narrow of focus and wide of vision
My play/DM times: [url]http://www.ysgard.org/viewtopic.php?highlight=play&t=7671[/url]
Small in stature, large in power, narrow of focus and wide of vision
My play/DM times: [url]http://www.ysgard.org/viewtopic.php?highlight=play&t=7671[/url]
-
- Honor Guard: Holy Church of Big Mouths
- Posts: 307
- Joined: Sun Nov 21, 2004 4:35 pm
- Location: Colorado
- Contact:
Yeah, either that or provide anyone "behind" the wall a certain percentage of concealment. Of course then you have to determine what "behind" the wall actually is.Zombie wrote:In the example above the archers behind the wall have coverIt would be painfull to take this into account in NWN. The quickest way I can think of doing it is place an effect on the wall giving everyone standing there an ac bonus
I'm guessing this would be a fair amount of scripting work. Gregpooh, you are ALL over it!

http://www.nwnlexicon.com/
"All tryin' to do as we should, but that doesn't always rhyme with doin' what feels good"
[quote="micah ormane"]I'm dedicated? I just take your spells away then abandon you!
Muah ha ha! RP that, bitch![/quote]
[quote="micah ormane"]I'm dedicated? I just take your spells away then abandon you!
Muah ha ha! RP that, bitch![/quote]
-
- Honor Guard: Holy Church of Big Mouths
- Posts: 383
- Joined: Tue Jul 12, 2005 5:37 am
My guess is Cover bonus's and Minus's would be rather diffacult to do in NWN. Morgan's idea would work with walls, or a DM could supply the bonus's and Minus's, since if your attacking a wal in a seige type situation there would probably be one involved. There are many things in the 3rd edition combat system that NWN just cant do, which is understandable since it is so diverse. Though not as technical as 2nd ed THACO system, it seems to cover a lot more possibilities. For example, cover varies 3/4, 9/10, 1/2, and 1/4 cover, all giveing different bonus's and minus's to both ends of the battle. It even gives cover bonus's for fireing into melee combat.
"Professional assasination is the highest form of public service" - Chiun, Master of Sinanju
-
- Knight of the Holy Church of Annoyance
- Posts: 107
- Joined: Thu May 11, 2006 5:34 pm
-
- Whelp of the Unholy Church of Newbieism
- Posts: 15
- Joined: Wed Jun 07, 2006 6:04 am
-
- Honor Guard: Holy Church of Big Mouths
- Posts: 383
- Joined: Tue Jul 12, 2005 5:37 am
-
- Knight of the Holy Church of Annoyance
- Posts: 107
- Joined: Thu May 11, 2006 5:34 pm
-
- Honor Guard: Church of Pants
- Posts: 1328
- Joined: Thu Dec 02, 2004 2:58 pm
Re: Technical question: Cover and Concealment.
Yeah, have fun indeed. Go see what you can come up with with adding stuff to a 95% hard coded combat system..?Gregpooh wrote:Has anyone given any thought as to how you would implement modifiers for cover and concealment into the NWN engine? I know the concealment modifiers exist because many spell effects (Improved invis, ghost form) take advantage of them.
If you have one group of combatants standing atop a fortified wall, and another group standing out in the open, trading arrow volleys, the group on the wall should have an advantage. As far as I can tell, the normal NWN engine does not take this into account. Any ideas on how to apply those concealment modifiers to people fighting from prepared positions?
All the recent talk about improving defenses around Mirtho got me thinking about this, so I thought I'd throw it out there as a little mental exercise.
Have fun.

-
- Head DM
- Posts: 3891
- Joined: Wed Jul 07, 2004 1:33 pm
The first thing that comes to mind is to lay down a trigger behind the wall with a script that gives anyone within it an AC bonus. Although my experience with scripts on triggers is that they are buggy, unreliable and can possibly cause a lot of lag.
Of course if you are serious about this, and you really want Mirtho well defended then you need to start thinking about exactly what you want and how its going to be paid for.
I dont want to burst your bubble because IC'ly anything (within reason) is possible if you put in the effort and make friends with the right NPCs. But...you know that neat little well defended Fortress owned by the CO? Yeah. I think our total on that one so far has been something between 3 and 4 mil

Of course if you are serious about this, and you really want Mirtho well defended then you need to start thinking about exactly what you want and how its going to be paid for.
I dont want to burst your bubble because IC'ly anything (within reason) is possible if you put in the effort and make friends with the right NPCs. But...you know that neat little well defended Fortress owned by the CO? Yeah. I think our total on that one so far has been something between 3 and 4 mil


Characters:
[url=http://wiki.ysgard.org/index.php?title=Sarakin_Fyne]Sarakin Fyne[/url]
www.anotherworlddesign.etsy.com
[url=http://wiki.ysgard.org/index.php?title=Sarakin_Fyne]Sarakin Fyne[/url]
www.anotherworlddesign.etsy.com
-
- Whelp of the Unholy Church of Newbieism
- Posts: 15
- Joined: Wed Jun 07, 2006 6:04 am
How would this be considered an AC bonus? It would have to be concealment % which could be given by touching a door to say go up on the archers post of a surounding wall/tower,and leaving that post click on the door that takes you down also removing the effect.Could use entropic shield/displacement/ghost spells as an effect say if there were high posts or lower to the ground ones. So maybe higher you go more concealment.As anyone knows thats been on a high post you have no sight of the enemy till they are right up to the wall.
And who you callin a NOOB D'art!
And who you callin a NOOB D'art!

Beware of the false prophets.
http://video.msn.com/v/us/v.htm?g=9e45d30e-e31d-4a98-92da-5144e6df1438&f=42/64&fg=copy
http://video.msn.com/v/us/v.htm?g=9e45d30e-e31d-4a98-92da-5144e6df1438&f=42/64&fg=copy
-
- Knight: Church of Pants
- Posts: 973
- Joined: Mon Dec 27, 2004 5:11 am
- Location: Whats the use of have names if you lose all your friends. That's where I'm from.
This is unnecessary and not in the plans for the world.
There already exists this type of thing. It's called line of sight. If your character doesn't have line of sight, then you can't attack them with a direct spell or a ranged weapon.
So if you want to take advantage of cover, get behind it. If there is a wall between you and your opponent, they can't even shoot at you. Only AoEs work in those instances.
There already exists this type of thing. It's called line of sight. If your character doesn't have line of sight, then you can't attack them with a direct spell or a ranged weapon.
So if you want to take advantage of cover, get behind it. If there is a wall between you and your opponent, they can't even shoot at you. Only AoEs work in those instances.
Respect is Earned! Fear is Demanded!
-
- Knight: Church of Pants
- Posts: 905
- Joined: Fri Mar 03, 2006 8:08 pm
- Location: Richmond, VA USA
There's a big difference between not being able to see someone at all, and wanting to get into an adventageous position to fire at them while giving them less of a chance to hit you. Troops firing from prepared positions of cover have a huge advantage over thier opponents who do not. This is true in just about any era of warfare. Ask the French Knights at the battle of Asincourt, the British Soldiers at the Battle of New Orleans, or any soldier in WWI who had to leave his trench to charge across no man's land. But, you're a Marine, you know this already.Arkon wrote:This is unnecessary and not in the plans for the world.
There already exists this type of thing. It's called line of sight. If your character doesn't have line of sight, then you can't attack them with a direct spell or a ranged weapon.
So if you want to take advantage of cover, get behind it. If there is a wall between you and your opponent, they can't even shoot at you. Only AoEs work in those instances.
I didn't start this post with the idea of it being something that needed to go into Hala. The talk about fortifying places simply got me thinking about the Idea, and I wondered if anyone else out there had thought about it or had any ideas of how they might try to make the NWN engine do something like this. We're talking a purely hypothetical situation here, with no relation to the Hala PW.
It takes a [b]Viking[/b] to Raze a Village.
-
- Honor Guard: Holy Church of Big Mouths
- Posts: 383
- Joined: Tue Jul 12, 2005 5:37 am
Hypothetically speaking, yes, it can be done, and it can be done fairly easily with a simple generic trigger and a script that gives a person standing on the area of the trigger a concealment bonus.
So yes, it's possible, but it would be horrendously time consuming to add those in to all the places it would be feasabile for it to be.
So yes, it's possible, but it would be horrendously time consuming to add those in to all the places it would be feasabile for it to be.

Respect is Earned! Fear is Demanded!
I wonder though, someone with very high stealth ratings, manages to get his way to the tower walls, and sneaks up behind the guard, The effect would still be in place.... Oy the variables would kill ya!
[i]I live yet do not live in me,
am waiting as my life goes by,
and die because I do not die.
- St John of the Cross.[/i]
[url=http://wiki.ysgard.org/index.php?title=User:Xanthalas][size=75]WIKI INFO[/size][/url]
am waiting as my life goes by,
and die because I do not die.
- St John of the Cross.[/i]
[url=http://wiki.ysgard.org/index.php?title=User:Xanthalas][size=75]WIKI INFO[/size][/url]
-
- Knight: Church of Pants
- Posts: 905
- Joined: Fri Mar 03, 2006 8:08 pm
- Location: Richmond, VA USA
Yeah, that was my biggest concern with the idea of using a trigger or an aura effect or the like.Xanthalas wrote:I wonder though, someone with very high stealth ratings, manages to get his way to the tower walls, and sneaks up behind the guard, The effect would still be in place.... Oy the variables would kill ya!
Still, they figured out how to do flanking. I wonder if cover was one of those features on the list, but they just ran out of time? Maybe we'll find out in NWN2

It takes a [b]Viking[/b] to Raze a Village.
-
- Honor Guard: Church of Pants
- Posts: 1328
- Joined: Thu Dec 02, 2004 2:58 pm
-
- Knight: Church of Pants
- Posts: 905
- Joined: Fri Mar 03, 2006 8:08 pm
- Location: Richmond, VA USA
If you built the cover stats into certain objects when you created the game it could be done very similarly to what you describe above. Function to check if target is next to cover object, function to check if target and attacker are 'flanking' (ie on opposite sides of) cover object. Apply cover mod.NWDuneAuron wrote:Flanking is very easy to do. You have a function to check if you're the victim's current target before you attack. If no, you get flanking bonuses.
Cover is a lot harder, and a lot more subjective. I doubt it's in nwn2.
It takes a [b]Viking[/b] to Raze a Village.