Difference between revisions of "Unplayable Items"
→Properties of unplayable items: Clarity
imported>Wrye m (Remove top level header.) |
imported>Haama (→Properties of unplayable items: Clarity) |
||
Line 24: | Line 24: | ||
# Unlike standard items, the token is never seen in the target's/player's inventory. (This essentially makes up for the fact that inventory items cannot be disabled.) This feature can be useful in itself without any script attached. For example, you can tag an actor to see if you have already 'hit' them before. | # Unlike standard items, the token is never seen in the target's/player's inventory. (This essentially makes up for the fact that inventory items cannot be disabled.) This feature can be useful in itself without any script attached. For example, you can tag an actor to see if you have already 'hit' them before. | ||
# Tokens are always specific to the actor they are applied to, even if that actor was created by PlaceAtMe. In contrast, spells and abilities are added to the base model. (All [new] actor references of the same base model inherit these effects when they respawn.) | # Tokens are always specific to the actor they are applied to, even if that actor was created by PlaceAtMe. In contrast, spells and abilities are added to the base model. (All [new] actor references of the same base model inherit these effects when they respawn.) | ||
# | # Token variables are persistant, unlike scripted spells and abilities (which reset when the actor comes into scope (same cell) as the player, meaning any local variables are re-instantiated to 0). | ||
# You can add a token remotely - i.e. to an actor not even in your cell, so long as it is a persistant ref. | # You can add a token remotely - i.e. to an actor not even in your cell, so long as it is a persistant ref. | ||
# Token effect scripts are always active and the OnActivate block can be called when the actor is out-of-scope. This is not true of scripts on actors themselves. | # Token effect scripts are always active and the OnActivate block can be called when the actor is out-of-scope. This is not true of scripts on actors themselves. | ||
# When [the marked actor is] in scope the GameMode block activates every frame. When out of scope the GameMode block triggers about every 30 seconds (?). Additionally it will always fire when the token is first added - meaning that you have an effective OnAdd method. | # When [the marked actor is] in scope the GameMode block activates every frame. When out of scope the GameMode block triggers about every 30 seconds (?). Additionally it will always fire when the token is first added - meaning that you have an effective OnAdd method. | ||
# Like spells, tokens can remove themselves or be removed from a calling script (very handy for instant or 1-time effects). | # Like spells, tokens can remove themselves or be removed from a calling script (very handy for instant or 1-time effects). | ||
===Creating an unplayable item=== | ===Creating an unplayable item=== |