# Eval Ratio

Grammar — Global eval ratio for player player
FlagsNative | Function

Returns the global eval ratio for a player.

# Arguments

  • int — Player

Returns — int

native int AIEvalRatio(int player);

Category: AI Advanced / Waves / Functions

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:270

//--------------------------------------------------------------------------------------------------
int AIArmyComparisonEstimate (int player) {
    int evalRatio = AIEvalRatio(player);

    if (AIGetDifficulty(player, c_diffNormalVision) != true) {

mods/void.sc2modbase.sc2data/TriggerLibs/MeleeHighAI.galaxy:270

//--------------------------------------------------------------------------------------------------
int AIArmyComparisonEstimate (int player) {
    int evalRatio = AIEvalRatio(player);

    if (AIGetDifficulty(player, c_diffNormalVision) != true) {