Limited Random Battles

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
819
First Language
English
Primarily Uses
Limited Random Battles v1.0
By DreamX

 
Introduction/Features
With a variable you can put a limit on the number of random battles on a map.


Patch Notes


None


How to Use
Right click and save as a .js file.


 * Put this notetag in your map <random_battle_variable:x> with x being the
 * variable id you want to use for the remaining amount of random battles on
 * the map. The value will be decremented each time you encounter a random
 * battle and when the value reaches 0, random battles no longer occur nor are
 * steps recorded towards the next encounter. See the parameters if you wish to
 * pause this function. Since this is a variable you are free to manipulate the
 * value as you wish.



 * Maps without the notetag will function normally.


If you want to get the number of battles remaining for the current map, use DreamX.LimitedRandomBattles.GetRandomBattlesRemaining()


It will return an empty string if random battle limits aren't set up properly for the map.


Script


Credit and Thanks
- DreamX


Author's Notes/Terms of Use
Free to use and modify for commercial and noncommercial games, with credit.
 
Last edited by a moderator:

Lear

Veteran
Veteran
Joined
Aug 12, 2012
Messages
56
Reaction score
11
Primarily Uses
Very nice!
Reminds me of Cthulhu Saves the World
 

DreamX

Veteran
Veteran
Joined
May 30, 2015
Messages
816
Reaction score
819
First Language
English
Primarily Uses
As requested, I've uploaded the script in a usable format after the forum update scrambled it.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

buinguyenhoangtho wrote on fizzly's profile.
Hello @fizzly, i would like to use your asset/ resource for my project ( is maybe commercial ). May i have your permission? Thanks you !
Working on breaking the limits of RPGMaker! :cool:
I have 470+ hours on RMMV but have only made a demo game, is this normal? :kaoswt: (I lose motivation a lot plus I use a 32gb laptop, so..)
I like Iron Maiden.
Benku wrote on Magnus0808's profile.
Hey man you helped me out a long time ago with a plugin i was wondering if you can help me out one more time since its literally the last thing i need help with if not is cool but id figured id ask you one more soild.

Forum statistics

Threads
95,427
Messages
929,082
Members
125,659
Latest member
AphoticAmaranth
Top