Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can a prim speak for another person?

Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-02-2005 08:31
In my RPG group, one of our upcoming events calls for one of the players to become possesed. I was hoping that I could get a script that the GM could type in what the possesed person was saying, and the prim would make it look like the possesed person is talking, the best I can make it do is have it so that the prim (who's name is the same as the person who's being possesed) speaks. any suggestions?
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
11-02-2005 08:34
You can have the GM speak on a private channel to communicate with a prim. Then have the prim dialog the possesed person on channel 0 with the GM's msg. When the person clicks the dialog, it will make them speak the dialog on channel 0. Hope that helps.
_____________________
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
11-02-2005 08:48
I can't get in world atm to write up a more detailed example of exactly what you are looking for, but here you go:

CODE
key targ;
default
{
state_entry()
{
}

touch_start(integer total_number)
{
targ = llDetectedKey(0);
llRequestPermissions(targ, PERMISSION_TRIGGER_ANIMATION);
}
run_time_permissions(integer perm)
{
if(perm & PERMISSION_TRIGGER_ANIMATION)
{
llStartAnimation("Type");
llTriggerSound("5e191c7b-8996-9ced-a177-b2ac32bfea06",1.0);
llSleep(2);
llDialog(targ, "Choose.", ["I am possesed!"], 0);
llStopAnimation("Type");
}
}
}
_____________________
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
11-02-2005 09:06
thanks, that helped a ton. :)