Disabling damage floor with event/script call?

I have a damage floor that uses Hime's tile swap script (swaps to a non-damage tile) after a certain event, after that it's not supposed to damage the PCs anymore, but it still does. Is it possible to use an event or script call to have that region disabled as a damage floor?
Are you sure the new tileset doesn't have damage? You could also try a simple "change tileset" event command, having it run on parallel process and when your event is done, trigger it and see if the damage still persists.

Another thing that could help is going to Tools/Script editor/Game_Actor, line 650 and modifying the damage. I did this using variables - of course, you have to remember to set the variable when needed (and set it back when not). I wanted different damage on various maps, so mine looks like this:

def basic_floor_damage
case $game_variables[100]
when 1
return 1
when 2
return 3
else
return 10
end
end

You can do something like when 1 return 0 (no damage) else return 10 (I think that was the default setting).

I hope some of this helps :LZScool:
Thanks. I will see what I can do. And no, the new tiles are not marked as a damage floor.

EDIT: I feel like the easiest thing would be for me to do a script call that says "for region ID 5, floor damage=false." Any way to do this?
I feel like the easiest thing would be for me to do a script call that says "for region ID 5, floor damage=false." Any way to do this?
Yes, that sounds reasonable, unfortunately, I don't know how to do that in a script call. But someone else might :LZSwink:
Is it possible to use an event or script call to have that region disabled as a damage floor?
Two questions
1. what command are you using for tile swapping? I tested the main tile swap command and it works fine.

2. what are you using for damage tiles. After I swapped there was no damage.
Two questions
1. what command are you using for tile swapping? I tested the main tile swap command and it works fine.

2. what are you using for damage tiles. After I swapped there was no damage.
1. I'm using Hime's tile swap script to swap only certain regions. It's Region 4 that this is supposed to work on (Region 1 swaps from non-damage to damage tiles and that one works fine).
2. The lava tiles in the "Dungeon" set (A5) are used for damage tiles, and they're marked as passable and a damage floor in the database. I'm swapping them to the Lava Cave Dark Ground (A35) which are not marked as a damage floor.
ok but I was asking for the command used.
You likely have it done wrong.
I was only able to figure out the commands with the tutorial I found that explains it with examples.
region_swap(4, "A36", 0, 1)
swap region 4 with tile A36 on layer 0 for map 1
ok but I was asking for the command used.
You likely have it done wrong.
I was only able to figure out the commands with the tutorial I found that explains it with examples.
region_swap(4, "A36", 0, 1)
swap region 4 with tile A36 on layer 0 for map 1
Thank you, that fixed the problem! I was using layer 1 because I wasn't aware there was a 0

Original thread: https://forums.rpgmakerweb.com/threads/disabling-damage-floor-with-event-script-call.169125/