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?
States Tags and Enemy Tags
RPG Maker VXAce SupportHave enemies resist that state
Enemy tab > Features > State resist
Enemy tab > Features > State resist
So I have to resist the state on every enemy I don't want it to affect?
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)
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)
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.
So the is the enemies resist it then they have 100% resistance?
I thought it was they have a high chance but not fully...
I thought it was they have a high chance but not fully...
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.
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.
^ 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
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.
🤘 🤣 🤘
Thanks for the help.
🤘 🤣 🤘
Original thread: https://forums.rpgmakerweb.com/threads/states-tags-and-enemy-tags.17362/