tale

Volunteer
Veteran
Joined
Dec 16, 2016
Messages
819
Reaction score
1,435
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.

NuY9Jhl.png


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

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.

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[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,783
Reaction score
960
First Language
Dutch
Primarily Uses
N/A
Ty for posting this script :)
 

Latest Threads

Latest Posts

Latest Profile Posts

Ugh, I opened MV after a few weeks and I'm completely lost on what I was working on.
Does it happen to someone else or am I the only disorganized one around? :kaoswt:
xH5Fk2f.jpg
Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.
Hmm... Game has 91 views, 25 downloads, 5 reviews and netted me 7 additional followers. Meanwhile the image I posted just yesterday on Imgur to showcase it has 45,197 views. Interesting, I think I have a new advertising idea. Also Twitter? The post got 16 retweets, 20 likes, and 1,683 views.... And a whole 3 hits to my game, completely valueless. I am glad I did this game jam, this information is quite valuable.
We're playing another Touch the Stars game jam entry, come join us! :D

Forum statistics

Threads
113,658
Messages
1,076,490
Members
147,678
Latest member
SLTY
Top