じ☆ve冰风 发表于 2026-7-31 13:00:32

Shop adds new Items when Selling

Author: Mr Trivel
Idea from: Etrian Odyssey

Name: New Items in Shop on Sell

Version: 1.0

Features: 

Instead of having default shop where you list items in it. Now you can call another type of shop. Which gets new items as you sell specific items to it.

E.g. Sell 5 Copper Ore to unlock Copper Dagger.

(You can still use normal shop, too!)


Screenshots: 

Spoilerhttps://i.imgflip.com/9isnz.gif



Instructions: 

Call the item buy by using:

SceneManager.call(MrTS_Dynamic_Shop)

In item’s note tag, write:

                Code:       
<Shop:i: X, Y>


i – item, w – weapon, a – armor

X – ID of the item/weapon/armor

Y – Quantity

E.g.:

                Code:       
<Shop:i: 10, 12w: 2, 5>


Means you need to have 12 of Item with ID 10 sold at the shop and 5 of Weapon with ID 2 also sold at the shop to unlock that item.

 

Or you can use

                Code:       
<Shop: Default>


To have item be automatically unlocked in the shop.

Script: <Link: Pastebin>

Blog: <Link: On blog>


本贴来自国际rpgmaker官方论坛作者:Mr. Trivel处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/shop-adds-new-items-when-selling.28325/
页: [1]
查看完整版本: Shop adds new Items when Selling