All right. I'm tearing my hair out on this one. For days, I've been trying to get a character to stop attacking you and talk to you after a certain point, but nothing I do seems to work.
Basically, you get imprisoned, and you can talk to your guard, who'll let you out if you beat him in hand-to-hand combat. So, I devised this script :
short DoOnce
Begin GameMode
if ( DoOnce == 1 )
return
elseif ( DoOnce == 0 )
if ( JonasRef.GetCurrentHealth <= 20 )
JonasRef.StopCombat Player
JonasRef.SetActorValue Aggression 0
JonasRef.ModDisposition player 100
JonasRef.StartConversation Player, Greeting
set DoOnce to 1
endIf
endif
End
Yes, I tried it with GetAV Health, I tried putting an OnKnockout block (he's essential), etc. Should I put a Yield command ? I doubt it'll work. I'm really lost here, so any help will be appreciated.
Oh, and there's a second problem : everytime he falls unconscious, he wakes up, attacks me, and there's now a bounty. Is it because he's a guard ?
I'm stumped