Game_id=48 範例[可以自由設定(多選1)問答]
注意事項 evt1_id =50 , evt2_id =1 ,ev3L_id = 1 的 ary8位置的 12345678 要改成你的user_id , 這樣你才能進入這 [產生這個問題] 頁面中 ,這個給玩家的範例是誰都可以進入 [產生這個問題.
注意事項 如何修改檢查碼, 好讓大家的檢查碼不一樣, @a(2,3,4,5,6) 和 @a(2,3,4,5,9) 這二個字串之後再加一些自已的字串例如[第一個字串 @a(2,3,4,5,6) 改成 @a(2,3,4,5,6)abcd 第二個字串 @a(2,3,4,5,9)改成 @a(2,3,4,5,9)abcd ] , 以上二個字串和同時再加上一樣字串abcd , 如果想要不一樣亂數可以將abcd 改成 as54asde3 字串, 就成為你獨家的別人解不出來的檢查碼.
注意事項 本小遊戲的說明注意事項: (原本是只有自已是管理者才能進入的設定區, 因為是範例所以一般用戶都能進去設定, 設定好了之後會產生一個新網址, 可以供做新的問答.) 因為要做範例所以都可以進設定問題區. 只要改小部份就可以變成自已作品 (圖勿拿別人版權作品, 拿此遊戲作品分享者, 請注意版權問題, 如果誤觸影響他人版權, 與本公司無關).
~~~~~~ 個人array 位置和說明 ~~~~~~
1. 這問題製造者的檢查碼 ,創出來的檢查碼
2. =2 二選一 =3 三選1
3. =1 選的種類是 1234 =2 ABCD
4. 這問題製造者的 fbid ,建議能識別自已的號碼
5. 這問題製造者的 story_id
6. 這問題製造者的 ans 答案
8. 自已的user_id
9. 玩家最後實際上去玩時最後輸入的答案, 最後去evt1_id =999去做運算告知有沒有中
10. 玩家選答案之後的 檢查碼
~~~~~~ evt 事件說明 ~~~~~
1:[evt1_ms=0] 遊戲最開始的初始化
evt1_id =1 ,[evt2_ms=1]:evt2_id= 1 : (初始化, 先設定evt1_id =1 是一開始就有執行, 設定一開始執行的事件是1
evt1_id =1 ,[evt2_ms=1] evt2_id= 2 : if ary[2] <= 1 , 然後就跳去evt1_id =50, 做產URL ARG用, 可以開始設定怎麼產生網址參數
evt1_id =1 ,[evt2_ms=1] evt2_id= 3 : if ary[3] == 1 , 然後就跳去evt1_id =11, ELSE 跳去evt1_id =12
11:[evt1_ms=0] 判斷是要做數字1234 選1
evt1_id =11 ,[evt2_ms=1] evt2_id= 12 : if ary[2] == 2 , 然後就跳去evt1_id =102, 做 2選1
evt1_id =11 ,[evt2_ms=1] evt2_id= 13 : if ary[2] == 3 , 然後就跳去evt1_id =103, 做 3選1
evt1_id =11 ,[evt2_ms=1] evt2_id= 14 : if ary[2] == 4 , 然後就跳去evt1_id =104, 做 4選1
evt1_id =11 ,[evt2_ms=1] evt2_id= 15 : if ary[2] > 4 , 然後就跳去evt1_id =105, 做 5以後的 選1
12:[evt1_ms=0] 判斷是要做數字ABCD 選1
evt1_id =12 ,[evt2_ms=1] evt2_id= 12 : if ary[2] == 2 , 然後就跳去evt1_id =202, 做 AB選1
evt1_id =12 ,[evt2_ms=1] evt2_id= 13 : if ary[2] == 3 , 然後就跳去evt1_id =203, 做 ABC選1
evt1_id =12 ,[evt2_ms=1] evt2_id= 14 : if ary[2] == 4 , 然後就跳去evt1_id =204, 做 ABCD選1
evt1_id =12 ,[evt2_ms=1] evt2_id= 15 : if ary[2] > 4 , 然後就跳去evt1_id =205, 做 5以後的 選1
50:[evt1_ms=0] 管理者去做 問題做產URL ARG用, 可以開始設定怎麼產生網址參數
evt1_id =50 ,[evt2_ms=1] evt2_id= 1 : if ary[8] == 12345678 (這裡改成管理者的user_id,就能限定只限管理者進入) , 然後就輸入問題範圍的值, 輸入完然後就跳去evt2_id =19
evt1_id =50 ,[evt2_ms=0] evt2_id= 19 : if ary[6] > ary[2] then答案的數字=@a(6) 不能大於最大範圍=@a(2) , else 跳去evt2_id =3
evt1_id =50 ,[evt2_ms=0] evt2_id= 20 : evt3_id=1 將@a(2,3,4,5,6) 存入 temp_str
evt1_id =50 ,[evt2_ms=0] evt2_id= 20 : evt3_id=2 將 md5(temp_str) 存入 ary[1]
evt1_id =50 ,[evt2_ms=0] evt2_id= 20 : evt3_id=3 產生ary[1~5] 分享網址
evt1_id =102 2選一 (數字) ary[2]=2 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =103 3選一 (數字) ary[2]=3 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =104 4選一 (數字) ary[2]=4 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =105 5~ 選一 (數字) ary[2]=5 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =202 2選一 (英文字) ary[2]=2 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =203 3選一 (英文字) ary[2]=3 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =204 4選一 (英文字) ary[2]=4 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
evt1_id =205 5~ 選一 (數字) ary[2]=5 and ary[3]=1 玩家選完數字存入ary[9],跳去evt1_id =999
999:[evt1_ms=0] 玩家去做答案驗証
evt1_id =999 ,[evt2_ms=0] evt2_id= 1 : evt3_id=1 將@a(2,3,4,5,9) 存入 temp_str
evt1_id =999 ,[evt2_ms=0] evt2_id= 1 : evt3_id=2 將 md5(temp_str) 存入 ary[10]
evt1_id =999 ,[evt2_ms=0] evt2_id= 1 : evt3_id=3 跳去evt2_id =2
evt1_id =999 ,[evt2_ms=0] evt2_id= 2: if ary[1] == ary[10] then 你答對了 else 你答錯了
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~以下是evt.txt文件 , 以下一個字串 12345678 改成您的user_id ,以下二個字串 abcdefg 改成你要的新的檢查碼的新key ,
$k1_array = array(
array(1,1,0,1,2,3,200,300,0,0,1,3,0),
array(11,1,0,1,0,3,200,300,0,0,26,4,0),
array(12,1,0,1,0,3,200,300,0,0,30,4,0),
array(50,1,0,1,2,3,200,300,0,0,4,3,0),
array(102,1,0,1,2,3,200,300,0,0,7,3,0),
array(103,1,0,1,2,3,200,300,0,0,12,4,0),
array(104,1,0,1,2,3,200,300,0,0,16,5,0),
array(105,1,0,1,2,3,200,300,0,0,41,2,0),
array(202,1,0,1,2,3,200,300,0,0,38,3,0),
array(203,1,0,1,2,3,200,300,0,0,34,4,0),
array(204,1,0,1,2,3,200,300,0,0,21,5,0),
array(205,1,0,1,2,3,200,300,0,0,43,2,0),
array(999,1,0,1,2,3,200,300,0,0,10,2,0)
);//ab
$k2_array = array(
array(16001,0,1,0,0,1,1,0,0,0,0),
array(16001,0,2,2,1,3,2,5,1,0,0),
array(16001,222,3,6,1,7,1,8,1,0,0),
array(16101,0,1,9,1,10,1,11,1,0,0),
array(16101,222,19,12,1,13,1,14,1,0,0),
array(16101,222,20,0,0,15,3,0,0,0,0),
array(16102,0,1,0,0,18,1,0,0,0,0),
array(16102,222,11,0,0,19,2,0,0,0,0),
array(16102,222,12,0,0,21,2,0,0,0,0),
array(16103,0,1,0,0,23,3,0,0,0,0),
array(16103,222,2,26,1,27,1,28,1,0,0),
array(16104,0,1,0,0,29,1,0,0,0,0),
array(16104,222,11,0,0,30,2,0,0,0,0),
array(16104,222,12,0,0,32,2,0,0,0,0),
array(16104,222,13,0,0,34,2,0,0,0,0),
array(16105,0,1,0,0,36,1,0,0,0,0),
array(16105,222,11,0,0,37,2,0,0,0,0),
array(16105,222,12,0,0,39,2,0,0,0,0),
array(16105,222,13,0,0,41,2,0,0,0,0),
array(16105,222,14,0,0,43,2,0,0,0,0),
array(16106,0,1,0,0,45,1,0,0,0,0),
array(16106,222,11,0,0,46,2,0,0,0,0),
array(16106,222,12,0,0,48,2,0,0,0,0),
array(16106,222,13,0,0,50,2,0,0,0,0),
array(16106,222,14,0,0,52,2,0,0,0,0),
array(16107,0,12,54,1,55,1,0,0,0,0),
array(16107,0,13,56,1,57,1,0,0,0,0),
array(16107,0,14,58,1,59,1,0,0,0,0),
array(16107,0,15,60,1,61,1,0,0,0,0),
array(16108,0,12,62,1,63,1,0,0,0,0),
array(16108,0,13,64,1,65,1,0,0,0,0),
array(16108,0,14,66,1,67,1,0,0,0,0),
array(16108,0,15,68,1,69,1,0,0,0,0),
array(16109,0,1,0,0,70,1,0,0,0,0),
array(16109,222,11,0,0,71,2,0,0,0,0),
array(16109,222,12,0,0,73,2,0,0,0,0),
array(16109,222,13,0,0,75,2,0,0,0,0),
array(16110,0,1,0,0,77,1,0,0,0,0),
array(16110,222,11,0,0,78,2,0,0,0,0),
array(16110,222,12,0,0,80,2,0,0,0,0),
array(16112,0,1,0,0,82,1,0,0,0,0),
array(16112,222,2,83,1,84,1,85,1,0,0),
array(16113,0,1,0,0,86,1,0,0,0,0),
array(16113,222,2,87,1,88,1,89,1,0,0)
);//ab
$k4_array = array(
array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(4,8,0,0,0,0,0,1,0,0,0,0,0,0,0,0,1,5,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,4,0,0,0,0,1,0,0,0,0),
array(23,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,50,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,3,0,0,0,0,3,0,0,0,0,1,0,0,0,0),
array(12,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(16,1,0,0,0,0,8,0,0,0,0,1,0,0,0,0,10,0,0,0,0),
array(11,0,19,11111,5,2,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,11,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,6,0,0,0,0,1,0,0,0,0,2,0,0,0,0),
array(5,7,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(14,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(23,14,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(15,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,5),
array(6,2,0,0,0,0,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(14,0,0,0,0,0,6,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(23,14,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(3,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(9,1,0,0,0,0,1,0,0,0,0,3,0,0,0,0,10,0,0,0,0),
array(5,3,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,4,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(6,3,0,0,0,0,11,12,13,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(6,4,0,0,0,0,11,12,13,14,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(6,14,0,0,0,0,11,12,13,14,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,2,0,0,0,0),
array(12,102,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,3,1,0,0,0),
array(12,103,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0),
array(12,104,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,1,0,0,0,0,4,0,0,0,0),
array(12,105,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,2,0,0,0,0),
array(12,202,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,3,1,0,0,0),
array(12,203,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,3,0,0,0,0,4,0,0,0,0),
array(12,204,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,2,0,0,0,0,1,0,0,0,0,4,0,0,0,0),
array(12,205,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(6,13,0,0,0,0,11,12,13,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(6,12,0,0,0,0,11,12,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(7,9,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(11,0,2,1,1,9,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,9,0,0,0,0,1,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(11,0,2,1,1,9,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(8,1,0,0,0,0,9,0,0,0,0,1,0,0,0,0,0,0,0,0,0),
array(12,999,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
array(5,9,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)
);//ab
$k5_array = array(
array(2,1,2),
array(3,3,2),
array(4,5,2),
array(12,7,2),
array(13,9,2),
array(14,11,2)
);//ab
$string_array = array(
array(1,'<div>ANS (答案數值)<input type="number" name="input5" value="1" min="1" /></div>
<div>? choice 1 (多選一其最大值)<input type="number" name="input1" value="4" min="2" /></div>
<div>Story id (第幾個問題) (Not fill = 可不填)<input name="input4" type="number" value="0" /></div>
<div>id (Custom = 自定)(Not fill = 可不填)<input name="input3" type="number" value="0" /></div>
<div> <input type="radio" name="input2" value="1" checked> 1234 <input type="radio" name="input2" value="2">ABCD </div>'),
array(2,'shared URL
分享的網址
共享网址
array= @c(1,2000) tempstr= @s(1) '),
array(3,'Get the answer right</br>
正確的答案</br>
正确的答案</br>
正しい答えを得る </br>
जवाब सही जाओ</br>
Dapatkan jawabannya dengan benar</br>
Получите правильный ответ</br>
정답을 얻으십시오</br>
'),
array(4,'Wrong answer</br>
答案錯誤</br>
错误的答案</br>
間違った答え</br>
गलत जवाब</br>
Jawaban yang salah</br>
Неверный ответ</br>
잘못된 답변</br>'),
array(5,'@a(2,3,4,5,6)abcdefg'),
array(6,'@a(2,3,4,5,9)abcdefg'),
array(7,'The number of answers cannot be greater than the maximum range </br>
答案的數字=@a(6) 不能大於最大範圍=@a(2)'),
array(8,'<div> @a(2) choice 1, what is your answer ? <input type="number" name="input1" min="1" max="@a(2)" autofocus="autofocus" /></div>'),
array(9,'Please enter a number > 0 </br>
請輸入一個數字 > 0'),
array(10,'12345678'),
array(11,'你不是管理者.不能設定問題, 因為你的user_id= @a(8) </br> You not admin, You can not set the problem because your user_id= @a(8)')
);//ab
$talk_array = array(
array(2,0,'Enter your choice ?
輸入你的選擇 ? '),
array(2,1,'1@$2'),
array(3,0,'Enter your choice ?
輸入你的選擇 ? '),
array(3,1,'1@$2@$3'),
array(4,0,'Enter your choice ?
輸入你的選擇 ? '),
array(4,1,'1@$2@$3@$4'),
array(12,0,'Enter your choice ?
輸入你的選擇 ? '),
array(12,0,'A@$B'),
array(13,0,'Enter your choice ?
輸入你的選擇 ? '),
array(13,1,'A@$B@$C'),
array(14,0,'Enter your choice ?
輸入你的選擇 ? '),
array(14,1,'A@$B@$C@$D')
);//ab