|
Phil Wade
Registered User
Join date: 17 Oct 2006
Posts: 9
|
03-22-2007 12:11
l
This is silly but im missing something and i cant see it, it doesnt randomize i always get the first entry, not a random phrase.
ist phrases = ["this isle will shortly be dmolished to make way for a hypergalactical highway", "brain the size of a planet and all they do is walk on me", "beware of the Flamingo" ];
default { state_entry()
{ }
collision_start(integer total_number) { llListRandomize(phrases, 1); llWhisper(0, llList2String(phrases,0)); } }
|
|
Azul Wilder
Registered User
Join date: 29 Jan 2007
Posts: 87
|
03-22-2007 12:19
Try this inside collision_start list frases = llListRandomize(phrases, 1); llWhisper(0, llList2String(frases,0));
_____________________
First goes before AW Devices
|
|
Destiny Niles
Registered User
Join date: 23 Aug 2006
Posts: 949
|
03-22-2007 12:20
See example on the wiki http://www.lslwiki.net/lslwiki/wakka.php?wakka=llListRandomizeYou forget to reassign the list phrases = llListRandomize(phrases, 1); llWhisper(0, llList2String(phrases,0));
|
|
Phil Wade
Registered User
Join date: 17 Oct 2006
Posts: 9
|
03-22-2007 12:23
thank you both, i need some s;eep  )
|
|
Phil Wade
Registered User
Join date: 17 Oct 2006
Posts: 9
|
03-22-2007 12:27
reasigning the list solveved it ouchh silly mistake
thanks
|