RPG Maker Forums

EIS Random Items


A short script that lets you give items to the player randomly from a list (array) you declare.


This can be good if you want to replicate something like gathering points from Monster Hunter. Or, put a little bit of RNG in the items you wish to give to your player.


Version 1.00


Core Features

  • Random Item Gain



Script:


View attachment EISRandomItems.js


Instructions

  1. Place the script in your plugins folder with the same name EISRandomItem
  2. Place it below the system script.
  3. Enjoy





/*
//=============================================================================
// Functions
//=============================================================================
*
* KR.Helpers.gainRandomItem(array)
* This method takes an array of items that you wish to pool from.
* After that it will return an item to the player.
*
* Example: KR.Helpers.gainRandomItem(['weapon', 1, 'item', 1, 'item', 2]);
* These are case sensitive and refer to the type of item you want the player
* to gain.
*
* KR.Helpers.setItemGainAmount(Number)
* This method takes a number, which is used to set the amount of the item
* you gain from the game.
*
* Example: KR.Helpers.setItemGainAmount(2);
* This would set the gain amount permanently to 2 until the game is restarted.
* If you want to return it to 1, just say KR.Helpers.setItemGainAmount(1);
*
* Tip: You can also set a random Item gain like so:
* KR.Helpers.setItemGainAmount(KR.Helpers.randomNumber(1, 3));
* You'll get 1 - 3 as the number of items gained.
*/






ScreenShots

Screenshots:


EISRandomItem1.png







Credits:


Free for both commercial and non-commercial use.Credit with the name Kino or Endless Illusion Software.


Thanks:
I appreciate you using this script, and I'm glad that it's able to help you.


If there are any bugs/issue, please contact me via message on the forums.


Note:
If you have any ideas, please feel free to mention them here.

Latest Threads

Latest Posts

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,035
Messages
1,018,455
Members
137,821
Latest member
Capterson
Top