Project1

标题: 怎么做装备上限限制 [打印本页]

作者: 清明上河図    时间: 2020-2-3 04:29
标题: 怎么做装备上限限制
本帖最后由 清明上河図 于 2020-2-3 20:08 编辑

想把装备获取的数量做个上限,

用了yep物品核心,一些装备是

独立物品。  

yep物品核心设置装备最大数,但似乎还能

获得装备,不懂是我设置错了还怎么的。

有没有大佬帮忙看下。

360截图17290506114123130.jpg (103.31 KB, 下载次数: 12)

360截图17290506114123130.jpg

360截图1757111486135121.jpg (129.01 KB, 下载次数: 17)

360截图1757111486135121.jpg

作者: kvex1    时间: 2020-2-3 07:37
本帖最后由 kvex1 于 2020-2-3 07:42 编辑

简单测试了一下,设置Max Weapons似乎只能限制商店购买。
如果限制只能带十把武器,满了的情况下就不能再从商店购买第十一把了,然而用事件获得武器或者敌人掉落获得武器却可以超过这个上限。


翻了翻奶牛的YEP教程,Yanfly自己在设计ItemCore的时候就是这样的:

Now, why is this? Because not every scenario can be envisioned by the developer. In most cases, the developer can be short sighted and may not be aware of the player’s inventory limits at the time. So, to mitigate this, I made it possible for the player to go above the limit but only through events and battle drops.
为什么呢?因为开发者不可能考虑所以情况。大多数下,开发者不能知道玩家的仓库容量。所以,为了减轻这种情况,除非有事件或者战斗掉落,否则玩家只能被限制数量。

Why those two? Because of key items. Key items, if given by events and/or battle drops, are a necessity to progress in a game. Should the developer be unaware of the player’s inventory and provide a key item that cannot be inserted into the inventory, the player will be locked out of the game through no fault of their own. So to prioritize the player, this system is enabled.
又为什么呢?因为关键物品。在游戏中,通过事件或者战斗给与关键物品是游戏重要的换届。如果开发者不知道玩家库存,并且提供的关键物品无法进入仓库,玩家将会被锁住游戏进程不能游戏。所以优先考虑玩家,这个系统被打开。


作者:沧笙
链接:https://www.jianshu.com/p/5066a6679d9e
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

作者: Fan723    时间: 2020-2-3 11:12
你这应该是掉落的独立装备太多了,建议少掉落随机装备,改成掉落材料,然后玩家通过用材料去合成、强化、镶嵌来改造装备,这样可玩性又多了,玩家又不会一味往囤积装备上钻去。
作者: walf_man    时间: 2020-2-3 20:20
fanzi大佬这个办法可谓是一举两得一箭双雕呀,学习了




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1