加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 金芒芒 于 2023-10-21 15:09 编辑
如何用事件使用一个物品让
脚本56行ATK_CODE[data_id] = nil添加脚本"@target.add_state(4) if rand(2) == 0;"
------------------效果ATK_CODE[data_id] = "@target.add_state(4) if rand(2) == 0;"
module Figter_data data_id = 2 #=====基本、模型信息========== CHARACTER_NAME[data_id] = "E_Horseman" #头像 ATK_SE[data_id] = "swordbasic_" ATK_SE_NUM[data_id] = 11 DEF_SE[data_id] = "shield_cav_" DEF_SE_NUM[data_id] = 3 S_ATK_SE[data_id] = nil S_ATK_SE_NUM[data_id] = nil AMMO_NAME[data_id] = nil AMMO_D_NAME[data_id] = nil S_SHOOT_SE[data_id] = nil S_SHOOT_SE_NUM[data_id] = nil S_PASSBY_SE[data_id] = nil S_PASSBY_SE_NUM[data_id] = nil S_DROP_SE[data_id] = nil S_DROP_SE_NUM[data_id] = nil S_FLY_TYPE[data_id] = nil #=======类别================= THE_NAME[data_id] = "帝国骑兵" IS_CAL[data_id] = true IS_ARC[data_id] = false HEAVY[data_id] = true LABEL[data_id] = 3 #text = Figter_data::DESCRIPTION[id].clone DESCRIPTION[data_id] = "赫西帝国标准骑兵,中型近战骑兵,多数由贵族从侍从中选举" #==========属性============== HP_MAX[data_id] = 400 AMMOR_HP[data_id] = 25 SHD_HP[data_id] = 65 BASE_ATK[data_id] = 70 BRO_ATK[data_id] = 15 S_BASE_ATK[data_id] = 0 S_BRO_ATK[data_id] = 0 ATK_SKILL[data_id] = 40 DEF_SKILL[data_id] = 30 ANTI_CAV[data_id] = 0 ANTI_INF[data_id] = 35 CHARGE_BOUN[data_id]=195 MORALE[data_id] = 60 #100max CRITICAL_HIT[data_id] = 15 EXPLOSION_SETTINGS[data_id] = nil ATK_FR[data_id] = 30 ATK_RANGE[data_id] = 1 ENGAGE_RANGE[data_id] = 1 ENGAGE_RANGE_MIN[data_id] = 1 MOVEMENT_SPEED[data_id] = 3.75 ACCURATCY[data_id] = 100 LIVE_CHANCE[data_id] = 20 AMMO_MAX[data_id] = 0 ATK_CODE[data_id] = nil #===========战略用============= EXP[data_id] = 10 PRICE[data_id] = 325 EXP_NEED[data_id] = 50 NEXT_LEVEL[data_id] = [] CAPTAIN_SKILL[data_id] = nil end
module Figter_data
data_id = 2
#=====基本、模型信息==========
CHARACTER_NAME[data_id] = "E_Horseman" #头像
ATK_SE[data_id] = "swordbasic_"
ATK_SE_NUM[data_id] = 11
DEF_SE[data_id] = "shield_cav_"
DEF_SE_NUM[data_id] = 3
S_ATK_SE[data_id] = nil
S_ATK_SE_NUM[data_id] = nil
AMMO_NAME[data_id] = nil
AMMO_D_NAME[data_id] = nil
S_SHOOT_SE[data_id] = nil
S_SHOOT_SE_NUM[data_id] = nil
S_PASSBY_SE[data_id] = nil
S_PASSBY_SE_NUM[data_id] = nil
S_DROP_SE[data_id] = nil
S_DROP_SE_NUM[data_id] = nil
S_FLY_TYPE[data_id] = nil
#=======类别=================
THE_NAME[data_id] = "帝国骑兵"
IS_CAL[data_id] = true
IS_ARC[data_id] = false
HEAVY[data_id] = true
LABEL[data_id] = 3
#text = Figter_data::DESCRIPTION[id].clone
DESCRIPTION[data_id] = "赫西帝国标准骑兵,中型近战骑兵,多数由贵族从侍从中选举"
#==========属性==============
HP_MAX[data_id] = 400
AMMOR_HP[data_id] = 25
SHD_HP[data_id] = 65
BASE_ATK[data_id] = 70
BRO_ATK[data_id] = 15
S_BASE_ATK[data_id] = 0
S_BRO_ATK[data_id] = 0
ATK_SKILL[data_id] = 40
DEF_SKILL[data_id] = 30
ANTI_CAV[data_id] = 0
ANTI_INF[data_id] = 35
CHARGE_BOUN[data_id]=195
MORALE[data_id] = 60 #100max
CRITICAL_HIT[data_id] = 15
EXPLOSION_SETTINGS[data_id] = nil
ATK_FR[data_id] = 30
ATK_RANGE[data_id] = 1
ENGAGE_RANGE[data_id] = 1
ENGAGE_RANGE_MIN[data_id] = 1
MOVEMENT_SPEED[data_id] = 3.75
ACCURATCY[data_id] = 100
LIVE_CHANCE[data_id] = 20
AMMO_MAX[data_id] = 0
ATK_CODE[data_id] = nil
#===========战略用=============
EXP[data_id] = 10
PRICE[data_id] = 325
EXP_NEED[data_id] = 50
NEXT_LEVEL[data_id] = []
CAPTAIN_SKILL[data_id] = nil
end
|