Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- integer listen_id;
- default
- {
- state_entry()
- {
- listen_id =llListen(0,"", NULL_KEY, "");
- llSetText("I AM SARA", <1,1,1>, 2.0);
- }
- listen(integer channel, string name, key id, string message)
- {
- if (llToLower(message) == "hello sara")
- {
- llSay(0,"Hi, Thanks for comming to this training. \n I hope you do well. \n This is the office where I work. \n We had a bad fire last year and I almost died \n from smoke inhalation. \n Don't want that to happen again. I will see you inside.");
- vector pos = llGetPos();
- pos.y = pos.y - 1;
- llSetPos(pos);
- llListenRemove(listen_id) ;
- state other;
- }
- }
- }
- state other
- {
- touch_start(integer ng)
- {
- vector pos = llGetPos();
- pos.y = pos.y + 1;
- llSetPos(pos);
- llResetScript();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement