Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (link_name=="choice01button")
- {
- integer maxChoices=4;
- integer x;
- for(;x<maxChoices;x++)
- {
- if (x==whichbutton)
- {
- string correctchoicebutton="move"+(string)(x+1)+"choice";
- string correctmovebutton="move"+(string)(x+1);
- string texture=("pokemoves_"+type);
- llSetLinkPrimitiveParamsFast(correctchoicebutton,[PRIM_TEXTURE,ALL_SIDES,texture,<0.333334,0.33333,0>,<-0.33334,0.33333,0>, 0.0]);
- llSetLinkPrimitiveParamsFast(correctmovebutton,[PRIM_TEXTURE,ALL_SIDES,texture,<0.333334,0.33333,0>,<-0.33334,0.33333,0>, 0.0]);
- string chosenmove = llList2String(llGetLinkPrimitiveParams(link_number,[PRIM_TEXT]),0);
- llOwnerSay("Selected "+chosenmove+" ("+type+") for Move #"+((string)whichbutton));
- state default;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement