赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 1 |
经验 | 535 |
最后登录 | 2020-5-5 |
在线时间 | 1 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 1 小时
- 注册时间
- 2006-11-3
- 帖子
- 22
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 MouseBus 于 2009-10-31 12:01 编辑
问题:
1,“Actors.rxdata”这种数据库文体怎么能不通过rmxp打开和写入?
rmvp的自带的数据库界面用起来不方便,还是想直接用记事本方式编辑,也能公然在上班时间弄嘛,而且加属性改属性什么的都方便。
2,如果不能直接修改数据库,我需要重新定义一些数据库内容,例如技能。
(以下具体代码没有用)
module RPG
class Skill
def initialize
@id = 0
@name = ""
@icon_name = ""
@description = ""
@scope = 0
@occasion = 1
@animation1_id = 0
@animation2_id = 0
@menu_se = RPG::AudioFile.new("", 80)
@common_event_id = 0
@sp_cost = 0
@power = 0
@atk_f = 0
@eva_f = 0
@str_f = 0
@dex_f = 0
@agi_f = 0
@int_f = 100
@hit = 100
@pdef_f = 0
@mdef_f = 100
@variance = 15
@element_set = []
@plus_state_set = []
@minus_state_set = []
end
attr_accessor :id
attr_accessor :name
attr_accessor :icon_name
attr_accessor :description
attr_accessor :scope
attr_accessor :occasion
attr_accessor :animation1_id
attr_accessor :animation2_id
attr_accessor :menu_se
attr_accessor :common_event_id
attr_accessor :sp_cost
attr_accessor :power
attr_accessor :atk_f
attr_accessor :eva_f
attr_accessor :str_f
attr_accessor :dex_f
attr_accessor :agi_f
attr_accessor :int_f
attr_accessor :hit
attr_accessor :pdef_f
attr_accessor :mdef_f
attr_accessor :variance
attr_accessor :element_set
attr_accessor :plus_state_set
attr_accessor :minus_state_set
end
end
可以把它插入到main脚本前,这样会影响执行效率么?
如果直接用脚本输入全部数据库内容,会影响执行效率么? |
|