|
Senna Anatra
Registered User
Join date: 21 Dec 2007
Posts: 4
|
02-23-2008 16:11
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 do see it....Does ANYONE have ANY idea how to do this??? It seems so simple!!
|
|
Cristalle Karami
Lady of the House
Join date: 4 Dec 2006
Posts: 6,222
|
02-23-2008 16:12
I recommend the Scripting Tips forum.
_____________________
Affordable & beautiful apartments & homes starting at 150L/wk! Waterfront homes, 575L/wk & 300 prims! House of Cristalle low prim prefabs: secondlife://Cristalle/111/60http://cristalleproperties.info http://careeningcristalle.blogspot.com - Careening, A SL Sailing Blog
|
|
RobbyRacoon Olmstead
Red warrior is hungry!
Join date: 20 Sep 2006
Posts: 1,821
|
02-23-2008 16:18
list phrases = [ "phrase one", "phrase two", "phrase three", "phrase four" ]; integer counter = 0; default { state_entry() { } touch_start( integer count ) { llSay( 0, llList2String( phrases, counter++ % llGetListLength( phrases ) ) ); } }
|
|
Senna Anatra
Registered User
Join date: 21 Dec 2007
Posts: 4
|
02-23-2008 16:27
thank yooou!
|
|
Senna Anatra
Registered User
Join date: 21 Dec 2007
Posts: 4
|
02-23-2008 16:34
It's giving me a syntax error thing...What am i supposed to change in the brackets?? :\
|
|
Yosef Okelly
Mostly Harmless
Join date: 26 Aug 2007
Posts: 2,692
|
02-23-2008 19:23
do not copy the first and last lines; those are there to perserve formating in the forums. <--- do not copy list phrases = [ "phrase one", "phrase two", "phrase three", "phrase four" ];
integer counter = 0;
default {
state_entry() { }
touch_start( integer count ) { llSay( 0, llList2String( phrases, counter++ % llGetListLength( phrases ) ) ); }
}
< ---- Do not copy
|