States Tags and Enemy Tags

irish_cub

Villager
Member
Joined
Aug 21, 2013
Messages
9
Reaction score
1
First Language
English
Primarily Uses
Ok, so here's the thing. I have a state that I want to inflict, but I only want it to inflict a certain type of enemy. Is there a way for me to use tags to note which enemies that state can affect?
 

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
Have enemies resist that state

Enemy tab > Features > State resist
 

irish_cub

Villager
Member
Joined
Aug 21, 2013
Messages
9
Reaction score
1
First Language
English
Primarily Uses
So I have to resist the state on every enemy I don't want it to affect?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You could do it as part of the damage formula:


b.enemy? && b.enemy_id == <enemy id> ? b.add_state(<state_id>) : nil; <real damage formula>


You don't have a LOT of space in the damage formula, but you might have enough for that. If you want it to apply to several different types of enemies, you might start running out of room (in that case instead of b.enemy_id == <enemy id> you'd do [id1, id2, id3].include?(b.enemy_id)
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,358
Reaction score
7,672
First Language
German
Primarily Uses
RMMV
Ok, so here's the thing. I have a state that I want to inflict, but I only want it to inflict a certain type of enemy. Is there a way for me to use tags to note which enemies that state can affect?
yes, but you need to add scripts to get that functionality.

If this is for a few cases only, it might be better to follow kerbonklin's advice and have all other enemies resist that state.

If you want to make excessive use of such states, then it might be better to use one of the conditional scripts instead of adding hundreds of resists - there are several on the master script list, but without knowing your battlesystem (default or another script?) we can't tell you which one to use.
 

irish_cub

Villager
Member
Joined
Aug 21, 2013
Messages
9
Reaction score
1
First Language
English
Primarily Uses
So the is the enemies resist it then they have 100% resistance?

I thought it was they have a high chance but not fully...
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
According to the tip that pops up when you hover over Resist, it "completely negates a state".


You can set it for one enemy, then copy and paste the feature into the features box of other enemies. You don't have to go through the double-click, select Resist, select state from the drop-down box, click ok for every single one.
 
Last edited by a moderator:

kerbonklin

Hiatus King
Veteran
Joined
Jan 6, 2013
Messages
1,726
Reaction score
275
First Language
English
Primarily Uses
RMMV
You can set it for one enemy, then copy and paste the feature into the features box of other enemies.
^  This.  Copy/paste is your friend. It's how I got a lot of my things for enemies done.

Also you can use F4 and F5 to scroll through your list of enemies without clicking them on the left.

F5

Click Feature once

Ctrl+V

F5

Click Feature once

Ctrl+V

Repeat
 
Last edited by a moderator:

irish_cub

Villager
Member
Joined
Aug 21, 2013
Messages
9
Reaction score
1
First Language
English
Primarily Uses
Alright, cool. I think I'll do that instead of dropping in a script that could potentially interfere with one of the scripts I'm already running.

Thanks for the help. 

:rock-left: :guffaw: :rock-right:
 

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

Latest Threads

Latest Profile Posts

Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,012
Members
137,563
Latest member
MinyakaAeon
Top