darkneon Posted February 29, 2012 Share Posted February 29, 2012 Simple: Is there any way to stop combat? I tried using a slave collar with the following script:ScriptName aaCombatBlock Begin onStartCombat StopCombat End along with a Damage perception Enchantment, but without any proper results. other then this i have no clue on how to stop their bloodlust. Link to comment Share on other sites More sharing options...
rickerhk Posted March 1, 2012 Share Posted March 1, 2012 The key problem with your script is that since the script is on the collar, the function 'StopCombat' in your script is being applied to the collar - not the actor wearing it. So you need some code to get the reference of the actor to perform your commands on. This may be overkill, but give this script a try. Make a copy of the slave collar and put the script on it: ScriptName aaCombatBlock short iEquipped ref rActorREF short iPrevAggression short iPrevConfidence BEGIN GameMode if (rActorREF) if (rActorREF.GetEquipped PacificationCollar == 1) set iEquipped to 1 else set iEquipped to 0 endif else set iEquipped to 0 endif if (iEquipped == 1) if (iStatSet == 0) if (rActorREF) set iPrevAggression to rActorREF.GetAV Aggression set iPrevConfidence to rActorREF.GetAV Confidence rActorREF.SetAV Aggression 0 rActorREF.SetAV Confidence 0 set iStatSet to 1 endif endif if (rActorREF.IsInCombat) rActorREF.StopCombat rActorREF.StopCombatAlarmOnActor endif else if (iStatSet == 1) if (rActorREF) rActorREF.SetAV Aggression iPrevAggression rActorREF.SetAV Confidence iPrevConfidence rActorREF.ResetAI set iStatSet to 0 endif else set rActorREF to GetContainer endif endif END Link to comment Share on other sites More sharing options...
darkneon Posted March 1, 2012 Author Share Posted March 1, 2012 The key problem with your script is that since the script is on the collar, the function 'StopCombat' in your script is being applied to the collar - not the actor wearing it. So you need some code to get the reference of the actor to perform your commands on. This may be overkill, but give this script a try. Make a copy of the slave collar and put the script on it: you forgot to define iStatSet...other then that, it's working fine ;) Link to comment Share on other sites More sharing options...
Recommended Posts