# Set Minimum Game Speed
Grammar — Set the minimum game speed to speed
Flags —Native
|Action
Sets the minimum game speed. If necessary, the current game speed will be adjusted to be at least as fast as the new minimum game speed.
# Arguments
int
<preset::GameSpeed> — Speed
Returns — void
native void GameSetSpeedValueMinimum(int speed);
# Related
Category: Game / Game Settings
- Map Initialization —
void
— TriggerAddEventMapInit - Save Game Started —
void
— TriggerAddEventSaveGame - Save Game Finished —
void
— TriggerAddEventSaveGameDone - Load Game Finished —
void
— TriggerAddEventLoadGameDone - Set Game Speed —
void
— GameSetSpeedValue - Game Set Quit On Quit Button —
void
— GameSetQuitOnQuitButton - Set Global Time Scale —
void
— GameSetGlobalTimeScale - Pause Mission Time —
void
— GameSetMissionTimePaused - Mission Time Paused —
bool
— GameIsMissionTimePaused - Mission Time —
fixed
— GameGetMissionTime - Set Minimum Game Speed —
void
— GameSetSpeedValueMinimum - Lock Game Speed —
void
— GameSetSpeedLocked - Game Speed Factor —
fixed
— GameGetSpeed - Game Speed —
int
<preset::GameSpeed> — GameGetSpeedValue - Global Time Scale —
fixed
— GameGetGlobalTimeScale - Game Speed Minimum —
int
<preset::GameSpeed> — GameGetSpeedValueMinimum - Game Speed Is Locked —
bool
— GameIsSpeedLocked - Attribute Game Value —
string
<attributevalue> — GameAttributeGameValue - Attribute Player Value —
string
<attributevalue> — GameAttributePlayerValue - Players On Team —
playergroup
— GameAttributePlayersForTeam - Turn Fixed Random Seed On/Off —
void
— GameSetSeedLocked - Random Seed Is Locked —
bool
— GameIsSeedLocked - Set Random Seed —
void
— GameSetSeed - Create Saved Game —
void
— GameSaveCreate - Set Game Pausing Allowed —
void
— GameSetPauseable - Set Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemaining - Pause Tradeshow Game Time Remaining —
void
— GameSetAbsoluteTimeRemainingPaused - Tradeshow Game Time Remaining —
fixed
— GameGetAbsoluteTimeRemaining - Tradeshow Game Time Remaining Is Paused —
bool
— GameGetAbsoluteTimeRemainingPaused - Map Name —
text
— GameMapName - Map Path —
string
— GameMapPath - Map Description —
text
— GameMapDescription - Map Is Blizzard —
bool
— GameMapIsBlizzard - Map Texture Set —
string
<gamelink::Terrain> — GameTerrainSet - Game Is Test —
bool
— GameIsTestMap - Game Is Examinable —
bool
— GameIsExaminable - Game Get Test Config Type —
int
— GameTestConfigType - Game Is Online —
bool
— GameIsOnline - Game Is Debug Option Set —
bool
— GameIsDebugOptionSet - Game Is Matchmade —
bool
— GameIsMatchmade - Game Is Competitive —
bool
— GameIsCompetitive - Game Is Practice —
bool
— GameIsPractice - Game Is Cooperative —
bool
— GameIsCooperative - Game Allows Duplicate Heroes —
bool
— GameAreHeroDuplicatesAllowed
# Examples
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8228
auto149C01FA_val = PlayerDifficulty(1);
if (auto149C01FA_val == 4) {
GameSetSpeedValueMinimum(c_gameSpeedFaster);
}
else if (auto149C01FA_val == 3) {
campaigns/libertystory.sc2campaign — base.sc2data/TriggerLibs/CampaignLib.galaxy:8231
}
else if (auto149C01FA_val == 3) {
GameSetSpeedValueMinimum(c_gameSpeedFast);
}
else {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:616
auto32E424C2_val = PlayerDifficulty(1);
if (auto32E424C2_val == 4) {
GameSetSpeedValueMinimum(c_gameSpeedFaster);
}
else if (auto32E424C2_val == 3) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:619
}
else if (auto32E424C2_val == 3) {
GameSetSpeedValueMinimum(c_gameSpeedFast);
}
else if (auto32E424C2_val == 2) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:622
}
else if (auto32E424C2_val == 2) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
}
else if (auto32E424C2_val == 1) {
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:625
}
else if (auto32E424C2_val == 1) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4407
autoBB45CCF8_val = lp_difficulty;
if (autoBB45CCF8_val == 1) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1) * 100.0)));
TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4412
}
else if (autoBB45CCF8_val == 2) {
GameSetSpeedValueMinimum(c_gameSpeedNormal);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1) * 100.0)));
TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4417
}
else if (autoBB45CCF8_val == 3) {
GameSetSpeedValueMinimum(c_gameSpeedFast);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1) * 100.0)));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:4421
}
else if (autoBB45CCF8_val == 4) {
GameSetSpeedValueMinimum(c_gameSpeedFaster);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1) * 100.0)));
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:59
auto3A9A3E66_val = lp_difficulty;
if (auto3A9A3E66_val == 1) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Casual", "DamageTakenRatio", 1) * 100.0)));
TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:64
}
else if (auto3A9A3E66_val == 2) {
GameSetSpeedValueMinimum(c_gameSpeedNormal);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Normal", "DamageTakenRatio", 1) * 100.0)));
TechTreeUpgradeAddLevel(1, "SuperiorWarpGates", 1);
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:69
}
else if (auto3A9A3E66_val == 3) {
GameSetSpeedValueMinimum(c_gameSpeedFast);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Hard", "DamageTakenRatio", 1) * 100.0)));
}
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibCMMI.galaxy:73
}
else if (auto3A9A3E66_val == 4) {
GameSetSpeedValueMinimum(c_gameSpeedFaster);
PlayerModifyPropertyInt(1, c_playerPropDamageTakenPercent, c_playerPropOperSetTo, FixedToInt((UserDataGetFixed("DifficultySettings", "Brutal", "DamageTakenRatio", 1) * 100.0)));
}
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:311
auto32E424C2_val = PlayerDifficulty(1);
if (auto32E424C2_val == 4) {
GameSetSpeedValueMinimum(c_gameSpeedFaster);
}
else if (auto32E424C2_val == 3) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:314
}
else if (auto32E424C2_val == 3) {
GameSetSpeedValueMinimum(c_gameSpeedFast);
}
else if (auto32E424C2_val == 2) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:317
}
else if (auto32E424C2_val == 2) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
}
else if (auto32E424C2_val == 1) {
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:320
}
else if (auto32E424C2_val == 1) {
GameSetSpeedValueMinimum(c_gameSpeedSlow);
}
else {