Difference between revisions of "OnStoryCrimeGold - Quest"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Zartar
m
imported>Threedee
(→‎Notes: disambiguation)
 
Line 35: Line 35:


== Notes ==
== 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 this event firing (as the quest has not started yet).
*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).


== See Also ==
== See Also ==
*[[Quest Script]]
*[[Quest Script]]

Latest revision as of 19:09, 4 November 2012

Member of: Quest Script

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

Syntax[edit | edit source]

Event OnStoryCrimeGold(ObjectReference akVictim, ObjectReference akCriminal, Form akFaction, int aiGoldAmount, int aiCrime)

Parameters[edit | edit source]

  • akVictim: The ObjectReference that was victimized.
  • akCriminal: The ObjectReference that committed the crime.
  • akFaction: The Faction that the crime was recorded with.
  • aiGoldAmount: The amount of crime gold that was logged.
  • aiCrime: 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[edit | edit source]

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

Notes[edit | edit source]

  • 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).

See Also[edit | edit source]