Difference between revisions of "Unplayable Items"

70 bytes removed ,  07:50, 24 June 2012
Byline removed
imported>DragoonWraith
(byline)
imported>QQuix
(Byline removed)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Byline}}


==<font size=4>'''UNPLAYABLE ITEMS - AKA TOKENS'''</font>==
<!--Search words: tokens-->
 
 
By [[User:GuidoBot|GuidoBot]]




Line 25: Line 21:
# 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.)
# Local variables are persistant. Scripted spell effects and abilities reset when the actor comes into scope (same cell) as the player, meaning any local variables are re-instantiated (to 0).
# 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===
Anonymous user