//WORLD
world
hub = "Hi1.Sample"
name = "Sample"
status = "<font color=green><b>SAMPLE</b></font>"
//END WORLD
mob // Define Mob
//BEGIN VARS
var
loop1
loop2
//END VARS
verb
//BASIC LOOP
Start_Basic_Loop()
if(!loop1)
for(loop1=1,loop1)
spawn(50)
usr<<"Basic Loop every 5 seconds..."
else
alert("Basic Loop in progress...")
End_Basic_Loop()
if(loop1) loop1 = 0 ; alert("Basic Loop not in progress...")
//END BASIC LOOP
//ADVANCED LOOP
Start_Advanced_Loop()
if(!loop2)
loop2 = 1
do
if(prob(20))
spawn(50)
usr << "<b>Advanced Loop random seconds. (5 This Time)</b>"
if(prob(20))
spawn(70)
usr << "<b>Advanced Loop random seconds. (7 This Time)</b>"
if(prob(20))
spawn(100)
usr << "<b>Advanced Loop random seconds. (10 This Time)</b>"
if(prob(20))
spawn(120)
usr << "<b>Advanced Loop random seconds. (12 This Time)</b>"
if(prob(20))
spawn(150)
usr << "<b>Advanced Loop random seconds. (15 This Time)</b>"
while(loop2)
else
alert("Advanced Loop in progress...")
End_Advanced_Loop()
if(loop2) loop2 = 0 ; alert("Advanced Loop not in progress...")
Problem description:
The game just crashes when I try to start either loop...please help, thanks!
-Hi1