找回密码
 点一下
查看: 1507|回复: 7

[已解決]items 共享 cooldown 的問題

[复制链接]
发表于 2010-11-9 10:48:35 | 显示全部楼层 |阅读模式
其實就是我那個圖發現的問題. 同一種的 healing potion 會有一個 cooldown, 但不同的 healing potion (有三種: minor healing potion, healing potion 和 major healing potion) 就各自有各自的 cooldown. 於是玩家可以每種 potion 各買一個然後在短時間內用幾種不同的 healing potion, 引起平衡問題.

所以我想把不同類的 healing potion 共用一個 cooldown. 我改了minor / major healing potion => item => cost => cooldown => link 為 item/healingpotion, 但改完後, 原本有 5 個 charge 的 minor / major healing potion 都變為只有一個 charge. 於是我連item => cost =>charge => link 也改為 item/healingpotion, 也沒有分別.

所有的 healing potion 的 charge => location 都是 ability, cooldown location 都是 unit.

我想應該是我用錯了 link. 這個 link 應該怎設定才對?
发表于 2010-11-9 11:09:06 | 显示全部楼层
地图传下看看。
回复

使用道具 举报

 楼主| 发表于 2010-11-9 15:29:46 | 显示全部楼层
原本想把三種 healing potion 抄到一個演示地圖, 但抄好後演示地圖的三種 healing potion 都運\作正常, 但原本大地圖的 healing potion 就依舊有問題..... 無語中......

另外, 順便問問把一個地圖中的單位抄到第二個圖, 除了把所有 unit, actor, behavior 等等一個個抄外, 還有沒有簡單些的方法?
回复

使用道具 举报

发表于 2010-11-9 16:11:18 | 显示全部楼层
1.2之后会比较方便。。。目前……就这样吧?
回复

使用道具 举报

 楼主| 发表于 2010-11-9 22:39:31 | 显示全部楼层
剛才再研究一下, 發現大地圖的 healing 的 effect cost 內改變了的設定在地圖關後再重開會被重置. 加上item抄到新地圖沒問題, 于是懷疑是 類似之前dependency 的問題. 這幾個 healing potion 都是抄原有的 healingpotioninstant 的. 我把它們的 "based on" 由 "defaulthealingtest" 改為 "defaultitem" 結果就正常運\作了!!!

不知是不是 bug, 還是有其他解釋.....
回复

使用道具 举报

发表于 2010-11-10 01:33:41 | 显示全部楼层
你是不是在大地图里做了3个都是复制黏贴的?。。。
回复

使用道具 举报

 楼主| 发表于 2010-11-10 09:08:49 | 显示全部楼层
是的. 不過已解決.
回复

使用道具 举报

发表于 2010-11-10 09:37:05 | 显示全部楼层
<CItemEffect default="1" id="HealingPotionTEST" parent="POTION">
        <Face value="Heal"/>
        <Flags index="DropOnDeath" value="1"/>
        <Flags index="KillWhenDepleted" value="1"/>
        <EffectCost>
            <Charge CountMax="5" CountStart="5" CountUse="1"/>
            <Cooldown Location="Unit" TimeUse="1"/>

        </EffectCost>
        <Effect value="HealingPotionTEST"/>
        <Range value="1"/>
    </CItemEffect>

继承系统类的时候 看看系统类到底有什么设置 这样心里才有底
如果可能父类按照自己的需求做吧~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 点一下

本版积分规则

Archiver|移动端|小黑屋|地精研究院

GMT+8, 2024-5-22 18:14 , Processed in 0.030328 second(s), 18 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表