~ CustomPrices~
For the latest updates please visit my blog. I won't update this thread anymore.
Hey all.
I wrote this script when I wanted a special merchant in my game who travels around the world and meets the party at the remotest places just to offer them special items for
special prices.
This script will allow you to change the default sale price if you desire. On top of that you can change two variables in game to dynamically change purchase and sale prices.
Each item, weapon and armour can have its own sale price defined with a notetag. The things you put into the notetag will run through an eval, so you may even use formulas.
Instructions:
Place this script below most of your other scripts. I mostly only use Yanfly Scripts so there MAY be compatibility issues with other scripts which modify the same methods.
Screenshot:
Script:
Get it at my
Blog.
Changelog:
SpoilerV 1.1.1
- You may now stop a "rand" formula from changing the price all the time
- Fixed wrong module name crash (D'oh...)
V 1.1
- You may now use note tags to change the default purchase price
- Renamed script to "Custom Prices"
V1.0
- First release
Future Versions:
Tell me your ideas and I'll see if I can find some time.
Thanks to:
- Yanfly for his scripts from which I've learnt a lot about scripting
Terms of Use:
Direct link to my Terms of Use document:
CLICK
本贴来自国际rpgmaker官方论坛作者:Alistair处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/custom-sale-price.39227/