Creating Skills/Items that only affect certain enemies

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,082
First Language
English
This is a simple tutorial to demonstrate how to use the Tag Manager to have skills or items that only affect certain enemies.


Required


Tag Manager: http://himeworks.com/2013/03/07/tag-manager/


How it works


What we want


Suppose we want to make a skill called "Destroy Undead" which will instantly destroy any undead monsters.


Naturally, it will have the effect "add state: death"


Specifying conditions


The problem right now is if we just leave it at that, the skill would instantly kill anything it hits. So we must specify a tag condition. We do this by tagging the skill with

<tag_cond: undead>Which means the "undead" tag must exist in the target for the skill to do anything to it.
Applying tags


Now suppose we are in a battle with two slimes and a zombie.


If we would only want the skill to instantly kill undead monsters, and we want the zombie to be an "undead" monster, then we would tag the zombie with 

<tag: undead>Test this in a project and verify that using "Destroy Undead" does nothing to the slimes, and will instantly skill the zombie.
Using tags with states


Now suppose we have another skill that allows you to turn monsters into undead, called "Turn Undead"


First, you would create a state called "Undead" (or anything really).


Then you would tag the state with

Code:
<tag: undead>
Because states are tag objects, they will be inherited by the battler that has this state. As a result, if you used the "turn undead" skill on the slime and turned it into undead, and then used the "destroy undead" skill on the slime now, it should be instantly destroyed because it is now an undead.
 
Last edited by a moderator:

Spacecookie

Brains like spaghetti.
Veteran
Joined
Feb 20, 2013
Messages
70
Reaction score
6
First Language
Inglish
Primarily Uses
Ooh, with this, is it possible to have say a fireball skill that heals fire elementals, and damages everything else like the players and the not so fortunate goblin friend of the fire elemental?
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,230
Reaction score
3,082
First Language
English
No, it only indicates whether a skill will do something to the target or not, and not what it will do.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Karen: Hi, I have a condition that prevents me from wearing a mask. :)

Employee: Can you tell me what it is?

Karen: >:(
Feeling a little overwhelmed... There are so many things to do.
- Building a simple website for portfolio
- Setup *******
- Manage social media
There are so many things inside of these tasks :(
Meet the cute little ghost, FhooFhoo. :kaopride:
If anyone here is looking for another high-potential RPGMaker game--besides She Dreams Elsewhere--be sure to follow Lawmage Academy. Good social media presence will take that game far.
Lol, I was about to write a small tutorial and realized it would belong to the MZ section ....that does not exist yet.

Forum statistics

Threads
99,574
Messages
966,812
Members
131,231
Latest member
air_kity
Top