Easyscripts for Sansar

What are easyscripts?
Easyscripts are a collection of scripts that i created for Sansar

Why i prefer to use easyscripts in my creations?
Sansar has a lot of useful scripts but most of them are “modular”: infact you need to combine more scripts (sometimes more than five) to let small systems work properly. What happens if you want to create a lamp that turns on and off on click?
If you decide to use simple scripts(created by Sansar team and very useful for beginners) you need an Interaction script for click, a sound script,  a timer script and a light script.
If you want to move a door, you need to combine an interaction script, two different sound scripts, a timer script, a mover script.

With easyscripts, I try to combine more elements in a single script, to avoid to set a lot of scripts and parameters. I will update my scripts, to make them compatible with simple scripts, giving more possibilities to the builder.

Find them at Sansar store, using the tag ‘easyscript’ here:
Easyscript in Sansar store

Here a list of easy scripts currently released:

BASICS:

TRIGGER ACTIONS:  A basic script that is activated when something (you can choose if an avatar, or an object, or both) enters in a trigger volume.
It sends a message on a specific channel, and plays a sound ( with a optional random delay). It can be combined with other easy scripts, and it’s compatible with Simple Script.

CLICK ACTIONS : Basic and useful script, that permits to play a sound or send a message (on a specific channel) to other scripts, with a click.

STANDALONE SOUNDS:

RANDOM SOUND PLAYER: This script, if placed on a sound component (or a object with a sound component) plays different sound files you choose(up to 10), in a random order and after a random interval. Very useful for ambience loops.

RANDOM SOUNDS ON TRIGGER: An alternative trigger script version, that let you add a list of six different sounds, that are played randomly when an agent or an object enter in the volume. If you add an audio component, sound will be played in it, otherwise sound emitter will be the trigger volume.Very useful to add dynamicity to your experiences.

TELEPORTS:

LOCAL TELEPORT ON CLICK: Put this script inside an object. This script teleports an user to a destination point (inside the same experience) after he clicked the object.Set the hovertext, destination and a optional sound. You can choose if to show a menu dialog or not.

LOCAL TELEPORT ON TRIGGER: Put this script inside a trigger volume. This script teleports an user to a destination point (inside the same experience) after he entered the volume. Set the hovertext, destination and a optional sound. You can choose if to show a menu dialog or not.

TELEPORT TO ANOTHER EXPERIENCE ON CLICK: Put this script inside an object. This script teleports an user to another experience (set in script parameters) after he clicked the object. You can choose if to show a menu dialog or not.

TELEPORT TO ANOTHER EXPERIENCE ON TRIGGER: Put this script inside a trigger volume. This script teleports an user to another experience (set in script parameters) after he entered the volume. You can choose if to show a menu dialog or not.

DIALOGS:

DIALOG ON CLICK: Place it in an object. When you click the object, a dialog will appear, with two buttons to press. Each button sends a specific message (or more messages) to users or other script. Perfect if you want to send different commands depending of your choice, or simply you want to add info or clues clicking an item. An optional sound can be player when click, and optional messages appear depending button you press. Simple script compatible

DIALOG ON TRIGGER: Place it in a trigger volume. When an agent enters in a dialog will appear, with two buttons to press. Each button sends a specific message (or more messages) to users or other script. Perfect if you want to send different commands depending of your choice, or simply you want to add info or clues  to a specific area. An optional sound can be played when you enter, and optional messages appear depending button you press. Simple script compatible.

LIGHTS CONTROL:

LIGHT ON/OFF ON CLICK: A very easy script that permits to turn on/off a light  with a click. Place it in an object with at least a light component. You can decide to add an optional sound everytime you click the object.