This approach helps avoid the need to create 100 variables for 100 enemies. Moreover, if you spawn a Prefab Event, using regular global variables could lead to those variables being shared across all spawned events, causing the game to malfunction.
Using a local variable with RPG Maker Action Combat is simple. For example, if you want to check if the local variable of the current event is greater than 5 to make the event jump, here's how you can do it.

Firstly, let's select the Control Local Variable command and set the Value to 5.
To check if the local variable of the current event is greater than 5, we use a conditional branch:
localVariable(this) >= 5

Multiple Local Variable
The downside of the previous method is that, while it's simple, you can only have one local variable per event. If you use another Control Local Variable command to set a different value, you'll overwrite the existing one.To manage multiple local variables, specify a unique name for each variable in the Name ID field.
This will create a local variable named Fire with a value of 5. If you want to create another local variable, just write a different name, such as Water.
To check these variables using a conditional branch, you would use:
localVariable(this, 'Fire') >= 5
localVariable(this, 'Water') >= 5
Random Value
Instead of a single number, write in Value as
Min Number:Max Number
Example: 1:100. This will generate a random number between 1 and 100.