Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Pose Script: Play Animation and Read/Say Notecard

Gusher Castaignede
SL Builder
Join date: 8 Oct 2007
Posts: 342
01-08-2008 00:35
Hi all, am looking for a Pose Ball script that can also trigger/type a notecard containing text. Any tips on this one?
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
01-08-2008 01:13
From: Gusher Castaignede
Hi all, am looking for a Pose Ball script that can also trigger/type a notecard containing text. Any tips on this one?


Being that this is the scripting TIPS forum, I won't post a complete script, but I will point you in the right direction. First you will want to set a sit target, so that you can test whether an avatar is sitting on the prim. Then the 'changed' event with the CHANGED_LINK flag can tell you when to test whether someone has sat down or not. At that point, you could request permissions to trigger animations and start reading from a notecard. You'll want to read about the following functions and events:

Events
--------
changed
dataserver
run_time_permissions

Functions
------------
llSetSitTarget
llAvatarOnSitTarget
llRequestPermissions
llStartAnimation
llStopAnimation
llGetNotecardLine
llSay / llWhisper / llInstantMessage

You may also want to look in the Script Library forum for an example of a typical pose ball type script, so you get an idea of how and when to request permissions, start and stop animations, etc.