Edu Csak

Resident

13

Community Reputation

2 Neutral

• Rank
Member

Thank you very much @Rolig Loon but I give up. I feel myself very stupid not figuring out a formula to have it done. Playing randomly with offset values is testing my patience to its highest level LOL (I've tried, I swear) Tried working round your suggestion using prim_texture under llSetLinkPrimitiveParamsFast but I've only managed to make it work with llSetLinkTextureAnim(side, ANIM_ON | LOOP, face, gFrameY, gFrameX, 3, 1, 0); (3 = number of image slice I wanna use) Once again, thank you! But its way more advanced for my expertise 😘

Sorry, still cant figure it out how it really works. Wiki's descriptions make me feel illiterate, literally LOL wiki says: for scale: • float u – horizontal (x) scale in the interval [-100.0, 100.0] • float v – vertical (y) scale in the interval [-100.0, 100.0] and for offset: • float u – horizontal (x) offset in the interval [-1.0, 1.0] • float v – vertical (y) offset in the interval [-1.0, 1.0] But still have no idea how to show just "lime green 7" or "pink 4" on prim Sorry again bothering, but wiki makes no sense bout explaining clearly the mechanism for self-learners non professional scripters Kudos for you all for the patience

Thank you, @Rolig Loon. One day I'll be able to read wiki and undertand it all. No more trials and errors. LOL

Ok, got it working! Last question: is it possible to choose which frame to show when anim stop?

[ PRIM_TEXTURE, NUMBER_FACE, NUMBER_TEXTURE , <1.0/COLUMNS, 1.0/ROWS, 0.0> // repeats , <(1-COLUMNS)*(0.5/COLUMNS), (ROWS-1)*(0.5/ROWS), 0.0> // offsets , 0.0 // rotation in radians ]); Thank you, @Qie Niangao! 😍

Thank you Qie & Rolig, I ain't no programmer and it's hard to ask wiki when you've got no clue what to search for Took a look on llOffsetTexture but wiki isn't clear about child prims (yes, the prim is a child one) So I'd better use llSetLinkPrimitiveParamsFast [ PRIM_TEXTURE, integer face, string texture, vector repeats, vector offsets, float rotation_in_radians ], right? Now I've got to understand this cuz have no idea what it means • float u – horizontal (x) offset in the interval [-1.0, 1.0] • float v – vertical (y) offset in the interval [-1.0, 1.0] I'll do more researchs (really wish wiki is noobie-wise) Thank you Qie & Rolig

8. How do I tranform a string into a variable?

OML! Thanks for opening my mind for this possibility. Thank you very much!
9. How do I tranform a string into a variable?

Hi! I'm trying to make a script where a item code is given and it grabs its respective menu list, but I can't find on wiki what command I should use to transform the value I've got into a variable of the menu that should be shown. Example: the item 48 is given. So, the tint48 menu list should be prompted. I came up with this idea of putting on a list (tintableItems) which contains the item (48), the menu that should prompt (tint48) and then the values that should go on (faces48). But I'm stucked on how to transform the value I get (tint48) into the list values of it. I don't even know if it's possible, but I'm searching wiki for this answer but I cannot find. I'm trying to simplify the coding Based on the item given, a menu should popup with the values provided. I don't want to make N lists, one for each item neither nesting neverending IFs to check if item 48 integer CHAN= -999; key old_owner; integer item=48; list tintableItems = [ 48,"tint48","faces48" ]; // where 48 is the item / tint48 its menu / faces48 the values list tint48 = ["TEETH","ALL","CLOSE","COLLAR","PULL TAB", "BODY"]; list faces48 = ["3","ALL_SIDES","","1","2","0"]; default { state_entry() { old_owner = llGetOwner(); if (item == (integer)llList2String(tintableItems, (integer) llListFindList(tintableItems, (list)item))) { //integer position = (integer) llListFindList(tintableItems, (list)item)+1; // gets the next position in List string value = llList2String(tintableItems, (integer) llListFindList(tintableItems, (list)item)+1); // grabs the value // now I want to use this value as parameter which menu list to use but don't know what command to get it done llDialog(old_owner, "Choose: ", (list)value , CHAN); llListen(CHAN, "", NULL_KEY, ""); } } } My problem lies here: llDialog(old_owner, "Choose: ", (list)value , CHAN); I know it's wrong. I just don't know what to do TY!
10. Receive new channel and start listening to it

Finally, I made it work. Once the channel value was set on state_entry, I found out that there's no way to have it changed. So I made other variable to be used and resetted within llListen with the value I got from the listen and got it working on touch_start Thank you all for your help
11. Receive new channel and start listening to it

OK, but my issue is how to change the llsay to start saying on channel 9 and not on 2. Initially, the hud uses the channel 2. Then the item says to hud to use channel 9. But I cannot have it saying channel 9. keeps on llSay(ing) on channel 2 state_entry() { chan=2; }listen(integer chan, string name, key id, string msg) { chan=(integer)msg; // msg = 9 - script now must llSay on channel 9... not on 2 anymore } But the variable chan receives the new value on listen, but keeps on reapplying the 2 above
12. Receive new channel and start listening to it

I've got an item and a HUD The item says the HUD which channel to use, but I"m stucked on how it changes. It's keep on using the old channel setted. The HUD uses channel 2 (for example) Then the item says to HUD to use channel 9 It listens, but keeps on using channel 2, not 9 state_entry() { chan=2; } listen(integer CHAN, string name, key id, string msg) { chan=(integer)msg; } // msg = 9 What I'm missing?
13. How to select a mesh face on HUD and apply tint on it

I made a HUD to tint a vest mesh.I do have it working, but it tints ALL_SIDES. My question is: how to select on HUD which face to tint and send it with the color to apply? Thanks!
×
×
• Create New...