User Tools

Site Tools


builders:actionscripts

This is an old revision of the document!


Action Scripts

Action scripts are small routines that are not really worth coding up as a plugin, but are otherwise very powerful and are executed on the server itself. They can be attached to any object in a region via Fiddle>Modify Actions, or by setting Properties that trigger on certain events. Only super-admins (i.e. Amanda) can create and edit the scripts.

Scripts are triggered in a number of ways.

On purchase from vendo - sets action to that of property defaultAction, after interval of property defaultActionTime

On pick up of item - ditto.

On dropping an item - sets action to that of property dropAction, after interval of property dropActionTime

On sitting on an item - sets action to that of property sitAction, after interval of property sitActionTime

On drinking a potion - if potionType is set to scriptnn where nn is the id of a script, immediately execute script (only tick delay). Properties potionDrinkSelf and potionDrinkOthers hold messages to display to the users.

Current scripts:

1 Quax Carrot Used in pick-up. Turns item into a carrot if your avatar id is Quax or Qbota. :D
2 Fat Potion Used by potions. Sets you as a.WholesomeFem.img for a while. (Buggy)
3 Dead plant Used in pick-up. Sets plant as dying, then 15s triggers “delete object
4 Delete object Deletes current item.
5 Talking objects Provides chatter from items named “toucan”, “barkeeper”, “frog” or “lincoln”
6 Move sideways Moves item backwards and forwards across the screen, 3px every 30s
7 Worms alive Provides animations and breeding for worms..
8 Fix item Swaps Glued to Immobile and removes Engravable flag
9 Mark glued Used on purchase. Warns user then sets to run “glue when dropped”
10 Glue when dropped Used in drop. Glues item down, then sets to run “fix item” after 5 mins
11 Group spawner set property “spawngroup”. This then acts like a regular spawner, but only one location for all items with the same value will be allowed to spawn an item.
12 old version of #7 do not use
13 LarryWet Chatter for Larry if it's raining.
14 Fairy Potion used by potions. Makes you a fairy for a while. Buggy.
15 skeleton potion used by potion or sit. Turns you into a skeleton for a while
builders/actionscripts.1761339327.txt.gz · Last modified: by amanda