Background for Skyrim SE
Member of the Quest script
eventOnStoryCrimeGold(ObjectReferenceakVictim, ObjectReferenceakCriminal, FormakFaction, intaiGoldAmount, intaiCrime)

Description

Wiki Description

Event called when this quest is started via a crime gold story manager event.


Caveats

CK Wiki - Notes

  • The On Crime Gold event starts any attached quests about 20 seconds after the offense is committed. This will cause a ~20 second delay in the OnStoryCrimeGold event firing (as the quest has not started yet).

Parameters

ObjectReferenceakVictim

CK Wiki Description

The ObjectReference that was victimized.

ObjectReferenceakCriminal

CK Wiki Description

The ObjectReference that committed the crime.

FormakFaction

CK Wiki Description

The Faction that the crime was recorded with.

intaiGoldAmount

CK Wiki Description

The amount of crime gold that was logged.

intaiCrime

CK Wiki Description

The type of crime that the event is for. Will be one of the following:* -1:None

  • 0:Steal
  • 1:Pick-pocket
  • 2:Trespass
  • 3:Attack
  • 4:Murder

Examples

Event OnStoryCrimeGold(ObjectReference akVictim, ObjectReference akCriminal, Form akFaction, int aiGoldAmount, int aiCrime)
  if aiCrime == 1 ; Pick-pocketing
    Debug.Trace(akCriminal + " got " + aiGoldAmount + " crime gold for pickpocketing " + akVictim)
  endIf
endEvent

Auto-Generated Example

Scriptname MyCoolScript extends Quest

event OnStoryCrimeGold(ObjectReference akVictim, ObjectReference akCriminal, Form akFaction, int aiGoldAmount, int aiCrime)
    Debug.trace("Event received - OnStoryCrimeGold: akVictim = " + akVictim + " akCriminal = " + akCriminal + " akFaction = " + akFaction + " aiGoldAmount = " + aiGoldAmount + " aiCrime = " + aiCrime)
endEvent

Related Pages


Additional References

View this event’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.