Class Item
A quest item is something used or granted during quest execution.
Can contain tags, for example to show a message when used.
Assembly: Assembly-CSharp.dll
Syntax
public class Item : QuestResource, IDisposable
Constructors
|
Improve this Doc
View Source
Item(Quest)
Declaration
public Item(Quest parentQuest)
Parameters
Type |
Name |
Description |
Quest |
parentQuest |
Parent quest.
|
|
Improve this Doc
View Source
Item(Quest, String)
Construct an Item from QBN input.
Declaration
public Item(Quest parentQuest, string line)
Parameters
Type |
Name |
Description |
Quest |
parentQuest |
Parent quest.
|
String |
line |
Item definition line from QBN.
|
Properties
|
Improve this Doc
View Source
ActionWatching
Gets or sets value when an action is watching this item for some reason.
Usually waiting for a response to clicks.
This means quest system should have priority to "use" handling on this item.
Declaration
public bool ActionWatching { get; set; }
Property Value
|
Improve this Doc
View Source
AllowDrop
This flag determines if quest item can be removed from main item collection.
Declaration
public bool AllowDrop { get; set; }
Property Value
|
Improve this Doc
View Source
DaggerfallUnityItem
Gets resultant DaggerfallUnityItem object.
Declaration
public DaggerfallUnityItem DaggerfallUnityItem { get; }
Property Value
|
Improve this Doc
View Source
PlayerDropped
Gets or sets flag stating if this item was dropped from inventory.
Declaration
public bool PlayerDropped { get; set; }
Property Value
|
Improve this Doc
View Source
UseClicked
Gets or sets flag when player clicks "Use" on item in inventory.
This is unrelated to using text-only objects like letters.
Example is Sx017 "Wayrest Painting" when player uses painting to trigger a quest task.
This flag is only raised once for any quest actions that consume it.
Declaration
public bool UseClicked { get; set; }
Property Value
Methods
|
Improve this Doc
View Source
Dispose()
Declaration
public override void Dispose()
Overrides
|
Improve this Doc
View Source
ExpandMacro(MacroTypes, out String)
Declaration
public override bool ExpandMacro(MacroTypes macro, out string textOut)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetSaveData()
Declaration
public override object GetSaveData()
Returns
Overrides
|
Improve this Doc
View Source
RestoreSaveData(Object)
Declaration
public override void RestoreSaveData(object dataIn)
Parameters
Type |
Name |
Description |
Object |
dataIn |
|
Overrides
|
Improve this Doc
View Source
SetResource(String)
Declaration
public override void SetResource(string line)
Parameters
Type |
Name |
Description |
String |
line |
|
Overrides