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
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
endEventAuto-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