Random Treasure

tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
688
Reaction score
1,159
First Language
English
Primarily Uses
N/A
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.



Note: if you're copying this event similarly, don't forget to add event page with a self-switch checked A



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.



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[20]] \V[10] get
Credit and Thanks: kido0617

Terms of Use- Free for commercial and non-commercial use.

License- Public Domain
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,731
Reaction score
929
First Language
Dutch
Primarily Uses
N/A
Ty for posting this script :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Ok... so working on the official game guide for my game and its more than 150 pages...... wow. Well, I hope it will help a few players out.
RPG Maker Games Critique with Studio Blue, Episode 12: Amneron's Legacy starts now! Watch on Youtube and join the chat as we explore the world of Ellis!
Lost track of a huge brazilian wandering spider inside my house. In other news, I'm moving again.

Currently working on the second protagonist's story and her companion, making good progress. But I am looking forward to return to my other protagonist and continue his story and have him joined by a new companion. :)
mlogan wrote on alltheyuriz's profile.
Please be aware that our Status rules ask members not to make more than 2 status updates in 24 hours.

Forum statistics

Threads
105,475
Messages
1,013,955
Members
137,114
Latest member
brenadjnendad
Top