blazzle8/mapdata.lua

6 lines
532 B
Lua

mapdata = {
{x=0,y=0,e=2,triggers={}},
{x=1,y=0,w=1,triggers={{4,5,function(m) otextbox("the switch clicks.",function() m.x = 2 end) m.triggers[1][3] = function() otextbox("nothing happens.") end m.e = 3 end}},onload=function(m) if not m.e then qtextbox({"oh no!","the path is flooded!","see that switch?","press it!"}) end end},
{x=3,y=0,w=2,triggers={{1,5,function(m) otextbox("switch 1") end},{3,5,function(m) otextbox("switch 2") end},{5,5,function(m) otextbox("switch 3") end},{7,5,function(m) otextbox("switch 4") end}}}
}