Vampire recognition Script

Post » Sun Nov 28, 2010 2:44 am

I'm creating vampire network and want to have vampire guards to defend the place against intruders, like the human guards do.
However i want it so that the vampire guards will attack on sight anything that isn't a vampire including the player, or if the player is a vampire, that they leave them alone.
Is there a way to make this work using either the factions or some scripting? Since humans recognize you as a vampire and attack, and leave you along when your not i'd like it to work the other way around too.
help and ideas would be appreciated! :D
User avatar
Rob Smith
 
Posts: 3424
Joined: Wed Oct 03, 2007 5:30 pm

Post » Sat Nov 27, 2010 7:50 pm

I'm pretty sure you could give them a faction with +100 disposition towards vampires and nothing else, then set their aggression high, so they try to kill anyone else. 5 or less only fights defensively. 20 aggression should probably do it, but that could be a bit high. You'll probably have to try it a bit.
User avatar
Emily Jeffs
 
Posts: 3335
Joined: Thu Nov 02, 2006 10:27 pm

Post » Sat Nov 27, 2010 12:49 pm

I'm pretty sure you could give them a faction with +100 disposition towards vampires and nothing else, then set their aggression high, so they try to kill anyone else. 5 or less only fights defensively. 20 aggression should probably do it, but that could be a bit high. You'll probably have to try it a bit.


thanks
I have set their disposition to vampire at 100 and when i test with a vampire character it works fine, but when i try with a non vampire character, the creatures attack the non vampire character as they should, but the NPCs don't...
The Npcs are guards but they have no script, i have also tried with ordinary characters as vampires and it doesn't always work either...As soon as i add more to their AI than just wandering i start to get issues, that's why i felt i needed a script to sort out the problem.
User avatar
quinnnn
 
Posts: 3503
Joined: Sat Mar 03, 2007 1:11 pm

Post » Sun Nov 28, 2010 4:00 am

Right i've managed to make the vampire NPC hate the player if it's not a vampire by using the "PlayerFaction" and like the player if it is a vampire using the "PlayerVampireFaction" But it still have the issue where the custom NPC still don't attack a non vampire player on sight..
(I could add them to the creature faction but i want to avoid doing that, because you can yield a creature and i want it to be possible for my vampires)

I also have a silly but irritating issue where the vampires are scared of the PC when as a fully fledged vampire. Irritating because it defeats the whole purpose of the mod...
User avatar
Dan Stevens
 
Posts: 3429
Joined: Thu Jun 14, 2007 5:00 pm


Return to IV - Oblivion