Random Treasure
Random Treasure - 2018/08/03 (Ver.1.0)Creator name: kido0617
Overview
Get randomize items as an event.
Installation
Paste this script above Main.
Set-up
After installing this script, use "Random_Treasure::reset" script call in an event.
Items are registered in the shop process after this command which randomizes items.
Shop does not open. Prices set are based on probability of obtaining an item.
https://i.imgur.com/NuY9Jhl.png
Note: if you're copying this event similarly, don't forget to add event page with a self-switch checked A
https://i.imgur.com/BWE2OAh.png
The price of Hi-Potion, for example, is a probability of receiving 10/20.
Next setting up a treasure chest. When using "Random_Treasure::get" script call-
an item is randomly obtained.
https://i.imgur.com/EIO8R9J.png
How to display message for obtained items
Item name storage variable and item icon number storage variable have to be prepared.
If you use a variable number, item name, and the icon number will be entered in the variable of that number.
Be sure to add this module script below the Random Treasure script.
Code:
module RANDOMTREASURE
NAME_VAR = 10 #Variable number to store acquired item name
ICON_VAR = 20 #Variable number for storing icon number of the acquired item
end
You can display the items and icons obtained by entering the following code inside the Text window.
(The variable number is the value specified above)
Code:
\I[\V] \V get
Credit and Thanks: kido0617
Terms of Use- Free for commercial and non-commercial use.
License- Public Domain
本贴来自国际rpgmaker官方论坛作者:ovate处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/random-treasure.109211/
页:
[1]