Go Back   SmallWorlds Forum > Help > How To

 
  Search this Thread
Siobhan's Avatar
Siobhan Smallworlds
SmallWorlds Crew
Joined: Jul 2008
Posts: 692

Posted 11-02-2008
Okay, so you know by now that you can get items to respond by clicking on them, or even by having an avatar come within a set range of an item. But there is a lot more you can do...

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 have the chair say "Sit here' followed by the avatars name, eg, "Sit here Doris"

How? I hear you asking.Well I am glad you asked.

These would be used in the Items Interactions setup.

So you click on the item that you want to say things. Click on the Spanner at the top of the popup window, and then click on Interactions. When the interactins window pops up click on Reactions.

Yay, your halfway there.

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.

So for the last step, Click on Add to add a new reaction. 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.

Now for the fun part. What do you want your item to say?

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 to 0 so its instant. Then type in what you want your item to say.

So if you want your item to say Welcome <name>, to <space name> you would type in "Welcome $avatarName, to $spaceName"

This is a list of different matching terms you can use.

Matching Name, Space etc:

$avatarName - The name of the avatar (Eg. John Smith)
$avatarDescription - The motto of the avatar
$avatarFirstName - The first name of the avatar (Eg. John)
$avatarLastName - The last name of the avatar (Eg. Smith)
$avatarFullName - The full name of the avatar (Eg. John Smith the 2nd)

[currently the $avatar commands are only working intermittently this is being investigated by our technical team]

$petName - The name of the avatar's pet

$spaceName - The name of the space
$spaceDescription - The description of the space
$spaceAvatarCount - The number of avatars in the space
$spaceItemCount - The number of items in the space
$spaceRating - The rating of the space
$spaceVotes - The number of votes the space has

$itemName - The name of the item
$itemDescription - The description of the item
$itemPriceGold - The price of the item in gold
$itemPriceTokens - The price of the item in tokens

Simple Matching Terms:
^
Matches the start of what the user said.
Eg. "^time"
Will match "time to go home"
Will not match "is it time yet?"

$
Matches the end of that the user said
Eg. "leave$"
Will match "please leave"
Will not match "leave my house"

\s
Matches a space character
Eg. "\slive\s"
Will match "this is on live right?"
Will not match "you are acting lively"
Will not match "live action"


\b
Matches a 'word boundary'.
For example, "\bcookie\b"
Will match "This is my cookie"
Will match "cookie monster!"
Will not match "I love cookies"
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search