Can I use regions for proximal warmth/healing?

Hi hi it's been a while since I've posted here, sorry if this is in the wrong place.

So, i'm pretty sure i'm doing this completely wrong and wanted advice on how to achieve this correctly. I have two events for this. One to check your region ID to see how far away you are from a fireplace or heat source. It looks like this:

@> Control Variables: [0007: Player Region ID] = $game_player.region_id
@> Conditional Branch: Variable [0007: Player Region ID] > 4
@> Control Variables: [0002: Warmth] -= 3
@>
: Else
@> Control Variables: [0002: Warmth] += 2
@>
: Branch End

This event is set to Parallel Process

The second event, also Parallel Process determines what happens when your "warmth" reaches a certain number

@> Conditional Branch: Variable [0002: Warmth] == 5
@ > Text: -,-, Normal, Bottom
: : You're freezing.
@ >
: Branch End
@> Conditional Branch: Variable [0002: Warmth] == 10
@> Text: -,-, Normal, Bottom
: : Ahh, warm again
@>
: Branch End

When I run the game, nothing seems to happen. I know ive messed up somewhere, but can't quite figure out how exactly. Any help and corrections would be very appreciated, thank you!
You're testing for identica to five, which means nothing happens if the value skips five and goes directly to 4, and similar for 10 - you can add from 9 to 11 with the +2 after all.

additionally this requires you to set region IDs everywhere - possible, but blocks their use for other things.
I
You're testing for identica to five, which means nothing happens if the value skips five and goes directly to 4, and similar for 10 - you can add from 9 to 11 with the +2 after all.

additionally this requires you to set region IDs everywhere - possible, but blocks their use for other things.
I do have region tiles all over the map, numbered higher the farther you get from the heat source. I'll make sure to set it to check for numbers greater than 5 then and etc if I understand correctly o: Thank you so much!!
I’ve moved this thread to RPG Maker VXAce Support, thank you!
set it to check for numbers greater than 5 then
for heat you want greater or equal, for freezing you want to check lesser or equal
for heat you want greater or equal, for freezing you want to check lesser or equal
I believe it works now, thank you!!
if you're trying to mimic something like Don't Starve, there's simpler ways to do it.
you don't need to use region IDs to *mark* distance, you can use one region ID to mark the center of warmth, and a distance check.
a parallel event as you have it would be running all of that at refresh speed (usually 60 fps), unless you add a separate counter to skip counts, which would cause lag.
Could someone correct his code and post it? I have been trying to do the same thing, except with status effects for too cold and too hot.


A distance check will not work because my regions are irregular.
Could someone correct his code and post it? I have been trying to do the same thing, except with status effects for too cold and too hot.


A distance check will not work because my regions are irregular.
The only things ive changed are what numbers it checks for. I havent done anything else. Also pronouns are she/her. I don't think itd be what you're looking for if I posted what I have :c unless you didnt mean me to begin with
I already found something that works. Posting in case anybody Googles and is trying to do the same thing.

All I needed was the first part of @HauntedCicadaSongs 's code in order to accomplish what I wanted.

Here is my setup:
Capture.JPG
I already found something that works. Posting in case anybody Googles and is trying to do the same thing.

All I needed was the first part of @HauntedCicadaSongs 's code in order to accomplish what I wanted.

Here is my setup:
View attachment 261984
oh is your entire "cold" section on the map just one region tile? cus if so yeah thats efficient
oh is your entire "cold" section on the map just one region tile? cus if so yeah thats efficient
It is one region tile. Tile #8. If it was entire map, then I could have just put a parallel process with just adding the state.

The cold debuff is for snow tiles and I did not want to make it floor damage for two reasons. First, I did not want the party to take damage every step. Second, I wanted the effect to remain even in battle.
It is one region tile. Tile #8. If it was entire map, then I could have just put a parallel process with just adding the state.

The cold debuff is for snow tiles and I did not want to make it floor damage for two reasons. First, I did not want the party to take damage every step. Second, I wanted the effect to remain even in battle.
What I do, though it sounds like how you're doing it works way better for you, is to have it wait a little while before taking -3 from the Warmth variable, if you're a certain distance from the heat source

Original thread: https://forums.rpgmakerweb.com/threads/can-i-use-regions-for-proximal-warmth-healing.157536/