Advertisement
Guest User

FTYMiscAssaultStatsFixQuestScript.psc

a guest
Sep 5th, 2024
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Event OnStoryAssaultActor(ObjectReference akVictim, ObjectReference akAttacker, Location akLocation, Int aiCrime)
  2.  
  3. Faction VictimCrimeFaction = (akVictim as Actor).GetCrimeFaction()
  4.  
  5. Utility.Wait(1.0)
  6.  
  7. If (VictimCrimeFaction == None) && (Game.QueryStat("Assaults") > 0)
  8.  
  9. Game.IncrementStat("Assaults", -1)
  10. Debug.Trace("Assault victim had no crime faction, stat decreased by 1")
  11.  
  12. else
  13.  
  14. Debug.Trace("Assault victim had crime faction, count in stats as intended")
  15.  
  16. endif
  17.  
  18. Stop()
  19.  
  20. EndEvent
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement