Conditional branch check for 'direction fix'

How would I set up a check using the 'direction fix' tick box of an event as a conditional?

The check would be performed when you press the action button to interact with the event, so ideally it would be a 'this event' type of self check.

And, on the same topic, can things like the speed and frequency of an event be used as conditionals?

Thanks in advance.
You want to make a conditional branch test if the "Direction fix" option is checked?

I guess putting this script in a conditional branch would work:

$game_map.interpreter.get_character(0).direction_fixAs for the speed and frequency, you can use them in a conditional branch with this script:

$game_map.interpreter.get_character(0).move_speed == 3
Code:
$game_map.interpreter.get_character(0).move_frequency == 3
 

Just change the number 3 by the speed / frequency you want to compare it to 
You can use this script call in your conditional branch :

For checking direction fix:

Spoiler
$game_player.direction_fix == true

(to check player)

$game_map.events[x].direction_fix == true

(to check a map event, where x is the event's ID.)
For checking movement speed:

Spoiler
$game_player.move_speed == 3

$game_map.events[x].move_speed == 3

(adjust the movement speed accordingly)
For checking movement frequency:

Spoiler
$game_player.move_frequency == 3

$game_map.events[x].move_frequency == 3

(adjust the movement frequency accordingly)
You can get the map event's ID by looking at the upper right side of the event's window.
EDIT: hmmm oh wait...
If you want to check if the current event (the one that's running the code) has direction fix on, you'd do this:

Code:
$game_map.events[@event_id].direction_fix
You could also copy and paste that to other events - it basically says "do I have direction fix on?" so each event will refer to its own setting.
Though I'm wondering why... If it's on the same event, then you should already know the answer since you'd be the one modifying it anyways... unless there is a parallel process running which modifies it randomly...
Thank you both. This worked flawlessly.

Hudell's method is exactly what I was looking for in this particular instance, but the method Susan provided will certainly be useful to me down the line when I attempt to do something more complex.

Though I'm wondering why... If it's on the same event, then you should already know the answer since you'd be the one modifying it anyways... unless there is a parallel process running which modifies it randomly...
I have a common event that tells me what direction an event is facing in relation to the player position (used for sneaking up behind an enemy) but I now have a common event that checks if the enemy was direction fixed, if so unfixes the direction and faces the player, then refixes the direction lock. So the player can be caught if he fails his stealth check and now the enemy is alerted and locked facing the correct direction.

Original thread: https://forums.rpgmakerweb.com/threads/conditional-branch-check-for-direction-fix.35634/