nicked on 11/1/2011 at 07:08
OK, I want to have a setup similar to Undercover. You're just an average joe on the street, so the guards are quite happy to ignore you, unless they catch you breaking the law. I've been experimenting and nothing seems to quite work. I'd like to get a foolproof system in place before I start adding hundreds of AIWatchObj links about the place too. Here's about how far I've got:
Guard archetype:
* Metaproperty: M-Front Gate Guard
* AI > Responses > Alert Response - High, Absolute, Frob Object, SneakFail
(where SneakFail is a button that triggers the objective to fail)
* AI > Responses > Sense Combat Response - Add/Remove Metaproperty, Remove, M-Front Gate Guard; Frob Object, SneakFail
* AI > Responses > Threat Response - Raised Weapon, Add/Remove Metaproperty, Remove, M-Front Gate Guard; Frob Object, SneakFail
* Act/React receptrons - for all damage types - Frob Object, SneakFail
Individual guards - AIWatchObj linked to markers behind doorways in forbidden locations:
Player Intrusion, 4x8 radius, Raycast, Add/Remove Metaproperty, Remove, M-Front Gate Guard; Frob Object, SneakFail.
This mostly works. The sticky point seems to be Alert Response. This gets triggered whenever the guards see me, and seems to completely bypass M-Front Gate Guard. Or, if I remove the Alert Response, the guards don't care even if I start smacking them with my sword. :(
I want to get the setup right before I link 23 guards to 23 Off limits markers (and since that's 529 AIWatchObj links - is there a better way?)
Ottoj55 on 11/1/2011 at 12:23
depends on the action that causes an alert. in a debt repaid i used a simple stim on the street, since doors block stims guards will ignore a closed sewer hatch, but investigate an open one. i reused this in the way of the sword as well. you're disguised if you take a servants clothes, leaving doors open to secured rooms makes the guards investigate the room since you shouldn't be there.
nicked on 12/1/2011 at 07:13
PrivateRoom might just do the trick for the Off limits areas although I'll still need to do something about being able to stab the guards with no failure...
I'll take a look at A Debt Repaid, thanks Otto!
Nameless Voice on 13/1/2011 at 02:46
Take a look at Threat Response.
nicked on 13/1/2011 at 08:59
Quote Posted by Nameless Voice
Take a look at Threat Response.
* AI > Responses > Threat Response - Raised Weapon, Add/Remove Metaproperty, Remove, M-Front Gate Guard; Frob Object, SneakFail
What's up with it?
Nameless Voice on 13/1/2011 at 15:08
Ah, I missed that in your first post.
Odd, it isn't working.
And your guards aren't forbidden from entering high alert, you need M-AlertCapZero for that, so yes, they'll still go on high alert when they see you, they just won't attack.
Ottoj55 on 13/1/2011 at 15:14
i had to modify threat response in the way of the sword to make the system work as well, and there was a massive linking issue with the alarm system in the monastery, the disguise system, really complicated. you can use a qvar watching for something like the damage dealt variable, and set a threshold, if the player goes over it then the qvar triggers a mission failure.
nicked on 14/1/2011 at 06:49
Quote Posted by Nameless Voice
you need M-AlertCapZero for that
Aha, I'll drop that into the mix and see what colour it turns... ;)
Quote Posted by Ottoj55
i had to modify threat response in the way of the sword to make the system work as well, and there was a massive linking issue with the alarm system in the monastery, the disguise system, really complicated. you can use a qvar watching for something like the damage dealt variable, and set a threshold, if the player goes over it then the qvar triggers a mission failure.
I remember spending a little time digging through Way of the Sword trying to see how you'd done it all and giving up because everything was interconnected so complicatedly! I reckon I may be able to directly copy the system from A Debt Repaid though - that seems to work great for what I need.
Nameless Voice on 14/1/2011 at 15:48
You could also check out Undercover, if you haven't already.
They used M-AlertCapZero there instead of M-FrontGateGuard.