Projects » Simple SIM tide cycle and flood disaster

To be real, the sea must have tides.

And... I decided to do it.

You put this script in your SIM, set a minimum and maximum level and enjoy the result.


Edit inside script:

float gap = 10; //time steps to change in seconds

True flood disaster

Dry level


You'll also have random floods periodically.

For more fun you can click on the scripted object and make a catastrophic flood or drought :)


Bugs? I see 2-3 non fatal bugs and may be will repair later:)


Added by: Pagane
Last Update: 7 months ago
Project Category: Other
👍 3 like

Code

File name Added By Last Updated Actions
Flood Pagane 7 months ago View


Comments

To save some work, and to prevent anybody to flood a region, I altered the touch event to owner only:
touch_start(integer num_detected)
{
if(llGetOwner() == llDetectedKey(0))
{
ToucherID = llDetectedKey(0);
llDialog(ToucherID, dialogInfo, waterChoices, dialogChannel);
listenHandle = llListen(dialogChannel, "", ToucherID, "");
}
}
like(0)
Works super...a great add on also for a rp!
like(0)
this is a cool idea. I might just build a city that doubles as a swim land with this script .
like(0)