Making a Key Item disable fire floor damage only

I have a Continent that is made of Fire floor tiles, and you need to obtain the Key Item "Ice Boots" in order to traverse there because the boots will disable the fire damage from the floor tiles, is there a way to do this?

1646323019368.png

Here's the item I have for Ice Boots, I am unsure how to make it disable the floor tile damage.
If you're using damage floor tiles via the tiletset editor in the database, I don't know a great way to do this... there probably is a way, but I'm not savvy to it.

One possible solution would be to use a plugin that allows common events to run based on region ID (yanfly's region events for instance) and just set the event with a conditional to check for those boots. I hope that made sense; I can definitely clarify if not. If that still doesn't help, tell us more about the mechanics you're using and we'll figure it out.
Create a state that sets floor damage rate to 0%, add it as a passive state to the Ice Boots, and make its passive condition $gamePlayer.terrainTag() === x, where x is a terrain tag you assign to your fire damage tiles. (you'll need YEP's Buffs and State Core and Auto Passive States plugins for this)
1646325389732.png
@Trihan I'm going to try your method first, I have the Item here on top and the bottom picture is going to be the state, Is it a problem that It is just a Key Item that is held in your inventory? Do I need it to be a equippable Armor piece?

1646325488302.png
Here is my state for the Ice Boots, I'm unsure on how to make the condition to only stop damage from the fire, I tried <Custom Passive Condition> from yanfly's AutoPassiveStates but that did not work, I think it's honestly bc the item is a Key Item and not a Armor if i had to guess.
Ah, yeah, you'd need it to be equippable. Hmm...
I don't mind making it an equipabble, but If i equip it to one character, can I make the floor damage turn off for all of my characters?
I don't mind making it an equipabble, but If i equip it to one character, can I make the floor damage turn off for all of my characters?
You could change the passive state condition to be *any* party member having the Ice Boots equipped, so that it's added to every party member.

Edit: wait a second, I've got it

Put the passive state on the *actors*, and make the passive condition that the party has Ice Boots in inventory and the player is on the relevant terrain tag.
Just make a duplicate of your tileset in the database. So you have one with and without floor damage flag.

You can use the "Change Tileset" event command to alternate between them.
With a conditional branch that looks for the boots to be equipped or in the inventory.
You could change the passive state condition to be *any* party member having the Ice Boots equipped, so that it's added to every party member.

Edit: wait a second, I've got it

Put the passive state on the *actors*, and make the passive condition that the party has Ice Boots in inventory and the player is on the relevant terrain tag.
I understand what you mean by this but I'm really bad at writing scriptly still, can you show me and example of where to write the passive condition and how?

EDIT: I figured out a way, I can just make the item have a scope of "All Allies" and then it will just add the passive when used.

@coyotecraft I think I'm gonna try your method because I still need to restrict it to only fire damage tiles.
I understand what you mean by this but I'm really bad at writing scriptly still, can you show me and example of where to write the passive condition and how?

EDIT: I figured out a way, I can just make the item have a scope of "All Allies" and then it will just add the passive when used.

@coyotecraft I think I'm gonna try your method because I still need to restrict it to only fire damage tiles.
Restricting it to only fire damage tiles is what the terrain tag is for.
Something like this.
If you used the Equipment method, you'll need a continuous parallel process that'll alternate between 2 pages. This is so, when it does need to change the tileset, it does it once.
[img]https://i.imgur.com/tMJEQsg.png[/img]

This floor damage immunity can be imagined as a "Party Effect". So I believe this is what you want.
If you want individual characters to be immune to floor damage then you'd have to do something else.
Oh my gosh thank you guys! I was over thinking this way too hard haha you guys made it way more simpler then I expected
Something like this.
If you used the Equipment method, you'll need a continuous parallel process that'll alternate between 2 pages. This is so, when it does need to change the tileset, it does it once.


This floor damage immunity can be imagined as a "Party Effect". So I believe this is what you want.
If you want individual characters to be immune to floor damage then you'd have to do something else.
If you're going down that route, I would just do the check in the event that teleports to the map with the fire tiles on it.

I'm just looking at the passive code for you now.

Edit: Okay, so you create a state that sets floor damage rate to 0% with the notetag:

JavaScript:
<Custom Passive Condition>
  condition = $gameParty.hasItem($dataItems[x]) && $gamePlayer.terrainTag() === 1;
</Custom Passive Condition>

Where x is the ID of your Ice Boots item. The item itself doesn't need to do anything.

Give all actors this state as a passive.

Then in the tileset, set the damage tiles to a terrain tag of 1.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/making-a-key-item-disable-fire-floor-damage-only.145393/