Limited Random Battles
Limited Random Battles v1.0By 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.
本贴来自国际rpgmaker官方论坛作者:DreamX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/limited-random-battles.54719/
页:
[1]