summaryrefslogtreecommitdiffstats
path: root/src/trigger.lua
blob: 50e307fc8c814abec11955574907232753f20a20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
function trigger_cell(row,col, flags)

file=io.open("/tmp/test.sctrg", "a+")

print (file)
res=sc.lgetnum(col,row)
if res then
--print(res)
file:write("Trigger cell called for "..row..":"..col.." value is "..res.." flags = "..flags.."\n")
else
file:write("Trigger cell called for "..row..":"..col.." value is NOT VALID YET flags = "..flags.."\n")
end
--sc.lsetnum(1,0,25)

a=a+1
file:close()

end