|
4908| 2
|
[已经解决] 关于读取备注栏里面的数据 |
|
悬赏1星屑已解决
最佳答案这样
比如说武器ID5,就读取武器ID5后面的参数(用技能的note)
然后$data_weapons调用武器,读取其note参数
[pre lang="ruby" line="1"]
module RPG
class Skill
def pre_weaponcanshu
note.split(/[\r\n]+/).each { |line|
case line
when //i
return $1.to_i
end
}
return 0
end
def weaponcanshu
w=$data_weapons[pre_weaponcanshu]
w.note.sp ...
| ||
| ||
|
签名是什么?可以吃么?
|
||