|
Davis Woolley
Registered User
Join date: 26 Dec 2006
Posts: 23
|
03-19-2007 08:37
Nevermind, it works now
|
|
Davis Woolley
Registered User
Join date: 26 Dec 2006
Posts: 23
|
03-19-2007 09:04
OK, I got the "Retake Test" button to work by adding MENU_SIX to the "if (llListFindList(MENU_ONE + MENU_TWO + MENU_THREE + MENU_FOUR + MENU_FIVE, [message]) != -1)" line, but the prize will not be given.
|
|
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
|
03-19-2007 09:11
llDetected... functions won't return any meaningfull values in events which are not directly related to detection of objects/AV's (sensor events, collision events and such) so, you can't use llGiveInventory(llDetectedKey(0) ... ) in the listen() event. But on the other hand, the listen() event itself provides the key of the avatar who speaks: listen(integer channel, string name, key id, string message) so you can simply use llGiveInventory( id, "4815162342_T-Shirt" );
to hand the prize, instead ^^
|