Anyone here that has played any game like: Diablo or Path of Exile and even Pokémon or Final Fantasy; will be familiar with the concept of a
Rare Spawn.
For those of you that aren't, a "Rare Spawn" is a variation of a monster, or perhaps an entirely different monster, that has only a small chance of appearing within the game world,
giving players either the added risk of a stronger enemy appearing, or the chance to take out a rare monster for equally rare rewards. (Or bragging rights in the case of Pokémon).
We can achieve this in RPG Maker MV by utilising the "Swap Enemy" Plugin by Yanfly (
Link here)
The plugin is designed to allow players to create a 'Swap Dummy' to place into a Troop that will randomly transform into a given enemy upon encountering, to make encounters more random.
But here we'll be using the Plugin to create a "Rare Spawn" enemy.
The first step is to create your 'Base' Monster:
Then create as many "Rare" monsters as you want, though 1 to 2 is probably the best:
For this Tutorial we will say Harbinger of Doom's ID is "7", and Harbinger of Destruction's ID will be "8".
-----------
Then in the Note Box of your Base Monster, insert the following:
<Swap: 7, 7, 7, 7, 7, 7, 7, 7, 7, 8>
By having Nine 7's and only One 8, we now have it set up so that when Monster "7" appears in an encounter there is a 10% chance (1/10) that it will instead be replaced by Monster "8".
By inserting multiple instances of the same ID, the chance that that monster will replace the Base Monster will increase proportional to how many instances there are and how many IDs you have in total in the Tag.
So if you wanted to have a 10% chance for a Rare monster to spawn, but you'd want an even chance of that Rare being one of two different variations, you can
insert Eighteen 7's, One 8 and One 9, like so: <Swap: 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 9>.
This give's you have 10% Chance (2/20) that a Rare Monster will be swapped in, and a 5% Chance (1/20) that Monster 8 will be the one to Spawn.
This get's more tedious as the chance to spawn becomes lower, as you require a higher Total Number of ID's in the Tag.
----------
In this image I had swapped out the Demon pictures for Cockatrice's, simply to fit more on the screen, but here you can see that out of the 8 monsters,
only one (Bottom Center) has been replaced by it's Rare counterpart.
If I were to run this battle multiple times, it's likely that none of the monsters will swap out, but also possible that multiple could become rare variations.
I hope this tutorial inspires people to include this mechanic into their games and to add some really fun depth to their battles.
本贴来自国际rpgmaker官方论坛作者:AthenaWhisper处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:
https://forums.rpgmakerweb.com/threads/how-to-create-rare-monsters-using-yanflys-swap-enemies-plugin.66271/