Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
// Works to resize / rescale units in all game scripts it has been added to
//effects remain persistent in saved games only in scenario scripts (ie quick Battle games)
//anyone know how to make effect persistent in conquest or other script types rather than reverting back to its original scaling after a save reload?
scenario {
static int DEBUG = 0;
static int sectimeoffset = 0;
run_once {
set_game_msg_color("GREEN");
print_game_msg("1.2 Unit size script loaded successfully.");
set_game_msg_color("WHITE");
}
if (time_sec() >= sectimeoffset) {
// Unit Scale Modifier v0.7 by Snake
for (n = 1; n <= 8; n++) {
for (u = 1; u <= num_units(n); u++) {
uid = find_unit(n, "");
if ((get_unit_scale(n, uid) != 1.2) && (uid != -1) && (object_type(n, uid) != "Caravan")) {
set_unit_scale(n, uid, 1.2);
}
}
}
sectimeoffset = time_sec() + 1;
}
}