記録させる方法でセーブを行い、セーブ用のテキストファイルに
記録した行数(数値)からシナリオファイルを実行させる方法で
ロードをしているのですが、ロードの処理がうまくいきません。
アドバイスお願いします。
po=0 ; シナリオ読み取り位置
//背景 //背景のところでセーブ notesel aa cd = po*11+2 aa=str(cd) notesave "save.txt" notesel txbf //背景画像の表示 noteget cgfn,po*11+2 *bg buffer 1 picload cgfn gsel 0 redraw 0 gmode 0 pos 0,0 gcopy 1,0,0,640,480 *OnCommand switch (wparam & 0xFFFF) case CMD_RO ; ロード dialog "ロードしますか?", 2, "確認" if stat = 6 { notesel save ; ノートバッファの設定 noteload "save.txt" ; ノートバッファにセーブファイルを読み込む noteget load,0 load = int(load) notesel txbf ; シナリオ用ノートバッファの設定 noteload "sinario_11.txt" ; ノートバッファにシナリオファイルを読み込む noteget cgfn,load ; cgfnにloadの値入れる po=cgfn/10 ; cgfnの値に応じてpoの値を決める goto *bg ; *bgラベルにジャンプ } swbreak default swbreak swend return