求大神帮我做一个mod,反编译老是空白变脑残了
本帖最后由 月神の域 于 2015-7-28 15:32 编辑命运牌0消耗,和命运牌的技能冷却减少。这个能改吗,我只求改这俩,主要是改命运牌的技能冷却嗯(⊙_⊙)那一个牌技能10多秒太蛋疼啦,降到1.2秒最好 命运牌 0 消耗,命运牌的技能冷却 2 秒
下載:http://pan.blacksheepgame.com/s/1eQD9C6A
所有命運卡牌的技能時間都要改成0嗎? sst311212 发表于 2015-7-28 15:07
所有命運卡牌的技能時間都要改成0嗎?
可以啊,能做吗吗 路过
可以做哦,很容易哦 aaaagq 发表于 2015-7-28 15:38
路过
可以做哦,很容易哦
能帮下嘛,╭(╯3╰)╮ 試過應該是沒問題的,自己包回去行的吧
另外新增一個叫做 Z_DestinyCard.luaSA_Card_Divine_Regen.cooldown = 0
SA_Card_Divine_Remove_Debuff_On_Kill.cooldown = 0
SA_Card_Wicked_Focus_On_Overkill.cooldown = 0
SA_Card_Wicked_Speed_On_Kill.cooldown = 0
SA_Card_TheSlayer_E1_1.cooldown = 0
SA_Card_TheSlayer_E1_2.cooldown = 0
SA_Card_TheSlayer_E1_3.cooldown = 0
SA_Card_TheBishop_E1_1.cooldown = 0
SA_Card_TheBishop_E1_2.cooldown = 0
SA_Card_TheBishop_E1_3.cooldown = 0
SA_Card_TheMoon_E1_1.cooldown = 0
SA_Card_TheMoon_E1_2.cooldown = 0
SA_Card_TheMoon_E1_3.cooldown = 0
SA_Card_TheSun_E1_1.cooldown = 0
SA_Card_TheSun_E1_2.cooldown = 0
SA_Card_TheSun_E1_3.cooldown = 0
SA_Card_Justice_E1_1.cooldown = 0
SA_Card_Justice_E1_2.cooldown = 0
SA_Card_Justice_E1_3.cooldown = 0
SA_Card_TheInventor_E2_3.cooldown = 0
SA_Card_TheBarbarian_E1_2.cooldown = 0
SA_Card_TheBarbarian_E2_2.cooldown = 0
SA_Card_TheSaint_E2_3.cooldown = 0
SA_Card_TheDevil_E2_3.cooldown = 0
function SpentDestinyPoints()
local spent_points = 0
local spent_slots = 0
local items = CharacterStorage and CharacterStorage.Items
for slot = DestinyCardsIdx, table.maxn(items) do
local card = items
if card then
spent_points = spent_points
spent_slots = 1 + slot - DestinyCardsIdx
end
end
return spent_points, spent_slots
end
function ValidateDestinyCards()
local spent_points = 0
local items = CharacterStorage and CharacterStorage.Items
for slot = DestinyCardsIdx, items and table.maxn(items) or 0 do
local max_slots = HeroDestinySlots()
local max_points = HeroDestinyPoints()
local card = items
if slot >= DestinyCardsIdx + max_slots or card and max_points < spent_points then
items = nil
if card then
AddToInventory(card)
end
elseif card then
spent_points = spent_points
end
end
return spent_points
end Victor Vran 2.0 製作 Mod 簡易教學 [附影片]
看完就会了ZZZ.lua可以这样
-------------------------------------------------------------------------------------
--命运卡有空槽就可以装备
function DestinyCard:GetMaxPointsChange()
local max_points = 900 --0
local effects = self.effects
if effects then
for i = 1, #effects do
local effect = g_Classes]
local modifiers = effect and effect.modifiers
max_points = max_points + (modifiers and modifiers.destiny_points or 0)
end
end
return max_points
end
function ValidateDestinyCards()
local spent_points = 0
local items = CharacterStorage and CharacterStorage.Items
for slot = DestinyCardsIdx, items and table.maxn(items) or 0 do
local max_slots = HeroDestinySlots()
local max_points = HeroDestinyPoints()
local card = items
if slot >= DestinyCardsIdx + max_slots or card and max_points < spent_points + card.acost then
items = nil
if card then
AddToInventory(card)
end
elseif card then
--spent_points = spent_points + card.acost
end
end
return spent_points
end
-------------------------------------------------------------------------------------
--掉率增加9999%
WeaponModifiers.luck.param_min = 9999
WeaponModifiers.luck.param_max = 9999
-------------------------------------------------------------------------------------
--太阳月亮爆发距离及冷却时间
--SA_Card_TheMoon_Explosion.attack_radius = 20 * guim
SA_Card_TheMoon_E1_1.attack_radius = 20 * guim
SA_Card_TheMoon_E1_2.attack_radius = 20 * guim
SA_Card_TheMoon_E1_3.attack_radius = 20 * guim
SA_Card_TheMoon_E1_1.cooldown = 3000
SA_Card_TheMoon_E1_2.cooldown = 3000
SA_Card_TheMoon_E1_3.cooldown = 3000
--SA_Card_TheSun_Explosion.attack_radius = 20 * guim
SA_Card_TheSun_E1_1.attack_radius = 20 * guim
SA_Card_TheSun_E1_2.attack_radius = 20 * guim
SA_Card_TheSun_E1_3.attack_radius = 20 * guim
SA_Card_TheSun_E1_1.cooldown = 4000
SA_Card_TheSun_E1_2.cooldown = 4000
SA_Card_TheSun_E1_3.cooldown = 4000
sst311212 发表于 2015-7-28 15:40 static/image/common/back.gif
試過應該是沒問題的,自己包回去行的吧
另外新增一個叫做 Z_DestinyCard.lua
我先试试...
谢大神
冷却时间缩短只能用在击杀回血之类的上面,太阳月亮那样伤害的会造成僵直
11楼完全没测试过,有何用 juenii 发表于 2015-7-29 01:07 static/image/common/back.gif
冷却时间缩短只能用在击杀回血之类的上面,太阳月亮那样伤害的会造成僵直
...
我在自己的電腦上,同時裝上太陽及月亮卡,2 秒冷卻,沒有僵直問題。
juenii 发表于 2015-7-29 01:11 static/image/common/back.gif
11楼完全没测试过,有何用
你有測過嗎?在我的電腦,兩秒冷卻時間,沒有僵直問題。
juenii 发表于 2015-7-29 01:07 static/image/common/back.gif
冷却时间缩短只能用在击杀回血之类的上面,太阳月亮那样伤害的会造成僵直
...
攻击范围20米,外加太阳月亮无冷却,在蜘蛛BOSS处,一剑下去能同时触发超过10个以上太阳月亮卡片特效,未发现僵直,顶多由于电脑性能,有非常不明显的卡顿。如果是电脑性能的原因,请自行修改冷却时间,至少游戏速度自己能接受的状态。
页:
[1]