DefaultCounter
Jump to navigation
Jump to search
A simple counter. Place on an reference, then increment with another script (such as DefaultCounterIncrementOnDeath or DefaultCounterIncrementOnceOnActivate). When the target value is reached (or, optionally, exceeded), the counter:
- Activates itself.
- Optionally, sets a quest stage.
- Optionally, performs a specified action on a specified linkedref.
Required Properties[edit | edit source]
int TargetValue
{The first value at which the counter will trigger.}
Optional Properties[edit | edit source]
Quest MyQuest
{Optional. If Desired, when the counter reaches its target, sets MyQuest to MyStage.}
int MyStage
{Optional. If Desired, when the counter reaches its target, sets MyQuest to MyStage.}
Keyword MyLinkedRefKeywor
{The keyword for the LinkedRef to perform the action on. Defaults to the unnamed linkedref.}
int MyLinkedRefAction
{Optional; defaults to 0. Determines what action to perform on the object's linkedref.
- 0 -- Activate
- 1 -- Toggle Enable/Disable
- 2 -- Enable Only
- 3 -- Disable Only
}