赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 1301 |
最后登录 | 2016-7-13 |
在线时间 | 10 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 10 小时
- 注册时间
- 2015-1-18
- 帖子
- 18
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
- class From_moment
- def at_the_moment
- m_abcdef = $moment.values
- m_a = m_abcdef[0]
- m_b = m_abcdef[1]
- m_c = m_abcdef[2]
- m_d = m_abcdef[3]
- m_e = m_abcdef[4]
- m_a2 = 1 if m_a == 1
- m_b2 = 2 if m_b == 2
- m_c2 = 3 if m_c == 3
- m_d2 = 4 if m_d == 4
- moment_2 = [0,0,0,0]
- moment_2[0] = 1 if m_a2 == 1
- moment_2[1] = 2 if m_b2 == 2
- moment_2[2] = 3 if m_c2 == 3
- moment_2[3] = 4 if m_d2 == 4
- m_a3 = moment_2.include?(1)
- m_b3 = moment_2.include?(2)
- m_c3 = moment_2.include?(3)
- m_d3 = moment_2.include?(4)
- moment_3 = 0
- moment_3 += 1 if m_a3 == true
- moment_3 += 1 if m_b3 == true
- moment_3 += 1 if m_c3 == true
- if m_e == true
- moment_3 += 1 if m_d3 == true
- elsif m_e == false
- moment_3 += 1
- end
- $game_switches[40] = true if moment_3 == 4
- $game_switches[40] = false if moment_3 != 4
- end
- end
复制代码 然后在事件的脚本中,输入这个使用:
$moment =
{""=>1,""=>2,""=>3,""=>4,""=>true}
aaa_a = From_moment.new
aaa_a.at_the_moment
按我的思路第40个开关应该是ON啊……怎么是OFF |
|