Draugr won't be my friend :(

Post » Mon Nov 19, 2012 3:43 am

I have a perk that applies a combat hit spell (under some weird conditions) that there is a 4% chance of any dwarven automaton becoming a teammate. The script has gone through a few versions, but here is what I have now.

Scriptname PCKP_Script_SetDwarvenTeammateTemper extends activemagiceffectActor Property PlayerREF autoQuest Property TemperFollower autoEvent oneffectstart(Actor T, Actor C);PlayerREF.KillSilent(); T.SetPlayerTeammate()(TemperFollower as DialogueFollowerScript).SetAnimal(T)endEvent

I used the KillSilent line to verify that the event was firing, and it certainly is. Neither of the other two lines seem to work though, he simply won't be my little draugr buddy. (The draugr is an edited enemy I made, and to whom I have added the ActorTypeDwarven keyword. He does some other fun stuff, like this

event OnDeath(Actor akKiller)	self.PlaceActorAtMe(self.GetActorBase())endEvent

which makes for convenient test dummies.)

EDIT: Adding the following:

if T.IsPlayerTeammate()   PlayerREF.KillSilent()endIf

kills me. So...the function is sort of working, but he's just not acting very nice.
User avatar
Devils Cheek
 
Posts: 3561
Joined: Sun Aug 13, 2006 10:24 pm

Post » Sun Nov 18, 2012 3:50 pm

Apparently I needed the function StopCombatAlarm()
User avatar
Joe Alvarado
 
Posts: 3467
Joined: Sat Nov 24, 2007 11:13 pm


Return to V - Skyrim