Item Codes

=
Adding interactions to SmallWorlds items offers you a way of giving them their own ‘personalities’ – Setting interactions enables you to really bring SmallWorlds items to life! ===== You get items to respond by an avatar clicking on them, or perhaps by an avatar walking within a set range of an item (called ‘proximity’). But there’s loads of other ways you can make your missions or spaces really fun by setting interactions on items.

Interaction Codes
By using the following codes you can personalise messages to recognise item or avatar names. For example, you might have a chair in your space configured to say “Sit here”, however by using these codes you can actually have the chair say “Sit here’ followed by the avatars name, eg, “Sit here Doris”. To get started, you”ll need to go to the ‘Items Interactions’ setup.


 * 1) First, click on the item that you want to set the interaction for.
 * 2) Next, click on Edit at the top of the popup window
 * 3) Then, click on Interactions.
 * 4) When the interactions window pops up click on Reactions.

So now you need to decide what you want your item to react to. A popular choice is using Avatar Proximity to welcome people to your space. That is, when an avatar enters your space, you place an item right next to where they enter, and this then triggers a welcome message, because they are near to the item you set the interaction for.

To set the proximity interaction:


 * 1) Click on Add to add a new reaction.
 * 2) For React When: select Proximity. Then start with a proximity of 2 metres or less. You can edit this later if you need the area to be bigger.
 * 3) Now for the fun part – what do you want your item to say?
 * 4) For Reaction choose Say Something. (You will need to scroll down to find this one.) Choose the Delay you want (in seconds) you can set this so it’s instant.
 * 5) Type in what you want your item to say ie: If you want your item to say “Welcome, to ” you would type in “Welcome $avatarName, to $spaceName”

A list of matching terms you can use are below:

Avatar Details
$avatarName - The name of the avatar (Eg, John Smith)

$avatarDescription - The avatar's motto

$avatarFirstName - The avatar's first name (Eg, John)

$avatarLastName - The avatar's last name (Eg, Smith)

$avatarFullName - The avatar's full name (Eg, John Smith the 2nd)

$avatarFormalTitle - The avatar's formal title (Sir/Madam)

$avatarTitle - Their title (Mr/Miss)

Pet Details
$petName - The name of the avatar's pet

Space Details
$spaceName - The name of the space

$spaceDescription - The description of the space

$spaceAvatarCount - Counts how many avatars are in the instance/space

$spaceItemCount - Counts how many items are in the space

uf.