Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

script correction

jazz Spatula
jazz spatula
Join date: 7 Feb 2006
Posts: 11
05-09-2006 20:56
Hi!
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???
Leonard Churchill
Just a Horse
Join date: 19 Oct 2005
Posts: 59
05-09-2006 23:57
Contacted you ingame, you were afk. Check your IMs.
_____________________
"Give me a fish and I eat for a day. Teach me to fish and I eat for a lifetime." - Chinese Proverb

Always check the Wiki and/or Script Library