今luaとを使って終了時の確認ダイアログを自作しているんだが、詰まってしまったのでアドバイス下さい。
ちなみにシスカマはしてあります。
↓lua側のスクリプト
NSExec( 'luacall close' )
function NSCALL_close()
NSGosub ("*nsclose")
TEMP = NSGetIntValue(0)
if TEMP == 0 then NSGosub("*closecancel") return false else return true
end end--関数終了

↓Nsc側のスクリプト
*nsclose
lsph 100,":a;sysgra\endbg.png",220,165
lsph 99,":a;sysgra\yes.png",255,255
lsph 98,":a;sysgra\no.png",335,255
lsph 97,":a;sysgra\yeson.png",255,255
lsph 96,":a;sysgra\noon.png",335,255
bdef "p100p99p98c97c96"
bsp 99,"","c99p97p100","c99p97p100"
bsp 98,"","p100c98p96","p100c98p96"
*closeloop
bexec %btnres
if %btnres=99 mov %0,1:return
if %btnres=98 mov %0,0:return
goto *closeloop
*closecancel
for %0=96 to 100
csp %0
next
print 1
bclear
return