# Convert Integer To Text

Grammar — Text(val|Integer)
FlagsNative | Function

Converts an integer into a text value.

# Arguments

  • int — Value

Returns — text

native text IntToText(int x);

Category: Conversion / Basic Conversions

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3235
IntToText(((gv_repeatTimes * gf_NumberOfLevel()) + (lp_level)))
// L3460
IntToText(((lp_level) + (gv_repeatTimes * 3)))
// L3483
IntToText(gf_ModifyScoreWithBonusMultiplier(gf_ScoreofUnitType(gv_levelWavePlaneType[(lp_level)][lv_index])))
// L3485
IntToText(gv_levelWaveShotDown[(lp_level)][lv_index])
// L3492
IntToText(lv_shotDownTotal)
// L3492
IntToText(FixedToInt((IntToFixed((lv_shotDownTotal * 100)) / IntToFixed(gv_levelTotalEnemy))))
// L3495
IntToText(lv_shotDownTotal)
// L3495
IntToText(0)
// L3517
IntToText(gf_ModifyScoreWithBonusMultiplier(gf_ScoreofUnitType(gv_powerupTypeUnitTypes[lv_index])))
// L3519
IntToText(gv_powerupTypePickedUp[lv_index])
// L3786
IntToText(gv_colonistsSaved)
// L3786
IntToText(gv_colonistsSaveQuota)
// L4297
IntToText(gv_colonistsDeathQuota)
// L4297
IntToText(gv_colonistsKilled)
// L4493
IntToText(gv_colonistsDeathQuota)
// L4493
IntToText(gv_colonistsKilled)
// L5185
IntToText(gv_colonistsKilled)
// L5186
IntToText((gv_convoyTrucksSent - gv_convoyTrucksKilled))
// L5186
IntToText(gv_convoyTrucksSent)
// L5187
IntToText(gv_structuresLost)
// L282
IntToText(lv_owner)
// L284
IntToText(PlayerGetPropertyInt(lv_owner, c_playerPropMinerals))
// L286
IntToText(PlayerGetPropertyInt(lv_owner, c_playerPropVespene))
// L288
IntToText(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesUsed))
// L290
IntToText(MinI(PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesMade), PlayerGetPropertyInt(lv_owner, c_playerPropSuppliesLimit)))
// L1054
IntToText(gv_day)
// L1061
IntToText(gv_day)
// L1073
IntToText(gv_night)
// L4326
IntToText(gv_statStructuresRazedAtNight)
// L4327
IntToText(gv_night)
// L1120
IntToText(gv_nexusDestroyed)
// L5202
IntToText(gv_vikingKills)
// L5313
IntToText(gv_colonyOutpostsSaved)
// L5314
IntToText(gv_purifierKills)
// L3418
IntToText(gv_vikingStructureKills)
// L3564
IntToText(gv_stat_ColoniesSaved)
// L3565
IntToText(gv_stat_VirophagesKilled)
// L3835
IntToText(gv_zergInfestationCounter)
// L471
IntToText(gv_diamondbacksFound)
// L471
IntToText(gv_totalDiamondbacks)
// L2319
IntToText(gv_trainsDestroyed)
// L2319
IntToText(gv_trainsNeeded)
// L2396
IntToText(gv_trainsMissed)
// L2413
IntToText(gv_trainsMissed)
// L5062
IntToText(gv_trainsMissed)
// L5063
IntToText(gv_diamondbacksFound)
// L5063
IntToText(gv_totalDiamondbacks)
// L5065
IntToText(gv_defilerSkeletonsFound)
// L1358
IntToText(gv_mERC_CONTRACT_PRICE)
// L1360
IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))
// L1366
IntToText(gv_oRLANS_MINERAL_COUNT)
// L1409
IntToText(PlayerGetPropertyInt(gv_p01_USER, c_playerPropMinerals))
// L1410
IntToText(gv_oRLANS_MINERAL_COUNT)
// L4530
IntToText(gv_contrabandRelicsFound)
// L4530
IntToText(gv_contrabandRelicsTotal)
// L4531
IntToText(gv_contrabandRelicsFound)
// L4741
IntToText(gv_mERC_CONTRACT_PRICE)
// L4486
IntToText(libNtve_gf_UnitGetPropertyKills(gv_odin, c_unitPropCurrent))
// L4489
IntToText(gv_devourerSamplesFound)
// L4490
IntToText(gv_devourerSamplesFound)
// L4821
IntToText(gv_objectiveDestroyDominionBasesCurrent)
// L4821
IntToText(gv_objectiveDestroyDominionBasesQuota)
// L4935
IntToText(gv_devourerSamplesFound)
// L4935
IntToText(gv_devourerSamplesTotal)
// L4970
IntToText(gv_devourerSamplesFound)
// L4970
IntToText(gv_devourerSamplesTotal)
// L4533
IntToText(gv_achievementUnitsKilledDuringSneakAttack)
// L4612
IntToText(gv_odinKillCount)
// L8147
IntToText(gv_achievementWeaponKillls)
// L10262
IntToText(gv_statTotalRaynorAndGrenadeKills)
// L10265
IntToText(gv_statWeaponsCollected)
// L10273
IntToText(gv_brutaliskResearchGranted)
// L10275
IntToText(gv_obejctiveProtossRelics)
// L10275
IntToText(gv_obejctiveProtossRelicsTotalSecondHalf)
// L10276
IntToText(gv_obejctiveProtossRelics)
// L4161
IntToText(gv_dominionMarinesKilled)
// L4161
IntToText(gv_dominionMarinesTotal)
// L4162
IntToText(lv_civvies)
// L4162
IntToText(gv_riksvillePopulation)
// L4165
IntToText(gv_holoboardsDestroyed)
// L4165
IntToText(gv_objectiveTaskDestroyDominionHoloboardsTotal)
// L4166
IntToText(libNtve_gf_UnitGetPropertyKills(gv_raynor, c_unitPropCurrent))
// L4480
IntToText(gv_objectiveTaskDestroyDominionHoloboardsProgress)
// L4480
IntToText(gv_objectiveTaskDestroyDominionHoloboardsTotal)
// L4545
IntToText(gv_objectiveTaskDestroyDominionHoloboardsProgress)
// L4316
IntToText(gv_medicsTrained)
// L4317
IntToText(gv_palletsCollected)
// L4317
IntToText(gv_numberOfPallets)
// L2185
IntToText(gv_rebelFightersRescued)
// L2233
IntToText(gv_rebelFightersRescued)
// L2281
IntToText(gv_rebelFightersRescued)
// L4289
IntToText(gv_structuresLostAndSalvaged)
// L4290
IntToText(gv_hatcheriesDestroyed)
// L4291
IntToText(gv_rebelFightersRescued)
// L4495
IntToText(gv_rebelFightersRescued)
// L2827
IntToText(gv_jukeboxes[lp_jukeboxID].lv_playback.lv_trackCurrent)
// L4186
IntToText(libCamp_gf_StoryState(libCamp_ge_StoryStateID_StoryStateArmoryOpened))
// L6366
IntToText(lv_alwaysActorCount)
// L6366
IntToText(lv_possibleActorCount)
// L6367
IntToText(lv_showUpTotalCount)