Skip to content

Commit

Permalink
Add main script name at the top
Browse files Browse the repository at this point in the history
  • Loading branch information
Sei-Lisa committed Dec 14, 2017
1 parent 356355d commit 4c0cfe6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions AVsitter2/Plugins/AVcontrol/[AV]root-RLV.lsl
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ string version = "2.2";
integer ignorenextswap;
string notecard_name = "AVpos";
string unDressScript = "[AV]root-RLV-extra";
string main_script = "[AV]sitA";
string Dominant_name = "Dominant";
string Submissive_name = "Submissive";
string Submissive_name_plural = "submissives";
Expand Down Expand Up @@ -264,7 +265,7 @@ capture_attempt(key id, string target_sitter)
GETCAPTURESTATUShandle = llListen(RELAY_GETCAPTURESTATUSchannel, "", "", "");
relay(id, "@getstatus=" + (string)RELAY_GETCAPTURESTATUSchannel);
}
if (llGetInventoryType("[AV]sitA 1") == INVENTORY_SCRIPT)
if (llGetInventoryType(main_script + " 1") == INVENTORY_SCRIPT)
{
playpose(SUBPOSE, target_sitter);
}
Expand Down Expand Up @@ -464,7 +465,7 @@ find_seat(key id, integer index, string msg, integer captureSub)
}
if (first_available != index)
{
if (llGetInventoryType("[AV]sitA 1") == INVENTORY_SCRIPT)
if (llGetInventoryType(main_script + " 1") == INVENTORY_SCRIPT)
{
llSleep(1);
llMessageLinked(LINK_SET, 90030, (string)index, (string)first_available);
Expand Down Expand Up @@ -694,7 +695,7 @@ state running
else
{
integer index = llListFindList(DESIGNATIONS_NOW, ["S"]);
if (llGetInventoryType("[AV]sitA 1") == INVENTORY_SCRIPT)
if (llGetInventoryType(main_script + " 1") == INVENTORY_SCRIPT)
{
index = (integer)msg;
}
Expand Down

0 comments on commit 4c0cfe6

Please sign in to comment.