Hello, again, investigate more about the conditionals. I wanted to experiment and know ..
Can you make a conditional that verifies 2 numbers?
for example, we have this value
I want the conditional to work if it is between 2 numbers, like 5 to 10
or that works, if it is in a specific number like 10 and 20
Example:
and
It should also be mentioned that random variables work in this way:
Example:
so that the variable can have a random number.
and I think it would still be possible to verify a variable with 2 numbers.
well, would this be possible to verify 2 numbers in a conditional?
Can you make a conditional that verifies 2 numbers?
for example, we have this value
Code:
$game_actors [1] .face_index = 1 (shows that the Index is equal to 1)
I want the conditional to work if it is between 2 numbers, like 5 to 10
or that works, if it is in a specific number like 10 and 20
Example:
Code:
@>Conditional Branch: $game_actors[1].face_index = (5 ~ 8)
@>Execute Action if Index is between 5 and 8 (numbers like 5, 6, 7, 8)
@>
@>Else
@>Execute Action if Index is different than 5, 6, 7, 8
@>
@>Branch End
Code:
@>Conditional Branch: $game_actors[1].face_index = (10 & 20)
@>Execute Action if Index is in 10 or 20 (doesn't include number in between)
@>
@>Else
@>Execute Action if Index is different than 10 or 20 (doesn't include number in between)
@>
@>Branch End
It should also be mentioned that random variables work in this way:
Example:
Code:
$game_variables[1] = rand(10)
so that the variable can have a random number.
and I think it would still be possible to verify a variable with 2 numbers.
well, would this be possible to verify 2 numbers in a conditional?