Difference between revisions of "Unplayable Items"

204 bytes added ,  17:56, 22 April 2007
actors can definitely use unplayable items -- they are "unplayable" only for the "Player"; also clarified existing uses of Playable checkbox
imported>GuidoBot
m
imported>JT
(actors can definitely use unplayable items -- they are "unplayable" only for the "Player"; also clarified existing uses of Playable checkbox)
Line 14: Line 14:


===Properties of unplayable items===
===Properties of unplayable items===
How unplayable items are actually intended to be used in the CS is unclear. They could be used to prevent the player taking items off of bodies but it is unclear whether any actors actually have such items in the standard game(?). Certainly a base object marked unplayable cannot be placed in game for the player (or actor) to pickup.


In the default game, unplayable items such as the Emperor's Robe and the Imperial Palace Guard armour are not checked as "playable", preventing the player from taking these items from the person when they are killed.  Another example of armour which is flagged as unplayable is the armour belonging to Glenroy and Captain Renault in the original dungeon.  When Renault is killed, you can take her sword, but if you examine your corpse you are likely only to find a steel shortsword; you won't be able to take her Blades Armour, as this would unbalance the early game.


The only real point of unplayable items is that they are not seen by the player, either in an actor's or player's inventory. Some other points about using an unplayable item on the player will be noted later. However, beyond this unplayable items behave pretty much like any other [non-persistant] item.
This is accomplished because unplayable items are not seen by the player, either in an actor's or player's inventory. Some other points about using an unplayable item on the player will be noted later. However, beyond this unplayable items behave pretty much like any other [non-persistant] item.
 


From here on unplayable items will be referred to as tokens. Here's a list of important token properties with respect to scripting:
From here on unplayable items will be referred to as tokens. Here's a list of important token properties with respect to scripting:


# 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.
Line 33: Line 31:


===Creating an unplayable item===
===Creating an unplayable item===
# Choose any item in the game that has the Playable switch. These are  essentially clothing and weapons. Most favored choice seems to be a 0-value ring. It is unclear whether actors can equip an unplayable item but if you use a ring it probably will not matter and making it worth 0 gold means they will not be inclinded to put it on.
# Choose any item in the game that has the Playable switch. These are  essentially clothing and weapons. Most favored choice seems to be a 0-value ring. Actors can equip an unplayable item, but if you use a ring it probably will not matter and making it worth 0 gold means they will not be inclinded to put it on.
# Copy your choice by saving with a new unique ID. You probably want to use the actual name as a comment as to what the token effect will do, etc.
# Copy your choice by saving with a new unique ID. You probably want to use the actual name as a comment as to what the token effect will do, etc.
# Uncheck the Playable option.
# Uncheck the Playable option.
Anonymous user