Advertisement
Guest User

Untitled

a guest
Jun 1st, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.       if (link_name=="choice01button")
  2.         {
  3.         integer maxChoices=4;
  4.          integer x;
  5.             for(;x<maxChoices;x++)
  6.                 {
  7.                 if (x==whichbutton)
  8.                 {
  9.                 string correctchoicebutton="move"+(string)(x+1)+"choice";
  10.                 string correctmovebutton="move"+(string)(x+1);
  11.                 string texture=("pokemoves_"+type);
  12.                 llSetLinkPrimitiveParamsFast(correctchoicebutton,[PRIM_TEXTURE,ALL_SIDES,texture,<0.333334,0.33333,0>,<-0.33334,0.33333,0>, 0.0]);
  13.                 llSetLinkPrimitiveParamsFast(correctmovebutton,[PRIM_TEXTURE,ALL_SIDES,texture,<0.333334,0.33333,0>,<-0.33334,0.33333,0>, 0.0]);
  14.                 string chosenmove = llList2String(llGetLinkPrimitiveParams(link_number,[PRIM_TEXT]),0);
  15.                 llOwnerSay("Selected "+chosenmove+" ("+type+") for Move #"+((string)whichbutton));
  16.                 state default;
  17.                 }
  18.             }
  19.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement