Backstabbing script
EggHuevo
Member Posts: 68
Hi! I'm playing a Shadowdancer and I was wondering if there's a script somewhere that let's him hide in shadows and then backstab and enemy, then do it again, and again, and again, without me having to micromanage him. While looking for this, I realized there isn't even a script for regular backstabbing (Thief aggressive just makes the thief attack, not backstab). Is there any such script? I found a command for backstabbing in order to create my own script, but it seems to be broken (as told by many people on the internet). Thanks in advance!
0
Comments
Party members need to target the enemy's back in order to backstab and I don't think it's possible to detect accurately by script. Enemies go around this by dropping the facing requirement entirely - they effectively facestab you. There is a mod to remove the facing condition for party members too, which could mimic this in theory but it needs TobEx and therefore doesn't work for the EE.
That being said, the thief class is one that really needs micromanagement to be useful, even if you could auto-backstab anything. Even a Shadowdancer isn't permanently hidden, and emerging from the shadows at the wrong moment could have dire consequences.
@EggHuevo
I modified the "thief aggressive" script for testing purposes. Download the attachment, paste the KRN#ASN.SPL and KRN#ASR.SPL files in your BG override folder and the thief1.BS file in your script folder (make a backup of the original just in case).
It should give a hidden assassination effect to any thief with this AI every time they're invisible and remove it when they're visible. There are a few problems though:
1. If the player takes control of the thief to attack, they'll also be able to facestab.
2. If you disable party AI there's a possibility the effect stay forever (until you enable the AI again).
I don't know what I can do about it though
So test it further and tell me what you think. Also if someone more knowledgeable than me could take a look this would be cool.
Still, it's a great improvement. I'm probably asking for too much, lol. I wish I had your talents, man, thanks for your help so far
Well, no matter. I tried to make the script more precise and yet again it does work when I try it so idk. Try this version and tell me. Hah I know almost nothing about IE scripting. I did some stuff 5 years ago or so and this wasn't even about AI. It's just generic programming knowledge and my browser tabs open on the IESDP.
Edit: one last question. Does this work for BG2?
If you don't get one of those special badges for being a helpful guy for doing this there is no justice in the Realms.
Cheers!