This commit is contained in:
Fred Beckhusen
2015-08-07 15:34:30 -05:00
parent ce47ec2f3e
commit fde850293c
8080 changed files with 0 additions and 2443112 deletions

View File

@@ -1,6 +0,0 @@
<Project name="Dialog_Vote" guid="D805B27C-6C00-1014-B904-200204C60A89">
<Object name="Object" guid="D805B353-6C00-1014-B904-200204C60A89">
<Script name="Dialog_Vote_1.lsl" guid="D805DE73-6C00-1014-B904-200204C60A89">
</Script>
</Object>
</Project>

View File

@@ -1,75 +0,0 @@
// :CATEGORY:Vote
// :NAME:Dialog_Vote
// :AUTHOR:Fred Kinsei
// :CREATED:2010-01-10 05:20:56.000
// :EDITED:2013-09-18 15:38:51
// :ID:234
// :NUM:322
// :REV:1.0
// :WORLD:Second Life
// :DESCRIPTION:
// Dialog_Vote
// :CODE:
//Credit to the creator:
//Made by SL resident Fred Kinsei
integer votes1;
integer votes2;
string vote1;
string vote2;
list buttons;
string question;
default
{
state_entry()
{
llListen(5, "", NULL_KEY, "");
llListen(-11, "", "", "");
}
listen(integer channel, string name, key id, string message)
{
if(channel==5)
{
list vote = llParseString2List(message, [" -"], []);
if(llList2String(vote,0) == "/vote")
{
question = llList2String(vote,1);
vote1 = llList2String(vote,2);
vote2 = llList2String(vote,3);
integer range = llList2Integer(vote,4);
if(range == 0)
range=96;
buttons = [vote1, vote2];
llDialog(llGetOwner(),"\n"+question,buttons,-11);
llSensor("", NULL_KEY, AGENT, range, TWO_PI);
}