sdgn 发表于 2021-6-3 13:42
謝謝...請問如何應用呢? 怎麼放入變數中?
(抱歉 太久沒碰)
time = Time.now obj = [time.year, time.mon, time.mday] obj_id = [1, 2, 3] # 指定123号变量分别对应年月日 obj.each_with_index do |var, i| $game_variables[obj_id[i]] = var end
Cupidk爱呗茶 发表于 2021-6-1 22:48
time = Time.now
p time.year, time.mon, time.mday
分别获取系统的年月日
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |