Post new topic    
King Slime
Send private message
Double Conditions 
 PostMon May 28, 2012 8:46 pm
Send private message Reply with quote
How can I get this to work?

Code:
plotscript, cyren house zone two, begin
   if (read zone(2, herox, heroy)) &&
   (time of day == 719) then (
   
   time loop := false
   show text box(236)
   wait for text box
   use door(2)
   time loop := true
   
   )
   
   end


The error says: expected then or else but found (
Metal Slime
Send private message
 
 PostMon May 28, 2012 9:31 pm
Send private message Reply with quote
Both of the conditions need to be in the same parenthesis block like this.

Code:
if (read zone(2, herox, heroy) && time of day == 719)
King Slime
Send private message
 
 PostMon May 28, 2012 11:00 pm
Send private message Reply with quote
Thank you. Now I can apply that to my other multiple condition scripts and shorten things up...
Display posts from previous: