すいません。
とりあえず、必要な部分だけ抜き出しました。
///////////////////////
; ステータス
///////////////////////
;Lv
Lv="1"
;体力
hp="1000"
;攻撃力
atk="50"
;防御力
dif="50"
///////////////////////
; 戦闘
///////////////////////
*battle
cls
objsize 50,18
pos 60,320
mes "主人公"
pos 120,320
mes"Lv "+Lv
pos 60,340
mes "HP "+hp
pos 60.360
mes "攻撃力 "+atk
pos 60,380
mes "防御力 "+dif
pos 40,200
button "たたかう",*action
pos 40,220
button "まほう",*magic
stop
; 技処理
*action
objsize 90,18
pos 70,230
hp=(hp-atk)
goto *battle
stop
*magic
color 255,255,255
boxf 0,230,500,280
objsize 90,18
pos 110,230
button "ファイア",*fire
pos 110,260
button "ケアル",*ceal
stop
*fire
hp=(hp-atk*2)
goto *battle
stop
*ceal
hp=(hp+50)
if hp>100 : hp=100
goto *battle
stop
このスクリプトを実行して、戦ったり呪文を唱えたりするとエラーが発生してしまいます。
説明不足すいませんでした。