ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,804
First Language
English
Primarily Uses
N/A
Random Treasure - 2018/09/05 Ver.1.3

Creator name: kido0617

Overview
Get randomize items as an event.

Set-up
After installing this plugin, use "RandomTreasure reset" as a plugin command for 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.

eSrA8Aq.png


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

vpqjqQL.png


You can change the probability through specify Price in Shop Processing setup.
The price of Dispel Herb, for example, is a probability of receiving 10/20.

Next setting up a treasure chest. When using "RandomTreasure get" plugin command-
an item is randomly obtained.

wKoTxNS.png


How to display message for obtained items

You can get "Last Get" Text plugin here: https://forums.rpgmakerweb.com/index.php?threads/last-get-text-loss-get-text.109846/

After using the "RandomTreasure get" plugin command
Show Text in the event with
Code:
\lastGet get

You can download js file from the thread attachment or Dropbox link: https://www.dropbox.com/s/p9hlc3espapr2l3/RandomTreasure.js?dl=1

Credit and Thanks: kido0617

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

License- Public Domain

There's also a VX Ace version of Random Treasure.
 

Attachments

  • RandomTreasure.js
    4.6 KB · Views: 41
Last edited:

TenTranVN

Regular
Regular
Joined
Apr 13, 2017
Messages
191
Reaction score
20
First Language
Vietnam
Primarily Uses
RMMV
it not working with me
 

ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,804
First Language
English
Primarily Uses
N/A
Works for MV version 1.5.1 or below
 

ovate

tale
Regular
Joined
Dec 16, 2016
Messages
1,054
Reaction score
1,804
First Language
English
Primarily Uses
N/A
It does work in 1.6.2-

If it doesn't work, maybe they haven't followed the eventing part correctly. Perhaps the first event is missing an add event page with a self-switch checked A
 
Last edited:

Latest Threads

Latest Profile Posts

S961pus.gif


Me every time I leave my 11am class. I'm not a morning person.
Curiosity kills cats. Not people. Remain ever curious!
"You dont have to negotiate if they dont have a hostage" :kaopride:
sketch1701194888871.png
Spiffing up maps is actually a lot of fun.
So the concept for my Game Jam project is way more than I can complete before the deadline. But I think I found a way to get the core done and make the incomplete parts either not really noticeable or make them a part of the story for now. That sneaky, dastardly Krampus! Then I can complete the rest. Did I mention that this is fun?

Forum statistics

Threads
136,551
Messages
1,267,455
Members
180,226
Latest member
Stormswinds
Top