How to create Rare Monsters using Yanfly's "Swap Enemies" Plugin

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:


[IMG]http://i.imgur.com/blB5s1H.png[/IMG]


Then create as many "Rare" monsters as you want, though 1 to 2 is probably the best:


[IMG]http://i.imgur.com/8uK12tF.png[/IMG]


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.


[IMG]http://i.imgur.com/xmmkmOl.png[/IMG]


I hope this tutorial inspires people to include this mechanic into their games and to add some really fun depth to their battles.
you can roll a randon variable, and set conditional branch, "if "random variable" ≤ 5, start battle enemy 1, else start battle enemy 2"
That Skeleton battler though.. HHAAHAHAHAA!!
That Skeleton battler though.. HHAAHAHAHAA!!



I'd prefer you comment on what the tutorial is about, rather than mock my WIP Art.
@AthenaWhisper I apologize if I had given you the impression I was mocking it. I actually think it's cute as hell!! 🙂


With the little red shoes.. it's adorable!!


And great work with the tutorial. The more knowledge we put out there to share, the better the community becomes! I have been considering it in my current project. Similarly to how Breath of Fire series has the occasional rare/gold Slime.


-Mia
@AthenaWhisper I apologize if I had given you the impression I was mocking it. I actually think it's cute as hell!! 🙂


With the little red shoes.. it's adorable!!


And great work with the tutorial. The more knowledge we put out there to share, the better the community becomes! I have been considering it in my current project. Similarly to how Breath of Fire series has the occasional rare/gold Slime.


-Mia



Oh well in that case, thanks 😀


It's one of my first attempts at spriting and even though I'm only planning for my first game to be quite small, I want to try to use as many custom assets as possible. Even if they're being based off of the RPGMV resources.
Better than what I can do. I frankensprited a moogle (available in the MV resources) from generator parts.. and it.. well.. could be better. ?


Is your project on the Early Development thread?
Better than what I can do. I frankensprited a moogle (available in the MV resources) from generator parts.. and it.. well.. could be better. ?


Is your project on the Early Development thread?



Nah it's not currently, I might put it up once I have it at a state I can be somewhat happy with.
I'm a bit OCD about my projects.. I've gotta at LEAST have 50% of my database complete before I upload.. but I rarely ever finish a project anyway. Lol. My current project is pretty deep right now, -!: I love it.  I hope to see it to the end!
I'm a bit OCD about my projects.. I've gotta at LEAST have 50% of my database complete before I upload.. but I rarely ever finish a project anyway. Lol. My current project is pretty deep right now, -!: I love it.  I hope to see it to the end!



I can't even count the amount of games I started and then gave up on. But I'm determined to see this one through.
yup. i have to REALLY want to complete a game to work on it. Mostly I just tinker with RPGMaker's to keep my brain busy. 🙂 My current main project started out as a Final Fantasy (original) Remake.. that has slowly turned into so, so much more.. that I am turning it into it's own game, which will be heavily Final Fantasy influenced. And I love it!! I am excited to work on it!! And I thought about using the Enemy Swap to make a rare enemy here and there.. and I still might.. cuz I think it would add a little flavor to the encounters.. which is what lead me to this thread in the first place. 🙂
Nice tutorial!


However, if you're gonna use a plugin might I suggest Mr Trivel's Rare Enemies plugin?


https://mrtrivelrpg.wordpress.com/2016/02/14/rare-enemies/


This way you don't have to make so many note tags for the same monster.


Really useful for Pokemon games with shinies.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-create-rare-monsters-using-yanflys-swap-enemies-plugin.66271/