Check multiple variables condition on map in eventing

anybody know how I can check four variables up agains eachother when making a random map.

Lets say i have these varables
variable 1: "poison 1 to 100"
variable 2: "oxigen 1 to 100"
variable 3: "temprature 1 to 200"
variable 4: "radioactive 1 to 100"

And when player enters the map those numbers are randomized and then I call the other events to the map based on the values.

But is there a way to check these up against eachother in any other way than what I have done now.
I use regular conditional brach eventing to check i temprature is greater than 180 then add weathereffect fireballs. etc.

Could I use == && in a smart way here? Like checking if poison has the greater value of them all and therefore I am on a poison map. And if i am on a poison map and temprature is 30 I am on a cold poison map etc.

Kind of getting confused by my own question here, hope someone understands it 😛
Im basically want to set conditions on a map based on the 4 values. But how to proper check these values is tricky for me to accomplish without making a endless row of conditional braches
Set your Variables Random:
variable 1: "poison 1 to 100"
variable 2: "oxigen 1 to 100"
variable 3: "temprature 1 to 200"
variable 4: "radioactive 1 to 100"

Control Variable 5 set to 1
Control Variable 6 set to variable 1

Conditional Branch variable 6 is less than Variable 2
if yes Control Variable 6 set to Variable 2 and Control Variable 5 set to 2
else nothing (No else case needed the number isnt higher).

Conditional Branch variable 6 is less than Variable 3
if yes Control Variable 6 set to Variable 3 and Control Variable 5 set to 3


Conditional Branch variable 6 is less than Variable 4
if yes Control Variable 6 set to Variable 4 and Control Variable 5 set to 4

Than you do:

Conditional Branch Variable 6 = 1
Textbox: You are in a Poison World
Conditional Branch Variable 6 = 2
Textbox: You are in a Oxigen World
Conditional Branch 6 = 3
Textbox: You are in a Temperature World
Conditional Branch Variable 6 = 4
Textbox: You are in a Radioactive World

This allows you to determine which the highest Variable number is without using Scriptcalls.

Now comes the rest of the Code.

I hope this somehow helps, if something is missing, please let us know.

Edit: Oh i overread the part with the COLD POISON World, thatsnot included in the above example.But that should be doable with some extra Conditions. Let us know if you need further help.
Yeah, thank you Bex 🙂 That will make my event much more sane. Yeah, it is especially that cold posion, hot radioactive, part that I need some help with. 😮 🙂
now you can go further =)

Conditional Branch Variable 6 = 1
Conditional Branch Variable Temperature less than 30 ?
if yes Textbox: You are in a cold Poison World else Textbox: You are in a normal Poison World.

Just one possible way, there should be more different ways to do this.
Thanks. Yeah I should map out on a paper the alternatives before eventing this i guess 🙂
LOL i made writing error further above.
It needs to be a 5 not a 6 =)

Conditional Branch Variable 5 = 1
Textbox: You are in a Poison World
Conditional Branch Variable 5 = 2
Textbox: You are in a Oxigen World
Conditional Branch 5 = 3
Textbox: You are in a Temperature World
Conditional Branch Variable 5 = 4
Textbox: You are in a Radioactive World
I'm not in my computer right now!
But seems fun to me make this work!
So I think I will give a try! ^^
If you dont have figure that out, I'll post here my results!
I'm not in my computer right now!
But seems fun to me make this work!
So I think I will give a try! ^^
If you dont have figure that out, I'll post here my results!

Yeah that would be awesome with some help with this. I think something like if poison < 80 && temprature < 180 then hot poison might work, but I have not been able to try it yet
Hei, I made this chart of the features. Hoping it will make things a bit more clear.
varables.png

I also include a example of one possibility, in example the conditions for most life is met.
life.png

edit: some typo in the above image... And temperature should be less than 135 not 140.
Each World can be one of 3 kinds, dominant Life, Toxic or Radiation.
For each kind of World you got 6 differently temperatured Worlds.
That adds up to a total of 18 Worlds.

Do you have trouble Setting the conditional Branches up?
Or was this just for Info?
Edit: Or is this getting more complicate, it seems you want to influence the world you get by different Variables. Thats a nice Idea, iam just not getting it yet.

I realy like the charts, but the half transparent half red spaces are not very obvious in meaning. still its very nice.
The half transparent red is a variable zone for when best conditions for life on map. Its just an example on how to use the charts

Edit: but also, one of the challenges is what if life is 70 or above, and toxic is also above 70. then the map will be a map with toxic enemies.
So, we have 5 variables:
1 - Life (0-100)
2 - Toxic (0-100)
3 - Radiation (0-100)
4 - Temperature (0-200)
5 - Result(don't know how to name it) - Is the value that will determinate what kind of world will be, based on the other variables value.
I get it right?

[[EDIT]] I manage to make this work with a common event. But you can put it in a map event too. It is your choice.
Also, let's see if I make this the way you ask for ^^

Spoiler: Images
TWF2pON.png
wkHmIRI.png
je2Q7t3.png
ETW2DzZ.png
Thanks for input! 😀 But Im not sure I quite got it right.
Where would you define the "toxic but cold", "toxic but hot" "radioactive but normal temprature" situations?
In the 2ndscreenshot are defined as the max value from the three types of life:
Life, Toxic, Radiation.

In the 3rd screenshot, are defined all possible temperatures.
If Temperature(Var16) is >= 0 {
then Temp of the World(Var18) = "Ice" }

In the last screenshot is a check:
If LIFE is the max type, then:
\v[18](Show the value of variable 18. Which is the one stored according to the temperature value in the 2nd screenshot)

\v[18] Life World!

I think you will have more understand after you try for yourself, repeating the event.
I don't know how I can explain anymore xD

Original thread: https://forums.rpgmakerweb.com/threads/check-multiple-variables-condition-on-map-in-eventing.110523/