コメント
このコメントは、【トピック】スロットへのコメントです。コメントの内容
コメントの内容(一番最初の投稿)
ikosami(投稿日:2011/10/22 23:10/22/11)
どうしても気になったので、短くしてみました(^^;)
#-----
#1回に使う金額などの処理を入れる
#-----
#//////マークの設定/////
a = createArray()
a[0] = "R"; a[1] = "〇"; a[2] = "◎"; a[3] = "☆" ;a[4] = "7"
#//////マークを↑からランダムで選んで設定/////
setVariable("m1", a[rand(5)])
setVariable("m2", a[rand(5)])
setVariable("m3", a[rand(5)])
#//////マークを表示/////
speak(getVariable("m1"),getVariable("m2"),getVariable("m3"))
#//////マーク1,2,3がすべて同じなら/////
if getVariable("m1") == getVariable("m2") &&
getVariable("m2") == getVariable("m3")
if getVariable("m1") == "R"
#-----
#Rが揃った場合の処理を入れる
#-----
elsif getVariable("m1") == "〇"
#-----
#〇が揃った場合の処理を入れる
#-----
elsif getVariable("m1") == "◎"
#-----
#◎が揃った場合の処理を入れる
#-----
elsif getVariable("m1") == "☆"
#-----
#☆が揃った場合の処理を入れる
#-----
elsif getVariable("m1") == "7"
#-----
#7が揃った場合の処理を入れる
#-----
end
end
#----- #1回に使う金額などの処理を入れる #----- #//////マークの設定///// a = createArray() a[0] = "R"; a[1] = "〇"; a[2] = "◎"; a[3] = "☆" ;a[4] = "7" #//////マークを↑からランダムで選んで設定///// setVariable("m1", a[rand(5)]) setVariable("m2", a[rand(5)]) setVariable("m3", a[rand(5)]) #//////マークを表示///// speak(getVariable("m1"),getVariable("m2"),getVariable("m3")) #//////マーク1,2,3がすべて同じなら///// if getVariable("m1") == getVariable("m2") && getVariable("m2") == getVariable("m3") if getVariable("m1") == "R" #----- #Rが揃った場合の処理を入れる #----- elsif getVariable("m1") == "〇" #----- #〇が揃った場合の処理を入れる #----- elsif getVariable("m1") == "◎" #----- #◎が揃った場合の処理を入れる #----- elsif getVariable("m1") == "☆" #----- #☆が揃った場合の処理を入れる #----- elsif getVariable("m1") == "7" #----- #7が揃った場合の処理を入れる #----- end end