メニューに図鑑(質問掲示板)
投稿:
闇さん
投稿:2011/09/15 22:36:15(最新:2011/09/16 21:24:16)
setFlag("脱出", true)
setMenuItemVisible(getMenuStatus(), false)
setMenuItemVisible(getMenuItem(), false)
setMenuItemVisible(getMenuEquipment(), false)
setMenuItemVisible(getMenuLoad(), false)
setCustomParamMenuEnable(true)
setCustomParamMenuName("アイテム")
setVariable("項目",createArray())
i = 0 while i < 5
getVariable("項目")[i] = "???"
i = i + 1
end
setVariable("説明文",createArray())
getVariable("説明文")[0] = 0
getVariable("説明文")[1] = 1
getVariable("説明文")[2] = 2
getVariable("説明文")[3] = 3
getVariable("説明文")[4] = 4
getVariable("説明文")[5] = 5
getVariable("説明文")[6] = 6
getVariable("説明文")[7] = 7
getVariable("説明文")[8] = 8
getVariable("説明文")[9] = 9
def onShowCustomParameter()
i = 0
while i < 1
case speakWithSelect(11,
getVariable("項目")[0],
getVariable("項目")[1],
getVariable("項目")[2],
getVariable("項目")[3],
getVariable("項目")[4],
getVariable("項目")[5],
getVariable("項目")[6],
getVariable("項目")[7],
getVariable("項目")[8],
getVariable("項目")[9],
"やめる",
"参照したい項目を選んでね")
when 0
n = 0
when 1
n = 1
when 2
n = 2
when 3
n = 3
when 4
n = 4
when 5
speak("図鑑を閉じた")
i = 1
end
if i == 0
if getVariable("項目")[n] == "???"
k=0
while k > 51
case speakWithSelect(2,"いいえ","はい",
"未発見のアイテムを使いますか")
when 0
speak("無いものは使えないからな")
k=51
when 1
speak("持ってないのに使えるわけ無いだろ\nよく考えろ!!")
k=k+1
end
if k==50
speak("バッグの中には無い\nポケットにも無い\n無い\n無い\n無い\n無ーーーーーーーい!!")
speak("パニックになった\n鉄格子に猛スピードで突っ込んだ")
setFadeInterval(20)
fadeOut(255, 255, 255)
waitTime(200)
fadeOut(255, 255, 255)
setFadeInterval(3000)
fadeOut(0, 0, 0)
subPlayerHP(1000)
openActivityFeedWindow("バッドエンド1『アイテムパニック』")
else
end
end
else
q=getVariable("説明文")[n]
if q = 0
elsif q = 1
elsif q = 2
elsif q = 3
elsif q = 4
elsif q = 5
elsif q = 6
elsif q = 7
elsif q = 8
elsif q = 9
end
end
end
setBaseTime()
開始スクリプト : syntax error, コードに文法的な間違いがあります。 line(行): 85
どこが間違っているのかさっぱりわかりません
コメントする
コメントするには、ログインする必要があります。
コメント一覧
ちゃんと余白を処理ごとに揃えると
原因がわかりやすくなりますよ。
原因がわかりやすくなりますよ。
setFlag("脱出", true)
setMenuItemVisible(getMenuStatus(), false)
setMenuItemVisible(getMenuItem(), false)
setMenuItemVisible(getMenuEquipment(), false)
setMenuItemVisible(getMenuLoad(), false)
setCustomParamMenuEnable(true)
setCustomParamMenuName("アイテム")
setVariable("項目",createArray())
i = 0
while i < 5
getVariable("項目")[i] = "???"
i = i + 1
end
setVariable("説明文",createArray())
getVariable("説明文")[0] = 0
getVariable("説明文")[1] = 1
getVariable("説明文")[2] = 2
getVariable("説明文")[3] = 3
getVariable("説明文")[4] = 4
getVariable("説明文")[5] = 5
getVariable("説明文")[6] = 6
getVariable("説明文")[7] = 7
getVariable("説明文")[8] = 8
getVariable("説明文")[9] = 9
def onShowCustomParameter()
i = 0
while i < 1
case speakWithSelect(11,
getVariable("項目")[0],
getVariable("項目")[1],
getVariable("項目")[2],
getVariable("項目")[3],
getVariable("項目")[4],
getVariable("項目")[5],
getVariable("項目")[6],
getVariable("項目")[7],
getVariable("項目")[8],
getVariable("項目")[9],
"やめる",
"参照したい項目を選んでね")
when 0
n = 0
when 1
n = 1
when 2
n = 2
when 3
n = 3
when 4
n = 4
when 5
speak("図鑑を閉じた")
i = 1
end
if i == 0
if getVariable("項目")[n] == "???"
k=0
while k > 51
case speakWithSelect(2,"いいえ","はい",
"未発見のアイテムを使いますか")
when 0
speak("無いものは使えないからな")
k=51
when 1
speak("持ってないのに使えるわけ無いだろ\nよく考えろ!!")
k=k+1
end
if k==50
speak("バッグの中には無い\nポケットにも無い\n無い\n無い\n無い\n無ーーーーーーーい!!")
speak("パニックになった\n鉄格子に猛スピードで突っ込んだ")
setFadeInterval(20)
fadeOut(255, 255, 255)
waitTime(200)
fadeOut(255, 255, 255)
setFadeInterval(3000)
fadeOut(0, 0, 0)
subPlayerHP(1000)
openActivityFeedWindow("バッドエンド1『アイテムパニック』")
else
end
end
else
q=getVariable("説明文")[n]
if q = 0
elsif q = 1
elsif q = 2
elsif q = 3
elsif q = 4
elsif q = 5
elsif q = 6
elsif q = 7
elsif q = 8
elsif q = 9
end
end
end
#ずれているということはendがたりていない
setBaseTime()
しかしまだ問題があるので教えてください
修正後はこれです
setFlag("脱出", true) setMenuItemVisible(getMenuStatus(), false) setMenuItemVisible(getMenuItem(), false) setMenuItemVisible(getMenuEquipment(), false) setMenuItemVisible(getMenuLoad(), false) setCustomParamMenuEnable(true) setCustomParamMenuName("アイテム") setVariable("項目",createArray()) i = 0 while i < 10 getVariable("項目")[i] = "???" i = i + 1 end setVariable("説明文",createArray()) getVariable("説明文")[0] = 0 getVariable("説明文")[1] = 1 getVariable("説明文")[2] = 2 getVariable("説明文")[3] = 3 getVariable("説明文")[4] = 4 getVariable("説明文")[5] = 5 getVariable("説明文")[6] = 6 getVariable("説明文")[7] = 7 getVariable("説明文")[8] = 8 getVariable("説明文")[9] = 9 def onShowCustomParameter() i = 0 while i < 1 case speakWithSelect(11, getVariable("項目")[0], getVariable("項目")[1], getVariable("項目")[2], getVariable("項目")[3], getVariable("項目")[4], getVariable("項目")[5], getVariable("項目")[6], getVariable("項目")[7], getVariable("項目")[8], getVariable("項目")[9], "やめる", "参照したい項目を選んでね") when 0 n = 0 when 1 n = 1 when 2 n = 2 when 3 n = 3 when 4 n = 4 when 5 n = 5 when 6 n = 6 when 7 n = 7 when 8 n = 8 when 9 n = 9 when 10 speak("バッグを閉じた") i = 1 end if i == 0 if getVariable("項目")[n] == "???" k=0 while k > 51 case speakWithSelect(2,"いいえ","はい", "未発見のアイテムを使いますか") when 0 speak("無いものは使えないからな") k=51 when 1 speak("持ってないのに使えるわけ無いだろ\nよく考えろ!!") k=k+1 end if k==50 speak("バッグの中には無い\nポケットにも無い\n無い\n無い\n無い\n無ーーーーーーーい!!") speak("パニックになった\n鉄格子に猛スピードで突っ込んだ") setFadeInterval(20) fadeOut(255, 255, 255) waitTime(200) fadeOut(255, 255, 255) setFadeInterval(3000) fadeOut(0, 0, 0) subPlayerHP(1000) openActivityFeedWindow("バッドエンド1『アイテムパニック』") else end end else q=getVariable("説明文")[n] if q == 0 elsif q == 1 elsif q == 2 elsif q == 3 elsif q == 4 elsif q == 5 elsif q == 6 elsif q == 7 elsif q == 8 elsif q == 9 end end end end end setBaseTime()アイテムを持っていないとき
「未発見のアイテムを使いますか?」
のところに飛ばしたいのですがうまくいきません