コメント
このコメントは、【トピック】モンスター図鑑へのコメントです。コメントの内容
コメントの内容(一番最初の投稿)
happyyuya(投稿日:2012/11/12 21:11/12/12)
setVariable("モンスターリスト",createArray())
これを開始スクリプトに書いて
word="スライム" #今回の新単語をwordに入れます
i=0; judge=true
while i<getArrayLength( getVariable("モンスターリスト") )
if word==getVariable("モンスターリスト")[i]
judge=false
end
i=i+1
end
if judge
pushArray(getVariable("モンスターリスト"), word )
endと敵を倒した所に書いて
i=0; z=""
while i<getArrayLength(getVariable("モンスターリスト"))
z=z+i+". "+getVariable("モンスターリスト")[i]+"\n"
i=i+1
end
speak(z)と、モンスターリストを見れるイベントに書きました。
setVariable("モンスターリスト",createArray())これを開始スクリプトに書いて
word="スライム" #今回の新単語をwordに入れます i=0; judge=true while i<getArrayLength( getVariable("モンスターリスト") ) if word==getVariable("モンスターリスト")[i] judge=false end i=i+1 end if judge pushArray(getVariable("モンスターリスト"), word ) endと敵を倒した所に書いて
i=0; z="" while i<getArrayLength(getVariable("モンスターリスト")) z=z+i+". "+getVariable("モンスターリスト")[i]+"\n" i=i+1 end speak(z)と、モンスターリストを見れるイベントに書きました。