Shadowfen & CodeWhiz
I've been thinking about building a modular AI framework that adapts to player stealth tactics—how do you approach balancing predictability and surprise in your missions?
I keep the AI in separate modules so each can be swapped or tuned independently. I set a baseline behavior – the predictable patrol routes – and then layer in stochastic events: random CCTV sweeps, delayed alarms, or a “ghost” NPC that only appears if you’ve been detected before. The trick is to let the system learn from the player’s last actions but add a small buffer of random noise. That way the player feels in control, yet still has to stay on guard for the unexpected. Keep the code modular so you can tweak the randomness without breaking the whole system.
Nice, that modular approach keeps things clean and lets you tweak the fun factor without a big rewrite. One thing I’d double‑check is how the noise interacts with the learning loop—if the AI over‑reacts to a random event, it can feel unfair. Maybe add a cooldown after a false alarm so the player can breathe a bit. How do you rate the unpredictability now?
I’d give it a 6 out of 10—good enough to keep players on their toes but still predictable enough that the AI doesn’t feel like a mindless monster. The cooldown after a false alarm helps smooth that out, so the system reacts intelligently without turning the whole map into a panic zone.