Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //++++++++++++++++Copyright Darkfyre Algoma 5-14-2011++++++++++++++++++
- //~~~~~~THIS SCRIPT MAY NOT BE COPIED, ALTERED, USED IN ANY WAY THEN IT's ORIGINAL PURPOSE~~~~~
- float MaxScale = 1; // Max scale for X size
- integer rezzerChan = -9000;
- //==================Stage texture=======================
- string seedling= "7a247955-ac67-4398-b42e-957ea4002be7"; // UUID texture for seedling stage
- string leaves= "0c4386a2-aed8-41ae-81d5-9d7c52382165"; // UUID texture for leaves stage
- string picktime= "0c4386a2-aed8-41ae-81d5-9d7c52382165"; // UUID texture for read to pick stage
- string dead= "3d9efe64-4b0e-4351-91a8-5c584c1afceb"; // UUID texture for dead/dried stage
- //=====================================================
- //=================Stage give item=====================
- string GiveRipe= "bo peep cup"; //Ripe item to give from object inventory (name of object)
- string GiveDried= "Teryl Seed *2nd Generation*"; //Dried item to give from object inventory (name of object)
- //=====================================================
- integer RipeTrigger=FALSE;
- integer DriedTrigger=FALSE;
- string texture;
- default
- {
- state_entry()
- {
- llSetTimerEvent(5);
- llSetScale(<0.1,0.01,0.01>);
- texture = seedling;
- RipeTrigger=FALSE;
- DriedTrigger=FALSE;
- }
- on_rez(integer rezzing)
- {
- llResetScript();
- }
- timer()
- {
- llSetTexture(texture, ALL_SIDES);
- vector scale = llGetScale();///
- if(scale.x>=MaxScale)///////////////--check scale for max size
- {llSetTimerEvent(0);}//////////
- else
- {
- llSetScale(llGetScale()+<0.02,0.01,0.01>);
- llSetPos(llGetPos()+<0,0,0.01>);
- }
- // seedling stage starts at rez
- // other stages below
- if(scale.x>=.01 & scale.x<=.20)// seedling
- {
- texture = seedling;
- }
- if(scale.x>=.21 & scale.x<=.74)// leaves
- {
- texture = leaves;
- }
- if(scale.x>=.75 & scale.x<=.95)// picktime
- {
- RipeTrigger=TRUE;
- texture = picktime;
- }
- if(scale.x>=.95)// dead
- {
- DriedTrigger=TRUE;
- RipeTrigger=FALSE;
- texture = dead;
- }
- }
- touch_start(integer total_number)
- {
- if(RipeTrigger==TRUE)
- {
- llSay(0, "refillteryl");
- llGiveInventory(llDetectedKey(0),GiveRipe);
- llDie();
- }
- if(DriedTrigger==TRUE)
- {
- llSay(rezzerChan,"REZ");
- llGiveInventory(llDetectedKey(0),GiveDried);
- llDie();
- }
- }
- }
- /*
- .010 to .020 = seedling
- .021 to .074 = leaves
- .075 to .095 = picktime
- .096 to .100 = dead
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement