Show / Hide Table of Contents

Class ActionTemplate

Base class template for all quest actions and conditions used by tasks. Handles some of the boilerplate of IQuestAction. This class can be used to test and factory new action interfaces from itself. Actions belong to a task and perform a specific function when task is active and conditions are met. An action will persist until task terminates. Think of actions as objects with a lifetime rather than a simple unit of one-shot execution. For example, the "vengeance" sound played in nighttime Daggerfall is an action that persists until Lysandus is put to rest. Currently still unclear on when actions get reset (e.g. when does "play sound 10 times" counter get reset?).

Inheritance
Object
QuestResource
ActionTemplate
AddFace
ClearTask
Climate
CreateNpc
CreateNpcAt
CurePcDisease
DropFace
DroppedItemAtPlace
EndQuest
GetItem
GiveItem
GivePc
HideNpc
InjuredFoe
JournalNote
JuggleAction
KilledFoe
KillFoe
LogMessage
MakePcDiseased
PayMoney
PcAt
PickOneOf
PlaceFoe
PlaceItem
PlaceNpc
PlaySound
PlayVideo
Prompt
PromptMulti
RemoveFoe
RemoveLogMessage
RestoreNpc
RestrainFoe
Say
StartStopTimer
StartTask
TakeItem
TotingItemAndClickedNpc
UnsetTask
Weather
WhenPcEntersExits
AddAsQuestor
AddDialog
CastEffectDo
CastSpellDo
CastSpellOnFoe
ChangeFoeInfighting
ChangeFoeTeam
ChangeReputeWith
ClickedFoe
ClickedItem
ClickedNpc
CreateFoe
DailyFrom
DestroyNpc
DialogLink
DropAsQuestor
Enemies
HaveItem
ItemUsedDo
LegalRepute
LevelCompleted
MakePermanent
MuteNpc
PlaySong
ReputeExceedsDo
RevealLocation
RumorMill
RunQuest
Season
SetPlayerCrime
SpawnCityGuards
StartQuest
TeleportPc
UnrestrainFoe
WhenAttributeLevel
WhenNpcIsAvailable
WhenReputeWith
WhenSkillLevel
WhenTask
WorldUpdate
Implements
IQuestAction
Inherited Members
QuestResource.BLANK
QuestResource.Symbol
QuestResource.ParentQuest
QuestResource.InfoMessageID
QuestResource.UsedMessageID
QuestResource.RumorsMessageID
QuestResource.HasPlayerClicked
QuestResource.IsHidden
QuestResource.Gender
QuestResource.QuestResourceBehaviour
QuestResource.SetResource(String)
QuestResource.ExpandMacro(MacroTypes, String)
QuestResource.Tick(Quest)
QuestResource.PostTick(Quest)
QuestResource.ParseMessageTags(String)
QuestResource.SetPlayerClicked()
QuestResource.RearmPlayerClick()
QuestResource.GetMessage(Int32)
QuestResource.GetResourceSaveData()
QuestResource.RestoreResourceSaveData(QuestResource.ResourceSaveData_v1)
QuestResource.GetSaveData()
QuestResource.RestoreSaveData(Object)
Namespace: DaggerfallWorkshop.Game.Questing
Assembly: Assembly-CSharp.dll
Syntax
public abstract class ActionTemplate : QuestResource, IDisposable, IQuestAction

Constructors

| Improve this Doc View Source

ActionTemplate(Quest)

Declaration
public ActionTemplate(Quest parentQuest)
Parameters
Type Name Description
Quest parentQuest

Fields

| Improve this Doc View Source

allowRearm

Declaration
protected bool allowRearm
Field Value
Type Description
Boolean

Properties

| Improve this Doc View Source

DebugSource

Declaration
public string DebugSource { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

IsAlwaysOnTriggerCondition

Declaration
public bool IsAlwaysOnTriggerCondition { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsComplete

Declaration
public bool IsComplete { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

IsTriggerCondition

Declaration
public bool IsTriggerCondition { get; set; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Pattern

Declaration
public abstract string Pattern { get; }
Property Value
Type Description
String

Methods

| Improve this Doc View Source

CheckTrigger(Task)

Declaration
public virtual bool CheckTrigger(Task caller)
Parameters
Type Name Description
Task caller
Returns
Type Description
Boolean
| Improve this Doc View Source

CreateNew(String, Quest)

Declaration
public virtual IQuestAction CreateNew(string source, Quest parentQuest)
Parameters
Type Name Description
String source
Quest parentQuest
Returns
Type Description
IQuestAction
| Improve this Doc View Source

Dispose()

Declaration
public override void Dispose()
Overrides
QuestResource.Dispose()
| Improve this Doc View Source

GetActionSaveData()

Get full action save data including action specific data.

Declaration
public ActionTemplate.ActionSaveData_v1 GetActionSaveData()
Returns
Type Description
ActionTemplate.ActionSaveData_v1
| Improve this Doc View Source

InitialiseOnSet()

Declaration
public virtual void InitialiseOnSet()
| Improve this Doc View Source

RearmAction()

Declaration
public virtual void RearmAction()
| Improve this Doc View Source

RestoreActionSaveData(ActionTemplate.ActionSaveData_v1)

Restore full action save data including action specific data.

Declaration
public void RestoreActionSaveData(ActionTemplate.ActionSaveData_v1 data)
Parameters
Type Name Description
ActionTemplate.ActionSaveData_v1 data
| Improve this Doc View Source

SetComplete()

Declaration
public virtual void SetComplete()
| Improve this Doc View Source

Test(String)

Declaration
public virtual Match Test(string source)
Parameters
Type Name Description
String source
Returns
Type Description
Match
| Improve this Doc View Source

Update(Task)

Declaration
public virtual void Update(Task caller)
Parameters
Type Name Description
Task caller

Implements

IQuestAction
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX