找回密码
 点一下
查看: 988|回复: 1

关于合成物品的一些问题

[复制链接]
发表于 2011-3-10 19:56:19 | 显示全部楼层 |阅读模式
未命名触发器 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
为什么我是有了这个出发以后合成完物品英雄的物品栏里就有两个这个物品,而且,为什么我直接点合成的物品不用和成就能用了
发表于 2011-3-13 12:35:06 | 显示全部楼层
触发是没有错的,但是你不能在商店出售“荣誉护盾”本身,只能出售“合成卷轴”,不然就会出现上面的情况。
当然,你也可以用触发来删除掉该物品,也就是:
[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: 合成失败,退还金钱。

[/trigger]
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-1 00:12 , Processed in 0.126686 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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