Shihan Feiri Posted September 5, 2011 Share Posted September 5, 2011 Is our life posible without scripts? Realy? I write one for scripters weddings day string me; key bride; string best man; string bridesmade; string priest; list guest=[]; integer gPriestChan; integer gMotherInLaw=0; list weddings_vows= ["Yes, I do", "No","Mybe"]; default { state_entry() { llSetPrimitiveCarpetParams([PRIM_COLOR, ALL_SIDES, <0.0,0.0,0.0>, 1.0, PRIM_COLOR, 3, <1.0,1.0,1.0>, 1.0, PRIM_TEXTURE, 3, "4d304955-2b01-c6c6-f545-c1ae1e618288", <1.0,0.0,0.0>, <0.0,0.0,0.0>, 0.0, PRIM_FULLBRIGHT, 3, TRUE]); llSetText("Marriage time",, <1.0, 1.0, 1.0>, 1.0); llTriggerSound("Wedding song", 1.0); } touch_start (integer total_number) { state running; } } state running { state_entry() { gPriestChan= (integer)(llFrand(-1000000000.0) - 1000000000.0); llRequestPermissions(llGetOwner(), PERMISSION_DEBIT | PERMISSION_TAKE_CONTROLS | PERMISSION_TRIGGER_ANIMATION | PERMISSION_ATTACH ,0); llListen(gWedChan,"2,llGetOwner(),""); bride_name_query = llRequestAgentData(bride, DATA_NAME); llTriggerSound("Wedding song", 1.0); llOwnerSay("OMG"); } run_time_permissions(integer perm) { if (perm & PERMISSION_TRIGGER_ANIMATION) { llStartAnimation("Wedings walk"); llSetTimerEvent(35.0); } } timer() { llSetTimerEvent(0.0); llStopAnimation("wedings walk"); } touch_start (integer total_number) { llPriestSay(0,"My dear friends, you have come together in this church so that the Lord may seal and strengthen your love in the presence of the Church’s minister and this community. Christ abundantly blesses this love. He has already consecrated you in baptism and now he enriches and strengthens you by a special sacrament so that you may assume the duties of marriage in mutual and lasting fidelity. And so, in the presence of the Church, I ask you to state your intentions."); llSleep(3.0); llSay(0, " Do you "+ llGetDisplayName((string)me) + "takes " + llKey2Name(bride) + "to be your wife? Do you promise to be true to her in good times and in bad, in sickness and in health, to love her and honor her all the days of your life?"); llDialog(llGetOwner(),"Its now or never",weddings_vows, gPriestChan); } listen(integer _chan, string _name, key _id, string _option) { if (_chan == gMotherInLaw) { llOwnerSay("Not Again"); llSay(0,"Yes mother"); llInstantMessage((key)bride,"She have start again"); llStartAnimation("fake smile"); llSetTimerEvent(5.0); } } if (_chan==gPriestChan) { if(-option == "Yes, I do") { state finish } if(_option == "Mybe") { bride_name_query; return; } if(_option == "No") { state run; } } dataserver(key queryid, string data) { if ( bride_name_query == queryid ) { bride_name = data; llPriestSay(0, "The name of this bride is called : " + bride_name ); } } } state run { state_entry() { llStartAnimation("run"); } } state finish { state_entry() {llSetText("just Married ",, <1.0, 1.0, 1.0>, 1.0); llStartAnimation("party"); llDie; } } Link to comment Share on other sites More sharing options...
SimonLeo Roelofs Posted September 5, 2011 Share Posted September 5, 2011 lol Link to comment Share on other sites More sharing options...
Void Singer Posted September 5, 2011 Share Posted September 5, 2011 :: head-->desk :: Link to comment Share on other sites More sharing options...
Shihan Feiri Posted September 5, 2011 Author Share Posted September 5, 2011 what? error in code? Link to comment Share on other sites More sharing options...
Eva Kawadias Posted November 2, 2014 Share Posted November 2, 2014 I have syntax error in : (2,12) string best man; Link to comment Share on other sites More sharing options...
Rolig Loon Posted November 2, 2014 Share Posted November 2, 2014 You should probably fix it, then. :smileywink: A string can't be two words. Actually, that variable doesn't seem to be used anywhere in this humorous script, so you might as well delete it. Link to comment Share on other sites More sharing options...
Perrie Juran Posted November 2, 2014 Share Posted November 2, 2014 Rolig Loon wrote: You should probably fix it, then. :smileywink: A string can't be two words. Actually, that variable doesn't seem to be used anywhere in this humorous script, so you might as well delete it. Plus why is there no string for the Groom? Doesn't he count for anything? Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now