I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
What is the party level? If you have 4 members in the party, their levels could be 1, 10, 20 and 99. What is the party level?
Since you have Yanfly's enemy levels script already, you can get the party's average level with a script call to:
$game_party.average_level
Store the result in a variable, and compare that variable to the number you wish to compare with. If it is higher, have no fight occur. Else, call battle processing and the battle occurs.
How do I do the same thing, but for map encounters? As in map properties and battle by steps.
That I think will take a script, and I'm not sure one such one has been written. I've attempted to start one, but I only got it as far as a cut off for each map (as in, if your average level is above a set value that you set, then no battles will occur). If that will help you I can send it your way, but if you need more you may need to make a script request for it.
Very nice. This will do the trick. Thank you!
The ID that you set is not the common event that will run, it's the variable that will store the ID of the common event that will run.
So if variable 3 is currently 0, then no common event will run.
I set things up like this so dev's can have different common events run under different circumstances.
$game_troop is available when the common event runs.
Checking equality is == not =
The script requires you to set a variable in the config.
That variable needs to have a value of the common event you want to run.
Verify these are correct.