Troop Placeholders

This script allows you to create troop "placeholders". These are special types of enemies that will be replaced with an actual enemy when they are encountered, allowing you to create random troops while managing them using the troop editor.


Each troop contains a set of "placeholder rules". These rules are used to determine how the placeholders can be populated. The rules come with a number of options, and more options can be added to it if necessary.


By creating a set of placeholder rules, along with the use of placeholders, you can effectively produce random encounters.





Download


Get it at Hime Works!
Oh my, very fancy! I think I could use something like then when I get to making my touch-based encounters randomized. (unless I can find a better script or evented method)
Fixed a bug where placeholders were actually permanently replaced instead of just being used as a temporary placeholder as they should.


Reference issues...
i'm bit confuse when i use this...

how do i tag the normal enemy to be use in battle?
Create rules using comments in the troop event editor. Each rule determines which enemy will be used.


The only time you need to note-tag an enemy is to tell the engine that it is a placeholder.


Btw I've uploaded a demo if anyone needs one.
I've added a rule constraint called "max"


This basically indicates the max number of times a rule is selected.


So for example if you have a rule that adds slimes, with a max constraint of 2, that means this rule will at most only be picked twice.


This probably was not mentioned before but if you write 0 as the enemy ID for a rule, then when that rule is selected, it replaces the placeholder with no enemy.

Original thread: https://forums.rpgmakerweb.com/threads/troop-placeholders.16206/