function GetHost takes nothing returns nothing
local gamecache g = InitGameCache("Map.w3v")
call StoreInteger(g, "Map", "Host", GetPlayerId(GetLocalPlayer()))
call TriggerSyncStart()
call SyncStoredInteger(g, "Map", "Host")
call TriggerSyncReady()
set udg_Host = Player(GetStoredInteger(g, "Map", "Host"))
call FlushGameCache(g)
set g = null
endfunction
function InitTrig_HostGet takes nothing returns nothing
call FlushGameCache(InitGameCache("Map.w3v"))
endfunction
Name | Type | is_array | initial_value |
A_ShamanClaws | integer | No | |
d | real | No | |
dx | real | No | |
dy | real | No | |
Explosives_A | integer | No | |
Explosives_unit | unit | No | |
Explosives_x | integer | No | |
Explosives_x2 | integer | No | |
Explosives_x_unit | integer | No | |
Game_CritterCount | integer | No | |
Game_CritterCount_SetManually | boolean | No | |
Game_Weather | boolean | No | true |
GetHost_x | integer | No | |
Hash_Explosives | hashtable | No | |
Hash_Main | hashtable | No | |
Hash_TreeRoots | hashtable | No | |
Host | player | No | |
loop_C | integer | No | |
loop_D | integer | No | |
Map_Field0Origin | location | No | |
Map_FieldCountX | integer | No | |
Map_FieldCountY | integer | No | |
Maxplayers | integer | No | |
P | location | No | |
P2 | location | No | |
P3 | location | No | |
P4 | location | No | |
P5 | location | No | |
P_Ensnare | location | No | |
P_ShamanClaws | location | No | |
P_SoundPlay | location | No | |
P_StayInStation | location | No | |
PG | force | No | |
PG_Humans | force | No | |
PG_Trolls | force | No | |
player | player | No | |
Player_ColorCode | string | Yes | |
Player_ColoredName | string | Yes | |
Player_Lumbermill | unit | Yes | |
Player_MainUnit | unit | Yes | |
Player_SightRangeDummy | unit | Yes | |
Player_Spellselector | unit | Yes | |
Player_TrollCorpseDummy | unit | Yes | |
Player_TrollSpellCount | integer | Yes | |
Player_TrollSpellRemoveDialog | dialog | Yes | |
Player_TrollSpellRemoveDialogB | button | Yes | |
Player_TrollSpellToBeAdded | abilcode | Yes | |
r | real | No | |
r2 | real | No | |
r3 | real | No | |
r_ShamanClaws | real | No | |
Rail_Position | location | No | |
Rail_TurnDistance | real | No | |
RailDmgFromTrain | real | No | |
region | rect | No | |
RT_ForestUnittypes | unitcode | Yes | |
RT_ForestUnittypes_Count | integer | No | |
RT_MeadowUnittypes | unitcode | Yes | |
RT_MeadowUnittypes_Count | integer | No | |
RT_OasisUnittypes | unitcode | Yes | |
RT_OasisUnittypes_Count | integer | No | |
RT_RockCollisPoints | location | Yes | |
RT_RockCollisPoints_Count | integer | No | |
RT_RockUnittypes | unitcode | Yes | |
RT_RockUnittypes_Count | integer | No | |
RT_WaterCollisPoints | location | Yes | |
RT_WaterCollisPointsCount | integer | No | |
s | string | No | |
Sound_Hash | hashtable | No | |
Train | unit | No | |
Train_BackwardsTimeleft | real | No | |
Train_BlockUnit | unit | No | |
Train_BlockUnitOrigin | location | No | |
Train_CircleAngle | real | No | |
Train_GR_P | location | No | |
Train_GR_P2 | location | No | |
Train_GR_P3 | location | No | |
Train_GR_UG | group | No | |
Train_PreviousTrack | unit | No | |
Train_PreviousTrack_Redvalue | real | No | 100.00 |
Train_Speed | real | No | |
Train_Start | location | No | |
Train_StopMsg | string | No | |
Train_StopTrain | boolean | No | |
Train_WasBlocked | boolean | No | |
Train_WasMoving | boolean | No | |
Trollspells_Count | integer | No | |
Trollspells_Spell_Hero | abilcode | Yes | |
Trollspells_Spell_Sel | abilcode | Yes | |
UG | group | No | |
UG2 | group | No | |
UG_Assassinate | group | No | |
UG_Critters | group | No | |
UG_Ensnare | group | No | |
UG_Kamikaze | group | No | |
UG_MagicalWhisper | group | No | |
UG_MagicalWhisperShrubCollis | group | No | |
UG_RandomTerrainTempGroup | group | No | |
UG_RandomTerrainWaterGroup | group | No | |
UG_StationUnits | group | No | |
UG_Stop | group | No | |
UG_Voodoo | group | No | |
UG_Wisps | group | No | |
unit | unit | No | |
unit2 | unit | No | |
unit_AddUnitDmg | unit | No | |
unit_Ensnare | unit | No | |
unit_GetDmg | unit | No | |
unitMaxDamage_GetDmg | integer | No | |
unitMinDamage_GetDmg | integer | No | |
Weather_AllowSnow | boolean | No | |
Weather_Effect | weathereffect | Yes | |
Weather_EffectCount | integer | No | |
Weather_FogColorB | real | No | |
Weather_FogColorG | real | No | |
Weather_FogColorNewB | real | No | |
Weather_FogColorNewG | real | No | |
Weather_FogColorNewR | real | No | |
Weather_FogColorR | real | No | |
Weather_FogDistance | real | No | |
Weather_FogDistanceNew | real | No | |
Weather_Quality | integer | No | |
Weather_Raining | boolean | No | |
Weather_RainSound | sound | No | |
Weather_WholeMapRegion | rect | No | |
x | integer | No | |
x2 | integer | No | |
x3 | integer | No | |
x_AddUnitDmg | integer | No | |
x_Ensnare | integer | No | |
x_GetDmg | integer | No | |
x_ShamanClaws | integer | No | |
x_SoundPlay | integer | No | |
x_SoundPlay2 | integer | No |