|
Senna Anatra
Registered User
Join date: 21 Dec 2007
Posts: 4
|
02-23-2008 16:13
I have been trying for SO long now to figure out how to make just a simple box prim, that when you touch it it says one thing....and when you touch it again it says something different....and so on.....
I've perused the wikis and I just don't see it...Does ANYONE have ANY idea how to do this??? It seems so simple!!
|
|
Baron Hauptmann
Just Designs / Scripter
Join date: 29 Oct 2005
Posts: 358
|
02-23-2008 16:37
You can have a counter that keeps incrementing on touch, then say based on counter. At certain point, it returns to zero and starts over. You could either have the sayings hardcoded in the script or read from a notecard.
|
|
Senna Anatra
Registered User
Join date: 21 Dec 2007
Posts: 4
|
02-23-2008 16:40
Cool, thanks...
|
|
Lightwave Valkyrie
Registered User
Join date: 30 Jan 2004
Posts: 666
|
02-23-2008 16:50
make a list of your random sayings then pull them out at random like this list myList = ["A","B","C","D","E","F"]; index= llFrand(5); llSay(0,llList2String(mylist,index));
_____________________
L$ is the root of all evil videos work! thanks SL 
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
02-23-2008 18:58
From: Lightwave Valkyrie make a list of your random sayings then pull them out at random like this list myList = ["A","B","C","D","E","F"]; index= llFrand(5); llSay(0,llList2String(mylist,index)); slight correction integer index = (integer)llFrand( 6 ); //--because you had 6 options up there and index has to be an integer for llList2String
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|