コメント
このコメントは、【トピック】カスタムメニューで図鑑を表示させたいのですが…へのコメントです。コメントの内容
コメントの内容(一番最初の投稿)
 アイネ・レグルス(投稿日:2012/11/18 19:11/18/12)
 アイネ・レグルス(投稿日:2012/11/18 19:11/18/12)
    
      カスタムメニューは正常に動けるようにまで設定しました
ところが、該当アイテム入手スクリプトを以下のように書いているのですが未だに正常に動作しません
スクリプトは合っているはずなのですが…どこか別のところが違うのかもしれませんが…
    
  setCustomParamMenuEnable(true)
setCustomParamMenuName("a")
setVariable("testParamValue", 1)
setVariable("testaParamValue", 28)
def onShowCustomParameter()
  setCustomParamName(2, "delete")
  setCustomParamValue(2, 30)
  deleteCustomParam(2)
  drawCustomParam()
#開始スクリプトなどで設定 
setVariable("項目",createArray()) # 5項目ある図鑑をすべて???にする 
i = 0 
while i < 7
 getVariable("項目")[i]= "???" #ゲットしていない物を???という項目にする 
i = i + 1
end
setVariable("説明文",createArray()) #説明文を考える
getVariable("説明文")[0] = "アイテム1"
getVariable("説明文")[1] = "アイテム2"
getVariable("説明文")[2] = "アイテム3"
getVariable("説明文")[3] = "アイテム4"
getVariable("説明文")[4] = "アイテム5"
getVariable("説明文")[5] = "アイテム6"
getVariable("説明文")[6] = "アイテム7"
#図鑑を参照したとき(本棚にイベントをはっつけるなど)
i = 0
while i < 1
case speakWithSelect(8, getVariable("項目")[0], getVariable("項目")[1],
getVariable("項目")[2], getVariable("項目")[3],
getVariable("項目")[4],getVariable("項目")[5],getVariable("項目")[6], "やめる",#都合により無駄に改行してます
"参照したい項目を選んでね")
when 0
n = 0
when 1
n = 1
when 2
n = 2
when 3
n = 3
when 4
n = 4
when 5
n = 4
when 6
n = 6
when 7
i = 1
end
if i == 0
if getVariable("項目")[n] == "???"
speak("まだ参照できません")
else
speak(getVariable("説明文")[n])
end
end
end
end
ところが、該当アイテム入手スクリプトを以下のように書いているのですが未だに正常に動作しません
speak("アイテムAを手に入れた!")
getVariable("a")[0] = "アイテムA"
スクリプトは合っているはずなのですが…どこか別のところが違うのかもしれませんが…
setCustomParamMenuEnable(true) setCustomParamMenuName("a") setVariable("testParamValue", 1) setVariable("testaParamValue", 28) def onShowCustomParameter() setCustomParamName(2, "delete") setCustomParamValue(2, 30) deleteCustomParam(2) drawCustomParam() #開始スクリプトなどで設定 setVariable("項目",createArray()) # 5項目ある図鑑をすべて???にする i = 0 while i < 7 getVariable("項目")[i]= "???" #ゲットしていない物を???という項目にする i = i + 1 end setVariable("説明文",createArray()) #説明文を考える getVariable("説明文")[0] = "アイテム1" getVariable("説明文")[1] = "アイテム2" getVariable("説明文")[2] = "アイテム3" getVariable("説明文")[3] = "アイテム4" getVariable("説明文")[4] = "アイテム5" getVariable("説明文")[5] = "アイテム6" getVariable("説明文")[6] = "アイテム7" #図鑑を参照したとき(本棚にイベントをはっつけるなど) i = 0 while i < 1 case speakWithSelect(8, getVariable("項目")[0], getVariable("項目")[1], getVariable("項目")[2], getVariable("項目")[3], getVariable("項目")[4],getVariable("項目")[5],getVariable("項目")[6], "やめる",#都合により無駄に改行してます "参照したい項目を選んでね") when 0 n = 0 when 1 n = 1 when 2 n = 2 when 3 n = 3 when 4 n = 4 when 5 n = 4 when 6 n = 6 when 7 i = 1 end if i == 0 if getVariable("項目")[n] == "???" speak("まだ参照できません") else speak(getVariable("説明文")[n]) end end end endところが、該当アイテム入手スクリプトを以下のように書いているのですが未だに正常に動作しません
speak("アイテムAを手に入れた!") getVariable("a")[0] = "アイテムA"スクリプトは合っているはずなのですが…どこか別のところが違うのかもしれませんが…