Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string Msg1;
- string Msg2;
- list Colors1;
- list Colors2;
- vector red = <1,0, 0>;
- vector blue = <0,0,1>;
- vector green = <0,1,0>;
- vector white = <1, 1, 1>;
- vector black = <0, 0, 0>;
- integer gChannelDialog;
- key User;
- default
- {
- state_entry()
- {
- gChannelDialog = -1305;
- llSetColor(white, ALL_SIDES);
- // set the list of buttons for each page.
- Colors1 = ["Red", "Blue", "Green", "Next"];
- Colors2 = ["black", "white", "Back"];
- User = llDetectedKey(0);
- Msg1 = "\n Select a Color";
- Msg2 ="\n Select Black or White";
- }
- touch_start (integer total_number)
- {
- llDialog (User, Msg1, Colors1, gChannelDialog);
- llListen(gChannelDialog,"", User, "");
- }
- listen (integer channel, string name, key id, string message)
- {
- if (message == "Next")
- {
- llDialog(User, Msg2, Colors2, gChannelDialog);
- }
- else if (message == "Red")
- {
- llSetColor(red, ALL_SIDES);
- }
- else if (message == "Blue")
- {
- llSetColor(blue, ALL_SIDES);
- }
- else if (message == "Green")
- {
- llSetColor(green, ALL_SIDES);
- }
- else if (message == "White")
- {
- llSetColor(white, ALL_SIDES);
- }
- else if (message == "Black")
- {
- llSetColor(black, ALL_SIDES);
- }
- else if (message == "Back")
- {
- llDialog (User, Msg1, Colors1, gChannelDialog);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement