I am working in a script that do the same:
-If you touch the primitive open a notepad
-If you pick "sit here" (llSetSitText"vote"
run a function (llSetPrimitiveParams) that makes bigger the primitive-there is a listen command ("die"
because the prim is attached to another prim that if is touched makes dissapear the prim.This is my script:
default
{
state_entry()
{
llSetSitText("vote"
;llSitTarget(dest-llGetPos(), <0,0,0,1>
;llListen(69, "", NULL_KEY, ""
;gPosCount = 0;
gCurRot = llGetRot();
}
touch_start(integer n)
{
llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD, 0));
}
changed(integer change)
{
i= i+1;
llSetPrimitiveParams([PRIM_SIZE, <i, i,i>]);
}
listen(integer channel, string name, key id, string message)
{
if (message == "die"

{
// if the message from the owner is "hello", respond with "Hello.".
llDie();
}
}
}
There are several mistakes and is not working....
Could someone help me to correct it???