未命名触发器 008
事件
单位 - A unit 获得一件物品
环境
(Item-type of (Item being manipulated)) 等于 【初级合成物品】荣誉护盾
动作
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - 环境
And - All (Conditions) are true
环境
(Item-type of (Item carried by (Triggering unit) of type 贵族圆环)) 等于 贵族圆环
(Item-type of (Item carried by (Triggering unit) of type 刚盾)) 等于 刚盾
Then - 动作
物品 - Remove (Item carried by (Triggering unit) of type 贵族圆环)
物品 - Remove (Item carried by (Triggering unit) of type 刚盾)
英雄 - Create 【初级合成物品】荣誉护盾 and give it to (Triggering unit)
Else - 动作
Do nothing
为什么我是有了这个出发以后合成完物品英雄的物品栏里就有两个这个物品,而且,为什么我直接点合成的物品不用和成就能用了
触发是没有错的,但是你不能在商店出售“荣誉护盾”本身,只能出售“合成卷轴”,不然就会出现上面的情况。
当然,你也可以用触发来删除掉该物品,也就是:
[trigger]
未命名触发器 008
    事件
        单位 - A unit 获得一件物品
    环境
        (Item-type of (Item being manipulated)) 等于 【初级合成物品】荣誉护盾
    动作
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - 环境
                And - All (Conditions) are true
                    环境
                        (Item-type of (Item carried by (Triggering unit) of type 贵族圆环)) 等于 贵族圆环
                        (Item-type of (Item carried by (Triggering unit) of type 刚盾)) 等于 刚盾
            Then - 动作
                物品 - Remove (Item carried by (Triggering unit) of type 贵族圆环)
                物品 - Remove (Item carried by (Triggering unit) of type 刚盾)
            Else - 动作
                物品 - Remove (Item being manipulated)
                玩家 - Add (Charges remaining in (Item being manipulated)) to (Triggering player) 现有金钱
                游戏 - Display to (All players) the text: 合成失败,退还金钱。