找回密码
 点一下
查看: 540|回复: 0

[Dolors.Yong][演示][物品自动打捆]

[复制链接]
发表于 2006-3-28 15:54:05 | 显示全部楼层 |阅读模式
因为很多人没找到触发中的一些重要部分,所以还是做了这个演示。
此触发的主要功能就是当英雄得到相同的物品时,会自动将同种的物品打捆到一个物品格子中,从而起到节约物品栏的作用。
这只是一个不错的辅助手段,它同翻页物品栏结合起来才是最强的RPG之必备功能。
部分触发命令:
- Events
    - Unit - A unit Acquires a item
- Conditions
    - (Charges remaining in (Item being manipulated)) Not equal to 0(依你的情况来设置这个条件,用于检查打捆的物品是哪一类)
- Actions
    - For each (Integer A) from 1 to 6 , do (Actions)
       - Loop - Actions
          - If - Conditions
             - (Item being manipulated) Not equal to (Item carried by (Triggering unit) in solt (Integer A))
             - (Item-type of (Item being manipulated)) Equal to (Item-type of (Item carried by (Triggering unit) in solt (Integer A)))
             - ((Charges remaining in (Item being manipulated)) + (Charges remaining in (Item carried by (Triggering unit) in solt (Integer A)))) Less than or equal to(你所希望的最大值,例如6)(这个条件可以检查物品打捆的最大值,不限制则无须此条件)
          - Then - Actions
             - Item - Set charges remaining in (Item carried by (Triggering unit) in solt (Integer A)) to ((Charges remaining in (Item being manipulated)) + (Charges remaining in (Item carried by (Triggering unit) in solt (Integer A))))
             - Item - Remove (Item being manipulated)
             - Skip remaining actions
          - Else - Actions
             - Do nothing
您需要登录后才可以回帖 登录 | 点一下

本版积分规则

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

GMT+8, 2024-9-28 09:22 , Processed in 0.034994 second(s), 20 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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