globals timer udg_WaveTimer=null group udg_GoingBack=null rect array udg_Rect location array udg_point timer udg_CreepsTimer=null integer udg_NumberOfCreep=0 integer udg_Integer_X=0 rect array udg_ChekRect unit array udg_DummiTowerOwner unit array udg_DummiTower integer udg_NumberOfDummiTowers=0 unit udg_UnitX=null lightning array udg_DummiEffect integer array udg_DummiTowerGold group udg_Group_X=null location udg_point_X=null location udg_point_Y=null integer array udg_Lives unit array udg_Creep location array udg_CreepStartP location array udg_CreepFinishP integer udg_CreepNumber=0 integer udg_Integer_Y=0 integer array udg_CreepSummonedCreeps integer array udg_CreepOwner integer array udg_UnitCreepTipe integer array udg_UnitCreepTipeTower integer array udg_UnitCreepWhoSpawns unit array udg_UnitCreepStandingOnMap boolean udg_boolean_X=false integer array udg_CreepStartPInt integer array udg_CreepFinishPInt group udg_Group_Y=null real udg_Real_X=0 real array udg_TowerAttackRange integer array udg_TowerAttackTipe leaderboard udg_HandleBoard=null player udg_Player_X=null real udg_Real_Y=0 integer array udg_UnitCreepTipeCost force udg_PlayingPlayers=null integer array udg_PlayerAttack group udg_Group_Z=null unit udg_UnitY=null force udg_Forse_X=null real udg_dx=0 real udg_dy=0 integer array udg_bonus_attack_player integer udg_PlayerAttackedDifferense=0 player array udg_PlayerInPlaying integer udg_PlayersNumber=0 integer udg_Integer_Z=0 rect array udg_PlayerASector multiboard udg_Multiboard=null multiboarditem udg_mbitem=null region udg_rectRegion=null integer udg_Integer_C=0 integer udg_int=0 boolean udg_boolean_Y=false dialog udg_GoldModeSelection=null dialog udg_HardModeSelection=null button udg_AcceptGold=null button udg_DontAccepGold=null boolean udg_HardMode=false button udg_AcceptHard=null button udg_DontAccepHard=null group udg_Cristalls=null group udg_GroupMobs=null rect gg_rct_1_1=null rect gg_rct_1_13=null rect gg_rct_1_2=null rect gg_rct_1_3=null rect gg_rct_1_4=null rect gg_rct_1_5=null rect gg_rct_1_6=null rect gg_rct_1_7=null rect gg_rct_1_8=null rect gg_rct_1_9=null rect gg_rct_1_10=null rect gg_rct_1_11=null rect gg_rct_1_12=null rect gg_rct_cr_1_1=null rect gg_rct_cr_1_2=null rect gg_rct_cr_1_3=null rect gg_rct_cr_1_4=null rect gg_rct_cr_1_5=null rect gg_rct_cr_1_6=null rect gg_rct_cr_1_7=null rect gg_rct_cr_1_8=null rect gg_rct_cr_1_9=null rect gg_rct_cr_1_10=null rect gg_rct_cr_1_11=null rect gg_rct_cr_1_12=null rect gg_rct_cr_1_13=null rect gg_rct_1_14=null rect gg_rct_cr_1_14=null rect gg_rct_1_15=null rect gg_rct_cr_1_15=null rect gg_rct_1_16=null rect gg_rct_cr_1_16=null rect gg_rct_1_17=null rect gg_rct_cr_1_17=null rect gg_rct_1_18=null rect gg_rct_cr_1_18=null rect gg_rct_1_19=null rect gg_rct_cr_1_19=null rect gg_rct_1_20=null rect gg_rct_cr_1_20=null rect gg_rct_1_21=null rect gg_rct_cr_1_21=null rect gg_rct_1_1_____________________u=null rect gg_rct_1_13_____________________u=null rect gg_rct_1_2_____________________u=null rect gg_rct_1_3_____________________u=null rect gg_rct_1_4_____________________u=null rect gg_rct_1_5_____________________u=null rect gg_rct_1_6_____________________u=null rect gg_rct_1_7_____________________u=null rect gg_rct_1_8_____________________u=null rect gg_rct_1_9_____________________u=null rect gg_rct_1_10_____________________u=null rect gg_rct_1_11_____________________u=null rect gg_rct_1_12_____________________u=null rect gg_rct_cr_1_1_____________________u=null rect gg_rct_cr_1_2_____________________u=null rect gg_rct_cr_1_3_____________________u=null rect gg_rct_cr_1_4_____________________u=null rect gg_rct_cr_1_5_____________________u=null rect gg_rct_cr_1_6_____________________u=null rect gg_rct_cr_1_7_____________________u=null rect gg_rct_cr_1_8_____________________u=null rect gg_rct_cr_1_9_____________________u=null rect gg_rct_cr_1_10_____________________u=null rect gg_rct_cr_1_11_____________________u=null rect gg_rct_cr_1_12_____________________u=null rect gg_rct_cr_1_13_____________________u=null rect gg_rct_1_14_____________________u=null rect gg_rct_cr_1_14_____________________u=null rect gg_rct_1_15_____________________u=null rect gg_rct_cr_1_15_____________________u=null rect gg_rct_1_16_____________________u=null rect gg_rct_cr_1_16_____________________u=null rect gg_rct_1_17_____________________u=null rect gg_rct_cr_1_17_____________________u=null rect gg_rct_1_18_____________________u=null rect gg_rct_cr_1_18_____________________u=null rect gg_rct_1_19_____________________u=null rect gg_rct_cr_1_19_____________________u=null rect gg_rct_1_20_____________________u=null rect gg_rct_cr_1_20_____________________u=null rect gg_rct_1_21_____________________u=null rect gg_rct_cr_1_21_____________________u=null rect gg_rct_1_1______________________2=null rect gg_rct_1_13______________________2=null rect gg_rct_1_2______________________2=null rect gg_rct_1_3______________________2=null rect gg_rct_1_4______________________2=null rect gg_rct_1_5______________________2=null rect gg_rct_1_6______________________2=null rect gg_rct_1_7______________________2=null rect gg_rct_1_8______________________2=null rect gg_rct_1_9______________________2=null rect gg_rct_1_10______________________2=null rect gg_rct_1_11______________________2=null rect gg_rct_1_12______________________2=null rect gg_rct_cr_1_1______________________2=null rect gg_rct_cr_1_2______________________2=null rect gg_rct_cr_1_3______________________2=null rect gg_rct_cr_1_4______________________2=null rect gg_rct_cr_1_5______________________2=null rect gg_rct_cr_1_6______________________2=null rect gg_rct_cr_1_7______________________2=null rect gg_rct_cr_1_8______________________2=null rect gg_rct_cr_1_9______________________2=null rect gg_rct_cr_1_10______________________2=null rect gg_rct_cr_1_11______________________2=null rect gg_rct_cr_1_12______________________2=null rect gg_rct_cr_1_13______________________2=null rect gg_rct_1_14______________________2=null rect gg_rct_cr_1_14______________________2=null rect gg_rct_1_15______________________2=null rect gg_rct_cr_1_15______________________2=null rect gg_rct_1_16______________________2=null rect gg_rct_cr_1_16______________________2=null rect gg_rct_1_17______________________2=null rect gg_rct_cr_1_17______________________2=null rect gg_rct_1_18______________________2=null rect gg_rct_cr_1_18______________________2=null rect gg_rct_1_19______________________2=null rect gg_rct_cr_1_19______________________2=null rect gg_rct_1_20______________________2=null rect gg_rct_cr_1_20______________________2=null rect gg_rct_1_21______________________2=null rect gg_rct_cr_1_21______________________2=null rect gg_rct_1_1______________________3=null rect gg_rct_1_13______________________3=null rect gg_rct_1_2______________________3=null rect gg_rct_1_3______________________3=null rect gg_rct_1_4______________________3=null rect gg_rct_1_5______________________3=null rect gg_rct_1_6______________________3=null rect gg_rct_1_7______________________3=null rect gg_rct_1_8______________________3=null rect gg_rct_1_9______________________3=null rect gg_rct_1_10______________________3=null rect gg_rct_1_11______________________3=null rect gg_rct_1_12______________________3=null rect gg_rct_cr_1_1______________________3=null rect gg_rct_cr_1_2______________________3=null rect gg_rct_cr_1_3______________________3=null rect gg_rct_cr_1_4______________________3=null rect gg_rct_cr_1_5______________________3=null rect gg_rct_cr_1_6______________________3=null rect gg_rct_cr_1_7______________________3=null rect gg_rct_cr_1_8______________________3=null rect gg_rct_cr_1_9______________________3=null rect gg_rct_cr_1_10______________________3=null rect gg_rct_cr_1_11______________________3=null rect gg_rct_cr_1_12______________________3=null rect gg_rct_cr_1_13______________________3=null rect gg_rct_1_14______________________3=null rect gg_rct_cr_1_14______________________3=null rect gg_rct_1_15______________________3=null rect gg_rct_cr_1_15______________________3=null rect gg_rct_1_16______________________3=null rect gg_rct_cr_1_16______________________3=null rect gg_rct_1_17______________________3=null rect gg_rct_cr_1_17______________________3=null rect gg_rct_1_18______________________3=null rect gg_rct_cr_1_18______________________3=null rect gg_rct_1_19______________________3=null rect gg_rct_cr_1_19______________________3=null rect gg_rct_1_20______________________3=null rect gg_rct_cr_1_20______________________3=null rect gg_rct_1_21______________________3=null rect gg_rct_cr_1_21______________________3=null rect gg_rct_1_1______________________4=null rect gg_rct_1_13______________________4=null rect gg_rct_1_2______________________4=null rect gg_rct_1_3______________________4=null rect gg_rct_1_4______________________4=null rect gg_rct_1_5______________________4=null rect gg_rct_1_6______________________4=null rect gg_rct_1_7______________________4=null rect gg_rct_1_8______________________4=null rect gg_rct_1_9______________________4=null rect gg_rct_1_10______________________4=null rect gg_rct_1_11______________________4=null rect gg_rct_1_12______________________4=null rect gg_rct_cr_1_1______________________4=null rect gg_rct_cr_1_2______________________4=null rect gg_rct_cr_1_3______________________4=null rect gg_rct_cr_1_4______________________4=null rect gg_rct_cr_1_5______________________4=null rect gg_rct_cr_1_6______________________4=null rect gg_rct_cr_1_7______________________4=null rect gg_rct_cr_1_8______________________4=null rect gg_rct_cr_1_9______________________4=null rect gg_rct_cr_1_10______________________4=null rect gg_rct_cr_1_11______________________4=null rect gg_rct_cr_1_12______________________4=null rect gg_rct_cr_1_13______________________4=null rect gg_rct_1_14______________________4=null rect gg_rct_cr_1_14______________________4=null rect gg_rct_1_15______________________4=null rect gg_rct_cr_1_15______________________4=null rect gg_rct_1_16______________________4=null rect gg_rct_cr_1_16______________________4=null rect gg_rct_1_17______________________4=null rect gg_rct_cr_1_17______________________4=null rect gg_rct_1_18______________________4=null rect gg_rct_cr_1_18______________________4=null rect gg_rct_1_19______________________4=null rect gg_rct_cr_1_19______________________4=null rect gg_rct_1_20______________________4=null rect gg_rct_cr_1_20______________________4=null rect gg_rct_1_21______________________4=null rect gg_rct_cr_1_21______________________4=null rect gg_rct_1_1______________________5=null rect gg_rct_1_13______________________5=null rect gg_rct_1_2______________________5=null rect gg_rct_1_3______________________5=null rect gg_rct_1_4______________________5=null rect gg_rct_1_5______________________5=null rect gg_rct_1_6______________________5=null rect gg_rct_1_7______________________5=null rect gg_rct_1_8______________________5=null rect gg_rct_1_9______________________5=null rect gg_rct_1_10______________________5=null rect gg_rct_1_11______________________5=null rect gg_rct_1_12______________________5=null rect gg_rct_cr_1_1______________________5=null rect gg_rct_cr_1_2______________________5=null rect gg_rct_cr_1_3______________________5=null rect gg_rct_cr_1_4______________________5=null rect gg_rct_cr_1_5______________________5=null rect gg_rct_cr_1_6______________________5=null rect gg_rct_cr_1_7______________________5=null rect gg_rct_cr_1_8______________________5=null rect gg_rct_cr_1_9______________________5=null rect gg_rct_cr_1_10______________________5=null rect gg_rct_cr_1_11______________________5=null rect gg_rct_cr_1_12______________________5=null rect gg_rct_cr_1_13______________________5=null rect gg_rct_1_14______________________5=null rect gg_rct_cr_1_14______________________5=null rect gg_rct_1_15______________________5=null rect gg_rct_cr_1_15______________________5=null rect gg_rct_1_16______________________5=null rect gg_rct_cr_1_16______________________5=null rect gg_rct_1_17______________________5=null rect gg_rct_cr_1_17______________________5=null rect gg_rct_1_18______________________5=null rect gg_rct_cr_1_18______________________5=null rect gg_rct_1_19______________________5=null rect gg_rct_cr_1_19______________________5=null rect gg_rct_1_20______________________5=null rect gg_rct_cr_1_20______________________5=null rect gg_rct_1_21______________________5=null rect gg_rct_cr_1_21______________________5=null rect gg_rct_1_1______________________6=null rect gg_rct_1_13______________________6=null rect gg_rct_1_2______________________6=null rect gg_rct_1_3______________________6=null rect gg_rct_1_4______________________6=null rect gg_rct_1_5______________________6=null rect gg_rct_1_6______________________6=null rect gg_rct_1_7______________________6=null rect gg_rct_1_8______________________6=null rect gg_rct_1_9______________________6=null rect gg_rct_1_10______________________6=null rect gg_rct_1_11______________________6=null rect gg_rct_1_12______________________6=null rect gg_rct_cr_1_1______________________6=null rect gg_rct_cr_1_2______________________6=null rect gg_rct_cr_1_3______________________6=null rect gg_rct_cr_1_4______________________6=null rect gg_rct_cr_1_5______________________6=null rect gg_rct_cr_1_6______________________6=null rect gg_rct_cr_1_7______________________6=null rect gg_rct_cr_1_8______________________6=null rect gg_rct_cr_1_9______________________6=null rect gg_rct_cr_1_10______________________6=null rect gg_rct_cr_1_11______________________6=null rect gg_rct_cr_1_12______________________6=null rect gg_rct_cr_1_13______________________6=null rect gg_rct_1_14______________________6=null rect gg_rct_cr_1_14______________________6=null rect gg_rct_1_15______________________6=null rect gg_rct_cr_1_15______________________6=null rect gg_rct_1_16______________________6=null rect gg_rct_cr_1_16______________________6=null rect gg_rct_1_17______________________6=null rect gg_rct_cr_1_17______________________6=null rect gg_rct_1_18______________________6=null rect gg_rct_cr_1_18______________________6=null rect gg_rct_1_19______________________6=null rect gg_rct_cr_1_19______________________6=null rect gg_rct_1_20______________________6=null rect gg_rct_cr_1_20______________________6=null rect gg_rct_1_21______________________6=null rect gg_rct_cr_1_21______________________6=null rect gg_rct_1_1__________________________________________u=null rect gg_rct_1_13__________________________________________u=null rect gg_rct_1_2__________________________________________u=null rect gg_rct_1_3__________________________________________u=null rect gg_rct_1_4__________________________________________u=null rect gg_rct_1_5__________________________________________u=null rect gg_rct_1_6__________________________________________u=null rect gg_rct_1_7__________________________________________u=null rect gg_rct_1_8__________________________________________u=null rect gg_rct_1_9__________________________________________u=null rect gg_rct_1_10__________________________________________u=null rect gg_rct_1_11__________________________________________u=null rect gg_rct_1_12__________________________________________u=null rect gg_rct_cr_1_1__________________________________________u=null rect gg_rct_cr_1_2__________________________________________u=null rect gg_rct_cr_1_3__________________________________________u=null rect gg_rct_cr_1_4__________________________________________u=null rect gg_rct_cr_1_5__________________________________________u=null rect gg_rct_cr_1_6__________________________________________u=null rect gg_rct_cr_1_7__________________________________________u=null rect gg_rct_cr_1_8__________________________________________u=null rect gg_rct_cr_1_9__________________________________________u=null rect gg_rct_cr_1_10__________________________________________u=null rect gg_rct_cr_1_11__________________________________________u=null rect gg_rct_cr_1_12__________________________________________u=null rect gg_rct_cr_1_13__________________________________________u=null rect gg_rct_1_14__________________________________________u=null rect gg_rct_cr_1_14__________________________________________u=null rect gg_rct_1_15__________________________________________u=null rect gg_rct_cr_1_15__________________________________________u=null rect gg_rct_1_16__________________________________________u=null rect gg_rct_cr_1_16__________________________________________u=null rect gg_rct_1_17__________________________________________u=null rect gg_rct_cr_1_17__________________________________________u=null rect gg_rct_1_18__________________________________________u=null rect gg_rct_cr_1_18__________________________________________u=null rect gg_rct_1_19__________________________________________u=null rect gg_rct_cr_1_19__________________________________________u=null rect gg_rct_1_20__________________________________________u=null rect gg_rct_cr_1_20__________________________________________u=null rect gg_rct_1_21__________________________________________u=null rect gg_rct_cr_1_21__________________________________________u=null rect gg_rct_1_1______________________2_____________________u=null rect gg_rct_1_13______________________2_____________________u=null rect gg_rct_1_2______________________2_____________________u=null rect gg_rct_1_3______________________2_____________________u=null rect gg_rct_1_4______________________2_____________________u=null rect gg_rct_1_5______________________2_____________________u=null rect gg_rct_1_6______________________2_____________________u=null rect gg_rct_1_7______________________2_____________________u=null rect gg_rct_1_8______________________2_____________________u=null rect gg_rct_1_9______________________2_____________________u=null rect gg_rct_1_10______________________2_____________________u=null rect gg_rct_1_11______________________2_____________________u=null rect gg_rct_1_12______________________2_____________________u=null rect gg_rct_cr_1_1______________________2_____________________u=null rect gg_rct_cr_1_2______________________2_____________________u=null rect gg_rct_cr_1_3______________________2_____________________u=null rect gg_rct_cr_1_4______________________2_____________________u=null rect gg_rct_cr_1_5______________________2_____________________u=null rect gg_rct_cr_1_6______________________2_____________________u=null rect gg_rct_cr_1_7______________________2_____________________u=null rect gg_rct_cr_1_8______________________2_____________________u=null rect gg_rct_cr_1_9______________________2_____________________u=null rect gg_rct_cr_1_10______________________2_____________________u=null rect gg_rct_cr_1_11______________________2_____________________u=null rect gg_rct_cr_1_12______________________2_____________________u=null rect gg_rct_cr_1_13______________________2_____________________u=null rect gg_rct_1_14______________________2_____________________u=null rect gg_rct_cr_1_14______________________2_____________________u=null rect gg_rct_1_15______________________2_____________________u=null rect gg_rct_cr_1_15______________________2_____________________u=null rect gg_rct_1_16______________________2_____________________u=null rect gg_rct_cr_1_16______________________2_____________________u=null rect gg_rct_1_17______________________2_____________________u=null rect gg_rct_cr_1_17______________________2_____________________u=null rect gg_rct_1_18______________________2_____________________u=null rect gg_rct_cr_1_18______________________2_____________________u=null rect gg_rct_1_19______________________2_____________________u=null rect gg_rct_cr_1_19______________________2_____________________u=null rect gg_rct_1_20______________________2_____________________u=null rect gg_rct_cr_1_20______________________2_____________________u=null rect gg_rct_1_21______________________2_____________________u=null rect gg_rct_cr_1_21______________________2_____________________u=null rect gg_rct_1_1______________________3_____________________u=null rect gg_rct_1_13______________________3_____________________u=null rect gg_rct_1_2______________________3_____________________u=null rect gg_rct_1_3______________________3_____________________u=null rect gg_rct_1_4______________________3_____________________u=null rect gg_rct_1_5______________________3_____________________u=null rect gg_rct_1_6______________________3_____________________u=null rect gg_rct_1_7______________________3_____________________u=null rect gg_rct_1_8______________________3_____________________u=null rect gg_rct_1_9______________________3_____________________u=null rect gg_rct_1_10______________________3_____________________u=null rect gg_rct_1_11______________________3_____________________u=null rect gg_rct_1_12______________________3_____________________u=null rect gg_rct_cr_1_1______________________3_____________________u=null rect gg_rct_cr_1_2______________________3_____________________u=null rect gg_rct_cr_1_3______________________3_____________________u=null rect gg_rct_cr_1_4______________________3_____________________u=null rect gg_rct_cr_1_5______________________3_____________________u=null rect gg_rct_cr_1_6______________________3_____________________u=null rect gg_rct_cr_1_7______________________3_____________________u=null rect gg_rct_cr_1_8______________________3_____________________u=null rect gg_rct_cr_1_9______________________3_____________________u=null rect gg_rct_cr_1_10______________________3_____________________u=null rect gg_rct_cr_1_11______________________3_____________________u=null rect gg_rct_cr_1_12______________________3_____________________u=null rect gg_rct_cr_1_13______________________3_____________________u=null rect gg_rct_1_14______________________3_____________________u=null rect gg_rct_cr_1_14______________________3_____________________u=null rect gg_rct_1_15______________________3_____________________u=null rect gg_rct_cr_1_15______________________3_____________________u=null rect gg_rct_1_16______________________3_____________________u=null rect gg_rct_cr_1_16______________________3_____________________u=null rect gg_rct_1_17______________________3_____________________u=null rect gg_rct_cr_1_17______________________3_____________________u=null rect gg_rct_1_18______________________3_____________________u=null rect gg_rct_cr_1_18______________________3_____________________u=null rect gg_rct_1_19______________________3_____________________u=null rect gg_rct_cr_1_19______________________3_____________________u=null rect gg_rct_1_20______________________3_____________________u=null rect gg_rct_cr_1_20______________________3_____________________u=null rect gg_rct_1_21______________________3_____________________u=null rect gg_rct_cr_1_21______________________3_____________________u=null rect gg_rct_1_1______________________4_____________________u=null rect gg_rct_1_13______________________4_____________________u=null rect gg_rct_1_2______________________4_____________________u=null rect gg_rct_1_3______________________4_____________________u=null rect gg_rct_1_4______________________4_____________________u=null rect gg_rct_1_5______________________4_____________________u=null rect gg_rct_1_6______________________4_____________________u=null rect gg_rct_1_7______________________4_____________________u=null rect gg_rct_1_8______________________4_____________________u=null rect gg_rct_1_9______________________4_____________________u=null rect gg_rct_1_10______________________4_____________________u=null rect gg_rct_1_11______________________4_____________________u=null rect gg_rct_1_12______________________4_____________________u=null rect gg_rct_cr_1_1______________________4_____________________u=null rect gg_rct_cr_1_2______________________4_____________________u=null rect gg_rct_cr_1_3______________________4_____________________u=null rect gg_rct_cr_1_4______________________4_____________________u=null rect gg_rct_cr_1_5______________________4_____________________u=null rect gg_rct_cr_1_6______________________4_____________________u=null rect gg_rct_cr_1_7______________________4_____________________u=null rect gg_rct_cr_1_8______________________4_____________________u=null rect gg_rct_cr_1_9______________________4_____________________u=null rect gg_rct_cr_1_10______________________4_____________________u=null rect gg_rct_cr_1_11______________________4_____________________u=null rect gg_rct_cr_1_12______________________4_____________________u=null rect gg_rct_cr_1_13______________________4_____________________u=null rect gg_rct_1_14______________________4_____________________u=null rect gg_rct_cr_1_14______________________4_____________________u=null rect gg_rct_1_15______________________4_____________________u=null rect gg_rct_cr_1_15______________________4_____________________u=null rect gg_rct_1_16______________________4_____________________u=null rect gg_rct_cr_1_16______________________4_____________________u=null rect gg_rct_1_17______________________4_____________________u=null rect gg_rct_cr_1_17______________________4_____________________u=null rect gg_rct_1_18______________________4_____________________u=null rect gg_rct_cr_1_18______________________4_____________________u=null rect gg_rct_1_19______________________4_____________________u=null rect gg_rct_cr_1_19______________________4_____________________u=null rect gg_rct_1_20______________________4_____________________u=null rect gg_rct_cr_1_20______________________4_____________________u=null rect gg_rct_1_21______________________4_____________________u=null rect gg_rct_cr_1_21______________________4_____________________u=null rect gg_rct_1_1______________________5_____________________u=null rect gg_rct_1_13______________________5_____________________u=null rect gg_rct_1_2______________________5_____________________u=null rect gg_rct_1_3______________________5_____________________u=null rect gg_rct_1_4______________________5_____________________u=null rect gg_rct_1_5______________________5_____________________u=null rect gg_rct_1_6______________________5_____________________u=null rect gg_rct_1_7______________________5_____________________u=null rect gg_rct_1_8______________________5_____________________u=null rect gg_rct_1_9______________________5_____________________u=null rect gg_rct_1_10______________________5_____________________u=null rect gg_rct_1_11______________________5_____________________u=null rect gg_rct_1_12______________________5_____________________u=null rect gg_rct_cr_1_1______________________5_____________________u=null rect gg_rct_cr_1_2______________________5_____________________u=null rect gg_rct_cr_1_3______________________5_____________________u=null rect gg_rct_cr_1_4______________________5_____________________u=null rect gg_rct_cr_1_5______________________5_____________________u=null rect gg_rct_cr_1_6______________________5_____________________u=null rect gg_rct_cr_1_7______________________5_____________________u=null rect gg_rct_cr_1_8______________________5_____________________u=null rect gg_rct_cr_1_9______________________5_____________________u=null rect gg_rct_cr_1_10______________________5_____________________u=null rect gg_rct_cr_1_11______________________5_____________________u=null rect gg_rct_cr_1_12______________________5_____________________u=null rect gg_rct_cr_1_13______________________5_____________________u=null rect gg_rct_1_14______________________5_____________________u=null rect gg_rct_cr_1_14______________________5_____________________u=null rect gg_rct_1_15______________________5_____________________u=null rect gg_rct_cr_1_15______________________5_____________________u=null rect gg_rct_1_16______________________5_____________________u=null rect gg_rct_cr_1_16______________________5_____________________u=null rect gg_rct_1_17______________________5_____________________u=null rect gg_rct_cr_1_17______________________5_____________________u=null rect gg_rct_1_18______________________5_____________________u=null rect gg_rct_cr_1_18______________________5_____________________u=null rect gg_rct_1_19______________________5_____________________u=null rect gg_rct_cr_1_19______________________5_____________________u=null rect gg_rct_1_20______________________5_____________________u=null rect gg_rct_cr_1_20______________________5_____________________u=null rect gg_rct_1_21______________________5_____________________u=null rect gg_rct_cr_1_21______________________5_____________________u=null rect gg_rct_Player1sector=null rect gg_rct_Player2sector=null rect gg_rct_Player3sector=null rect gg_rct_Player6sector=null rect gg_rct_Player5secto=null rect gg_rct_Player4sector=null rect gg_rct_Player7sector=null rect gg_rct_Player8sector=null rect gg_rct_Player9sector=null rect gg_rct_Player12sector=null rect gg_rct_Player11sector=null rect gg_rct_Player10sector=null rect gg_rct_MiniGameSurv=null rect gg_rct_MiniGameFootball=null trigger gg_trg_Initialization=null trigger gg_trg_DialogsCreate=null trigger gg_trg_GoldClickedDiffShow=null trigger gg_trg_HardClicked=null trigger gg_trg_variables=null trigger gg_trg_peons=null trigger gg_trg_enter=null trigger gg_trg_unit_dies=null trigger gg_trg_CreepMovesRight=null trigger gg_trg_cristalls=null trigger gg_trg_GoldMod=null trigger gg_trg_FirstCreateM=null trigger gg_trg_CreateMultiboard=null trigger gg_trg_skaner=null trigger gg_trg_splash=null trigger gg_trg_toxiner=null trigger gg_trg_critical=null trigger gg_trg_minysarmorer=null trigger gg_trg_froster=null trigger gg_trg_stunner=null trigger gg_trg_boundses=null trigger gg_trg_multishot=null trigger gg_trg_finish_constr_tower=null trigger gg_trg_finish_upgrd_segment=null trigger gg_trg_SectorsInit=null trigger gg_trg_s1=null trigger gg_trg_s2=null trigger gg_trg_s3=null trigger gg_trg_s4=null trigger gg_trg_s5=null trigger gg_trg_s6=null trigger gg_trg_s7=null trigger gg_trg_s8=null trigger gg_trg_s9=null trigger gg_trg_s10=null trigger gg_trg_s11=null trigger gg_trg_s12=null trigger gg_trg_armageddon=null trigger gg_trg_teleportation=null trigger gg_trg_indylgention=null trigger gg_trg_deathpact=null trigger gg_trg_clearJass=null trigger gg_trg_income=null trigger gg_trg_transmute=null trigger gg_trg_zalp=null trigger gg_trg_DamageTakenCheck=null trigger gg_trg_toxic=null trigger gg_trg_toxic_s=null trigger gg_trg_aoe=null trigger gg_trg_aoe_s=null trigger gg_trg_minysarmor=null trigger gg_trg_minysarmor_s=null trigger gg_trg_frost=null trigger gg_trg_frost_s=null trigger gg_trg_stun=null trigger gg_trg_bloodrage=null trigger gg_trg_divine_shield=null trigger gg_trg_windwalk=null trigger gg_trg_skeletons=null trigger gg_trg_spiders=null trigger gg_trg_crabs=null trigger gg_trg_razor=null trigger gg_trg_sleeper_sleep=null trigger gg_trg_sleeper=null trigger gg_trg_InitCreeps=null trigger gg_trg_NewCreepUpgrd=null trigger gg_trg_WaveTimerExpires=null trigger gg_trg_CreepTimerExpires=null trigger gg_trg_PlayerLeavesTheGame=null trigger gg_trg_AttackTowerSistemInit=null trigger gg_trg_UnitHasBeenAttacked=null unit cj_v666_unit endglobals function InitGlobals takes nothing returns nothing local integer i=0 set udg_WaveTimer=CreateTimer() set udg_GoingBack=CreateGroup() set udg_CreepsTimer=CreateTimer() set udg_NumberOfCreep=0 set udg_Integer_X=0 set udg_NumberOfDummiTowers=0 set i=0 loop exitwhen(i>1) set udg_DummiTowerGold[i]=0 set i=i+1 endloop set udg_Group_X=CreateGroup() set i=0 loop exitwhen(i>1) set udg_Lives[i]=0 set i=i+1 endloop set udg_CreepNumber=0 set udg_Integer_Y=0 set i=0 loop exitwhen(i>1) set udg_CreepSummonedCreeps[i]=0 set i=i+1 endloop set i=0 loop exitwhen(i>1) set udg_CreepOwner[i]=0 set i=i+1 endloop set udg_boolean_X=false set i=0 loop exitwhen(i>1) set udg_CreepStartPInt[i]=0 set i=i+1 endloop set i=0 loop exitwhen(i>1) set udg_CreepFinishPInt[i]=0 set i=i+1 endloop set udg_Group_Y=CreateGroup() set udg_Real_X=0 set i=0 loop exitwhen(i>1) set udg_TowerAttackRange[i]=0 set i=i+1 endloop set udg_Real_Y=0 set i=0 loop exitwhen(i>1) set udg_UnitCreepTipeCost[i]=0 set i=i+1 endloop set udg_PlayingPlayers=CreateForce() set i=0 loop exitwhen(i>1) set udg_PlayerAttack[i]=0 set i=i+1 endloop set udg_Group_Z=CreateGroup() set udg_Forse_X=CreateForce() set udg_dx=0 set udg_dy=0 set i=0 loop exitwhen(i>1) set udg_bonus_attack_player[i]=0 set i=i+1 endloop set udg_PlayerAttackedDifferense=0 set udg_PlayersNumber=0 set udg_Integer_Z=0 set udg_Multiboard=CreateMultiboard() set udg_rectRegion=CreateRegion() set udg_Integer_C=0 set udg_int=0 set udg_boolean_Y=false set udg_GoldModeSelection=DialogCreate() set udg_HardModeSelection=DialogCreate() set udg_HardMode=false set udg_Cristalls=CreateGroup() set udg_GroupMobs=CreateGroup() endfunction function CreateBuildingsForPlayer0 takes nothing returns nothing local player p=Player(0) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,8480.0,-352.0,270.000) set u=CreateUnit(p,0x686C756D,8480.0,-672.0,270.000) set u=CreateUnit(p,0x6F766C6E,10368.0,128.0,270.000) set u=CreateUnit(p,0x68766C74,10624.0,128.0,270.000) set u=CreateUnit(p,0x6F303047,8480.0,-992.0,270.000) set u=CreateUnit(p,0x68616C74,8480.0,-1312.0,270.000) set u=null endfunction function CreateUnitsForPlayer0 takes nothing returns nothing local player p=Player(0) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,10328.1,-1017.7,52.030) set u=CreateUnit(p,0x6E636F70,11008.0,-768.0,270.000) set u=CreateUnit(p,0x6E636F70,9088.0,-1920.0,270.000) set u=null endfunction function CreateBuildingsForPlayer1 takes nothing returns nothing local player p=Player(1) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,8480.0,-4320.0,270.000) set u=CreateUnit(p,0x686C756D,8480.0,-4640.0,270.000) set u=CreateUnit(p,0x6F766C6E,10368.0,-3840.0,270.000) set u=CreateUnit(p,0x68766C74,10624.0,-3840.0,270.000) set u=CreateUnit(p,0x68686F75,11008.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,11392.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,11008.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,11392.0,-5248.0,270.000) set u=CreateUnit(p,0x68777477,10880.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,10496.0,-5120.0,270.000) set u=CreateUnit(p,0x68616C74,8480.0,-5280.0,270.000) set u=CreateUnit(p,0x6F303047,8480.0,-4960.0,270.000) set u=null endfunction function CreateUnitsForPlayer1 takes nothing returns nothing local player p=Player(1) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,10317.2,-5138.8,3.153) set u=CreateUnit(p,0x6E636F70,11008.0,-4736.0,270.000) set u=CreateUnit(p,0x6E636F70,9088.0,-5888.0,270.000) set u=null endfunction function CreateBuildingsForPlayer2 takes nothing returns nothing local player p=Player(2) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,8480.0,-8288.0,270.000) set u=CreateUnit(p,0x686C756D,8480.0,-8608.0,270.000) set u=CreateUnit(p,0x6F766C6E,10368.0,-7808.0,270.000) set u=CreateUnit(p,0x68766C74,10624.0,-7808.0,270.000) set u=CreateUnit(p,0x68686F75,11008.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,11392.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,11008.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,11392.0,-9216.0,270.000) set u=CreateUnit(p,0x68777477,10880.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,10496.0,-9088.0,270.000) set u=CreateUnit(p,0x6F303047,8480.0,-8928.0,270.000) set u=CreateUnit(p,0x68616C74,8480.0,-9248.0,270.000) set u=null endfunction function CreateUnitsForPlayer2 takes nothing returns nothing local player p=Player(2) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,10332.8,-9081.9,18.644) set u=CreateUnit(p,0x6E636F70,11008.0,-8704.0,270.000) set u=CreateUnit(p,0x6E636F70,9088.0,-9856.0,270.000) set u=null endfunction function CreateBuildingsForPlayer3 takes nothing returns nothing local player p=Player(3) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,2080.0,-352.0,270.000) set u=CreateUnit(p,0x686C756D,2080.0,-672.0,270.000) set u=CreateUnit(p,0x6F766C6E,3968.0,128.0,270.000) set u=CreateUnit(p,0x68766C74,4224.0,128.0,270.000) set u=CreateUnit(p,0x68686F75,4608.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,4608.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-1280.0,270.000) set u=CreateUnit(p,0x68777477,4480.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,4096.0,-1152.0,270.000) set u=CreateUnit(p,0x6F303047,2080.0,-992.0,270.000) set u=CreateUnit(p,0x68616C74,2080.0,-1312.0,270.000) set u=null endfunction function CreateUnitsForPlayer3 takes nothing returns nothing local player p=Player(3) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,3927.0,-1027.7,295.717) set u=CreateUnit(p,0x6E636F70,4608.0,-768.0,270.000) set u=CreateUnit(p,0x6E636F70,2688.0,-1920.0,270.000) set u=null endfunction function CreateBuildingsForPlayer4 takes nothing returns nothing local player p=Player(4) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,2080.0,-4320.0,270.000) set u=CreateUnit(p,0x686C756D,2080.0,-4640.0,270.000) set u=CreateUnit(p,0x6F766C6E,3968.0,-3840.0,270.000) set u=CreateUnit(p,0x68766C74,4224.0,-3840.0,270.000) set u=CreateUnit(p,0x68686F75,4608.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,4608.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-5248.0,270.000) set u=CreateUnit(p,0x68777477,4480.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,4096.0,-5120.0,270.000) set u=CreateUnit(p,0x68616C74,2080.0,-5280.0,270.000) set u=CreateUnit(p,0x6F303047,2080.0,-4960.0,270.000) set u=null endfunction function CreateUnitsForPlayer4 takes nothing returns nothing local player p=Player(4) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,3932.1,-5105.8,68.853) set u=CreateUnit(p,0x6E636F70,4608.0,-4736.0,270.000) set u=CreateUnit(p,0x6E636F70,2688.0,-5888.0,270.000) set u=null endfunction function CreateBuildingsForPlayer5 takes nothing returns nothing local player p=Player(5) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68626C61,2080.0,-8288.0,270.000) set u=CreateUnit(p,0x686C756D,2080.0,-8608.0,270.000) set u=CreateUnit(p,0x6F766C6E,3968.0,-7808.0,270.000) set u=CreateUnit(p,0x68766C74,4224.0,-7808.0,270.000) set u=CreateUnit(p,0x68686F75,4608.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,4608.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,4992.0,-9216.0,270.000) set u=CreateUnit(p,0x68777477,4480.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,4096.0,-9088.0,270.000) set u=CreateUnit(p,0x68616C74,2080.0,-9248.0,270.000) set u=CreateUnit(p,0x6F303047,2080.0,-8928.0,270.000) set u=null endfunction function CreateUnitsForPlayer5 takes nothing returns nothing local player p=Player(5) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,3910.0,-9091.2,356.034) set u=CreateUnit(p,0x6E636F70,4608.0,-8704.0,270.000) set u=CreateUnit(p,0x6E636F70,2688.0,-9856.0,270.000) set u=null endfunction function CreateBuildingsForPlayer6 takes nothing returns nothing local player p=Player(6) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-2432.0,128.0,270.000) set u=CreateUnit(p,0x68766C74,-2176.0,128.0,270.000) set u=CreateUnit(p,0x68686F75,-1792.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,-1792.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-1280.0,270.000) set u=CreateUnit(p,0x68777477,-1920.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,-2304.0,-1152.0,270.000) set u=CreateUnit(p,0x68626C61,-4320.0,-352.0,270.000) set u=CreateUnit(p,0x686C756D,-4320.0,-672.0,270.000) set u=CreateUnit(p,0x6F303047,-4320.0,-992.0,270.000) set u=CreateUnit(p,0x68616C74,-4320.0,-1312.0,270.000) set u=null endfunction function CreateUnitsForPlayer6 takes nothing returns nothing local player p=Player(6) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-2471.9,-1017.7,52.030) set u=CreateUnit(p,0x6E636F70,-1792.0,-768.0,270.000) set u=CreateUnit(p,0x6E636F70,-3712.0,-1920.0,270.000) set u=null endfunction function CreateBuildingsForPlayer7 takes nothing returns nothing local player p=Player(7) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-2432.0,-3840.0,270.000) set u=CreateUnit(p,0x68766C74,-2176.0,-3840.0,270.000) set u=CreateUnit(p,0x68686F75,-1792.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,-1792.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-5248.0,270.000) set u=CreateUnit(p,0x68777477,-1920.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,-2304.0,-5120.0,270.000) set u=CreateUnit(p,0x68626C61,-4320.0,-4320.0,270.000) set u=CreateUnit(p,0x686C756D,-4320.0,-4640.0,270.000) set u=CreateUnit(p,0x6F303047,-4320.0,-4960.0,270.000) set u=CreateUnit(p,0x68616C74,-4320.0,-5280.0,270.000) set u=null endfunction function CreateUnitsForPlayer7 takes nothing returns nothing local player p=Player(7) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-2482.8,-5138.8,3.153) set u=CreateUnit(p,0x6E636F70,-1792.0,-4736.0,270.000) set u=CreateUnit(p,0x6E636F70,-3712.0,-5888.0,270.000) set u=null endfunction function CreateBuildingsForPlayer8 takes nothing returns nothing local player p=Player(8) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-2432.0,-7808.0,270.000) set u=CreateUnit(p,0x68766C74,-2176.0,-7808.0,270.000) set u=CreateUnit(p,0x68686F75,-1792.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,-1792.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,-1408.0,-9216.0,270.000) set u=CreateUnit(p,0x68777477,-1920.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,-2304.0,-9088.0,270.000) set u=CreateUnit(p,0x686C756D,-4320.0,-8608.0,270.000) set u=CreateUnit(p,0x6F303047,-4320.0,-8928.0,270.000) set u=CreateUnit(p,0x68616C74,-4320.0,-9248.0,270.000) set u=CreateUnit(p,0x68626C61,-4320.0,-8288.0,270.000) set u=null endfunction function CreateUnitsForPlayer8 takes nothing returns nothing local player p=Player(8) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-2467.2,-9081.9,18.644) set u=CreateUnit(p,0x6E636F70,-1792.0,-8704.0,270.000) set u=CreateUnit(p,0x6E636F70,-3712.0,-9856.0,270.000) set u=null endfunction function CreateBuildingsForPlayer9 takes nothing returns nothing local player p=Player(9) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-8832.0,128.0,270.000) set u=CreateUnit(p,0x68766C74,-8576.0,128.0,270.000) set u=CreateUnit(p,0x68686F75,-8192.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,-8192.0,-384.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-1280.0,270.000) set u=CreateUnit(p,0x68777477,-8320.0,-1152.0,270.000) set u=CreateUnit(p,0x68617477,-8704.0,-1152.0,270.000) set u=CreateUnit(p,0x68616C74,-10720.0,-1312.0,270.000) set u=CreateUnit(p,0x68626C61,-10720.0,-352.0,270.000) set u=CreateUnit(p,0x686C756D,-10720.0,-672.0,270.000) set u=CreateUnit(p,0x6F303047,-10720.0,-992.0,270.000) set u=null endfunction function CreateUnitsForPlayer9 takes nothing returns nothing local player p=Player(9) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-8873.0,-1027.7,295.717) set u=CreateUnit(p,0x6E636F70,-8192.0,-768.0,270.000) set u=CreateUnit(p,0x6E636F70,-10112.0,-1920.0,270.000) set u=null endfunction function CreateBuildingsForPlayer10 takes nothing returns nothing local player p=Player(10) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-8832.0,-3840.0,270.000) set u=CreateUnit(p,0x68766C74,-8576.0,-3840.0,270.000) set u=CreateUnit(p,0x68686F75,-8192.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,-8192.0,-4352.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-5248.0,270.000) set u=CreateUnit(p,0x68777477,-8320.0,-5120.0,270.000) set u=CreateUnit(p,0x68617477,-8704.0,-5120.0,270.000) set u=CreateUnit(p,0x68626C61,-10720.0,-4320.0,270.000) set u=CreateUnit(p,0x686C756D,-10720.0,-4640.0,270.000) set u=CreateUnit(p,0x6F303047,-10720.0,-4960.0,270.000) set u=CreateUnit(p,0x68616C74,-10720.0,-5280.0,270.000) set u=null endfunction function CreateUnitsForPlayer10 takes nothing returns nothing local player p=Player(10) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-8867.9,-5105.8,68.853) set u=CreateUnit(p,0x6E636F70,-8192.0,-4736.0,270.000) set u=CreateUnit(p,0x6E636F70,-10112.0,-5888.0,270.000) set u=null endfunction function CreateBuildingsForPlayer11 takes nothing returns nothing local player p=Player(11) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x6F766C6E,-8832.0,-7808.0,270.000) set u=CreateUnit(p,0x68766C74,-8576.0,-7808.0,270.000) set u=CreateUnit(p,0x68686F75,-8192.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,-8192.0,-8320.0,270.000) set u=CreateUnit(p,0x68617477,-7808.0,-9216.0,270.000) set u=CreateUnit(p,0x68777477,-8320.0,-9088.0,270.000) set u=CreateUnit(p,0x68617477,-8704.0,-9088.0,270.000) set u=CreateUnit(p,0x68626C61,-10720.0,-8288.0,270.000) set u=CreateUnit(p,0x686C756D,-10720.0,-8608.0,270.000) set u=CreateUnit(p,0x6F303047,-10720.0,-8928.0,270.000) set u=CreateUnit(p,0x68616C74,-10720.0,-9248.0,270.000) set u=null endfunction function CreateUnitsForPlayer11 takes nothing returns nothing local player p=Player(11) local unit u local integer unitID local trigger t local real life set u=CreateUnit(p,0x68706561,-8890.0,-9091.2,356.034) set u=CreateUnit(p,0x6E636F70,-8192.0,-8704.0,270.000) set u=CreateUnit(p,0x6E636F70,-10112.0,-9856.0,270.000) set u=null endfunction function CreatePlayerBuildings takes nothing returns nothing call CreateBuildingsForPlayer0() call CreateBuildingsForPlayer1() call CreateBuildingsForPlayer2() call CreateBuildingsForPlayer3() call CreateBuildingsForPlayer4() call CreateBuildingsForPlayer5() call CreateBuildingsForPlayer6() call CreateBuildingsForPlayer7() call CreateBuildingsForPlayer8() call CreateBuildingsForPlayer9() call CreateBuildingsForPlayer10() call CreateBuildingsForPlayer11() endfunction function CreatePlayerUnits takes nothing returns nothing call CreateUnitsForPlayer0() call CreateUnitsForPlayer1() call CreateUnitsForPlayer2() call CreateUnitsForPlayer3() call CreateUnitsForPlayer4() call CreateUnitsForPlayer5() call CreateUnitsForPlayer6() call CreateUnitsForPlayer7() call CreateUnitsForPlayer8() call CreateUnitsForPlayer9() call CreateUnitsForPlayer10() call CreateUnitsForPlayer11() endfunction function CreateAllUnits takes nothing returns nothing call CreatePlayerBuildings() call CreatePlayerUnits() endfunction function CreateRegions takes nothing returns nothing local weathereffect we set gg_rct_1_1=Rect(10976.0,-864.0,11040.0,-768.0) set gg_rct_1_13=Rect(9088.0,-1568.0,9120.0,-1536.0) set gg_rct_1_2=Rect(10976.0,-544.0,11008.0,-512.0) set gg_rct_1_3=Rect(11360.0,-544.0,11392.0,-512.0) set gg_rct_1_4=Rect(11360.0,-1184.0,11392.0,-1152.0) set gg_rct_1_5=Rect(11136.0,-1184.0,11168.0,-1152.0) set gg_rct_1_6=Rect(11104.0,-1440.0,11136.0,-1408.0) set gg_rct_1_7=Rect(11360.0,-1408.0,11392.0,-1376.0) set gg_rct_1_8=Rect(11360.0,-1920.0,11392.0,-1888.0) set gg_rct_1_9=Rect(10720.0,-1920.0,10752.0,-1888.0) set gg_rct_1_10=Rect(10752.0,-1312.0,10784.0,-1280.0) set gg_rct_1_11=Rect(9696.0,-1312.0,9728.0,-1280.0) set gg_rct_1_12=Rect(9728.0,-1568.0,9760.0,-1536.0) set gg_rct_cr_1_1=Rect(10848.0,-896.0,11104.0,-672.0) set gg_rct_cr_1_2=Rect(10848.0,-640.0,11104.0,-416.0) set gg_rct_cr_1_3=Rect(11232.0,-672.0,11488.0,-416.0) set gg_rct_cr_1_4=Rect(11264.0,-1216.0,11488.0,-960.0) set gg_rct_cr_1_5=Rect(11040.0,-1248.0,11232.0,-1056.0) set gg_rct_cr_1_6=Rect(11040.0,-1504.0,11232.0,-1312.0) set gg_rct_cr_1_7=Rect(11264.0,-1504.0,11488.0,-1312.0) set gg_rct_cr_1_8=Rect(11232.0,-1984.0,11488.0,-1760.0) set gg_rct_cr_1_9=Rect(10592.0,-2016.0,10848.0,-1760.0) set gg_rct_cr_1_10=Rect(10592.0,-1472.0,10848.0,-1216.0) set gg_rct_cr_1_11=Rect(9632.0,-1376.0,9824.0,-1184.0) set gg_rct_cr_1_12=Rect(9632.0,-1632.0,9856.0,-1440.0) set gg_rct_cr_1_13=Rect(8992.0,-1664.0,9248.0,-1408.0) set gg_rct_1_14=Rect(9056.0,-544.0,9088.0,-512.0) set gg_rct_cr_1_14=Rect(8960.0,-672.0,9216.0,-416.0) set gg_rct_1_15=Rect(9600.0,-544.0,9632.0,-512.0) set gg_rct_cr_1_15=Rect(9504.0,-672.0,9728.0,-416.0) set gg_rct_1_16=Rect(9568.0,-1056.0,9600.0,-1024.0) set gg_rct_cr_1_16=Rect(9472.0,-1152.0,9728.0,-896.0) set gg_rct_1_17=Rect(10624.0,-1056.0,10656.0,-1024.0) set gg_rct_cr_1_17=Rect(10528.0,-1152.0,10784.0,-896.0) set gg_rct_1_18=Rect(10624.0,-512.0,10656.0,-480.0) set gg_rct_cr_1_18=Rect(10496.0,-640.0,10752.0,-384.0) set gg_rct_1_19=Rect(10080.0,-512.0,10112.0,-480.0) set gg_rct_cr_1_19=Rect(9952.0,-672.0,10208.0,-416.0) set gg_rct_1_20=Rect(10080.0,-1952.0,10112.0,-1920.0) set gg_rct_cr_1_20=Rect(9952.0,-2080.0,10208.0,-1824.0) set gg_rct_1_21=Rect(9056.0,-1952.0,9120.0,-1888.0) set gg_rct_cr_1_21=Rect(8960.0,-2048.0,9216.0,-1792.0) set gg_rct_1_1_____________________u=Rect(10976.0,-4832.0,11040.0,-4736.0) set gg_rct_1_13_____________________u=Rect(9088.0,-5536.0,9120.0,-5504.0) set gg_rct_1_2_____________________u=Rect(10976.0,-4512.0,11008.0,-4480.0) set gg_rct_1_3_____________________u=Rect(11360.0,-4512.0,11392.0,-4480.0) set gg_rct_1_4_____________________u=Rect(11360.0,-5152.0,11392.0,-5120.0) set gg_rct_1_5_____________________u=Rect(11136.0,-5152.0,11168.0,-5120.0) set gg_rct_1_6_____________________u=Rect(11104.0,-5408.0,11136.0,-5376.0) set gg_rct_1_7_____________________u=Rect(11360.0,-5376.0,11392.0,-5344.0) set gg_rct_1_8_____________________u=Rect(11360.0,-5888.0,11392.0,-5856.0) set gg_rct_1_9_____________________u=Rect(10720.0,-5888.0,10752.0,-5856.0) set gg_rct_1_10_____________________u=Rect(10752.0,-5280.0,10784.0,-5248.0) set gg_rct_1_11_____________________u=Rect(9696.0,-5280.0,9728.0,-5248.0) set gg_rct_1_12_____________________u=Rect(9728.0,-5536.0,9760.0,-5504.0) set gg_rct_cr_1_1_____________________u=Rect(10848.0,-4864.0,11104.0,-4640.0) set gg_rct_cr_1_2_____________________u=Rect(10848.0,-4608.0,11104.0,-4384.0) set gg_rct_cr_1_3_____________________u=Rect(11232.0,-4640.0,11488.0,-4384.0) set gg_rct_cr_1_4_____________________u=Rect(11264.0,-5184.0,11488.0,-4928.0) set gg_rct_cr_1_5_____________________u=Rect(11040.0,-5216.0,11232.0,-5024.0) set gg_rct_cr_1_6_____________________u=Rect(11040.0,-5472.0,11232.0,-5280.0) set gg_rct_cr_1_7_____________________u=Rect(11264.0,-5472.0,11488.0,-5280.0) set gg_rct_cr_1_8_____________________u=Rect(11232.0,-5952.0,11488.0,-5728.0) set gg_rct_cr_1_9_____________________u=Rect(10592.0,-5984.0,10848.0,-5728.0) set gg_rct_cr_1_10_____________________u=Rect(10592.0,-5440.0,10848.0,-5184.0) set gg_rct_cr_1_11_____________________u=Rect(9632.0,-5344.0,9824.0,-5152.0) set gg_rct_cr_1_12_____________________u=Rect(9632.0,-5600.0,9856.0,-5408.0) set gg_rct_cr_1_13_____________________u=Rect(8992.0,-5632.0,9248.0,-5376.0) set gg_rct_1_14_____________________u=Rect(9056.0,-4512.0,9088.0,-4480.0) set gg_rct_cr_1_14_____________________u=Rect(8960.0,-4640.0,9216.0,-4384.0) set gg_rct_1_15_____________________u=Rect(9600.0,-4512.0,9632.0,-4480.0) set gg_rct_cr_1_15_____________________u=Rect(9504.0,-4640.0,9728.0,-4384.0) set gg_rct_1_16_____________________u=Rect(9568.0,-5024.0,9600.0,-4992.0) set gg_rct_cr_1_16_____________________u=Rect(9472.0,-5120.0,9728.0,-4864.0) set gg_rct_1_17_____________________u=Rect(10624.0,-5024.0,10656.0,-4992.0) set gg_rct_cr_1_17_____________________u=Rect(10528.0,-5120.0,10784.0,-4864.0) set gg_rct_1_18_____________________u=Rect(10624.0,-4480.0,10656.0,-4448.0) set gg_rct_cr_1_18_____________________u=Rect(10496.0,-4608.0,10752.0,-4352.0) set gg_rct_1_19_____________________u=Rect(10080.0,-4480.0,10112.0,-4448.0) set gg_rct_cr_1_19_____________________u=Rect(9952.0,-4640.0,10208.0,-4384.0) set gg_rct_1_20_____________________u=Rect(10080.0,-5920.0,10112.0,-5888.0) set gg_rct_cr_1_20_____________________u=Rect(9952.0,-6048.0,10208.0,-5792.0) set gg_rct_1_21_____________________u=Rect(9056.0,-5920.0,9120.0,-5856.0) set gg_rct_cr_1_21_____________________u=Rect(8960.0,-6016.0,9216.0,-5760.0) set gg_rct_1_1______________________2=Rect(10976.0,-8800.0,11040.0,-8704.0) set gg_rct_1_13______________________2=Rect(9088.0,-9504.0,9120.0,-9472.0) set gg_rct_1_2______________________2=Rect(10976.0,-8480.0,11008.0,-8448.0) set gg_rct_1_3______________________2=Rect(11360.0,-8480.0,11392.0,-8448.0) set gg_rct_1_4______________________2=Rect(11360.0,-9120.0,11392.0,-9088.0) set gg_rct_1_5______________________2=Rect(11136.0,-9120.0,11168.0,-9088.0) set gg_rct_1_6______________________2=Rect(11104.0,-9376.0,11136.0,-9344.0) set gg_rct_1_7______________________2=Rect(11360.0,-9344.0,11392.0,-9312.0) set gg_rct_1_8______________________2=Rect(11360.0,-9856.0,11392.0,-9824.0) set gg_rct_1_9______________________2=Rect(10720.0,-9856.0,10752.0,-9824.0) set gg_rct_1_10______________________2=Rect(10752.0,-9248.0,10784.0,-9216.0) set gg_rct_1_11______________________2=Rect(9696.0,-9248.0,9728.0,-9216.0) set gg_rct_1_12______________________2=Rect(9728.0,-9504.0,9760.0,-9472.0) set gg_rct_cr_1_1______________________2=Rect(10848.0,-8832.0,11104.0,-8608.0) set gg_rct_cr_1_2______________________2=Rect(10848.0,-8576.0,11104.0,-8352.0) set gg_rct_cr_1_3______________________2=Rect(11232.0,-8608.0,11488.0,-8352.0) set gg_rct_cr_1_4______________________2=Rect(11264.0,-9152.0,11488.0,-8896.0) set gg_rct_cr_1_5______________________2=Rect(11040.0,-9184.0,11232.0,-8992.0) set gg_rct_cr_1_6______________________2=Rect(11040.0,-9440.0,11232.0,-9248.0) set gg_rct_cr_1_7______________________2=Rect(11264.0,-9440.0,11488.0,-9248.0) set gg_rct_cr_1_8______________________2=Rect(11232.0,-9920.0,11488.0,-9696.0) set gg_rct_cr_1_9______________________2=Rect(10592.0,-9952.0,10848.0,-9696.0) set gg_rct_cr_1_10______________________2=Rect(10592.0,-9408.0,10848.0,-9152.0) set gg_rct_cr_1_11______________________2=Rect(9632.0,-9312.0,9824.0,-9120.0) set gg_rct_cr_1_12______________________2=Rect(9632.0,-9568.0,9856.0,-9376.0) set gg_rct_cr_1_13______________________2=Rect(8992.0,-9600.0,9248.0,-9344.0) set gg_rct_1_14______________________2=Rect(9056.0,-8480.0,9088.0,-8448.0) set gg_rct_cr_1_14______________________2=Rect(8960.0,-8608.0,9216.0,-8352.0) set gg_rct_1_15______________________2=Rect(9600.0,-8480.0,9632.0,-8448.0) set gg_rct_cr_1_15______________________2=Rect(9504.0,-8608.0,9728.0,-8352.0) set gg_rct_1_16______________________2=Rect(9568.0,-8992.0,9600.0,-8960.0) set gg_rct_cr_1_16______________________2=Rect(9472.0,-9088.0,9728.0,-8832.0) set gg_rct_1_17______________________2=Rect(10624.0,-8992.0,10656.0,-8960.0) set gg_rct_cr_1_17______________________2=Rect(10528.0,-9088.0,10784.0,-8832.0) set gg_rct_1_18______________________2=Rect(10624.0,-8448.0,10656.0,-8416.0) set gg_rct_cr_1_18______________________2=Rect(10496.0,-8576.0,10752.0,-8320.0) set gg_rct_1_19______________________2=Rect(10080.0,-8448.0,10112.0,-8416.0) set gg_rct_cr_1_19______________________2=Rect(9952.0,-8608.0,10208.0,-8352.0) set gg_rct_1_20______________________2=Rect(10080.0,-9888.0,10112.0,-9856.0) set gg_rct_cr_1_20______________________2=Rect(9952.0,-10016.0,10208.0,-9760.0) set gg_rct_1_21______________________2=Rect(9056.0,-9888.0,9120.0,-9824.0) set gg_rct_cr_1_21______________________2=Rect(8960.0,-9984.0,9216.0,-9728.0) set gg_rct_1_1______________________3=Rect(4576.0,-864.0,4640.0,-768.0) set gg_rct_1_13______________________3=Rect(2688.0,-1568.0,2720.0,-1536.0) set gg_rct_1_2______________________3=Rect(4576.0,-544.0,4608.0,-512.0) set gg_rct_1_3______________________3=Rect(4992.0,-544.0,5024.0,-512.0) set gg_rct_1_4______________________3=Rect(4992.0,-1184.0,5024.0,-1152.0) set gg_rct_1_5______________________3=Rect(4736.0,-1184.0,4768.0,-1152.0) set gg_rct_1_6______________________3=Rect(4704.0,-1440.0,4736.0,-1408.0) set gg_rct_1_7______________________3=Rect(4992.0,-1408.0,5024.0,-1376.0) set gg_rct_1_8______________________3=Rect(4960.0,-1920.0,4992.0,-1888.0) set gg_rct_1_9______________________3=Rect(4320.0,-1920.0,4352.0,-1888.0) set gg_rct_1_10______________________3=Rect(4352.0,-1312.0,4384.0,-1280.0) set gg_rct_1_11______________________3=Rect(3296.0,-1312.0,3328.0,-1280.0) set gg_rct_1_12______________________3=Rect(3328.0,-1568.0,3360.0,-1536.0) set gg_rct_cr_1_1______________________3=Rect(4448.0,-896.0,4704.0,-672.0) set gg_rct_cr_1_2______________________3=Rect(4448.0,-640.0,4704.0,-416.0) set gg_rct_cr_1_3______________________3=Rect(4864.0,-672.0,5120.0,-416.0) set gg_rct_cr_1_4______________________3=Rect(4896.0,-1216.0,5120.0,-960.0) set gg_rct_cr_1_5______________________3=Rect(4640.0,-1248.0,4832.0,-1056.0) set gg_rct_cr_1_6______________________3=Rect(4640.0,-1504.0,4832.0,-1312.0) set gg_rct_cr_1_7______________________3=Rect(4896.0,-1504.0,5120.0,-1312.0) set gg_rct_cr_1_8______________________3=Rect(4832.0,-1984.0,5088.0,-1760.0) set gg_rct_cr_1_9______________________3=Rect(4192.0,-2016.0,4448.0,-1760.0) set gg_rct_cr_1_10______________________3=Rect(4192.0,-1472.0,4448.0,-1216.0) set gg_rct_cr_1_11______________________3=Rect(3232.0,-1376.0,3424.0,-1184.0) set gg_rct_cr_1_12______________________3=Rect(3232.0,-1632.0,3456.0,-1440.0) set gg_rct_cr_1_13______________________3=Rect(2592.0,-1664.0,2848.0,-1408.0) set gg_rct_1_14______________________3=Rect(2656.0,-544.0,2688.0,-512.0) set gg_rct_cr_1_14______________________3=Rect(2560.0,-672.0,2816.0,-416.0) set gg_rct_1_15______________________3=Rect(3200.0,-544.0,3232.0,-512.0) set gg_rct_cr_1_15______________________3=Rect(3104.0,-672.0,3328.0,-416.0) set gg_rct_1_16______________________3=Rect(3168.0,-1056.0,3200.0,-1024.0) set gg_rct_cr_1_16______________________3=Rect(3072.0,-1152.0,3328.0,-896.0) set gg_rct_1_17______________________3=Rect(4224.0,-1056.0,4256.0,-1024.0) set gg_rct_cr_1_17______________________3=Rect(4128.0,-1152.0,4384.0,-896.0) set gg_rct_1_18______________________3=Rect(4224.0,-512.0,4256.0,-480.0) set gg_rct_cr_1_18______________________3=Rect(4096.0,-640.0,4352.0,-384.0) set gg_rct_1_19______________________3=Rect(3680.0,-512.0,3712.0,-480.0) set gg_rct_cr_1_19______________________3=Rect(3552.0,-672.0,3808.0,-416.0) set gg_rct_1_20______________________3=Rect(3680.0,-1952.0,3712.0,-1920.0) set gg_rct_cr_1_20______________________3=Rect(3552.0,-2080.0,3808.0,-1824.0) set gg_rct_1_21______________________3=Rect(2656.0,-1952.0,2720.0,-1888.0) set gg_rct_cr_1_21______________________3=Rect(2560.0,-2048.0,2816.0,-1792.0) set gg_rct_1_1______________________4=Rect(4576.0,-4832.0,4640.0,-4736.0) set gg_rct_1_13______________________4=Rect(2688.0,-5536.0,2720.0,-5504.0) set gg_rct_1_2______________________4=Rect(4576.0,-4512.0,4608.0,-4480.0) set gg_rct_1_3______________________4=Rect(4992.0,-4512.0,5024.0,-4480.0) set gg_rct_1_4______________________4=Rect(4992.0,-5152.0,5024.0,-5120.0) set gg_rct_1_5______________________4=Rect(4736.0,-5152.0,4768.0,-5120.0) set gg_rct_1_6______________________4=Rect(4704.0,-5408.0,4736.0,-5376.0) set gg_rct_1_7______________________4=Rect(4992.0,-5376.0,5024.0,-5344.0) set gg_rct_1_8______________________4=Rect(4960.0,-5888.0,4992.0,-5856.0) set gg_rct_1_9______________________4=Rect(4320.0,-5888.0,4352.0,-5856.0) set gg_rct_1_10______________________4=Rect(4352.0,-5280.0,4384.0,-5248.0) set gg_rct_1_11______________________4=Rect(3296.0,-5280.0,3328.0,-5248.0) set gg_rct_1_12______________________4=Rect(3328.0,-5536.0,3360.0,-5504.0) set gg_rct_cr_1_1______________________4=Rect(4448.0,-4864.0,4704.0,-4640.0) set gg_rct_cr_1_2______________________4=Rect(4448.0,-4608.0,4704.0,-4384.0) set gg_rct_cr_1_3______________________4=Rect(4864.0,-4640.0,5120.0,-4384.0) set gg_rct_cr_1_4______________________4=Rect(4896.0,-5184.0,5120.0,-4928.0) set gg_rct_cr_1_5______________________4=Rect(4640.0,-5216.0,4832.0,-5024.0) set gg_rct_cr_1_6______________________4=Rect(4640.0,-5472.0,4832.0,-5280.0) set gg_rct_cr_1_7______________________4=Rect(4896.0,-5472.0,5120.0,-5280.0) set gg_rct_cr_1_8______________________4=Rect(4832.0,-5952.0,5088.0,-5728.0) set gg_rct_cr_1_9______________________4=Rect(4192.0,-5984.0,4448.0,-5728.0) set gg_rct_cr_1_10______________________4=Rect(4192.0,-5440.0,4448.0,-5184.0) set gg_rct_cr_1_11______________________4=Rect(3232.0,-5344.0,3424.0,-5152.0) set gg_rct_cr_1_12______________________4=Rect(3232.0,-5600.0,3456.0,-5408.0) set gg_rct_cr_1_13______________________4=Rect(2592.0,-5632.0,2848.0,-5376.0) set gg_rct_1_14______________________4=Rect(2656.0,-4512.0,2688.0,-4480.0) set gg_rct_cr_1_14______________________4=Rect(2560.0,-4640.0,2816.0,-4384.0) set gg_rct_1_15______________________4=Rect(3200.0,-4512.0,3232.0,-4480.0) set gg_rct_cr_1_15______________________4=Rect(3104.0,-4640.0,3328.0,-4384.0) set gg_rct_1_16______________________4=Rect(3168.0,-5024.0,3200.0,-4992.0) set gg_rct_cr_1_16______________________4=Rect(3072.0,-5120.0,3328.0,-4864.0) set gg_rct_1_17______________________4=Rect(4224.0,-5024.0,4256.0,-4992.0) set gg_rct_cr_1_17______________________4=Rect(4128.0,-5120.0,4384.0,-4864.0) set gg_rct_1_18______________________4=Rect(4224.0,-4480.0,4256.0,-4448.0) set gg_rct_cr_1_18______________________4=Rect(4096.0,-4608.0,4352.0,-4352.0) set gg_rct_1_19______________________4=Rect(3680.0,-4480.0,3712.0,-4448.0) set gg_rct_cr_1_19______________________4=Rect(3552.0,-4640.0,3808.0,-4384.0) set gg_rct_1_20______________________4=Rect(3680.0,-5920.0,3712.0,-5888.0) set gg_rct_cr_1_20______________________4=Rect(3552.0,-6048.0,3808.0,-5792.0) set gg_rct_1_21______________________4=Rect(2656.0,-5920.0,2720.0,-5856.0) set gg_rct_cr_1_21______________________4=Rect(2560.0,-6016.0,2816.0,-5760.0) set gg_rct_1_1______________________5=Rect(4576.0,-8800.0,4640.0,-8704.0) set gg_rct_1_13______________________5=Rect(2688.0,-9504.0,2720.0,-9472.0) set gg_rct_1_2______________________5=Rect(4576.0,-8480.0,4608.0,-8448.0) set gg_rct_1_3______________________5=Rect(4992.0,-8480.0,5024.0,-8448.0) set gg_rct_1_4______________________5=Rect(4992.0,-9120.0,5024.0,-9088.0) set gg_rct_1_5______________________5=Rect(4736.0,-9120.0,4768.0,-9088.0) set gg_rct_1_6______________________5=Rect(4704.0,-9376.0,4736.0,-9344.0) set gg_rct_1_7______________________5=Rect(4992.0,-9344.0,5024.0,-9312.0) set gg_rct_1_8______________________5=Rect(4960.0,-9856.0,4992.0,-9824.0) set gg_rct_1_9______________________5=Rect(4320.0,-9856.0,4352.0,-9824.0) set gg_rct_1_10______________________5=Rect(4352.0,-9248.0,4384.0,-9216.0) set gg_rct_1_11______________________5=Rect(3296.0,-9248.0,3328.0,-9216.0) set gg_rct_1_12______________________5=Rect(3328.0,-9504.0,3360.0,-9472.0) set gg_rct_cr_1_1______________________5=Rect(4448.0,-8832.0,4704.0,-8608.0) set gg_rct_cr_1_2______________________5=Rect(4448.0,-8576.0,4704.0,-8352.0) set gg_rct_cr_1_3______________________5=Rect(4864.0,-8608.0,5120.0,-8352.0) set gg_rct_cr_1_4______________________5=Rect(4896.0,-9152.0,5120.0,-8896.0) set gg_rct_cr_1_5______________________5=Rect(4640.0,-9184.0,4832.0,-8992.0) set gg_rct_cr_1_6______________________5=Rect(4640.0,-9440.0,4832.0,-9248.0) set gg_rct_cr_1_7______________________5=Rect(4896.0,-9440.0,5120.0,-9248.0) set gg_rct_cr_1_8______________________5=Rect(4832.0,-9920.0,5088.0,-9696.0) set gg_rct_cr_1_9______________________5=Rect(4192.0,-9952.0,4448.0,-9696.0) set gg_rct_cr_1_10______________________5=Rect(4192.0,-9408.0,4448.0,-9152.0) set gg_rct_cr_1_11______________________5=Rect(3232.0,-9312.0,3424.0,-9120.0) set gg_rct_cr_1_12______________________5=Rect(3232.0,-9568.0,3456.0,-9376.0) set gg_rct_cr_1_13______________________5=Rect(2592.0,-9600.0,2848.0,-9344.0) set gg_rct_1_14______________________5=Rect(2656.0,-8480.0,2688.0,-8448.0) set gg_rct_cr_1_14______________________5=Rect(2560.0,-8608.0,2816.0,-8352.0) set gg_rct_1_15______________________5=Rect(3200.0,-8480.0,3232.0,-8448.0) set gg_rct_cr_1_15______________________5=Rect(3104.0,-8608.0,3328.0,-8352.0) set gg_rct_1_16______________________5=Rect(3168.0,-8992.0,3200.0,-8960.0) set gg_rct_cr_1_16______________________5=Rect(3072.0,-9088.0,3328.0,-8832.0) set gg_rct_1_17______________________5=Rect(4224.0,-8992.0,4256.0,-8960.0) set gg_rct_cr_1_17______________________5=Rect(4128.0,-9088.0,4384.0,-8832.0) set gg_rct_1_18______________________5=Rect(4224.0,-8448.0,4256.0,-8416.0) set gg_rct_cr_1_18______________________5=Rect(4096.0,-8576.0,4352.0,-8320.0) set gg_rct_1_19______________________5=Rect(3680.0,-8448.0,3712.0,-8416.0) set gg_rct_cr_1_19______________________5=Rect(3552.0,-8608.0,3808.0,-8352.0) set gg_rct_1_20______________________5=Rect(3680.0,-9888.0,3712.0,-9856.0) set gg_rct_cr_1_20______________________5=Rect(3552.0,-10016.0,3808.0,-9760.0) set gg_rct_1_21______________________5=Rect(2656.0,-9888.0,2720.0,-9824.0) set gg_rct_cr_1_21______________________5=Rect(2560.0,-9984.0,2816.0,-9728.0) set gg_rct_1_1______________________6=Rect(-1824.0,-864.0,-1760.0,-768.0) set gg_rct_1_13______________________6=Rect(-3712.0,-1568.0,-3680.0,-1536.0) set gg_rct_1_2______________________6=Rect(-1824.0,-544.0,-1792.0,-512.0) set gg_rct_1_3______________________6=Rect(-1440.0,-544.0,-1408.0,-512.0) set gg_rct_1_4______________________6=Rect(-1440.0,-1184.0,-1408.0,-1152.0) set gg_rct_1_5______________________6=Rect(-1664.0,-1184.0,-1632.0,-1152.0) set gg_rct_1_6______________________6=Rect(-1696.0,-1440.0,-1664.0,-1408.0) set gg_rct_1_7______________________6=Rect(-1440.0,-1408.0,-1408.0,-1376.0) set gg_rct_1_8______________________6=Rect(-1440.0,-1920.0,-1408.0,-1888.0) set gg_rct_1_9______________________6=Rect(-2080.0,-1920.0,-2048.0,-1888.0) set gg_rct_1_10______________________6=Rect(-2048.0,-1312.0,-2016.0,-1280.0) set gg_rct_1_11______________________6=Rect(-3104.0,-1312.0,-3072.0,-1280.0) set gg_rct_1_12______________________6=Rect(-3072.0,-1568.0,-3040.0,-1536.0) set gg_rct_cr_1_1______________________6=Rect(-1952.0,-896.0,-1696.0,-672.0) set gg_rct_cr_1_2______________________6=Rect(-1952.0,-640.0,-1696.0,-416.0) set gg_rct_cr_1_3______________________6=Rect(-1568.0,-672.0,-1312.0,-416.0) set gg_rct_cr_1_4______________________6=Rect(-1536.0,-1216.0,-1312.0,-960.0) set gg_rct_cr_1_5______________________6=Rect(-1760.0,-1248.0,-1568.0,-1056.0) set gg_rct_cr_1_6______________________6=Rect(-1760.0,-1504.0,-1568.0,-1312.0) set gg_rct_cr_1_7______________________6=Rect(-1536.0,-1504.0,-1312.0,-1312.0) set gg_rct_cr_1_8______________________6=Rect(-1568.0,-1984.0,-1312.0,-1760.0) set gg_rct_cr_1_9______________________6=Rect(-2208.0,-2016.0,-1952.0,-1760.0) set gg_rct_cr_1_10______________________6=Rect(-2208.0,-1472.0,-1952.0,-1216.0) set gg_rct_cr_1_11______________________6=Rect(-3168.0,-1376.0,-2976.0,-1184.0) set gg_rct_cr_1_12______________________6=Rect(-3168.0,-1632.0,-2944.0,-1440.0) set gg_rct_cr_1_13______________________6=Rect(-3808.0,-1664.0,-3552.0,-1408.0) set gg_rct_1_14______________________6=Rect(-3744.0,-544.0,-3712.0,-512.0) set gg_rct_cr_1_14______________________6=Rect(-3840.0,-672.0,-3584.0,-416.0) set gg_rct_1_15______________________6=Rect(-3200.0,-544.0,-3168.0,-512.0) set gg_rct_cr_1_15______________________6=Rect(-3296.0,-672.0,-3072.0,-416.0) set gg_rct_1_16______________________6=Rect(-3232.0,-1056.0,-3200.0,-1024.0) set gg_rct_cr_1_16______________________6=Rect(-3328.0,-1152.0,-3072.0,-896.0) set gg_rct_1_17______________________6=Rect(-2176.0,-1056.0,-2144.0,-1024.0) set gg_rct_cr_1_17______________________6=Rect(-2272.0,-1152.0,-2016.0,-896.0) set gg_rct_1_18______________________6=Rect(-2176.0,-512.0,-2144.0,-480.0) set gg_rct_cr_1_18______________________6=Rect(-2304.0,-640.0,-2048.0,-384.0) set gg_rct_1_19______________________6=Rect(-2720.0,-512.0,-2688.0,-480.0) set gg_rct_cr_1_19______________________6=Rect(-2848.0,-672.0,-2592.0,-416.0) set gg_rct_1_20______________________6=Rect(-2720.0,-1952.0,-2688.0,-1920.0) set gg_rct_cr_1_20______________________6=Rect(-2848.0,-2080.0,-2592.0,-1824.0) set gg_rct_1_21______________________6=Rect(-3744.0,-1952.0,-3680.0,-1888.0) set gg_rct_cr_1_21______________________6=Rect(-3840.0,-2048.0,-3584.0,-1792.0) set gg_rct_1_1__________________________________________u=Rect(-1824.0,-4832.0,-1760.0,-4736.0) set gg_rct_1_13__________________________________________u=Rect(-3712.0,-5536.0,-3680.0,-5504.0) set gg_rct_1_2__________________________________________u=Rect(-1824.0,-4512.0,-1792.0,-4480.0) set gg_rct_1_3__________________________________________u=Rect(-1440.0,-4512.0,-1408.0,-4480.0) set gg_rct_1_4__________________________________________u=Rect(-1440.0,-5152.0,-1408.0,-5120.0) set gg_rct_1_5__________________________________________u=Rect(-1664.0,-5152.0,-1632.0,-5120.0) set gg_rct_1_6__________________________________________u=Rect(-1696.0,-5408.0,-1664.0,-5376.0) set gg_rct_1_7__________________________________________u=Rect(-1440.0,-5376.0,-1408.0,-5344.0) set gg_rct_1_8__________________________________________u=Rect(-1440.0,-5888.0,-1408.0,-5856.0) set gg_rct_1_9__________________________________________u=Rect(-2080.0,-5888.0,-2048.0,-5856.0) set gg_rct_1_10__________________________________________u=Rect(-2048.0,-5280.0,-2016.0,-5248.0) set gg_rct_1_11__________________________________________u=Rect(-3104.0,-5280.0,-3072.0,-5248.0) set gg_rct_1_12__________________________________________u=Rect(-3072.0,-5536.0,-3040.0,-5504.0) set gg_rct_cr_1_1__________________________________________u=Rect(-1952.0,-4864.0,-1696.0,-4640.0) set gg_rct_cr_1_2__________________________________________u=Rect(-1952.0,-4608.0,-1696.0,-4384.0) set gg_rct_cr_1_3__________________________________________u=Rect(-1568.0,-4640.0,-1312.0,-4384.0) set gg_rct_cr_1_4__________________________________________u=Rect(-1536.0,-5184.0,-1312.0,-4928.0) set gg_rct_cr_1_5__________________________________________u=Rect(-1760.0,-5216.0,-1568.0,-5024.0) set gg_rct_cr_1_6__________________________________________u=Rect(-1760.0,-5472.0,-1568.0,-5280.0) set gg_rct_cr_1_7__________________________________________u=Rect(-1536.0,-5472.0,-1312.0,-5280.0) set gg_rct_cr_1_8__________________________________________u=Rect(-1568.0,-5952.0,-1312.0,-5728.0) set gg_rct_cr_1_9__________________________________________u=Rect(-2208.0,-5984.0,-1952.0,-5728.0) set gg_rct_cr_1_10__________________________________________u=Rect(-2208.0,-5440.0,-1952.0,-5184.0) set gg_rct_cr_1_11__________________________________________u=Rect(-3168.0,-5344.0,-2976.0,-5152.0) set gg_rct_cr_1_12__________________________________________u=Rect(-3168.0,-5600.0,-2944.0,-5408.0) set gg_rct_cr_1_13__________________________________________u=Rect(-3808.0,-5632.0,-3552.0,-5376.0) set gg_rct_1_14__________________________________________u=Rect(-3744.0,-4512.0,-3712.0,-4480.0) set gg_rct_cr_1_14__________________________________________u=Rect(-3840.0,-4640.0,-3584.0,-4384.0) set gg_rct_1_15__________________________________________u=Rect(-3200.0,-4512.0,-3168.0,-4480.0) set gg_rct_cr_1_15__________________________________________u=Rect(-3296.0,-4640.0,-3072.0,-4384.0) set gg_rct_1_16__________________________________________u=Rect(-3232.0,-5024.0,-3200.0,-4992.0) set gg_rct_cr_1_16__________________________________________u=Rect(-3328.0,-5120.0,-3072.0,-4864.0) set gg_rct_1_17__________________________________________u=Rect(-2176.0,-5024.0,-2144.0,-4992.0) set gg_rct_cr_1_17__________________________________________u=Rect(-2272.0,-5120.0,-2016.0,-4864.0) set gg_rct_1_18__________________________________________u=Rect(-2176.0,-4480.0,-2144.0,-4448.0) set gg_rct_cr_1_18__________________________________________u=Rect(-2304.0,-4608.0,-2048.0,-4352.0) set gg_rct_1_19__________________________________________u=Rect(-2720.0,-4480.0,-2688.0,-4448.0) set gg_rct_cr_1_19__________________________________________u=Rect(-2848.0,-4640.0,-2592.0,-4384.0) set gg_rct_1_20__________________________________________u=Rect(-2720.0,-5920.0,-2688.0,-5888.0) set gg_rct_cr_1_20__________________________________________u=Rect(-2848.0,-6048.0,-2592.0,-5792.0) set gg_rct_1_21__________________________________________u=Rect(-3744.0,-5920.0,-3680.0,-5856.0) set gg_rct_cr_1_21__________________________________________u=Rect(-3840.0,-6016.0,-3584.0,-5760.0) set gg_rct_1_1______________________2_____________________u=Rect(-1824.0,-8800.0,-1760.0,-8704.0) set gg_rct_1_13______________________2_____________________u=Rect(-3712.0,-9504.0,-3680.0,-9472.0) set gg_rct_1_2______________________2_____________________u=Rect(-1824.0,-8480.0,-1792.0,-8448.0) set gg_rct_1_3______________________2_____________________u=Rect(-1440.0,-8480.0,-1408.0,-8448.0) set gg_rct_1_4______________________2_____________________u=Rect(-1440.0,-9120.0,-1408.0,-9088.0) set gg_rct_1_5______________________2_____________________u=Rect(-1664.0,-9120.0,-1632.0,-9088.0) set gg_rct_1_6______________________2_____________________u=Rect(-1696.0,-9376.0,-1664.0,-9344.0) set gg_rct_1_7______________________2_____________________u=Rect(-1440.0,-9344.0,-1408.0,-9312.0) set gg_rct_1_8______________________2_____________________u=Rect(-1440.0,-9856.0,-1408.0,-9824.0) set gg_rct_1_9______________________2_____________________u=Rect(-2080.0,-9856.0,-2048.0,-9824.0) set gg_rct_1_10______________________2_____________________u=Rect(-2048.0,-9248.0,-2016.0,-9216.0) set gg_rct_1_11______________________2_____________________u=Rect(-3104.0,-9248.0,-3072.0,-9216.0) set gg_rct_1_12______________________2_____________________u=Rect(-3072.0,-9504.0,-3040.0,-9472.0) set gg_rct_cr_1_1______________________2_____________________u=Rect(-1952.0,-8832.0,-1696.0,-8608.0) set gg_rct_cr_1_2______________________2_____________________u=Rect(-1952.0,-8576.0,-1696.0,-8352.0) set gg_rct_cr_1_3______________________2_____________________u=Rect(-1568.0,-8608.0,-1312.0,-8352.0) set gg_rct_cr_1_4______________________2_____________________u=Rect(-1536.0,-9152.0,-1312.0,-8896.0) set gg_rct_cr_1_5______________________2_____________________u=Rect(-1760.0,-9184.0,-1568.0,-8992.0) set gg_rct_cr_1_6______________________2_____________________u=Rect(-1760.0,-9440.0,-1568.0,-9248.0) set gg_rct_cr_1_7______________________2_____________________u=Rect(-1536.0,-9440.0,-1312.0,-9248.0) set gg_rct_cr_1_8______________________2_____________________u=Rect(-1568.0,-9920.0,-1312.0,-9696.0) set gg_rct_cr_1_9______________________2_____________________u=Rect(-2208.0,-9952.0,-1952.0,-9696.0) set gg_rct_cr_1_10______________________2_____________________u=Rect(-2208.0,-9408.0,-1952.0,-9152.0) set gg_rct_cr_1_11______________________2_____________________u=Rect(-3168.0,-9312.0,-2976.0,-9120.0) set gg_rct_cr_1_12______________________2_____________________u=Rect(-3168.0,-9568.0,-2944.0,-9376.0) set gg_rct_cr_1_13______________________2_____________________u=Rect(-3808.0,-9600.0,-3552.0,-9344.0) set gg_rct_1_14______________________2_____________________u=Rect(-3744.0,-8480.0,-3712.0,-8448.0) set gg_rct_cr_1_14______________________2_____________________u=Rect(-3840.0,-8608.0,-3584.0,-8352.0) set gg_rct_1_15______________________2_____________________u=Rect(-3200.0,-8480.0,-3168.0,-8448.0) set gg_rct_cr_1_15______________________2_____________________u=Rect(-3296.0,-8608.0,-3072.0,-8352.0) set gg_rct_1_16______________________2_____________________u=Rect(-3232.0,-8992.0,-3200.0,-8960.0) set gg_rct_cr_1_16______________________2_____________________u=Rect(-3328.0,-9088.0,-3072.0,-8832.0) set gg_rct_1_17______________________2_____________________u=Rect(-2176.0,-8992.0,-2144.0,-8960.0) set gg_rct_cr_1_17______________________2_____________________u=Rect(-2272.0,-9088.0,-2016.0,-8832.0) set gg_rct_1_18______________________2_____________________u=Rect(-2176.0,-8448.0,-2144.0,-8416.0) set gg_rct_cr_1_18______________________2_____________________u=Rect(-2304.0,-8576.0,-2048.0,-8320.0) set gg_rct_1_19______________________2_____________________u=Rect(-2720.0,-8448.0,-2688.0,-8416.0) set gg_rct_cr_1_19______________________2_____________________u=Rect(-2848.0,-8608.0,-2592.0,-8352.0) set gg_rct_1_20______________________2_____________________u=Rect(-2720.0,-9888.0,-2688.0,-9856.0) set gg_rct_cr_1_20______________________2_____________________u=Rect(-2848.0,-10016.0,-2592.0,-9760.0) set gg_rct_1_21______________________2_____________________u=Rect(-3744.0,-9888.0,-3680.0,-9824.0) set gg_rct_cr_1_21______________________2_____________________u=Rect(-3840.0,-9984.0,-3584.0,-9728.0) set gg_rct_1_1______________________3_____________________u=Rect(-8224.0,-864.0,-8160.0,-768.0) set gg_rct_1_13______________________3_____________________u=Rect(-10112.0,-1568.0,-10080.0,-1536.0) set gg_rct_1_2______________________3_____________________u=Rect(-8224.0,-544.0,-8192.0,-512.0) set gg_rct_1_3______________________3_____________________u=Rect(-7808.0,-544.0,-7776.0,-512.0) set gg_rct_1_4______________________3_____________________u=Rect(-7808.0,-1184.0,-7776.0,-1152.0) set gg_rct_1_5______________________3_____________________u=Rect(-8064.0,-1184.0,-8032.0,-1152.0) set gg_rct_1_6______________________3_____________________u=Rect(-8096.0,-1440.0,-8064.0,-1408.0) set gg_rct_1_7______________________3_____________________u=Rect(-7808.0,-1408.0,-7776.0,-1376.0) set gg_rct_1_8______________________3_____________________u=Rect(-7840.0,-1920.0,-7808.0,-1888.0) set gg_rct_1_9______________________3_____________________u=Rect(-8480.0,-1920.0,-8448.0,-1888.0) set gg_rct_1_10______________________3_____________________u=Rect(-8448.0,-1312.0,-8416.0,-1280.0) set gg_rct_1_11______________________3_____________________u=Rect(-9504.0,-1312.0,-9472.0,-1280.0) set gg_rct_1_12______________________3_____________________u=Rect(-9472.0,-1568.0,-9440.0,-1536.0) set gg_rct_cr_1_1______________________3_____________________u=Rect(-8352.0,-896.0,-8096.0,-672.0) set gg_rct_cr_1_2______________________3_____________________u=Rect(-8352.0,-640.0,-8096.0,-416.0) set gg_rct_cr_1_3______________________3_____________________u=Rect(-7936.0,-672.0,-7680.0,-416.0) set gg_rct_cr_1_4______________________3_____________________u=Rect(-7904.0,-1216.0,-7680.0,-960.0) set gg_rct_cr_1_5______________________3_____________________u=Rect(-8160.0,-1248.0,-7968.0,-1056.0) set gg_rct_cr_1_6______________________3_____________________u=Rect(-8160.0,-1504.0,-7968.0,-1312.0) set gg_rct_cr_1_7______________________3_____________________u=Rect(-7904.0,-1504.0,-7680.0,-1312.0) set gg_rct_cr_1_8______________________3_____________________u=Rect(-7968.0,-1984.0,-7712.0,-1760.0) set gg_rct_cr_1_9______________________3_____________________u=Rect(-8608.0,-2016.0,-8352.0,-1760.0) set gg_rct_cr_1_10______________________3_____________________u=Rect(-8608.0,-1472.0,-8352.0,-1216.0) set gg_rct_cr_1_11______________________3_____________________u=Rect(-9568.0,-1376.0,-9376.0,-1184.0) set gg_rct_cr_1_12______________________3_____________________u=Rect(-9568.0,-1632.0,-9344.0,-1440.0) set gg_rct_cr_1_13______________________3_____________________u=Rect(-10208.0,-1664.0,-9952.0,-1408.0) set gg_rct_1_14______________________3_____________________u=Rect(-10144.0,-544.0,-10112.0,-512.0) set gg_rct_cr_1_14______________________3_____________________u=Rect(-10240.0,-672.0,-9984.0,-416.0) set gg_rct_1_15______________________3_____________________u=Rect(-9600.0,-544.0,-9568.0,-512.0) set gg_rct_cr_1_15______________________3_____________________u=Rect(-9696.0,-672.0,-9472.0,-416.0) set gg_rct_1_16______________________3_____________________u=Rect(-9632.0,-1056.0,-9600.0,-1024.0) set gg_rct_cr_1_16______________________3_____________________u=Rect(-9728.0,-1152.0,-9472.0,-896.0) set gg_rct_1_17______________________3_____________________u=Rect(-8576.0,-1056.0,-8544.0,-1024.0) set gg_rct_cr_1_17______________________3_____________________u=Rect(-8672.0,-1152.0,-8416.0,-896.0) set gg_rct_1_18______________________3_____________________u=Rect(-8576.0,-512.0,-8544.0,-480.0) set gg_rct_cr_1_18______________________3_____________________u=Rect(-8704.0,-640.0,-8448.0,-384.0) set gg_rct_1_19______________________3_____________________u=Rect(-9120.0,-512.0,-9088.0,-480.0) set gg_rct_cr_1_19______________________3_____________________u=Rect(-9248.0,-672.0,-8992.0,-416.0) set gg_rct_1_20______________________3_____________________u=Rect(-9120.0,-1952.0,-9088.0,-1920.0) set gg_rct_cr_1_20______________________3_____________________u=Rect(-9248.0,-2080.0,-8992.0,-1824.0) set gg_rct_1_21______________________3_____________________u=Rect(-10144.0,-1952.0,-10080.0,-1888.0) set gg_rct_cr_1_21______________________3_____________________u=Rect(-10240.0,-2048.0,-9984.0,-1792.0) set gg_rct_1_1______________________4_____________________u=Rect(-8224.0,-4832.0,-8160.0,-4736.0) set gg_rct_1_13______________________4_____________________u=Rect(-10112.0,-5536.0,-10080.0,-5504.0) set gg_rct_1_2______________________4_____________________u=Rect(-8224.0,-4512.0,-8192.0,-4480.0) set gg_rct_1_3______________________4_____________________u=Rect(-7808.0,-4512.0,-7776.0,-4480.0) set gg_rct_1_4______________________4_____________________u=Rect(-7808.0,-5152.0,-7776.0,-5120.0) set gg_rct_1_5______________________4_____________________u=Rect(-8064.0,-5152.0,-8032.0,-5120.0) set gg_rct_1_6______________________4_____________________u=Rect(-8096.0,-5408.0,-8064.0,-5376.0) set gg_rct_1_7______________________4_____________________u=Rect(-7808.0,-5376.0,-7776.0,-5344.0) set gg_rct_1_8______________________4_____________________u=Rect(-7840.0,-5888.0,-7808.0,-5856.0) set gg_rct_1_9______________________4_____________________u=Rect(-8480.0,-5888.0,-8448.0,-5856.0) set gg_rct_1_10______________________4_____________________u=Rect(-8448.0,-5280.0,-8416.0,-5248.0) set gg_rct_1_11______________________4_____________________u=Rect(-9504.0,-5280.0,-9472.0,-5248.0) set gg_rct_1_12______________________4_____________________u=Rect(-9472.0,-5536.0,-9440.0,-5504.0) set gg_rct_cr_1_1______________________4_____________________u=Rect(-8352.0,-4864.0,-8096.0,-4640.0) set gg_rct_cr_1_2______________________4_____________________u=Rect(-8352.0,-4608.0,-8096.0,-4384.0) set gg_rct_cr_1_3______________________4_____________________u=Rect(-7936.0,-4640.0,-7680.0,-4384.0) set gg_rct_cr_1_4______________________4_____________________u=Rect(-7904.0,-5184.0,-7680.0,-4928.0) set gg_rct_cr_1_5______________________4_____________________u=Rect(-8160.0,-5216.0,-7968.0,-5024.0) set gg_rct_cr_1_6______________________4_____________________u=Rect(-8160.0,-5472.0,-7968.0,-5280.0) set gg_rct_cr_1_7______________________4_____________________u=Rect(-7904.0,-5472.0,-7680.0,-5280.0) set gg_rct_cr_1_8______________________4_____________________u=Rect(-7968.0,-5952.0,-7712.0,-5728.0) set gg_rct_cr_1_9______________________4_____________________u=Rect(-8608.0,-5984.0,-8352.0,-5728.0) set gg_rct_cr_1_10______________________4_____________________u=Rect(-8608.0,-5440.0,-8352.0,-5184.0) set gg_rct_cr_1_11______________________4_____________________u=Rect(-9568.0,-5344.0,-9376.0,-5152.0) set gg_rct_cr_1_12______________________4_____________________u=Rect(-9568.0,-5600.0,-9344.0,-5408.0) set gg_rct_cr_1_13______________________4_____________________u=Rect(-10208.0,-5632.0,-9952.0,-5376.0) set gg_rct_1_14______________________4_____________________u=Rect(-10144.0,-4512.0,-10112.0,-4480.0) set gg_rct_cr_1_14______________________4_____________________u=Rect(-10240.0,-4640.0,-9984.0,-4384.0) set gg_rct_1_15______________________4_____________________u=Rect(-9600.0,-4512.0,-9568.0,-4480.0) set gg_rct_cr_1_15______________________4_____________________u=Rect(-9696.0,-4640.0,-9472.0,-4384.0) set gg_rct_1_16______________________4_____________________u=Rect(-9632.0,-5024.0,-9600.0,-4992.0) set gg_rct_cr_1_16______________________4_____________________u=Rect(-9728.0,-5120.0,-9472.0,-4864.0) set gg_rct_1_17______________________4_____________________u=Rect(-8576.0,-5024.0,-8544.0,-4992.0) set gg_rct_cr_1_17______________________4_____________________u=Rect(-8672.0,-5120.0,-8416.0,-4864.0) set gg_rct_1_18______________________4_____________________u=Rect(-8576.0,-4480.0,-8544.0,-4448.0) set gg_rct_cr_1_18______________________4_____________________u=Rect(-8704.0,-4608.0,-8448.0,-4352.0) set gg_rct_1_19______________________4_____________________u=Rect(-9120.0,-4480.0,-9088.0,-4448.0) set gg_rct_cr_1_19______________________4_____________________u=Rect(-9248.0,-4640.0,-8992.0,-4384.0) set gg_rct_1_20______________________4_____________________u=Rect(-9120.0,-5920.0,-9088.0,-5888.0) set gg_rct_cr_1_20______________________4_____________________u=Rect(-9248.0,-6048.0,-8992.0,-5792.0) set gg_rct_1_21______________________4_____________________u=Rect(-10144.0,-5920.0,-10080.0,-5856.0) set gg_rct_cr_1_21______________________4_____________________u=Rect(-10240.0,-6016.0,-9984.0,-5760.0) set gg_rct_1_1______________________5_____________________u=Rect(-8224.0,-8800.0,-8160.0,-8704.0) set gg_rct_1_13______________________5_____________________u=Rect(-10112.0,-9504.0,-10080.0,-9472.0) set gg_rct_1_2______________________5_____________________u=Rect(-8224.0,-8480.0,-8192.0,-8448.0) set gg_rct_1_3______________________5_____________________u=Rect(-7808.0,-8480.0,-7776.0,-8448.0) set gg_rct_1_4______________________5_____________________u=Rect(-7808.0,-9120.0,-7776.0,-9088.0) set gg_rct_1_5______________________5_____________________u=Rect(-8064.0,-9120.0,-8032.0,-9088.0) set gg_rct_1_6______________________5_____________________u=Rect(-8096.0,-9376.0,-8064.0,-9344.0) set gg_rct_1_7______________________5_____________________u=Rect(-7808.0,-9344.0,-7776.0,-9312.0) set gg_rct_1_8______________________5_____________________u=Rect(-7840.0,-9856.0,-7808.0,-9824.0) set gg_rct_1_9______________________5_____________________u=Rect(-8480.0,-9856.0,-8448.0,-9824.0) set gg_rct_1_10______________________5_____________________u=Rect(-8448.0,-9248.0,-8416.0,-9216.0) set gg_rct_1_11______________________5_____________________u=Rect(-9504.0,-9248.0,-9472.0,-9216.0) set gg_rct_1_12______________________5_____________________u=Rect(-9472.0,-9504.0,-9440.0,-9472.0) set gg_rct_cr_1_1______________________5_____________________u=Rect(-8352.0,-8832.0,-8096.0,-8608.0) set gg_rct_cr_1_2______________________5_____________________u=Rect(-8352.0,-8576.0,-8096.0,-8352.0) set gg_rct_cr_1_3______________________5_____________________u=Rect(-7936.0,-8608.0,-7680.0,-8352.0) set gg_rct_cr_1_4______________________5_____________________u=Rect(-7904.0,-9152.0,-7680.0,-8896.0) set gg_rct_cr_1_5______________________5_____________________u=Rect(-8160.0,-9184.0,-7968.0,-8992.0) set gg_rct_cr_1_6______________________5_____________________u=Rect(-8160.0,-9440.0,-7968.0,-9248.0) set gg_rct_cr_1_7______________________5_____________________u=Rect(-7904.0,-9440.0,-7680.0,-9248.0) set gg_rct_cr_1_8______________________5_____________________u=Rect(-7968.0,-9920.0,-7712.0,-9696.0) set gg_rct_cr_1_9______________________5_____________________u=Rect(-8608.0,-9952.0,-8352.0,-9696.0) set gg_rct_cr_1_10______________________5_____________________u=Rect(-8608.0,-9408.0,-8352.0,-9152.0) set gg_rct_cr_1_11______________________5_____________________u=Rect(-9568.0,-9312.0,-9376.0,-9120.0) set gg_rct_cr_1_12______________________5_____________________u=Rect(-9568.0,-9568.0,-9344.0,-9376.0) set gg_rct_cr_1_13______________________5_____________________u=Rect(-10208.0,-9600.0,-9952.0,-9344.0) set gg_rct_1_14______________________5_____________________u=Rect(-10144.0,-8480.0,-10112.0,-8448.0) set gg_rct_cr_1_14______________________5_____________________u=Rect(-10240.0,-8608.0,-9984.0,-8352.0) set gg_rct_1_15______________________5_____________________u=Rect(-9600.0,-8480.0,-9568.0,-8448.0) set gg_rct_cr_1_15______________________5_____________________u=Rect(-9696.0,-8608.0,-9472.0,-8352.0) set gg_rct_1_16______________________5_____________________u=Rect(-9632.0,-8992.0,-9600.0,-8960.0) set gg_rct_cr_1_16______________________5_____________________u=Rect(-9728.0,-9088.0,-9472.0,-8832.0) set gg_rct_1_17______________________5_____________________u=Rect(-8576.0,-8992.0,-8544.0,-8960.0) set gg_rct_cr_1_17______________________5_____________________u=Rect(-8672.0,-9088.0,-8416.0,-8832.0) set gg_rct_1_18______________________5_____________________u=Rect(-8576.0,-8448.0,-8544.0,-8416.0) set gg_rct_cr_1_18______________________5_____________________u=Rect(-8704.0,-8576.0,-8448.0,-8320.0) set gg_rct_1_19______________________5_____________________u=Rect(-9120.0,-8448.0,-9088.0,-8416.0) set gg_rct_cr_1_19______________________5_____________________u=Rect(-9248.0,-8608.0,-8992.0,-8352.0) set gg_rct_1_20______________________5_____________________u=Rect(-9120.0,-9888.0,-9088.0,-9856.0) set gg_rct_cr_1_20______________________5_____________________u=Rect(-9248.0,-10016.0,-8992.0,-9760.0) set gg_rct_1_21______________________5_____________________u=Rect(-10144.0,-9888.0,-10080.0,-9824.0) set gg_rct_cr_1_21______________________5_____________________u=Rect(-10240.0,-9984.0,-9984.0,-9728.0) set gg_rct_Player1sector=Rect(8736.0,-2272.0,11744.0,-160.0) set gg_rct_Player2sector=Rect(8736.0,-6240.0,11744.0,-4128.0) set gg_rct_Player3sector=Rect(8736.0,-10208.0,11744.0,-8096.0) set gg_rct_Player6sector=Rect(2336.0,-10208.0,5344.0,-8096.0) set gg_rct_Player5secto=Rect(2336.0,-6240.0,5344.0,-4128.0) set gg_rct_Player4sector=Rect(2336.0,-2272.0,5344.0,-160.0) set gg_rct_Player7sector=Rect(-4064.0,-2272.0,-1056.0,-160.0) set gg_rct_Player8sector=Rect(-4064.0,-6240.0,-1056.0,-4128.0) set gg_rct_Player9sector=Rect(-4064.0,-10208.0,-1056.0,-8096.0) set gg_rct_Player12sector=Rect(-10464.0,-10208.0,-7456.0,-8096.0) set gg_rct_Player11sector=Rect(-10464.0,-6240.0,-7456.0,-4128.0) set gg_rct_Player10sector=Rect(-10464.0,-2272.0,-7456.0,-160.0) set gg_rct_MiniGameSurv=Rect(8992.0,9376.0,11360.0,11744.0) set gg_rct_MiniGameFootball=Rect(9152.0,5664.0,11072.0,8640.0) endfunction function IsUnitInvulnerable takes unit Unit returns boolean local real Health_Current=GetWidgetLife(Unit) local real Mana_Current=GetUnitState(Unit,UNIT_STATE_MANA) local boolean Check_Health call SetWidgetLife(Unit,Health_Current+0.001) if Health_Current!=GetWidgetLife(Unit)then call UnitDamageTarget(Unit,Unit,0.001,false,true,null,null,null) set Check_Health=(GetWidgetLife(Unit)==Health_Current+0.001) else call UnitDamageTarget(Unit,Unit,0.001,false,true,null,null,null) set Check_Health=(GetWidgetLife(Unit)==Health_Current) call SetWidgetLife(Unit,Health_Current) endif if Check_Health then return not(GetUnitState(Unit,UNIT_STATE_MANA)!=Mana_Current) endif return Check_Health endfunction function DistanceBetweenPointsNew takes location locA,location locB returns real set udg_dx=GetLocationX(locB)-GetLocationX(locA) set udg_dy=GetLocationY(locB)-GetLocationY(locA) set udg_dx=((udg_dx*udg_dx)+(udg_dy*udg_dy)) return SquareRoot(udg_dx) endfunction function MultiboardSetItemValueNew takes multiboard mb,integer col,integer row,string val returns nothing set udg_mbitem=MultiboardGetItem(udg_Multiboard,row-1,col-1) call MultiboardSetItemValue(udg_mbitem,val) call MultiboardReleaseItem(udg_mbitem) endfunction function MultiboardSetItemWidthNew takes multiboard mb,integer col,integer row,real width returns nothing set udg_mbitem=MultiboardGetItem(udg_Multiboard,row-1,col-1) call MultiboardSetItemWidth(udg_mbitem,width/100.0) call MultiboardReleaseItem(udg_mbitem) endfunction function MultiboardSetItemStyleNew takes multiboard mb,integer col,integer row,boolean showValue,boolean showIcon returns nothing set udg_mbitem=MultiboardGetItem(udg_Multiboard,row-1,col-1) call MultiboardSetItemStyle(udg_mbitem,showValue,showIcon) call MultiboardReleaseItem(udg_mbitem) endfunction function TriggerRegisterEnterRectNew takes trigger trig,rect r returns event set udg_rectRegion=CreateRegion() call RegionAddRect(udg_rectRegion,r) return TriggerRegisterEnterRegion(trig,udg_rectRegion,null) endfunction function ReplaceUnitNew takes unit whichUnit,integer newUnitId,integer unitStateMethod returns unit local unit oldUnit=whichUnit local unit newUnit local boolean wasHidden local integer index local item indexItem local real oldRatio if(oldUnit==null)then set bj_lastReplacedUnit=oldUnit set cj_v666_unit=oldUnit set oldUnit=null return cj_v666_unit endif set wasHidden=IsUnitHidden(oldUnit) call ShowUnit(oldUnit,false) if(newUnitId==0x75676F6C)then set newUnit=CreateBlightedGoldmine(GetOwningPlayer(oldUnit),GetUnitX(oldUnit),GetUnitY(oldUnit),GetUnitFacing(oldUnit)) else set newUnit=CreateUnit(GetOwningPlayer(oldUnit),newUnitId,GetUnitX(oldUnit),GetUnitY(oldUnit),GetUnitFacing(oldUnit)) endif if(unitStateMethod==bj_UNIT_STATE_METHOD_RELATIVE)then if(GetUnitState(oldUnit,UNIT_STATE_MAX_LIFE)>0)then set oldRatio=GetUnitState(oldUnit,UNIT_STATE_LIFE)/GetUnitState(oldUnit,UNIT_STATE_MAX_LIFE) call SetUnitState(newUnit,UNIT_STATE_LIFE,oldRatio*GetUnitState(newUnit,UNIT_STATE_MAX_LIFE)) endif if(GetUnitState(oldUnit,UNIT_STATE_MAX_MANA)>0)and(GetUnitState(newUnit,UNIT_STATE_MAX_MANA)>0)then set oldRatio=GetUnitState(oldUnit,UNIT_STATE_MANA)/GetUnitState(oldUnit,UNIT_STATE_MAX_MANA) call SetUnitState(newUnit,UNIT_STATE_MANA,oldRatio*GetUnitState(newUnit,UNIT_STATE_MAX_MANA)) endif elseif(unitStateMethod==bj_UNIT_STATE_METHOD_ABSOLUTE)then call SetUnitState(newUnit,UNIT_STATE_LIFE,GetUnitState(oldUnit,UNIT_STATE_LIFE)) if(GetUnitState(newUnit,UNIT_STATE_MAX_MANA)>0)then call SetUnitState(newUnit,UNIT_STATE_MANA,GetUnitState(oldUnit,UNIT_STATE_MANA)) endif elseif(unitStateMethod==bj_UNIT_STATE_METHOD_DEFAULTS)then elseif(unitStateMethod==bj_UNIT_STATE_METHOD_MAXIMUM)then call SetUnitState(newUnit,UNIT_STATE_LIFE,GetUnitState(newUnit,UNIT_STATE_MAX_LIFE)) call SetUnitState(newUnit,UNIT_STATE_MANA,GetUnitState(newUnit,UNIT_STATE_MAX_MANA)) else endif call SetResourceAmount(newUnit,GetResourceAmount(oldUnit)) if(IsUnitType(oldUnit,UNIT_TYPE_HERO)and IsUnitType(newUnit,UNIT_TYPE_HERO))then call SetHeroXP(newUnit,GetHeroXP(oldUnit),false) set index=0 loop set indexItem=UnitItemInSlot(oldUnit,index) if(indexItem!=null)then call UnitRemoveItem(oldUnit,indexItem) call UnitAddItem(newUnit,indexItem) endif set index=index+1 exitwhen index>=bj_MAX_INVENTORY endloop endif if wasHidden then call KillUnit(oldUnit) call RemoveUnit(oldUnit) else call RemoveUnit(oldUnit) endif set bj_lastReplacedUnit=newUnit set oldUnit=null set newUnit=null set wasHidden=false set index=0 set indexItem=null set oldRatio=0 return bj_lastReplacedUnit endfunction function Trig_Initialization_group takes nothing returns nothing if(GetUnitTypeId(GetEnumUnit())==0x68766C74)then call IssueTargetOrder(GetEnumUnit(),"neutralinteract",GetEnumUnit()) else endif endfunction function DeleteUnits takes nothing returns nothing if(GetPlayerSlotState(GetOwningPlayer(GetEnumUnit()))!=PLAYER_SLOT_STATE_PLAYING)then call RemoveUnit(GetEnumUnit()) endif endfunction function Trig_Initialization_Actions takes nothing returns nothing local integer index=0 call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function DeleteUnits) call GroupClear(udg_Group_X) call SetFloatGameState(GAME_STATE_TIME_OF_DAY,bj_MELEE_STARTING_TOD) call TriggerSleepAction(0.00) call SetPlayerName(Player(0),("|c00ff0000"+(GetPlayerName(Player(0))+"|r"))) call SetPlayerName(Player(1),("|c000042ff"+(GetPlayerName(Player(1))+"|r"))) call SetPlayerName(Player(2),("|c001CE6B9"+(GetPlayerName(Player(2))+"|r"))) call SetPlayerName(Player(3),("|c00540081"+(GetPlayerName(Player(3))+"|r"))) call SetPlayerName(Player(4),("|c00FFFC01"+(GetPlayerName(Player(4))+"|r"))) call SetPlayerName(Player(5),("|c00FEBA0E"+(GetPlayerName(Player(5))+"|r"))) call SetPlayerName(Player(6),("|c0020C500"+(GetPlayerName(Player(6))+"|r"))) call SetPlayerName(Player(7),("|c00E55BB0"+(GetPlayerName(Player(7))+"|r"))) call SetPlayerName(Player(8),("|c00959697"+(GetPlayerName(Player(8))+"|r"))) call SetPlayerName(Player(9),("|c007EBFF1"+(GetPlayerName(Player(9))+"|r"))) call SetPlayerName(Player(10),("|c00106246"+(GetPlayerName(Player(10))+"|r"))) call SetPlayerName(Player(11),("|c004E2A04"+(GetPlayerName(Player(11))+"|r"))) loop exitwhen index>11 set bj_lastCreatedFogModifier=CreateFogModifierRect(Player(index),FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea,true,false) call FogModifierStart(bj_lastCreatedFogModifier) call SetPlayerState(Player(index),PLAYER_STATE_GOLD_GATHERED,150) call SetPlayerState(Player(index),PLAYER_STATE_LUMBER_GATHERED,15) call SetPlayerState(Player(index),PLAYER_STATE_RESOURCE_GOLD,150) call SetPlayerState(Player(index),PLAYER_STATE_RESOURCE_LUMBER,15) call SetPlayerState(Player(index),PLAYER_STATE_GIVES_BOUNTY,1) call SetPlayerAbilityAvailable(Player(index),0x41303032,false) call SetPlayerAbilityAvailable(Player(index),0x41303033,false) call SetPlayerAbilityAvailable(Player(index),0x41303036,false) call SetPlayerAbilityAvailable(Player(index),0x41303037,false) call SetPlayerAbilityAvailable(Player(index),0x41303039,false) call SetPlayerTechMaxAllowed(Player(index),0x65777370,20) set udg_PlayerAttack[index+1]=GetPlayerId(Player(index))+1 set udg_Lives[index+1]=10 if(GetPlayerSlotState(Player(index))==PLAYER_SLOT_STATE_PLAYING)then call ForceAddPlayer(udg_PlayingPlayers,Player(index)) endif set index=index+1 endloop call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_Initialization_group) call TriggerExecute(gg_trg_variables) call TriggerExecute(gg_trg_peons) call TriggerExecute(gg_trg_FirstCreateM) call TriggerExecute(gg_trg_DialogsCreate) call TimerStart(udg_WaveTimer,40.00,false,null) set bj_lastCreatedTimerDialog=CreateTimerDialog(udg_WaveTimer) call TimerDialogSetTitle(bj_lastCreatedTimerDialog,"До крипов") call TimerDialogDisplay(bj_lastCreatedTimerDialog,true) call DialogDisplay(Player(0),udg_GoldModeSelection,true) endfunction function InitTrig_Initialization takes nothing returns nothing set gg_trg_Initialization=CreateTrigger() call TriggerAddAction(gg_trg_Initialization,function Trig_Initialization_Actions) endfunction function Trig_DialogsCreate_Actions takes nothing returns nothing call DialogSetMessage(udg_GoldModeSelection,"Пассивный инком") set udg_AcceptGold=DialogAddButton(udg_GoldModeSelection,"Включить",0) set udg_DontAccepGold=DialogAddButton(udg_GoldModeSelection,"Выключить",0) call DialogSetMessage(udg_HardModeSelection,"Сложность") set udg_AcceptHard=DialogAddButton(udg_HardModeSelection,"Сложно",0) set udg_DontAccepHard=DialogAddButton(udg_HardModeSelection,"Легко",0) endfunction function InitTrig_DialogsCreate takes nothing returns nothing set gg_trg_DialogsCreate=CreateTrigger() call TriggerAddAction(gg_trg_DialogsCreate,function Trig_DialogsCreate_Actions) endfunction function Trig_GoldClickedDiffShow_Actions takes nothing returns nothing local integer a=0 call DisableTrigger(gg_trg_GoldClickedDiffShow) if GetClickedButton()==udg_AcceptGold then call EnableTrigger(gg_trg_GoldMod) loop exitwhen a>11 call DisplayTextToPlayer(Player(a),0,0,"|c0000ffffПассивный инком включен|r") set a=a+1 endloop else loop exitwhen a>11 call DisplayTextToPlayer(Player(a),0,0,"|c00ff0000Пассивный инком отключен|r") set a=a+1 endloop endif call DialogDisplay(Player(0),udg_GoldModeSelection,false) call DialogDisplay(Player(0),udg_HardModeSelection,true) call DestroyTrigger(gg_trg_GoldClickedDiffShow) endfunction function InitTrig_GoldClickedDiffShow takes nothing returns nothing set gg_trg_GoldClickedDiffShow=CreateTrigger() call TriggerRegisterDialogEvent(gg_trg_GoldClickedDiffShow,udg_GoldModeSelection) call TriggerAddAction(gg_trg_GoldClickedDiffShow,function Trig_GoldClickedDiffShow_Actions) endfunction function Trig_HardClicked_Actions takes nothing returns nothing local integer a=0 call DisableTrigger(gg_trg_HardClicked) if GetClickedButton()==udg_AcceptHard then set udg_HardMode=true loop exitwhen a>11 call DisplayTextToPlayer(Player(a),0,0,"|c00ff0000Сложный режим|r") set a=a+1 endloop else loop exitwhen a>11 call DisplayTextToPlayer(Player(a),0,0,"|c0000ffffЛёгкий режим|r") set a=a+1 endloop call DisableTrigger(gg_trg_cristalls) endif call DialogDisplay(Player(0),udg_HardModeSelection,false) call DestroyTrigger(gg_trg_HardClicked) endfunction function InitTrig_HardClicked takes nothing returns nothing set gg_trg_HardClicked=CreateTrigger() call TriggerRegisterDialogEvent(gg_trg_HardClicked,udg_HardModeSelection) call TriggerAddAction(gg_trg_HardClicked,function Trig_HardClicked_Actions) endfunction function Trig_variables_Actions takes nothing returns nothing local integer i set udg_Rect[1]=gg_rct_1_1 set udg_Rect[2]=gg_rct_1_2 set udg_Rect[3]=gg_rct_1_3 set udg_Rect[4]=gg_rct_1_4 set udg_Rect[5]=gg_rct_1_5 set udg_Rect[6]=gg_rct_1_6 set udg_Rect[7]=gg_rct_1_7 set udg_Rect[8]=gg_rct_1_8 set udg_Rect[9]=gg_rct_1_9 set udg_Rect[10]=gg_rct_1_10 set udg_Rect[11]=gg_rct_1_11 set udg_Rect[12]=gg_rct_1_12 set udg_Rect[13]=gg_rct_1_13 set udg_Rect[14]=gg_rct_1_14 set udg_Rect[15]=gg_rct_1_15 set udg_Rect[16]=gg_rct_1_16 set udg_Rect[17]=gg_rct_1_17 set udg_Rect[18]=gg_rct_1_18 set udg_Rect[19]=gg_rct_1_19 set udg_Rect[20]=gg_rct_1_20 set udg_Rect[21]=gg_rct_1_21 set udg_Rect[22]=gg_rct_1_1_____________________u set udg_Rect[23]=gg_rct_1_2_____________________u set udg_Rect[24]=gg_rct_1_3_____________________u set udg_Rect[25]=gg_rct_1_4_____________________u set udg_Rect[26]=gg_rct_1_5_____________________u set udg_Rect[27]=gg_rct_1_6_____________________u set udg_Rect[28]=gg_rct_1_7_____________________u set udg_Rect[29]=gg_rct_1_8_____________________u set udg_Rect[30]=gg_rct_1_9_____________________u set udg_Rect[31]=gg_rct_1_10_____________________u set udg_Rect[32]=gg_rct_1_11_____________________u set udg_Rect[33]=gg_rct_1_12_____________________u set udg_Rect[34]=gg_rct_1_13_____________________u set udg_Rect[35]=gg_rct_1_14_____________________u set udg_Rect[36]=gg_rct_1_15_____________________u set udg_Rect[37]=gg_rct_1_16_____________________u set udg_Rect[38]=gg_rct_1_17_____________________u set udg_Rect[39]=gg_rct_1_18_____________________u set udg_Rect[40]=gg_rct_1_19_____________________u set udg_Rect[41]=gg_rct_1_20_____________________u set udg_Rect[42]=gg_rct_1_21_____________________u set udg_Rect[43]=gg_rct_1_1______________________2 set udg_Rect[44]=gg_rct_1_2______________________2 set udg_Rect[45]=gg_rct_1_3______________________2 set udg_Rect[46]=gg_rct_1_4______________________2 set udg_Rect[47]=gg_rct_1_5______________________2 set udg_Rect[48]=gg_rct_1_6______________________2 set udg_Rect[49]=gg_rct_1_7______________________2 set udg_Rect[50]=gg_rct_1_8______________________2 set udg_Rect[51]=gg_rct_1_9______________________2 set udg_Rect[52]=gg_rct_1_10______________________2 set udg_Rect[53]=gg_rct_1_11______________________2 set udg_Rect[54]=gg_rct_1_12______________________2 set udg_Rect[55]=gg_rct_1_13______________________2 set udg_Rect[56]=gg_rct_1_14______________________2 set udg_Rect[57]=gg_rct_1_15______________________2 set udg_Rect[58]=gg_rct_1_16______________________2 set udg_Rect[59]=gg_rct_1_17______________________2 set udg_Rect[60]=gg_rct_1_18______________________2 set udg_Rect[61]=gg_rct_1_19______________________2 set udg_Rect[62]=gg_rct_1_20______________________2 set udg_Rect[63]=gg_rct_1_21______________________2 set udg_Rect[64]=gg_rct_1_1______________________3 set udg_Rect[65]=gg_rct_1_2______________________3 set udg_Rect[66]=gg_rct_1_3______________________3 set udg_Rect[67]=gg_rct_1_4______________________3 set udg_Rect[68]=gg_rct_1_5______________________3 set udg_Rect[69]=gg_rct_1_6______________________3 set udg_Rect[70]=gg_rct_1_7______________________3 set udg_Rect[71]=gg_rct_1_8______________________3 set udg_Rect[72]=gg_rct_1_9______________________3 set udg_Rect[73]=gg_rct_1_10______________________3 set udg_Rect[74]=gg_rct_1_11______________________3 set udg_Rect[75]=gg_rct_1_12______________________3 set udg_Rect[76]=gg_rct_1_13______________________3 set udg_Rect[77]=gg_rct_1_14______________________3 set udg_Rect[78]=gg_rct_1_15______________________3 set udg_Rect[79]=gg_rct_1_16______________________3 set udg_Rect[80]=gg_rct_1_17______________________3 set udg_Rect[81]=gg_rct_1_18______________________3 set udg_Rect[82]=gg_rct_1_19______________________3 set udg_Rect[83]=gg_rct_1_20______________________3 set udg_Rect[84]=gg_rct_1_21______________________3 set udg_Rect[85]=gg_rct_1_1______________________4 set udg_Rect[86]=gg_rct_1_2______________________4 set udg_Rect[87]=gg_rct_1_3______________________4 set udg_Rect[88]=gg_rct_1_4______________________4 set udg_Rect[89]=gg_rct_1_5______________________4 set udg_Rect[90]=gg_rct_1_6______________________4 set udg_Rect[91]=gg_rct_1_7______________________4 set udg_Rect[92]=gg_rct_1_8______________________4 set udg_Rect[93]=gg_rct_1_9______________________4 set udg_Rect[94]=gg_rct_1_10______________________4 set udg_Rect[95]=gg_rct_1_11______________________4 set udg_Rect[96]=gg_rct_1_12______________________4 set udg_Rect[97]=gg_rct_1_13______________________4 set udg_Rect[98]=gg_rct_1_14______________________4 set udg_Rect[99]=gg_rct_1_15______________________4 set udg_Rect[100]=gg_rct_1_16______________________4 set udg_Rect[101]=gg_rct_1_17______________________4 set udg_Rect[102]=gg_rct_1_18______________________4 set udg_Rect[103]=gg_rct_1_19______________________4 set udg_Rect[104]=gg_rct_1_20______________________4 set udg_Rect[105]=gg_rct_1_21______________________4 set udg_Rect[106]=gg_rct_1_1______________________5 set udg_Rect[107]=gg_rct_1_2______________________5 set udg_Rect[108]=gg_rct_1_3______________________5 set udg_Rect[109]=gg_rct_1_4______________________5 set udg_Rect[110]=gg_rct_1_5______________________5 set udg_Rect[111]=gg_rct_1_6______________________5 set udg_Rect[112]=gg_rct_1_7______________________5 set udg_Rect[113]=gg_rct_1_8______________________5 set udg_Rect[114]=gg_rct_1_9______________________5 set udg_Rect[115]=gg_rct_1_10______________________5 set udg_Rect[116]=gg_rct_1_11______________________5 set udg_Rect[117]=gg_rct_1_12______________________5 set udg_Rect[118]=gg_rct_1_13______________________5 set udg_Rect[119]=gg_rct_1_14______________________5 set udg_Rect[120]=gg_rct_1_15______________________5 set udg_Rect[121]=gg_rct_1_16______________________5 set udg_Rect[122]=gg_rct_1_17______________________5 set udg_Rect[123]=gg_rct_1_18______________________5 set udg_Rect[124]=gg_rct_1_19______________________5 set udg_Rect[125]=gg_rct_1_20______________________5 set udg_Rect[126]=gg_rct_1_21______________________5 set udg_Rect[127]=gg_rct_1_1______________________6 set udg_Rect[128]=gg_rct_1_2______________________6 set udg_Rect[129]=gg_rct_1_3______________________6 set udg_Rect[130]=gg_rct_1_4______________________6 set udg_Rect[131]=gg_rct_1_5______________________6 set udg_Rect[132]=gg_rct_1_6______________________6 set udg_Rect[133]=gg_rct_1_7______________________6 set udg_Rect[134]=gg_rct_1_8______________________6 set udg_Rect[135]=gg_rct_1_9______________________6 set udg_Rect[136]=gg_rct_1_10______________________6 set udg_Rect[137]=gg_rct_1_11______________________6 set udg_Rect[138]=gg_rct_1_12______________________6 set udg_Rect[139]=gg_rct_1_13______________________6 set udg_Rect[140]=gg_rct_1_14______________________6 set udg_Rect[141]=gg_rct_1_15______________________6 set udg_Rect[142]=gg_rct_1_16______________________6 set udg_Rect[143]=gg_rct_1_17______________________6 set udg_Rect[144]=gg_rct_1_18______________________6 set udg_Rect[145]=gg_rct_1_19______________________6 set udg_Rect[146]=gg_rct_1_20______________________6 set udg_Rect[147]=gg_rct_1_21______________________6 set udg_Rect[148]=gg_rct_1_1__________________________________________u set udg_Rect[149]=gg_rct_1_2__________________________________________u set udg_Rect[150]=gg_rct_1_3__________________________________________u set udg_Rect[151]=gg_rct_1_4__________________________________________u set udg_Rect[152]=gg_rct_1_5__________________________________________u set udg_Rect[153]=gg_rct_1_6__________________________________________u set udg_Rect[154]=gg_rct_1_7__________________________________________u set udg_Rect[155]=gg_rct_1_8__________________________________________u set udg_Rect[156]=gg_rct_1_9__________________________________________u set udg_Rect[157]=gg_rct_1_10__________________________________________u set udg_Rect[158]=gg_rct_1_11__________________________________________u set udg_Rect[159]=gg_rct_1_12__________________________________________u set udg_Rect[160]=gg_rct_1_13__________________________________________u set udg_Rect[161]=gg_rct_1_14__________________________________________u set udg_Rect[162]=gg_rct_1_15__________________________________________u set udg_Rect[163]=gg_rct_1_16__________________________________________u set udg_Rect[164]=gg_rct_1_17__________________________________________u set udg_Rect[165]=gg_rct_1_18__________________________________________u set udg_Rect[166]=gg_rct_1_19__________________________________________u set udg_Rect[167]=gg_rct_1_20__________________________________________u set udg_Rect[168]=gg_rct_1_21__________________________________________u set udg_Rect[169]=gg_rct_1_1______________________2_____________________u set udg_Rect[170]=gg_rct_1_2______________________2_____________________u set udg_Rect[171]=gg_rct_1_3______________________2_____________________u set udg_Rect[172]=gg_rct_1_4______________________2_____________________u set udg_Rect[173]=gg_rct_1_5______________________2_____________________u set udg_Rect[174]=gg_rct_1_6______________________2_____________________u set udg_Rect[175]=gg_rct_1_7______________________2_____________________u set udg_Rect[176]=gg_rct_1_8______________________2_____________________u set udg_Rect[177]=gg_rct_1_9______________________2_____________________u set udg_Rect[178]=gg_rct_1_10______________________2_____________________u set udg_Rect[179]=gg_rct_1_11______________________2_____________________u set udg_Rect[180]=gg_rct_1_12______________________2_____________________u set udg_Rect[181]=gg_rct_1_13______________________2_____________________u set udg_Rect[182]=gg_rct_1_14______________________2_____________________u set udg_Rect[183]=gg_rct_1_15______________________2_____________________u set udg_Rect[184]=gg_rct_1_16______________________2_____________________u set udg_Rect[185]=gg_rct_1_17______________________2_____________________u set udg_Rect[186]=gg_rct_1_18______________________2_____________________u set udg_Rect[187]=gg_rct_1_19______________________2_____________________u set udg_Rect[188]=gg_rct_1_20______________________2_____________________u set udg_Rect[189]=gg_rct_1_21______________________2_____________________u set udg_Rect[190]=gg_rct_1_1______________________3_____________________u set udg_Rect[191]=gg_rct_1_2______________________3_____________________u set udg_Rect[192]=gg_rct_1_3______________________3_____________________u set udg_Rect[193]=gg_rct_1_4______________________3_____________________u set udg_Rect[194]=gg_rct_1_5______________________3_____________________u set udg_Rect[195]=gg_rct_1_6______________________3_____________________u set udg_Rect[196]=gg_rct_1_7______________________3_____________________u set udg_Rect[197]=gg_rct_1_8______________________3_____________________u set udg_Rect[198]=gg_rct_1_9______________________3_____________________u set udg_Rect[199]=gg_rct_1_10______________________3_____________________u set udg_Rect[200]=gg_rct_1_11______________________3_____________________u set udg_Rect[201]=gg_rct_1_12______________________3_____________________u set udg_Rect[202]=gg_rct_1_13______________________3_____________________u set udg_Rect[203]=gg_rct_1_14______________________3_____________________u set udg_Rect[204]=gg_rct_1_15______________________3_____________________u set udg_Rect[205]=gg_rct_1_16______________________3_____________________u set udg_Rect[206]=gg_rct_1_17______________________3_____________________u set udg_Rect[207]=gg_rct_1_18______________________3_____________________u set udg_Rect[208]=gg_rct_1_19______________________3_____________________u set udg_Rect[209]=gg_rct_1_20______________________3_____________________u set udg_Rect[210]=gg_rct_1_21______________________3_____________________u set udg_Rect[211]=gg_rct_1_1______________________4_____________________u set udg_Rect[212]=gg_rct_1_2______________________4_____________________u set udg_Rect[213]=gg_rct_1_3______________________4_____________________u set udg_Rect[214]=gg_rct_1_4______________________4_____________________u set udg_Rect[215]=gg_rct_1_5______________________4_____________________u set udg_Rect[216]=gg_rct_1_6______________________4_____________________u set udg_Rect[217]=gg_rct_1_7______________________4_____________________u set udg_Rect[218]=gg_rct_1_8______________________4_____________________u set udg_Rect[219]=gg_rct_1_9______________________4_____________________u set udg_Rect[220]=gg_rct_1_10______________________4_____________________u set udg_Rect[221]=gg_rct_1_11______________________4_____________________u set udg_Rect[222]=gg_rct_1_12______________________4_____________________u set udg_Rect[223]=gg_rct_1_13______________________4_____________________u set udg_Rect[224]=gg_rct_1_14______________________4_____________________u set udg_Rect[225]=gg_rct_1_15______________________4_____________________u set udg_Rect[226]=gg_rct_1_16______________________4_____________________u set udg_Rect[227]=gg_rct_1_17______________________4_____________________u set udg_Rect[228]=gg_rct_1_18______________________4_____________________u set udg_Rect[229]=gg_rct_1_19______________________4_____________________u set udg_Rect[230]=gg_rct_1_20______________________4_____________________u set udg_Rect[231]=gg_rct_1_21______________________4_____________________u set udg_Rect[232]=gg_rct_1_1______________________5_____________________u set udg_Rect[233]=gg_rct_1_2______________________5_____________________u set udg_Rect[234]=gg_rct_1_3______________________5_____________________u set udg_Rect[235]=gg_rct_1_4______________________5_____________________u set udg_Rect[236]=gg_rct_1_5______________________5_____________________u set udg_Rect[237]=gg_rct_1_6______________________5_____________________u set udg_Rect[238]=gg_rct_1_7______________________5_____________________u set udg_Rect[239]=gg_rct_1_8______________________5_____________________u set udg_Rect[240]=gg_rct_1_9______________________5_____________________u set udg_Rect[241]=gg_rct_1_10______________________5_____________________u set udg_Rect[242]=gg_rct_1_11______________________5_____________________u set udg_Rect[243]=gg_rct_1_12______________________5_____________________u set udg_Rect[244]=gg_rct_1_13______________________5_____________________u set udg_Rect[245]=gg_rct_1_14______________________5_____________________u set udg_Rect[246]=gg_rct_1_15______________________5_____________________u set udg_Rect[247]=gg_rct_1_16______________________5_____________________u set udg_Rect[248]=gg_rct_1_17______________________5_____________________u set udg_Rect[249]=gg_rct_1_18______________________5_____________________u set udg_Rect[250]=gg_rct_1_19______________________5_____________________u set udg_Rect[251]=gg_rct_1_20______________________5_____________________u set udg_Rect[252]=gg_rct_1_21______________________5_____________________u set udg_ChekRect[1]=gg_rct_cr_1_1 set udg_ChekRect[2]=gg_rct_cr_1_2 set udg_ChekRect[3]=gg_rct_cr_1_3 set udg_ChekRect[4]=gg_rct_cr_1_4 set udg_ChekRect[5]=gg_rct_cr_1_5 set udg_ChekRect[6]=gg_rct_cr_1_6 set udg_ChekRect[7]=gg_rct_cr_1_7 set udg_ChekRect[8]=gg_rct_cr_1_8 set udg_ChekRect[9]=gg_rct_cr_1_9 set udg_ChekRect[10]=gg_rct_cr_1_10 set udg_ChekRect[11]=gg_rct_cr_1_11 set udg_ChekRect[12]=gg_rct_cr_1_12 set udg_ChekRect[13]=gg_rct_cr_1_13 set udg_ChekRect[14]=gg_rct_cr_1_14 set udg_ChekRect[15]=gg_rct_cr_1_15 set udg_ChekRect[16]=gg_rct_cr_1_16 set udg_ChekRect[17]=gg_rct_cr_1_17 set udg_ChekRect[18]=gg_rct_cr_1_18 set udg_ChekRect[19]=gg_rct_cr_1_19 set udg_ChekRect[20]=gg_rct_cr_1_20 set udg_ChekRect[21]=gg_rct_cr_1_21 set udg_ChekRect[22]=gg_rct_cr_1_1_____________________u set udg_ChekRect[23]=gg_rct_cr_1_2_____________________u set udg_ChekRect[24]=gg_rct_cr_1_3_____________________u set udg_ChekRect[25]=gg_rct_cr_1_4_____________________u set udg_ChekRect[26]=gg_rct_cr_1_5_____________________u set udg_ChekRect[27]=gg_rct_cr_1_6_____________________u set udg_ChekRect[28]=gg_rct_cr_1_7_____________________u set udg_ChekRect[29]=gg_rct_cr_1_8_____________________u set udg_ChekRect[30]=gg_rct_cr_1_9_____________________u set udg_ChekRect[31]=gg_rct_cr_1_10_____________________u set udg_ChekRect[32]=gg_rct_cr_1_11_____________________u set udg_ChekRect[33]=gg_rct_cr_1_12_____________________u set udg_ChekRect[34]=gg_rct_cr_1_13_____________________u set udg_ChekRect[35]=gg_rct_cr_1_14_____________________u set udg_ChekRect[36]=gg_rct_cr_1_15_____________________u set udg_ChekRect[37]=gg_rct_cr_1_16_____________________u set udg_ChekRect[38]=gg_rct_cr_1_17_____________________u set udg_ChekRect[39]=gg_rct_cr_1_18_____________________u set udg_ChekRect[40]=gg_rct_cr_1_19_____________________u set udg_ChekRect[41]=gg_rct_cr_1_20_____________________u set udg_ChekRect[42]=gg_rct_cr_1_21_____________________u set udg_ChekRect[43]=gg_rct_cr_1_1______________________2 set udg_ChekRect[44]=gg_rct_cr_1_2______________________2 set udg_ChekRect[45]=gg_rct_cr_1_3______________________2 set udg_ChekRect[46]=gg_rct_cr_1_4______________________2 set udg_ChekRect[47]=gg_rct_cr_1_5______________________2 set udg_ChekRect[48]=gg_rct_cr_1_6______________________2 set udg_ChekRect[49]=gg_rct_cr_1_7______________________2 set udg_ChekRect[50]=gg_rct_cr_1_8______________________2 set udg_ChekRect[51]=gg_rct_cr_1_9______________________2 set udg_ChekRect[52]=gg_rct_cr_1_10______________________2 set udg_ChekRect[53]=gg_rct_cr_1_11______________________2 set udg_ChekRect[54]=gg_rct_cr_1_12______________________2 set udg_ChekRect[55]=gg_rct_cr_1_13______________________2 set udg_ChekRect[56]=gg_rct_cr_1_14______________________2 set udg_ChekRect[57]=gg_rct_cr_1_15______________________2 set udg_ChekRect[58]=gg_rct_cr_1_16______________________2 set udg_ChekRect[59]=gg_rct_cr_1_17______________________2 set udg_ChekRect[60]=gg_rct_cr_1_18______________________2 set udg_ChekRect[61]=gg_rct_cr_1_19______________________2 set udg_ChekRect[62]=gg_rct_cr_1_20______________________2 set udg_ChekRect[63]=gg_rct_cr_1_21______________________2 set udg_ChekRect[64]=gg_rct_cr_1_1______________________3 set udg_ChekRect[65]=gg_rct_cr_1_2______________________3 set udg_ChekRect[66]=gg_rct_cr_1_3______________________3 set udg_ChekRect[67]=gg_rct_cr_1_4______________________3 set udg_ChekRect[68]=gg_rct_cr_1_5______________________3 set udg_ChekRect[69]=gg_rct_cr_1_6______________________3 set udg_ChekRect[70]=gg_rct_cr_1_7______________________3 set udg_ChekRect[71]=gg_rct_cr_1_8______________________3 set udg_ChekRect[72]=gg_rct_cr_1_9______________________3 set udg_ChekRect[73]=gg_rct_cr_1_10______________________3 set udg_ChekRect[74]=gg_rct_cr_1_11______________________3 set udg_ChekRect[75]=gg_rct_cr_1_12______________________3 set udg_ChekRect[76]=gg_rct_cr_1_13______________________3 set udg_ChekRect[77]=gg_rct_cr_1_14______________________3 set udg_ChekRect[78]=gg_rct_cr_1_15______________________3 set udg_ChekRect[79]=gg_rct_cr_1_16______________________3 set udg_ChekRect[80]=gg_rct_cr_1_17______________________3 set udg_ChekRect[81]=gg_rct_cr_1_18______________________3 set udg_ChekRect[82]=gg_rct_cr_1_19______________________3 set udg_ChekRect[83]=gg_rct_cr_1_20______________________3 set udg_ChekRect[84]=gg_rct_cr_1_21______________________3 set udg_ChekRect[85]=gg_rct_cr_1_1______________________4 set udg_ChekRect[86]=gg_rct_cr_1_2______________________4 set udg_ChekRect[87]=gg_rct_cr_1_3______________________4 set udg_ChekRect[88]=gg_rct_cr_1_4______________________4 set udg_ChekRect[89]=gg_rct_cr_1_5______________________4 set udg_ChekRect[90]=gg_rct_cr_1_6______________________4 set udg_ChekRect[91]=gg_rct_cr_1_7______________________4 set udg_ChekRect[92]=gg_rct_cr_1_8______________________4 set udg_ChekRect[93]=gg_rct_cr_1_9______________________4 set udg_ChekRect[94]=gg_rct_cr_1_10______________________4 set udg_ChekRect[95]=gg_rct_cr_1_11______________________4 set udg_ChekRect[96]=gg_rct_cr_1_12______________________4 set udg_ChekRect[97]=gg_rct_cr_1_13______________________4 set udg_ChekRect[98]=gg_rct_cr_1_14______________________4 set udg_ChekRect[99]=gg_rct_cr_1_15______________________4 set udg_ChekRect[100]=gg_rct_cr_1_16______________________4 set udg_ChekRect[101]=gg_rct_cr_1_17______________________4 set udg_ChekRect[102]=gg_rct_cr_1_18______________________4 set udg_ChekRect[103]=gg_rct_cr_1_19______________________4 set udg_ChekRect[104]=gg_rct_cr_1_20______________________4 set udg_ChekRect[105]=gg_rct_cr_1_21______________________4 set udg_ChekRect[106]=gg_rct_cr_1_1______________________5 set udg_ChekRect[107]=gg_rct_cr_1_2______________________5 set udg_ChekRect[108]=gg_rct_cr_1_3______________________5 set udg_ChekRect[109]=gg_rct_cr_1_4______________________5 set udg_ChekRect[110]=gg_rct_cr_1_5______________________5 set udg_ChekRect[111]=gg_rct_cr_1_6______________________5 set udg_ChekRect[112]=gg_rct_cr_1_7______________________5 set udg_ChekRect[113]=gg_rct_cr_1_8______________________5 set udg_ChekRect[114]=gg_rct_cr_1_9______________________5 set udg_ChekRect[115]=gg_rct_cr_1_10______________________5 set udg_ChekRect[116]=gg_rct_cr_1_11______________________5 set udg_ChekRect[117]=gg_rct_cr_1_12______________________5 set udg_ChekRect[118]=gg_rct_cr_1_13______________________5 set udg_ChekRect[119]=gg_rct_cr_1_14______________________5 set udg_ChekRect[120]=gg_rct_cr_1_15______________________5 set udg_ChekRect[121]=gg_rct_cr_1_16______________________5 set udg_ChekRect[122]=gg_rct_cr_1_17______________________5 set udg_ChekRect[123]=gg_rct_cr_1_18______________________5 set udg_ChekRect[124]=gg_rct_cr_1_19______________________5 set udg_ChekRect[125]=gg_rct_cr_1_20______________________5 set udg_ChekRect[126]=gg_rct_cr_1_21______________________5 set udg_ChekRect[127]=gg_rct_cr_1_1______________________6 set udg_ChekRect[128]=gg_rct_cr_1_2______________________6 set udg_ChekRect[129]=gg_rct_cr_1_3______________________6 set udg_ChekRect[130]=gg_rct_cr_1_4______________________6 set udg_ChekRect[131]=gg_rct_cr_1_5______________________6 set udg_ChekRect[132]=gg_rct_cr_1_6______________________6 set udg_ChekRect[133]=gg_rct_cr_1_7______________________6 set udg_ChekRect[134]=gg_rct_cr_1_8______________________6 set udg_ChekRect[135]=gg_rct_cr_1_9______________________6 set udg_ChekRect[136]=gg_rct_cr_1_10______________________6 set udg_ChekRect[137]=gg_rct_cr_1_11______________________6 set udg_ChekRect[138]=gg_rct_cr_1_12______________________6 set udg_ChekRect[139]=gg_rct_cr_1_13______________________6 set udg_ChekRect[140]=gg_rct_cr_1_14______________________6 set udg_ChekRect[141]=gg_rct_cr_1_15______________________6 set udg_ChekRect[142]=gg_rct_cr_1_16______________________6 set udg_ChekRect[143]=gg_rct_cr_1_17______________________6 set udg_ChekRect[144]=gg_rct_cr_1_18______________________6 set udg_ChekRect[145]=gg_rct_cr_1_19______________________6 set udg_ChekRect[146]=gg_rct_cr_1_20______________________6 set udg_ChekRect[147]=gg_rct_cr_1_21______________________6 set udg_ChekRect[148]=gg_rct_cr_1_1__________________________________________u set udg_ChekRect[149]=gg_rct_cr_1_2__________________________________________u set udg_ChekRect[150]=gg_rct_cr_1_3__________________________________________u set udg_ChekRect[151]=gg_rct_cr_1_4__________________________________________u set udg_ChekRect[152]=gg_rct_cr_1_5__________________________________________u set udg_ChekRect[153]=gg_rct_cr_1_6__________________________________________u set udg_ChekRect[154]=gg_rct_cr_1_7__________________________________________u set udg_ChekRect[155]=gg_rct_cr_1_8__________________________________________u set udg_ChekRect[156]=gg_rct_cr_1_9__________________________________________u set udg_ChekRect[157]=gg_rct_cr_1_10__________________________________________u set udg_ChekRect[158]=gg_rct_cr_1_11__________________________________________u set udg_ChekRect[159]=gg_rct_cr_1_12__________________________________________u set udg_ChekRect[160]=gg_rct_cr_1_13__________________________________________u set udg_ChekRect[161]=gg_rct_cr_1_14__________________________________________u set udg_ChekRect[162]=gg_rct_cr_1_15__________________________________________u set udg_ChekRect[163]=gg_rct_cr_1_16__________________________________________u set udg_ChekRect[164]=gg_rct_cr_1_17__________________________________________u set udg_ChekRect[165]=gg_rct_cr_1_18__________________________________________u set udg_ChekRect[166]=gg_rct_cr_1_19__________________________________________u set udg_ChekRect[167]=gg_rct_cr_1_20__________________________________________u set udg_ChekRect[168]=gg_rct_cr_1_21__________________________________________u set udg_ChekRect[169]=gg_rct_cr_1_1______________________2_____________________u set udg_ChekRect[170]=gg_rct_cr_1_2______________________2_____________________u set udg_ChekRect[171]=gg_rct_cr_1_3______________________2_____________________u set udg_ChekRect[172]=gg_rct_cr_1_4______________________2_____________________u set udg_ChekRect[173]=gg_rct_cr_1_5______________________2_____________________u set udg_ChekRect[174]=gg_rct_cr_1_6______________________2_____________________u set udg_ChekRect[175]=gg_rct_cr_1_7______________________2_____________________u set udg_ChekRect[176]=gg_rct_cr_1_8______________________2_____________________u set udg_ChekRect[177]=gg_rct_cr_1_9______________________2_____________________u set udg_ChekRect[178]=gg_rct_cr_1_10______________________2_____________________u set udg_ChekRect[179]=gg_rct_cr_1_11______________________2_____________________u set udg_ChekRect[180]=gg_rct_cr_1_12______________________2_____________________u set udg_ChekRect[181]=gg_rct_cr_1_13______________________2_____________________u set udg_ChekRect[182]=gg_rct_cr_1_14______________________2_____________________u set udg_ChekRect[183]=gg_rct_cr_1_15______________________2_____________________u set udg_ChekRect[184]=gg_rct_cr_1_16______________________2_____________________u set udg_ChekRect[185]=gg_rct_cr_1_17______________________2_____________________u set udg_ChekRect[186]=gg_rct_cr_1_18______________________2_____________________u set udg_ChekRect[187]=gg_rct_cr_1_19______________________2_____________________u set udg_ChekRect[188]=gg_rct_cr_1_20______________________2_____________________u set udg_ChekRect[189]=gg_rct_cr_1_21______________________2_____________________u set udg_ChekRect[190]=gg_rct_cr_1_1______________________3_____________________u set udg_ChekRect[191]=gg_rct_cr_1_2______________________3_____________________u set udg_ChekRect[192]=gg_rct_cr_1_3______________________3_____________________u set udg_ChekRect[193]=gg_rct_cr_1_4______________________3_____________________u set udg_ChekRect[194]=gg_rct_cr_1_5______________________3_____________________u set udg_ChekRect[195]=gg_rct_cr_1_6______________________3_____________________u set udg_ChekRect[196]=gg_rct_cr_1_7______________________3_____________________u set udg_ChekRect[197]=gg_rct_cr_1_8______________________3_____________________u set udg_ChekRect[198]=gg_rct_cr_1_9______________________3_____________________u set udg_ChekRect[199]=gg_rct_cr_1_10______________________3_____________________u set udg_ChekRect[200]=gg_rct_cr_1_11______________________3_____________________u set udg_ChekRect[201]=gg_rct_cr_1_12______________________3_____________________u set udg_ChekRect[202]=gg_rct_cr_1_13______________________3_____________________u set udg_ChekRect[203]=gg_rct_cr_1_14______________________3_____________________u set udg_ChekRect[204]=gg_rct_cr_1_15______________________3_____________________u set udg_ChekRect[205]=gg_rct_cr_1_16______________________3_____________________u set udg_ChekRect[206]=gg_rct_cr_1_17______________________3_____________________u set udg_ChekRect[207]=gg_rct_cr_1_18______________________3_____________________u set udg_ChekRect[208]=gg_rct_cr_1_19______________________3_____________________u set udg_ChekRect[209]=gg_rct_cr_1_20______________________3_____________________u set udg_ChekRect[210]=gg_rct_cr_1_21______________________3_____________________u set udg_ChekRect[211]=gg_rct_cr_1_1______________________4_____________________u set udg_ChekRect[212]=gg_rct_cr_1_2______________________4_____________________u set udg_ChekRect[213]=gg_rct_cr_1_3______________________4_____________________u set udg_ChekRect[214]=gg_rct_cr_1_4______________________4_____________________u set udg_ChekRect[215]=gg_rct_cr_1_5______________________4_____________________u set udg_ChekRect[216]=gg_rct_cr_1_6______________________4_____________________u set udg_ChekRect[217]=gg_rct_cr_1_7______________________4_____________________u set udg_ChekRect[218]=gg_rct_cr_1_8______________________4_____________________u set udg_ChekRect[219]=gg_rct_cr_1_9______________________4_____________________u set udg_ChekRect[220]=gg_rct_cr_1_10______________________4_____________________u set udg_ChekRect[221]=gg_rct_cr_1_11______________________4_____________________u set udg_ChekRect[222]=gg_rct_cr_1_12______________________4_____________________u set udg_ChekRect[223]=gg_rct_cr_1_13______________________4_____________________u set udg_ChekRect[224]=gg_rct_cr_1_14______________________4_____________________u set udg_ChekRect[225]=gg_rct_cr_1_15______________________4_____________________u set udg_ChekRect[226]=gg_rct_cr_1_16______________________4_____________________u set udg_ChekRect[227]=gg_rct_cr_1_17______________________4_____________________u set udg_ChekRect[228]=gg_rct_cr_1_18______________________4_____________________u set udg_ChekRect[229]=gg_rct_cr_1_19______________________4_____________________u set udg_ChekRect[230]=gg_rct_cr_1_20______________________4_____________________u set udg_ChekRect[231]=gg_rct_cr_1_21______________________4_____________________u set udg_ChekRect[232]=gg_rct_cr_1_1______________________5_____________________u set udg_ChekRect[233]=gg_rct_cr_1_2______________________5_____________________u set udg_ChekRect[234]=gg_rct_cr_1_3______________________5_____________________u set udg_ChekRect[235]=gg_rct_cr_1_4______________________5_____________________u set udg_ChekRect[236]=gg_rct_cr_1_5______________________5_____________________u set udg_ChekRect[237]=gg_rct_cr_1_6______________________5_____________________u set udg_ChekRect[238]=gg_rct_cr_1_7______________________5_____________________u set udg_ChekRect[239]=gg_rct_cr_1_8______________________5_____________________u set udg_ChekRect[240]=gg_rct_cr_1_9______________________5_____________________u set udg_ChekRect[241]=gg_rct_cr_1_10______________________5_____________________u set udg_ChekRect[242]=gg_rct_cr_1_11______________________5_____________________u set udg_ChekRect[243]=gg_rct_cr_1_12______________________5_____________________u set udg_ChekRect[244]=gg_rct_cr_1_13______________________5_____________________u set udg_ChekRect[245]=gg_rct_cr_1_14______________________5_____________________u set udg_ChekRect[246]=gg_rct_cr_1_15______________________5_____________________u set udg_ChekRect[247]=gg_rct_cr_1_16______________________5_____________________u set udg_ChekRect[248]=gg_rct_cr_1_17______________________5_____________________u set udg_ChekRect[249]=gg_rct_cr_1_18______________________5_____________________u set udg_ChekRect[250]=gg_rct_cr_1_19______________________5_____________________u set udg_ChekRect[251]=gg_rct_cr_1_20______________________5_____________________u set udg_ChekRect[252]=gg_rct_cr_1_21______________________5_____________________u set i=1 loop exitwhen i>252 set udg_point[i]=Location(GetRectCenterX(udg_Rect[i]),GetRectCenterY(udg_Rect[i])) call TriggerRegisterEnterRectNew(gg_trg_enter,udg_Rect[i]) set i=i+1 endloop endfunction function InitTrig_variables takes nothing returns nothing set gg_trg_variables=CreateTrigger() call TriggerAddAction(gg_trg_variables,function Trig_variables_Actions) endfunction function Trig_peons_Actions takes nothing returns nothing local integer a=0 local integer b local integer x local integer op local player p local location loc loop exitwhen a>3 set b=0 loop exitwhen b>3 set op=((a*3)+b) set p=Player(op) if GetPlayerSlotState(p)==PLAYER_SLOT_STATE_PLAYING then set x=0 loop exitwhen x>14 set loc=Location((8600.00+((192.00*I2R(x))-(6400.00*I2R(a)))),(-2524.00-(4004.00*I2R(b)))) set udg_UnitCreepStandingOnMap[((op*36)+x+1)]=CreateUnitAtLoc(p,0x6F303030,loc,270) set x=x+1 call RemoveLocation(loc) endloop set x=0 loop exitwhen x>2 set loc=Location((11480.00+((192.00*I2R(x))-(6400.00*I2R(a)))),(-2524.00-(4004.00*I2R(b)))) set udg_UnitCreepStandingOnMap[((op*36)+x+16)]=CreateUnitAtLoc(p,0x6F747262,loc,270) set x=x+1 call RemoveLocation(loc) endloop set x=0 loop exitwhen x>17 set loc=Location((8600.00+((192.00*I2R(x))-(6400.00*I2R(a)))),(-2716.00-(4004.00*I2R(b)))) set udg_UnitCreepStandingOnMap[((op*36)+x+19)]=CreateUnitAtLoc(p,0x6F747262,loc,270) set x=x+1 call RemoveLocation(loc) endloop endif set b=b+1 endloop set a=a+1 endloop set p=null set loc=null endfunction function InitTrig_peons takes nothing returns nothing set gg_trg_peons=CreateTrigger() call TriggerAddAction(gg_trg_peons,function Trig_peons_Actions) endfunction function Trig_enter_Conditions takes nothing returns boolean return not(IsUnitType(GetTriggerUnit(),UNIT_TYPE_PEON)or IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)) endfunction function Trig_enter_kill takes nothing returns nothing call KillUnit(GetEnumUnit()) endfunction function Trig_enter_Actions takes nothing returns nothing local integer i local integer y local integer x local integer IntY local group gz=CreateGroup() local integer IntZ=1 local unit EU=GetEnteringUnit() local integer UId=GetUnitTypeId(EU) local integer pn=0 local player pX if UId==0x6F677275 then set IntZ=2 endif if UId==0x6F746175 then set IntZ=2 endif if UId==0x6F726169 then set IntZ=3 endif set y=1 loop exitwhen y>udg_CreepNumber if EU==udg_Creep[y]then set IntY=y endif set y=y+1 endloop set y=1 loop exitwhen y>252 if RectContainsUnit(udg_ChekRect[y],EU)then set x=y endif set y=y+1 endloop set y=0 loop exitwhen(y>11)or(pn!=0) if(x>y*21)and(x<=(y+1)*21)then set pn=y+1 endif set y=y+1 endloop if(x-(x/21)*21==1)then call SetUnitPathing(EU,false) call DisableTrigger(gg_trg_CreepMovesRight) call IssuePointOrderLoc(EU,"move",udg_point[x+1]) call EnableTrigger(gg_trg_CreepMovesRight) set udg_CreepStartP[IntY]=udg_point[x] set udg_CreepFinishP[IntY]=udg_point[x+1] set udg_CreepStartPInt[IntY]=x set udg_CreepFinishPInt[IntY]=x+1 if IsUnitInGroup(EU,udg_GoingBack)then if(GetUnitAbilityLevel(EU,0x41497439)==1)then if UId==0x6E63706E then call SetPlayerState(GetOwningPlayer(EU),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetOwningPlayer(EU),PLAYER_STATE_RESOURCE_GOLD)+150) endif set udg_Lives[pn]=(udg_Lives[pn]-IntZ) set udg_Lives[GetPlayerId(GetOwningPlayer(EU))+1]=(udg_Lives[GetPlayerId(GetOwningPlayer(EU))+1]+IntZ) if(udg_Lives[pn]<=0)then set i=0 loop exitwhen i>11 call DisplayTimedTextToPlayer(Player(i),0,0,5.00,(GetPlayerName(Player(pn-1))+" проиграл!")) set i=i+1 endloop call ForceRemovePlayer(udg_PlayingPlayers,Player(pn-1)) call GroupEnumUnitsOfPlayer(gz,Player(pn-1),null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) call GroupEnumUnitsInRect(gz,udg_PlayerASector[pn],null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) call GroupEnumUnitsOfPlayer(gz,Player(pn-1),null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) set IntZ=0 set i=1 loop exitwhen i>12 if IsPlayerInForce(Player(i-1),udg_PlayingPlayers)then set IntZ=(IntZ+1) set pX=Player(i-1) endif set i=i+1 endloop if(IntZ==1)then call CustomVictoryBJ(pX,true,true) endif endif call TriggerExecute(gg_trg_CreateMultiboard) call UnitRemoveAbility(EU,0x41497439) endif call GroupRemoveUnit(udg_GoingBack,EU) endif else if(x-(x/21)*21==0)then if UId==0x75303033 then call KillUnit(EU) else call DisableTrigger(gg_trg_CreepMovesRight) call IssuePointOrderLoc(EU,"move",udg_point[(x-1)]) call EnableTrigger(gg_trg_CreepMovesRight) set udg_CreepStartP[IntY]=udg_point[x] set udg_CreepFinishP[IntY]=udg_point[x-1] set udg_CreepStartPInt[IntY]=x set udg_CreepFinishPInt[IntY]=x-1 if GetUnitAbilityLevel(EU,0x41497439)==0 then if UId==0x6E63706E then call SetPlayerState(GetOwningPlayer(EU),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetOwningPlayer(EU),PLAYER_STATE_RESOURCE_GOLD)+50) endif call GroupAddUnit(udg_GoingBack,EU) call UnitAddAbility(EU,0x41497439) endif if UId==0x6E62616E then call SetUnitMoveSpeed(EU,220.00) endif if UId==0x6E677370 then set udg_Lives[pn]=(udg_Lives[pn]-1) if(udg_Lives[pn]<=0)then set i=0 loop exitwhen i>11 call DisplayTimedTextToPlayer(Player(i),0,0,5.00,(GetPlayerName(Player(pn-1))+" проиграл!")) set i=i+1 endloop call ForceRemovePlayer(udg_PlayingPlayers,Player(pn-1)) call GroupEnumUnitsOfPlayer(gz,Player(pn-1),null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) call GroupEnumUnitsInRect(gz,udg_PlayerASector[pn],null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) set IntZ=0 set i=1 loop exitwhen i>12 if IsPlayerInForce(Player(i-1),udg_PlayingPlayers)then set IntZ=(IntZ+1) set pX=Player(i-1) endif set i=i+1 endloop if(IntZ==1)then call CustomVictoryBJ(pX,true,true) endif endif call TriggerExecute(gg_trg_CreateMultiboard) call KillUnit(EU) endif endif else if IsUnitInGroup(EU,udg_GoingBack)then call DisableTrigger(gg_trg_CreepMovesRight) call IssuePointOrderLoc(EU,"move",udg_point[x-1]) call EnableTrigger(gg_trg_CreepMovesRight) set udg_CreepStartP[IntY]=udg_point[x] set udg_CreepFinishP[IntY]=udg_point[x-1] set udg_CreepStartPInt[IntY]=x set udg_CreepFinishPInt[IntY]=x-1 else call DisableTrigger(gg_trg_CreepMovesRight) call IssuePointOrderLoc(EU,"move",udg_point[x+1]) call EnableTrigger(gg_trg_CreepMovesRight) set udg_CreepStartP[IntY]=udg_point[x] set udg_CreepFinishP[IntY]=udg_point[x+1] set udg_CreepStartPInt[IntY]=x set udg_CreepFinishPInt[IntY]=x+1 endif endif endif set EU=null set pX=null call DestroyGroup(gz) set gz=null endfunction function InitTrig_enter takes nothing returns nothing set gg_trg_enter=CreateTrigger() call TriggerAddCondition(gg_trg_enter,Condition(function Trig_enter_Conditions)) call TriggerAddAction(gg_trg_enter,function Trig_enter_Actions) endfunction function Trig_unit_dies_Actions takes nothing returns nothing local integer y local integer a=1 local boolean q=false local location newloc=GetUnitLoc(GetDyingUnit()) local integer s local integer f local location sp local location fp local player p=GetOwningPlayer(GetDyingUnit()) loop exitwhen a>udg_CreepNumber if(GetDyingUnit()==udg_Creep[a])then set y=a endif set a=a+1 endloop if(y>0)then set s=udg_CreepStartPInt[y] set f=udg_CreepFinishPInt[y] set sp=udg_CreepStartP[y] set fp=udg_CreepFinishP[y] if s>f then set s=f set f=udg_CreepStartPInt[y] set sp=fp set fp=udg_CreepStartP[y] endif if GetUnitAbilityLevel(GetDyingUnit(),0x41497439)!=0 then set q=true endif set a=1 loop exitwhen a>udg_CreepNumber if(udg_CreepOwner[a]==y)then set udg_CreepOwner[a]=0 endif set a=a+1 endloop set a=1 loop exitwhen a>udg_CreepNumber if(udg_CreepOwner[y]==a)then set udg_CreepSummonedCreeps[a]=(udg_CreepSummonedCreeps[a]-1) endif set a=a+1 endloop if(y!=udg_CreepNumber)then set udg_Creep[y]=udg_Creep[udg_CreepNumber] set udg_CreepFinishP[y]=udg_CreepFinishP[udg_CreepNumber] set udg_CreepStartP[y]=udg_CreepStartP[udg_CreepNumber] set udg_CreepFinishPInt[y]=udg_CreepFinishPInt[udg_CreepNumber] set udg_CreepStartPInt[y]=udg_CreepStartPInt[udg_CreepNumber] set udg_CreepOwner[y]=udg_CreepOwner[udg_CreepNumber] set udg_CreepSummonedCreeps[y]=udg_CreepSummonedCreeps[udg_CreepNumber] if(udg_CreepSummonedCreeps[udg_CreepNumber]>0)then set a=1 loop exitwhen a>udg_CreepNumber if(udg_CreepOwner[a]==udg_CreepNumber)then set udg_CreepOwner[a]=y endif set a=a+1 endloop endif endif set udg_Creep[udg_CreepNumber]=null set udg_CreepStartP[udg_CreepNumber]=null set udg_CreepFinishP[udg_CreepNumber]=null set udg_CreepFinishPInt[udg_CreepNumber]=0 set udg_CreepStartPInt[udg_CreepNumber]=0 set udg_CreepSummonedCreeps[udg_CreepNumber]=0 set udg_CreepNumber=(udg_CreepNumber-1) call RemoveUnit(GetDyingUnit()) if(q)and(udg_HardMode)then set bj_lastCreatedUnit=CreateUnitAtLoc(p,0x75303033,newloc,0) set udg_CreepNumber=(udg_CreepNumber+1) set udg_Creep[udg_CreepNumber]=bj_lastCreatedUnit set udg_CreepStartP[udg_CreepNumber]=sp set udg_CreepFinishP[udg_CreepNumber]=fp set udg_CreepFinishPInt[udg_CreepNumber]=f set udg_CreepStartPInt[udg_CreepNumber]=s call IssueImmediateOrder(bj_lastCreatedUnit,"stop") set a=1 loop exitwhen a>252 if RectContainsUnit(udg_Rect[a],bj_lastCreatedUnit)then set udg_CreepStartP[udg_CreepNumber]=udg_point[a] set udg_CreepFinishP[udg_CreepNumber]=udg_point[a-1] set udg_CreepFinishPInt[udg_CreepNumber]=a-1 set udg_CreepStartPInt[udg_CreepNumber]=a call IssueImmediateOrder(bj_lastCreatedUnit,"stop") endif set a=a+1 endloop endif endif call RemoveLocation(newloc) set newloc=null set sp=null set fp=null set p=null endfunction function InitTrig_unit_dies takes nothing returns nothing set gg_trg_unit_dies=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(0),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(1),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(2),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(3),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(4),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(5),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(6),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(7),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(8),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(9),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(10),EVENT_PLAYER_UNIT_DEATH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_unit_dies,Player(11),EVENT_PLAYER_UNIT_DEATH,null) call TriggerAddAction(gg_trg_unit_dies,function Trig_unit_dies_Actions) endfunction function Trig_CreepMovesRight_Conditions takes nothing returns boolean return((not(IsUnitType(GetOrderedUnit(),UNIT_TYPE_STRUCTURE)))and(not(IsUnitType(GetOrderedUnit(),UNIT_TYPE_PEON)))) endfunction function Trig_CreepMovesRight_Actions takes nothing returns nothing local integer i=1 loop exitwhen i>udg_CreepNumber if(udg_Creep[i]==GetOrderedUnit())then call DisableTrigger(GetTriggeringTrigger()) call IssuePointOrderLoc(udg_Creep[i],"move",udg_CreepFinishP[i]) call EnableTrigger(GetTriggeringTrigger()) endif set i=i+1 endloop endfunction function InitTrig_CreepMovesRight takes nothing returns nothing set gg_trg_CreepMovesRight=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(0),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(1),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(2),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(3),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(4),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(5),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(6),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(7),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(8),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(9),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(10),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(11),EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(0),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(1),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(2),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(3),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(4),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(5),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(6),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(7),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(8),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(9),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(10),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(11),EVENT_PLAYER_UNIT_ISSUED_POINT_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(0),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(1),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(2),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(3),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(4),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(5),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(6),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(7),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(8),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(9),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(10),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerRegisterPlayerUnitEvent(gg_trg_CreepMovesRight,Player(11),EVENT_PLAYER_UNIT_ISSUED_ORDER,null) call TriggerAddCondition(gg_trg_CreepMovesRight,Condition(function Trig_CreepMovesRight_Conditions)) call TriggerAddAction(gg_trg_CreepMovesRight,function Trig_CreepMovesRight_Actions) endfunction function Trig_cristalls_Actions takes nothing returns nothing local group gz=null local integer a=1 local integer b=1 local unit array UAX local unit array UAY local integer UAXN=0 local integer UAYN=0 local unit ux local unit uy local integer uid local real distance local integer CN local integer pn local player pX local location pointX local location loc local integer iloc loop exitwhen a>udg_CreepNumber if GetUnitTypeId(udg_Creep[a])==0x75303033 then set UAXN=UAXN+1 set UAX[UAXN]=udg_Creep[a] endif set a=a+1 endloop if UAXN==0 then call DestroyGroup(gz) return endif set a=1 loop exitwhen a>UAXN set ux=UAX[a] set pn=GetPlayerId(GetOwningPlayer(UAX[a]))+1 set pointX=GetUnitLoc(ux) set UAYN=0 loop exitwhen b>udg_CreepNumber if not(GetUnitTypeId(udg_Creep[b])==0x75303033)and SquareRoot(((GetUnitX(udg_Creep[b])-GetUnitX(ux))*(GetUnitX(udg_Creep[b])-GetUnitX(ux)))+((GetUnitY(udg_Creep[b])-GetUnitY(ux))*(GetUnitY(udg_Creep[b])-GetUnitY(ux))))<100 and GetUnitAbilityLevel(udg_Creep[b],0x41497439)<1 then set UAYN=UAYN+1 set UAY[UAYN]=udg_Creep[b] endif set b=b+1 endloop if UAYN!=0 then set distance=105 set uy=null set b=1 loop exitwhen b>UAYN set loc=GetUnitLoc(UAY[b]) if DistanceBetweenPointsNew(loc,pointX)udg_CreepNumber if uy==udg_Creep[b]then set CN=b endif set b=b+1 endloop call UnitAddAbility(uy,0x41497439) if udg_CreepStartPInt[CN]252 if RectContainsUnit(udg_Rect[b],uy)then set udg_CreepStartP[CN]=udg_point[b] set udg_CreepFinishP[CN]=udg_point[b-1] set udg_CreepFinishPInt[CN]=b-1 set udg_CreepStartPInt[CN]=b endif set b=b+1 endloop call DisableTrigger(gg_trg_CreepMovesRight) call IssuePointOrderLoc(uy,"move",udg_CreepFinishP[CN]) call EnableTrigger(gg_trg_CreepMovesRight) if uid==0x6E63706E then call SetPlayerState(GetOwningPlayer(uy),PLAYER_STATE_GOLD_GATHERED,GetPlayerState(GetOwningPlayer(uy),PLAYER_STATE_GOLD_GATHERED)+50) call SetPlayerState(GetOwningPlayer(uy),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(GetOwningPlayer(uy),PLAYER_STATE_RESOURCE_GOLD)+50) endif if not(IsUnitInGroup(uy,udg_GoingBack))then call GroupAddUnit(udg_GoingBack,uy) endif if uid==0x6E62616E then call SetUnitMoveSpeed(uy,220.00) endif if uid==0x6E677370 then set udg_Lives[pn]=(udg_Lives[pn]-1) if(udg_Lives[pn]<=0)then set b=0 loop exitwhen b>11 call DisplayTimedTextToPlayer(Player(b),0,0,5.00,(GetPlayerName(Player(pn-1))+" проиграл!")) set b=b+1 endloop call ForceRemovePlayer(udg_PlayingPlayers,Player(pn-1)) call GroupEnumUnitsOfPlayer(gz,Player(pn-1),null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) call GroupEnumUnitsInRect(gz,udg_PlayerASector[pn],null) call ForGroup(gz,function Trig_enter_kill) call GroupClear(gz) set CN=0 set b=1 loop exitwhen b>12 if IsPlayerInForce(Player(b-1),udg_PlayingPlayers)then set CN=(CN+1) set pX=Player(b-1) endif set b=b+1 endloop if(CN==1)then call CustomVictoryBJ(pX,true,true) endif endif call TriggerExecute(gg_trg_CreateMultiboard) call KillUnit(uy) endif else call RemoveLocation(pointX) endif set b=1 loop exitwhen b>UAYN set UAY[b]=null set b=b+1 endloop set a=a+1 endloop call DestroyGroup(gz) set pX=null set loc=null set ux=null set uy=null set b=1 loop exitwhen b>UAXN set UAX[b]=null set b=b+1 endloop set pointX=null endfunction function InitTrig_cristalls takes nothing returns nothing set gg_trg_cristalls=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_cristalls,0.2,true) call TriggerAddAction(gg_trg_cristalls,function Trig_cristalls_Actions) endfunction function Trig_GoldMod_Actions takes nothing returns nothing local integer a=0 loop exitwhen a>11 if IsPlayerInForce(Player(a),udg_PlayingPlayers)then call SetPlayerState(Player(a),PLAYER_STATE_GOLD_GATHERED,GetPlayerState(Player(a),PLAYER_STATE_GOLD_GATHERED)+1) call SetPlayerState(Player(a),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(Player(a),PLAYER_STATE_RESOURCE_GOLD)+1) endif set a=a+1 endloop endfunction function InitTrig_GoldMod takes nothing returns nothing set gg_trg_GoldMod=CreateTrigger() call DisableTrigger(gg_trg_GoldMod) call TriggerRegisterTimerEvent(gg_trg_GoldMod,1.33,true) call TriggerAddAction(gg_trg_GoldMod,function Trig_GoldMod_Actions) endfunction function Trig_FirstCreateM_Actions takes nothing returns nothing set udg_Multiboard=CreateMultiboard() call MultiboardDisplay(udg_Multiboard,false) endfunction function InitTrig_FirstCreateM takes nothing returns nothing set gg_trg_FirstCreateM=CreateTrigger() call TriggerAddAction(gg_trg_FirstCreateM,function Trig_FirstCreateM_Actions) endfunction function Trig_CreateMultiboard_Actions takes nothing returns nothing local integer a local integer b call MultiboardDisplay(udg_Multiboard,true) call MultiboardSetRowCount(udg_Multiboard,(udg_PlayersNumber+1)) call MultiboardSetColumnCount(udg_Multiboard,4) call MultiboardSetTitleText(udg_Multiboard,"TRIGSTR_944") call MultiboardSetItemValueNew(udg_Multiboard,1,1,"TRIGSTR_963") call MultiboardSetItemValueNew(udg_Multiboard,2,1,"TRIGSTR_964") call MultiboardSetItemValueNew(udg_Multiboard,3,1,"TRIGSTR_965") call MultiboardSetItemValueNew(udg_Multiboard,4,1,"TRIGSTR_966") call MultiboardSetItemWidthNew(udg_Multiboard,1,1,7.50) call MultiboardSetItemWidthNew(udg_Multiboard,2,1,5.00) call MultiboardSetItemWidthNew(udg_Multiboard,3,1,8.00) call MultiboardSetItemWidthNew(udg_Multiboard,4,1,8.00) call MultiboardSetItemStyleNew(udg_Multiboard,1,1,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,2,1,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,3,1,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,4,1,true,false) set a=2 loop exitwhen a>(udg_PlayersNumber+1) call MultiboardSetItemWidthNew(udg_Multiboard,1,a,7.50) call MultiboardSetItemValueNew(udg_Multiboard,1,a,GetPlayerName(udg_PlayerInPlaying[(a-1)])) call MultiboardSetItemWidthNew(udg_Multiboard,2,a,5.00) call MultiboardSetItemValueNew(udg_Multiboard,2,a,I2S(udg_Lives[GetPlayerId(udg_PlayerInPlaying[a-1])+1])) call MultiboardSetItemWidthNew(udg_Multiboard,3,a,8.00) call MultiboardSetItemValueNew(udg_Multiboard,3,a,GetPlayerName(Player(udg_PlayerAttack[a-1]-1))) call MultiboardSetItemWidthNew(udg_Multiboard,4,a,8.00) call MultiboardSetItemStyleNew(udg_Multiboard,1,a,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,2,a,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,3,a,true,false) call MultiboardSetItemStyleNew(udg_Multiboard,4,a,true,false) set b=1 loop exitwhen b>udg_PlayersNumber if(GetPlayerId(udg_PlayerInPlaying[a-1])+1==udg_PlayerAttack[b])then call MultiboardSetItemValueNew(udg_Multiboard,4,a,GetPlayerName(udg_PlayerInPlaying[b])) endif set b=b+1 endloop set a=a+1 endloop endfunction function InitTrig_CreateMultiboard takes nothing returns nothing set gg_trg_CreateMultiboard=CreateTrigger() call TriggerAddAction(gg_trg_CreateMultiboard,function Trig_CreateMultiboard_Actions) endfunction function Trig_skaner_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) call RemoveLocation(loc) set loc=null endfunction function InitTrig_skaner takes nothing returns nothing set gg_trg_skaner=CreateTrigger() call TriggerAddAction(gg_trg_skaner,function Trig_skaner_Actions) endfunction function Trig_splash_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),GetLocationY(udg_point_X)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) call RemoveLocation(loc) set loc=null endfunction function InitTrig_splash takes nothing returns nothing set gg_trg_splash=CreateTrigger() call TriggerAddAction(gg_trg_splash,function Trig_splash_Actions) endfunction function Trig_toxiner_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location(GetLocationX(udg_point_X),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) call RemoveLocation(loc) set loc=null endfunction function InitTrig_toxiner takes nothing returns nothing set gg_trg_toxiner=CreateTrigger() call TriggerAddAction(gg_trg_toxiner,function Trig_toxiner_Actions) endfunction function Trig_critical_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),GetLocationY(udg_point_X)) call SetUnitAbilityLevel(GetConstructedStructure(),0x41436374,3) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),GetLocationY(udg_point_X)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_critical takes nothing returns nothing set gg_trg_critical=CreateTrigger() call TriggerAddAction(gg_trg_critical,function Trig_critical_Actions) endfunction function Trig_minysarmorer_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_minysarmorer takes nothing returns nothing set gg_trg_minysarmorer=CreateTrigger() call TriggerAddAction(gg_trg_minysarmorer,function Trig_minysarmorer_Actions) endfunction function Trig_froster_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),GetLocationY(udg_point_X)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_froster takes nothing returns nothing set gg_trg_froster=CreateTrigger() call TriggerAddAction(gg_trg_froster,function Trig_froster_Actions) endfunction function Trig_stunner_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_stunner takes nothing returns nothing set gg_trg_stunner=CreateTrigger() call TriggerAddAction(gg_trg_stunner,function Trig_stunner_Actions) endfunction function Trig_boundses_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),GetLocationY(udg_point_X)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),GetLocationY(udg_point_X)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location(GetLocationX(udg_point_X),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location(GetLocationX(udg_point_X),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_boundses takes nothing returns nothing set gg_trg_boundses=CreateTrigger() call TriggerAddAction(gg_trg_boundses,function Trig_boundses_Actions) endfunction function Trig_multishot_Actions takes nothing returns nothing local location loc set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)+128.00),(GetLocationY(udg_point_X)-128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) call RemoveLocation(loc) set loc=Location((GetLocationX(udg_point_X)-128.00),(GetLocationY(udg_point_X)+128.00)) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(udg_UnitX),0x6E627431,loc,0) set udg_DummiTower[udg_NumberOfDummiTowers]=bj_lastCreatedUnit set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=udg_UnitX set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 call RemoveLocation(loc) set loc=null set udg_DummiEffect[udg_NumberOfDummiTowers]=AddLightningEx("MFPB",true,GetUnitX(GetConstructedStructure()),GetUnitY(GetConstructedStructure()),0,GetUnitX(bj_lastCreatedUnit),GetUnitY(bj_lastCreatedUnit),0) endfunction function InitTrig_multishot takes nothing returns nothing set gg_trg_multishot=CreateTrigger() call TriggerAddAction(gg_trg_multishot,function Trig_multishot_Actions) endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x6E6E7467))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x6E667432))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x68637477))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x6E647432))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x6F777477))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x68617477))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x68677477))then return false endif return true endfunction function Trig_finish_constr_tower_Func004Func001C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x68777477))then return false endif return true endfunction function Trig_finish_constr_tower_Func004C takes nothing returns boolean if(not(GetUnitTypeId(GetConstructedStructure())==0x68686F75))then return false endif return true endfunction function Trig_finish_constr_tower_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetConstructedStructure()) set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers+1) set udg_UnitX=GetConstructedStructure() if(Trig_finish_constr_tower_Func004C())then call TriggerExecute(gg_trg_skaner) else if(Trig_finish_constr_tower_Func004Func001C())then call TriggerExecute(gg_trg_splash) else if(Trig_finish_constr_tower_Func004Func001Func001C())then call TriggerExecute(gg_trg_toxiner) else if(Trig_finish_constr_tower_Func004Func001Func001Func001C())then call TriggerExecute(gg_trg_critical) else if(Trig_finish_constr_tower_Func004Func001Func001Func001Func001C())then call TriggerExecute(gg_trg_minysarmorer) else if(Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001C())then call TriggerExecute(gg_trg_froster) else if(Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001C())then call TriggerExecute(gg_trg_stunner) else if(Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001Func001C())then call TriggerExecute(gg_trg_multishot) else if(Trig_finish_constr_tower_Func004Func001Func001Func001Func001Func001Func001Func001Func001C())then call TriggerExecute(gg_trg_boundses) else endif endif endif endif endif endif endif endif endif endfunction function InitTrig_finish_constr_tower takes nothing returns nothing set gg_trg_finish_constr_tower=CreateTrigger() call TriggerRegisterAnyUnitEventBJ(gg_trg_finish_constr_tower,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH) call TriggerAddAction(gg_trg_finish_constr_tower,function Trig_finish_constr_tower_Actions) endfunction function Trig_finish_upgrd_segment_Actions takes nothing returns nothing local integer a=0 local integer i=1 local unit Ux=GetTriggerUnit() loop exitwhen(i>udg_NumberOfDummiTowers)or(a>0) if(udg_DummiTower[i]==Ux)then set a=i endif set i=i+1 endloop if(GetUnitTypeId(Ux)==0x6E303031)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41497467,(GetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41497467)+1)) set udg_DummiTowerGold[a]=25 else if(GetUnitTypeId(Ux)==0x6E303030)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41497378,(GetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41497378)+1)) set udg_DummiTowerGold[a]=25 else if(GetUnitTypeId(Ux)==0x6E303032)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41303032,2) set udg_DummiTowerGold[a]=25 else if(GetUnitTypeId(Ux)==0x6E303033)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41303033,2) set udg_DummiTowerGold[a]=75 else if(GetUnitTypeId(Ux)==0x6E303034)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41436374,(GetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41436374)+1)) set udg_DummiTowerGold[a]=25 else if(GetUnitTypeId(Ux)==0x6E303035)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41303036,2) set udg_DummiTowerGold[a]=30 else if(GetUnitTypeId(Ux)==0x6E303036)then call SetUnitAbilityLevel(udg_DummiTowerOwner[a],0x41303039,2) set udg_DummiTowerGold[a]=25 else if(GetUnitTypeId(Ux)==0x6E303037)then set udg_DummiTowerGold[a]=30 endif endif endif endif endif endif endif endif set Ux=null endfunction function InitTrig_finish_upgrd_segment takes nothing returns nothing set gg_trg_finish_upgrd_segment=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(0),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(1),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(2),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(3),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(4),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(5),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(6),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(7),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(8),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(9),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(10),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_finish_upgrd_segment,Player(11),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerAddAction(gg_trg_finish_upgrd_segment,function Trig_finish_upgrd_segment_Actions) endfunction function Trig_SectorsInit_Actions takes nothing returns nothing set udg_PlayerASector[1]=gg_rct_Player1sector set udg_PlayerASector[2]=gg_rct_Player2sector set udg_PlayerASector[3]=gg_rct_Player3sector set udg_PlayerASector[4]=gg_rct_Player4sector set udg_PlayerASector[5]=gg_rct_Player5secto set udg_PlayerASector[6]=gg_rct_Player6sector set udg_PlayerASector[7]=gg_rct_Player7sector set udg_PlayerASector[8]=gg_rct_Player8sector set udg_PlayerASector[9]=gg_rct_Player9sector set udg_PlayerASector[10]=gg_rct_Player10sector set udg_PlayerASector[11]=gg_rct_Player11sector set udg_PlayerASector[12]=gg_rct_Player12sector endfunction function InitTrig_SectorsInit takes nothing returns nothing set gg_trg_SectorsInit=CreateTrigger() call TriggerAddAction(gg_trg_SectorsInit,function Trig_SectorsInit_Actions) endfunction function Trig_s1_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s1_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player1sector),GetRectCenterY(gg_rct_Player1sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s1 takes nothing returns nothing set gg_trg_s1=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s1,gg_rct_Player1sector) call TriggerAddCondition(gg_trg_s1,Condition(function Trig_s1_Conditions)) call TriggerAddAction(gg_trg_s1,function Trig_s1_Actions) endfunction function Trig_s2_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s2_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player2sector),GetRectCenterY(gg_rct_Player2sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s2 takes nothing returns nothing set gg_trg_s2=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s2,gg_rct_Player2sector) call TriggerAddCondition(gg_trg_s2,Condition(function Trig_s2_Conditions)) call TriggerAddAction(gg_trg_s2,function Trig_s2_Actions) endfunction function Trig_s3_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s3_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player3sector),GetRectCenterY(gg_rct_Player3sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s3 takes nothing returns nothing set gg_trg_s3=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s3,gg_rct_Player3sector) call TriggerAddCondition(gg_trg_s3,Condition(function Trig_s3_Conditions)) call TriggerAddAction(gg_trg_s3,function Trig_s3_Actions) endfunction function Trig_s4_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s4_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player4sector),GetRectCenterY(gg_rct_Player4sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s4 takes nothing returns nothing set gg_trg_s4=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s4,gg_rct_Player4sector) call TriggerAddCondition(gg_trg_s4,Condition(function Trig_s4_Conditions)) call TriggerAddAction(gg_trg_s4,function Trig_s4_Actions) endfunction function Trig_s5_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s5_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player5secto),GetRectCenterY(gg_rct_Player5secto)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s5 takes nothing returns nothing set gg_trg_s5=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s5,gg_rct_Player5secto) call TriggerAddCondition(gg_trg_s5,Condition(function Trig_s5_Conditions)) call TriggerAddAction(gg_trg_s5,function Trig_s5_Actions) endfunction function Trig_s6_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s6_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player6sector),GetRectCenterY(gg_rct_Player6sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s6 takes nothing returns nothing set gg_trg_s6=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s6,gg_rct_Player6sector) call TriggerAddCondition(gg_trg_s6,Condition(function Trig_s6_Conditions)) call TriggerAddAction(gg_trg_s6,function Trig_s6_Actions) endfunction function Trig_s7_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s7_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player7sector),GetRectCenterY(gg_rct_Player7sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s7 takes nothing returns nothing set gg_trg_s7=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s7,gg_rct_Player7sector) call TriggerAddCondition(gg_trg_s7,Condition(function Trig_s7_Conditions)) call TriggerAddAction(gg_trg_s7,function Trig_s7_Actions) endfunction function Trig_s8_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s8_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player8sector),GetRectCenterY(gg_rct_Player8sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s8 takes nothing returns nothing set gg_trg_s8=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s8,gg_rct_Player8sector) call TriggerAddCondition(gg_trg_s8,Condition(function Trig_s8_Conditions)) call TriggerAddAction(gg_trg_s8,function Trig_s8_Actions) endfunction function Trig_s9_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s9_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player9sector),GetRectCenterY(gg_rct_Player9sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s9 takes nothing returns nothing set gg_trg_s9=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s9,gg_rct_Player9sector) call TriggerAddCondition(gg_trg_s9,Condition(function Trig_s9_Conditions)) call TriggerAddAction(gg_trg_s9,function Trig_s9_Actions) endfunction function Trig_s10_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s10_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player10sector),GetRectCenterY(gg_rct_Player10sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s10 takes nothing returns nothing set gg_trg_s10=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s10,gg_rct_Player10sector) call TriggerAddCondition(gg_trg_s10,Condition(function Trig_s10_Conditions)) call TriggerAddAction(gg_trg_s10,function Trig_s10_Actions) endfunction function Trig_s11_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s11_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player11sector),GetRectCenterY(gg_rct_Player11sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s11 takes nothing returns nothing set gg_trg_s11=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s11,gg_rct_Player11sector) call TriggerAddCondition(gg_trg_s11,Condition(function Trig_s11_Conditions)) call TriggerAddAction(gg_trg_s11,function Trig_s11_Actions) endfunction function Trig_s12_Conditions takes nothing returns boolean return(GetUnitTypeId(GetLeavingUnit())==0x68706561) endfunction function Trig_s12_Actions takes nothing returns nothing local location loc=Location(GetRectCenterX(gg_rct_Player12sector),GetRectCenterY(gg_rct_Player12sector)) call SetUnitPositionLoc(GetLeavingUnit(),loc) call DisplayTextToPlayer(GetOwningPlayer(GetLeavingUnit()),0,0,"TRIGSTR_940") call RemoveLocation(loc) set loc=null endfunction function InitTrig_s12 takes nothing returns nothing set gg_trg_s12=CreateTrigger() call TriggerRegisterLeaveRectSimple(gg_trg_s12,gg_rct_Player12sector) call TriggerAddCondition(gg_trg_s12,Condition(function Trig_s12_Conditions)) call TriggerAddAction(gg_trg_s12,function Trig_s12_Actions) endfunction function Trig_armageddon_Conditions takes nothing returns boolean return(GetSpellAbilityId()==0x4162736B) endfunction function Trig_armageddon_kill takes nothing returns nothing call KillUnit(GetEnumUnit()) endfunction function Trig_armageddon_Actions takes nothing returns nothing local integer i=0 local integer n local integer a=1 loop exitwhen a>12 set udg_Lives[a]=(udg_Lives[a]-1) if(udg_Lives[a]<=0)and(IsPlayerInForce(Player(a-1),udg_PlayingPlayers))then loop exitwhen i>11 call DisplayTimedTextToPlayer(Player(i),0,0,6,(GetPlayerName(Player(a-1))+" проиграл!")) set i=i+1 endloop call ForceRemovePlayer(udg_PlayingPlayers,Player(a-1)) call GroupEnumUnitsOfPlayer(udg_Group_Z,Player(a-1),null) call ForGroup(udg_Group_Z,function Trig_armageddon_kill) call GroupClear(udg_Group_Z) call GroupEnumUnitsInRect(udg_Group_Z,udg_PlayerASector[a],null) call ForGroup(udg_Group_Z,function Trig_armageddon_kill) call GroupClear(udg_Group_Z) set n=0 set i=0 loop exitwhen i>11 if IsPlayerInForce(Player(i),udg_PlayingPlayers)then set n=(n+1) set udg_Player_X=Player(i) else endif set i=i+1 endloop if(n==1)then call CustomVictoryBJ(udg_Player_X,true,true) else endif else endif set a=a+1 endloop call TriggerExecute(gg_trg_CreateMultiboard) endfunction function InitTrig_armageddon takes nothing returns nothing set gg_trg_armageddon=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(0),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(1),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(2),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(3),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(4),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(5),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(6),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(7),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(8),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(9),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_armageddon,Player(11),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerAddCondition(gg_trg_armageddon,Condition(function Trig_armageddon_Conditions)) call TriggerAddAction(gg_trg_armageddon,function Trig_armageddon_Actions) endfunction function Trig_teleportation_Conditions takes nothing returns boolean return(GetSpellAbilityId()==0x41436661) endfunction function Trig_teleportation_Actions takes nothing returns nothing if(GetUnitAbilityLevel(GetSpellTargetUnit(),0x41497439)==1)then call SetUnitPositionLoc(GetSpellTargetUnit(),udg_point[(GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))+1)*21]) else call SetUnitPositionLoc(GetSpellTargetUnit(),udg_point[(GetPlayerId(GetOwningPlayer(GetSpellAbilityUnit()))*21)+1]) endif endfunction function InitTrig_teleportation takes nothing returns nothing set gg_trg_teleportation=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(0),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(1),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(2),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(3),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(4),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(5),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(6),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(7),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(8),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(9),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_teleportation,Player(11),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerAddCondition(gg_trg_teleportation,Condition(function Trig_teleportation_Conditions)) call TriggerAddAction(gg_trg_teleportation,function Trig_teleportation_Actions) endfunction function Trig_indylgention_Conditions takes nothing returns boolean return(GetItemTypeId(GetManipulatedItem())==0x49303034) endfunction function Trig_indylgention_Actions takes nothing returns nothing set udg_Lives[GetPlayerId(GetOwningPlayer(GetManipulatingUnit()))+1]=(udg_Lives[GetPlayerId(GetOwningPlayer(GetManipulatingUnit()))+1]+1) call TriggerExecute(gg_trg_CreateMultiboard) endfunction function InitTrig_indylgention takes nothing returns nothing set gg_trg_indylgention=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(0),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(1),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(2),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(3),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(4),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(5),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(6),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(7),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(8),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(9),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(10),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_indylgention,Player(11),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerAddCondition(gg_trg_indylgention,Condition(function Trig_indylgention_Conditions)) call TriggerAddAction(gg_trg_indylgention,function Trig_indylgention_Actions) endfunction function Trig_deathpact_Conditions takes nothing returns boolean return(GetItemTypeId(GetManipulatedItem())==0x49303033) endfunction function Trig_deathpact_Actions takes nothing returns nothing local integer x=GetPlayerId(GetOwningPlayer(GetManipulatingUnit()))+1 if(udg_Lives[x]>1)then set udg_Lives[x]=(udg_Lives[x]-1) call TriggerExecute(gg_trg_CreateMultiboard) else call SetPlayerState(Player(x-1),PLAYER_STATE_GOLD_GATHERED,GetPlayerState(Player(x-1),PLAYER_STATE_GOLD_GATHERED)-15) call SetPlayerState(Player(x-1),PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(Player(x-1),PLAYER_STATE_RESOURCE_GOLD)-15) call DisplayTextToPlayer(Player(x-1),0,0,"TRIGSTR_1161") endif endfunction function InitTrig_deathpact takes nothing returns nothing set gg_trg_deathpact=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(0),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(1),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(2),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(3),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(4),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(5),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(6),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(7),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(8),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(9),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(10),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerRegisterPlayerUnitEvent(gg_trg_deathpact,Player(11),EVENT_PLAYER_UNIT_PICKUP_ITEM,null) call TriggerAddCondition(gg_trg_deathpact,Condition(function Trig_deathpact_Conditions)) call TriggerAddAction(gg_trg_deathpact,function Trig_deathpact_Actions) endfunction function Trig_clearJass_Conditions takes nothing returns boolean return(GetUnitTypeId(GetConstructingStructure())==0x68303030) endfunction function Trig_clearJass_Actions takes nothing returns nothing local real x=GetUnitX(GetConstructingStructure())-64 local real y=GetUnitY(GetConstructingStructure())-64 local real rx local real ry local integer i=0 local integer f loop exitwhen i>3 set f=0 loop exitwhen f>3 set rx=x+(32.00*I2R(i)) set ry=y+(32.00*I2R(f)) call SetTerrainPathable(rx,ry,PATHING_TYPE_BUILDABILITY,true) call SetTerrainPathable(rx,ry,PATHING_TYPE_WALKABILITY,true) set f=f+1 endloop set i=i+1 endloop call KillUnit(GetConstructingStructure()) endfunction function InitTrig_clearJass takes nothing returns nothing set gg_trg_clearJass=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(0),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(1),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(2),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(3),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(4),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(5),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(6),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(7),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(8),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(9),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(10),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerRegisterPlayerUnitEvent(gg_trg_clearJass,Player(11),EVENT_PLAYER_UNIT_CONSTRUCT_START,null) call TriggerAddCondition(gg_trg_clearJass,Condition(function Trig_clearJass_Conditions)) call TriggerAddAction(gg_trg_clearJass,function Trig_clearJass_Actions) endfunction function Trig_income_Func002A takes nothing returns nothing local player p=GetOwningPlayer(GetEnumUnit()) local integer gold=1 local integer i=1 local integer n=GetPlayerTechCount(p,0x52686862,true) if n!=0 then loop exitwhen i>n set gold=gold*2 set i=i+1 endloop endif call SetPlayerState(p,PLAYER_STATE_GOLD_GATHERED,GetPlayerState(p,PLAYER_STATE_GOLD_GATHERED)+gold) call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD)+gold) set p=null endfunction function Trig_clearerer_Func002A takes nothing returns nothing if GetUnitTypeId(GetEnumUnit())!=0x6E303037 then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_income_Actions takes nothing returns nothing call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_clearerer_Func002A) call ForGroup(udg_Group_X,function Trig_income_Func002A) call GroupClear(udg_Group_X) endfunction function InitTrig_income takes nothing returns nothing set gg_trg_income=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_income,20,true) call TriggerAddAction(gg_trg_income,function Trig_income_Actions) endfunction function Trig_transmute_Conditions takes nothing returns boolean return(GetSpellAbilityId()==0x41303031) endfunction function Trig_transmute_Actions takes nothing returns nothing local integer i local unit u=GetSpellTargetUnit() local player p=GetOwningPlayer(u) set i=1 loop exitwhen i>udg_NumberOfDummiTowers if(udg_DummiTowerOwner[i]==u)then if(i!=udg_NumberOfDummiTowers)then call RemoveUnit(udg_DummiTower[i]) set udg_DummiTower[i]=udg_DummiTower[udg_NumberOfDummiTowers] set udg_DummiTowerOwner[i]=udg_DummiTowerOwner[udg_NumberOfDummiTowers] call DestroyLightning(udg_DummiEffect[i]) set udg_DummiEffect[i]=udg_DummiEffect[udg_NumberOfDummiTowers] call SetPlayerState(p,PLAYER_STATE_GOLD_GATHERED,GetPlayerState(p,PLAYER_STATE_GOLD_GATHERED)+udg_DummiTowerGold[i]) call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD)+udg_DummiTowerGold[i]) set udg_DummiTowerGold[i]=udg_DummiTowerGold[udg_NumberOfDummiTowers] else call RemoveUnit(udg_DummiTower[udg_NumberOfDummiTowers]) call DestroyLightning(udg_DummiEffect[udg_NumberOfDummiTowers]) call SetPlayerState(p,PLAYER_STATE_GOLD_GATHERED,GetPlayerState(p,PLAYER_STATE_GOLD_GATHERED)+udg_DummiTowerGold[udg_NumberOfDummiTowers]) call SetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(p,PLAYER_STATE_RESOURCE_GOLD)+udg_DummiTowerGold[udg_NumberOfDummiTowers]) endif set udg_DummiTower[udg_NumberOfDummiTowers]=null set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=null set udg_DummiEffect[udg_NumberOfDummiTowers]=null set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers-1) set i=(i-1) endif set i=i+1 endloop set u=null set p=null endfunction function InitTrig_transmute takes nothing returns nothing set gg_trg_transmute=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(0),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(1),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(2),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(3),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(4),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(5),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(6),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(7),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(8),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(9),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_transmute,Player(11),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerAddCondition(gg_trg_transmute,Condition(function Trig_transmute_Conditions)) call TriggerAddAction(gg_trg_transmute,function Trig_transmute_Actions) endfunction function Trig_zalp_Conditions takes nothing returns boolean return(GetSpellAbilityId()==0x41303046) endfunction function Trig_zalp_Actions takes nothing returns nothing local integer i=1 local unit u=GetSpellTargetUnit() loop exitwhen i>udg_NumberOfDummiTowers if(udg_DummiTowerOwner[i]==u)then if(i!=udg_NumberOfDummiTowers)then call RemoveUnit(udg_DummiTower[i]) set udg_DummiTower[i]=udg_DummiTower[udg_NumberOfDummiTowers] set udg_DummiTowerOwner[i]=udg_DummiTowerOwner[udg_NumberOfDummiTowers] call DestroyLightning(udg_DummiEffect[i]) set udg_DummiEffect[i]=udg_DummiEffect[udg_NumberOfDummiTowers] set udg_DummiTowerGold[i]=udg_DummiTowerGold[udg_NumberOfDummiTowers] else call RemoveUnit(udg_DummiTower[udg_NumberOfDummiTowers]) call DestroyLightning(udg_DummiEffect[udg_NumberOfDummiTowers]) endif set udg_DummiTower[udg_NumberOfDummiTowers]=null set udg_DummiTowerOwner[udg_NumberOfDummiTowers]=null set udg_DummiEffect[udg_NumberOfDummiTowers]=null set udg_DummiTowerGold[udg_NumberOfDummiTowers]=0 set udg_NumberOfDummiTowers=(udg_NumberOfDummiTowers-1) set i=(i-1) else endif set i=i+1 endloop set u=null endfunction function InitTrig_zalp takes nothing returns nothing set gg_trg_zalp=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(0),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(1),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(2),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(3),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(4),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(5),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(6),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(7),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(8),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(9),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(10),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerRegisterPlayerUnitEvent(gg_trg_zalp,Player(11),EVENT_PLAYER_UNIT_SPELL_EFFECT,null) call TriggerAddCondition(gg_trg_zalp,Condition(function Trig_zalp_Conditions)) call TriggerAddAction(gg_trg_zalp,function Trig_zalp_Actions) endfunction function Trig_DamageTakenCheck_Actions takes nothing returns nothing local integer cjlocgn_00000000 local integer cjlocgn_00000001 if GetUnitTypeId(GetEventDamageSource())!=0x75303030 and GetUnitTypeId(GetEventDamageSource())!=0x75303031 and GetUnitTypeId(GetEventDamageSource())!=0x75303032 then set cjlocgn_00000000=GetRandomInt(1,20) set cjlocgn_00000001=GetPlayerTechCount(GetOwningPlayer(GetEventDamageSource()),0x52686C61,true) if(cjlocgn_00000000GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303031,udg_point_X,0.00) call RemoveLocation(udg_point_X) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,8.00) call UnitAddAbility(bj_lastCreatedUnit,0x416C6971) call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetTriggerUnit()) endif endfunction function InitTrig_toxic takes nothing returns nothing set gg_trg_toxic=CreateTrigger() call TriggerAddCondition(gg_trg_toxic,Condition(function Trig_toxic_Conditions)) call TriggerAddAction(gg_trg_toxic,function Trig_toxic_Actions) endfunction function Trig_toxic_s_Conditions takes nothing returns boolean return(GetUnitAbilityLevel(GetEventDamageSource(),0x41303032)==2) endfunction function Trig_toxic_s_Actions takes nothing returns nothing if GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)>GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303031,udg_point_X,0.00) call RemoveLocation(udg_point_X) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x4176656E) call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetTriggerUnit()) endif endfunction function InitTrig_toxic_s takes nothing returns nothing set gg_trg_toxic_s=CreateTrigger() call TriggerAddCondition(gg_trg_toxic_s,Condition(function Trig_toxic_s_Conditions)) call TriggerAddAction(gg_trg_toxic_s,function Trig_toxic_s_Actions) endfunction function Trig_aoe_Conditions takes nothing returns boolean return GetUnitTypeId(GetEventDamageSource())==0x68777477 endfunction function Trig_aoe_Func002A takes nothing returns nothing if GetEnumUnit()==GetTriggerUnit()or IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)or IsUnitType(GetEnumUnit(),UNIT_TYPE_PEON)then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_aoe_Func005A takes nothing returns nothing call UnitDamageTarget(GetEventDamageSource(),GetEnumUnit(),GetEventDamage(),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS) endfunction function Trig_aoe_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetTriggerUnit()) call GroupEnumUnitsInRangeOfLoc(udg_Group_X,udg_point_X,360.00,null) call ForGroup(udg_Group_X,function Trig_aoe_Func002A) call DisableTrigger(gg_trg_DamageTakenCheck) call ForGroup(udg_Group_X,function Trig_aoe_Func005A) call EnableTrigger(gg_trg_DamageTakenCheck) call RemoveLocation(udg_point_X) call GroupClear(udg_Group_X) endfunction function InitTrig_aoe takes nothing returns nothing set gg_trg_aoe=CreateTrigger() call TriggerAddCondition(gg_trg_aoe,Condition(function Trig_aoe_Conditions)) call TriggerAddAction(gg_trg_aoe,function Trig_aoe_Actions) endfunction function Trig_aoe_s_Conditions takes nothing returns boolean return(GetUnitAbilityLevel(GetEventDamageSource(),0x41303033)==2)and(GetUnitTypeId(GetEventDamageSource())!=0x68777477) endfunction function Trig_aoe_s_Func002A takes nothing returns nothing if GetEnumUnit()==GetTriggerUnit()or IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE)or IsUnitType(GetEnumUnit(),UNIT_TYPE_PEON)then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_aoe_s_Func005A takes nothing returns nothing call UnitDamageTarget(GetEventDamageSource(),GetEnumUnit(),GetEventDamage(),true,false,ATTACK_TYPE_PIERCE,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_WHOKNOWS) endfunction function Trig_aoe_s_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetTriggerUnit()) call GroupEnumUnitsInRangeOfLoc(udg_Group_X,udg_point_X,300.00,null) call ForGroup(udg_Group_X,function Trig_aoe_s_Func002A) call DisableTrigger(gg_trg_DamageTakenCheck) call ForGroup(udg_Group_X,function Trig_aoe_s_Func005A) call EnableTrigger(gg_trg_DamageTakenCheck) call RemoveLocation(udg_point_X) call GroupClear(udg_Group_X) endfunction function InitTrig_aoe_s takes nothing returns nothing set gg_trg_aoe_s=CreateTrigger() call TriggerAddCondition(gg_trg_aoe_s,Condition(function Trig_aoe_s_Conditions)) call TriggerAddAction(gg_trg_aoe_s,function Trig_aoe_s_Actions) endfunction function Trig_minysarmor_Conditions takes nothing returns boolean return(GetUnitTypeId(GetEventDamageSource())==0x6F777477) endfunction function Trig_minysarmor_Actions takes nothing returns nothing if GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)>GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303030,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x41303035) call IssueTargetOrder(bj_lastCreatedUnit,"acidbomb",GetTriggerUnit()) call RemoveLocation(udg_point_X) endif endfunction function InitTrig_minysarmor takes nothing returns nothing set gg_trg_minysarmor=CreateTrigger() call TriggerAddCondition(gg_trg_minysarmor,Condition(function Trig_minysarmor_Conditions)) call TriggerAddAction(gg_trg_minysarmor,function Trig_minysarmor_Actions) endfunction function Trig_minysarmor_s_Conditions takes nothing returns boolean return(GetUnitAbilityLevel(GetEventDamageSource(),0x41303036)==2) endfunction function Trig_minysarmor_s_Actions takes nothing returns nothing if GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)>GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303031,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x41303034) call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetTriggerUnit()) call RemoveLocation(udg_point_X) endif endfunction function InitTrig_minysarmor_s takes nothing returns nothing set gg_trg_minysarmor_s=CreateTrigger() call TriggerAddCondition(gg_trg_minysarmor_s,Condition(function Trig_minysarmor_s_Conditions)) call TriggerAddAction(gg_trg_minysarmor_s,function Trig_minysarmor_s_Actions) endfunction function Trig_frost_Conditions takes nothing returns boolean return(GetUnitTypeId(GetEventDamageSource())==0x6E647432) endfunction function Trig_frost_Actions takes nothing returns nothing if GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)>GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303031,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x41667261) call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetTriggerUnit()) call RemoveLocation(udg_point_X) endif endfunction function InitTrig_frost takes nothing returns nothing set gg_trg_frost=CreateTrigger() call TriggerAddCondition(gg_trg_frost,Condition(function Trig_frost_Conditions)) call TriggerAddAction(gg_trg_frost,function Trig_frost_Actions) endfunction function Trig_frost_s_Conditions takes nothing returns boolean return(GetUnitAbilityLevel(GetEventDamageSource(),0x41303039)==2) endfunction function Trig_frost_s_Actions takes nothing returns nothing if GetUnitState(GetTriggerUnit(),UNIT_STATE_LIFE)>GetEventDamage()then set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303031,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x41667232) call IssueTargetOrder(bj_lastCreatedUnit,"attack",GetTriggerUnit()) call RemoveLocation(udg_point_X) endif endfunction function InitTrig_frost_s takes nothing returns nothing set gg_trg_frost_s=CreateTrigger() call TriggerAddCondition(gg_trg_frost_s,Condition(function Trig_frost_s_Conditions)) call TriggerAddAction(gg_trg_frost_s,function Trig_frost_s_Actions) endfunction function Trig_stun_Conditions takes nothing returns boolean return(GetUnitTypeId(GetEventDamageSource())==0x68637477) endfunction function Trig_stun_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEventDamageSource()),0x75303030,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call UnitAddAbility(bj_lastCreatedUnit,0x41637269) call IssueTargetOrder(bj_lastCreatedUnit,"cripple",GetTriggerUnit()) call RemoveLocation(udg_point_X) endfunction function InitTrig_stun takes nothing returns nothing set gg_trg_stun=CreateTrigger() call TriggerAddCondition(gg_trg_stun,Condition(function Trig_stun_Conditions)) call TriggerAddAction(gg_trg_stun,function Trig_stun_Actions) endfunction function Trig_bloodrage_Conditions takes nothing returns boolean return(GetUnitTypeId(GetTriggerUnit())==0x6F74626B) endfunction function Trig_bloodrage_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),0x75303030,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call IssueTargetOrder(bj_lastCreatedUnit,"bloodlust",GetTriggerUnit()) call RemoveLocation(udg_point_X) endfunction function InitTrig_bloodrage takes nothing returns nothing set gg_trg_bloodrage=CreateTrigger() call TriggerAddCondition(gg_trg_bloodrage,Condition(function Trig_bloodrage_Conditions)) call TriggerAddAction(gg_trg_bloodrage,function Trig_bloodrage_Actions) endfunction function Trig_divine_shield_Actions takes nothing returns nothing call DisableTrigger(gg_trg_CreepMovesRight) call IssueImmediateOrder(GetTriggerUnit(),"divineshield") call EnableTrigger(gg_trg_CreepMovesRight) call TriggerSleepAction(0) call IssueImmediateOrder(GetTriggerUnit(),"stop") endfunction function InitTrig_divine_shield takes nothing returns nothing set gg_trg_divine_shield=CreateTrigger() call TriggerAddAction(gg_trg_divine_shield,function Trig_divine_shield_Actions) endfunction function Trig_windwalk_Conditions takes nothing returns boolean return GetUnitTypeId(GetTriggerUnit())==0x65617263 endfunction function Trig_windwalk_Actions takes nothing returns nothing set udg_point_X=GetUnitLoc(GetTriggerUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetTriggerUnit()),0x75303030,udg_point_X,0.00) call UnitApplyTimedLife(bj_lastCreatedUnit,0x42544C46,0.50) call IssueTargetOrder(bj_lastCreatedUnit,"invisibility",GetTriggerUnit()) call RemoveLocation(udg_point_X) endfunction function InitTrig_windwalk takes nothing returns nothing set gg_trg_windwalk=CreateTrigger() call TriggerAddCondition(gg_trg_windwalk,Condition(function Trig_windwalk_Conditions)) call TriggerAddAction(gg_trg_windwalk,function Trig_windwalk_Actions) endfunction function Trig_skeletons_Func002A takes nothing returns nothing local integer i=1 local location p local integer y=0 loop exitwhen y>0 if(GetEnumUnit()==udg_Creep[i])then set y=i endif set i=i+1 endloop if(udg_CreepSummonedCreeps[y]<5)then set udg_CreepSummonedCreeps[y]=(udg_CreepSummonedCreeps[y]+1) set p=GetUnitLoc(GetEnumUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEnumUnit()),0x75736B65,p,0.00) call RemoveLocation(p) set p=null if(IsUnitInGroup(GetEnumUnit(),udg_GoingBack))then call GroupAddUnit(udg_GoingBack,bj_lastCreatedUnit) endif call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_CreepFinishP[y]) set udg_CreepNumber=(udg_CreepNumber+1) set udg_Creep[udg_CreepNumber]=bj_lastCreatedUnit set udg_CreepOwner[udg_CreepNumber]=y if not(IsUnitInGroup(bj_lastCreatedUnit,udg_GroupMobs))then call GroupAddUnit(udg_GroupMobs,bj_lastCreatedUnit) call TriggerRegisterUnitEvent(gg_trg_DamageTakenCheck,bj_lastCreatedUnit,EVENT_UNIT_DAMAGED) endif set udg_CreepFinishP[udg_CreepNumber]=udg_CreepFinishP[y] set udg_CreepStartP[udg_CreepNumber]=udg_CreepStartP[y] set udg_CreepFinishPInt[udg_CreepNumber]=udg_CreepFinishPInt[y] set udg_CreepStartPInt[udg_CreepNumber]=udg_CreepStartPInt[y] endif endfunction function Trig_efe_Func002C takes nothing returns nothing if GetUnitTypeId(GetEnumUnit())!=0x756E6563 then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_skeletons_Actions takes nothing returns nothing call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_efe_Func002C) call ForGroup(udg_Group_X,function Trig_skeletons_Func002A) call GroupClear(udg_Group_X) endfunction function InitTrig_skeletons takes nothing returns nothing set gg_trg_skeletons=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_skeletons,2.00,true) call TriggerAddAction(gg_trg_skeletons,function Trig_skeletons_Actions) endfunction function Trig_spiders_Func002A takes nothing returns nothing local integer i=1 local location p local integer y=0 loop exitwhen y>0 if(GetEnumUnit()==udg_Creep[i])then set y=i endif set i=i+1 endloop if(udg_CreepSummonedCreeps[y]<4)then set udg_CreepSummonedCreeps[y]=(udg_CreepSummonedCreeps[y]+1) set p=GetUnitLoc(GetEnumUnit()) set bj_lastCreatedUnit=CreateUnitAtLoc(GetOwningPlayer(GetEnumUnit()),0x6E737072,p,0.00) call RemoveLocation(p) set p=null if(IsUnitInGroup(GetEnumUnit(),udg_GoingBack))then call GroupAddUnit(udg_GoingBack,bj_lastCreatedUnit) endif call IssuePointOrderLoc(bj_lastCreatedUnit,"move",udg_CreepFinishP[y]) set udg_CreepNumber=(udg_CreepNumber+1) set udg_Creep[udg_CreepNumber]=bj_lastCreatedUnit set udg_CreepOwner[udg_CreepNumber]=y if not(IsUnitInGroup(bj_lastCreatedUnit,udg_GroupMobs))then call GroupAddUnit(udg_GroupMobs,bj_lastCreatedUnit) call TriggerRegisterUnitEvent(gg_trg_DamageTakenCheck,bj_lastCreatedUnit,EVENT_UNIT_DAMAGED) endif set udg_CreepFinishP[udg_CreepNumber]=udg_CreepFinishP[y] set udg_CreepStartP[udg_CreepNumber]=udg_CreepStartP[y] set udg_CreepFinishPInt[udg_CreepNumber]=udg_CreepFinishPInt[y] set udg_CreepStartPInt[udg_CreepNumber]=udg_CreepStartPInt[y] endif endfunction function Trig_efe_Func002A takes nothing returns nothing if GetUnitTypeId(GetEnumUnit())!=0x6E737062 then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_spiders_Actions takes nothing returns nothing call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_efe_Func002A) call ForGroup(udg_Group_X,function Trig_spiders_Func002A) call GroupClear(udg_Group_X) endfunction function InitTrig_spiders takes nothing returns nothing set gg_trg_spiders=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_spiders,10.00,true) call TriggerAddAction(gg_trg_spiders,function Trig_spiders_Actions) endfunction function Trig_crabs_Func002A takes nothing returns nothing if(GetUnitTypeId(GetEnumUnit())!=0x6E736362)then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_crabs_Func003Func004A takes nothing returns nothing local integer id=GetUnitTypeId(GetEnumUnit()) if(id==0x75303030)or(id==0x75303031)or(id==0x75303032)or(id==0x75303033)or(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE))or(IsUnitType(GetEnumUnit(),UNIT_TYPE_PEON))then call GroupRemoveUnit(udg_Group_Y,GetEnumUnit()) endif endfunction function Trig_crabs_Func003Func007A takes nothing returns nothing set udg_Real_X=(udg_Real_X+GetUnitState(GetEnumUnit(),UNIT_STATE_LIFE)) set udg_Real_Y=(udg_Real_Y+GetUnitState(GetEnumUnit(),UNIT_STATE_MAX_LIFE)) endfunction function Trig_crabs_Func003Func009A takes nothing returns nothing local real r=GetUnitState(GetEnumUnit(),UNIT_STATE_MAX_LIFE) call SetUnitState(GetEnumUnit(),UNIT_STATE_LIFE,r*udg_Real_X) endfunction function Trig_crabs_Func003A takes nothing returns nothing set udg_UnitX=GetEnumUnit() set udg_point_X=GetUnitLoc(udg_UnitX) call GroupEnumUnitsInRangeOfLoc(udg_Group_Y,udg_point_X,500.00,null) call RemoveLocation(udg_point_X) call ForGroup(udg_Group_Y,function Trig_crabs_Func003Func004A) set udg_Real_X=0.00 set udg_Real_Y=0.00 call ForGroup(udg_Group_Y,function Trig_crabs_Func003Func007A) set udg_Real_X=(udg_Real_X/udg_Real_Y) call ForGroup(udg_Group_Y,function Trig_crabs_Func003Func009A) endfunction function Trig_crabs_Actions takes nothing returns nothing call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_crabs_Func002A) call ForGroup(udg_Group_X,function Trig_crabs_Func003A) call GroupClear(udg_Group_X) call GroupClear(udg_Group_Y) endfunction function InitTrig_crabs takes nothing returns nothing set gg_trg_crabs=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_crabs,1.50,true) call TriggerAddAction(gg_trg_crabs,function Trig_crabs_Actions) endfunction function Trig_razor_Func002A takes nothing returns nothing if GetUnitTypeId(GetEnumUnit())!=0x6E737276 then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_razor_Func003Func004A takes nothing returns nothing local integer id=GetUnitTypeId(GetEnumUnit()) if(id==0x75303030)or(id==0x75303031)or(id==0x75303032)or(id==0x75303033)or(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE))or(IsUnitType(GetEnumUnit(),UNIT_TYPE_PEON))or(GetEnumUnit()==udg_UnitX)then call GroupRemoveUnit(udg_Group_Y,GetEnumUnit()) else set udg_Integer_X=udg_Integer_X+1 endif endfunction function Trig_razor_Func003Func005Func003A takes nothing returns nothing set udg_point_Y=GetUnitLoc(GetEnumUnit()) if(DistanceBetweenPointsNew(udg_point_X,udg_point_Y)0)then set udg_UnitY=FirstOfGroup(udg_Group_Y) set udg_point_Y=GetUnitLoc(udg_UnitY) set udg_Real_Y=DistanceBetweenPointsNew(udg_point_X,udg_point_Y) call RemoveLocation(udg_point_Y) call ForGroup(udg_Group_Y,function Trig_razor_Func003Func005Func003A) set udg_Real_X=(GetUnitState(udg_UnitX,UNIT_STATE_LIFE)+GetUnitState(udg_UnitY,UNIT_STATE_LIFE)) if(udg_Real_X>GetUnitState(udg_UnitX,UNIT_STATE_MAX_LIFE))then call SetUnitState(udg_UnitX,UNIT_STATE_LIFE,GetUnitState(udg_UnitX,UNIT_STATE_MAX_LIFE)) call SetUnitState(udg_UnitY,UNIT_STATE_LIFE,(udg_Real_X-GetUnitState(udg_UnitX,UNIT_STATE_MAX_LIFE))) else call SetUnitState(udg_UnitX,UNIT_STATE_LIFE,udg_Real_X) call SetUnitState(udg_UnitX,UNIT_STATE_LIFE,0.01) endif endif call RemoveLocation(udg_point_X) endfunction function Trig_razor_Actions takes nothing returns nothing call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_razor_Func002A) call ForGroup(udg_Group_X,function Trig_razor_Func003A) call GroupClear(udg_Group_X) call GroupClear(udg_Group_Y) endfunction function InitTrig_razor takes nothing returns nothing set gg_trg_razor=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_razor,1.00,true) call TriggerAddAction(gg_trg_razor,function Trig_razor_Actions) endfunction function Trig_sleeper_sleep_Actions takes nothing returns nothing local location pointX=udg_point_X local lightning light=AddLightningEx("DRAM",true,udg_Real_X,udg_Real_Y,0,GetLocationX(pointX),GetLocationY(pointX),0) local unit u=CreateUnitAtLoc(GetOwningPlayer(udg_UnitY),0x75303030,pointX,0.00) call UnitApplyTimedLife(u,0x42544C46,0.50) call UnitAddAbility(u,0x4155736C) call IssueTargetOrder(u,"sleep",udg_UnitX) call TriggerSleepAction(0.1) call DestroyLightning(light) set light=null call RemoveLocation(pointX) set u=null set pointX=null endfunction function InitTrig_sleeper_sleep takes nothing returns nothing set gg_trg_sleeper_sleep=CreateTrigger() call TriggerAddAction(gg_trg_sleeper_sleep,function Trig_sleeper_sleep_Actions) endfunction function Trig_sleeper_ucry takes nothing returns nothing if GetUnitTypeId(GetEnumUnit())!=0x75637279 then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_sleeper_mob takes nothing returns nothing if not(IsUnitType(GetEnumUnit(),UNIT_TYPE_STRUCTURE))or IsUnitInGroup(GetEnumUnit(),udg_Group_Z)or IsUnitInvulnerable(GetEnumUnit())then call GroupRemoveUnit(udg_Group_Y,GetEnumUnit()) else set udg_Integer_X=udg_Integer_X+1 endif endfunction function Trig_sleeper_Func003Func007A takes nothing returns nothing local location loc=GetUnitLoc(GetEnumUnit()) local real dbu=DistanceBetweenPointsNew(loc,udg_point_X) call RemoveLocation(loc) set loc=null if dbu0 then set udg_Real_X=600 call ForGroup(udg_Group_Y,function Trig_sleeper_Func003Func007A) call GroupAddUnit(udg_Group_Z,udg_UnitX) set udg_UnitY=ux set udg_Real_X=GetUnitX(udg_UnitX) set udg_Real_Y=GetUnitY(udg_UnitX) call TriggerExecute(gg_trg_sleeper_sleep) endif set ux=null endfunction function Trig_sleeper_Actions takes nothing returns nothing call GroupClear(udg_Group_Z) call GroupEnumUnitsInRect(udg_Group_X,bj_mapInitialPlayableArea,null) call ForGroup(udg_Group_X,function Trig_sleeper_ucry) call ForGroup(udg_Group_X,function Trig_sleeper_act2) call GroupClear(udg_Group_X) call GroupClear(udg_Group_Y) endfunction function InitTrig_sleeper takes nothing returns nothing set gg_trg_sleeper=CreateTrigger() call TriggerRegisterTimerEvent(gg_trg_sleeper,5,true) call TriggerAddAction(gg_trg_sleeper,function Trig_sleeper_Actions) endfunction function Trig_InitCreeps_Actions takes nothing returns nothing set udg_UnitCreepTipe[1]=0x6F70656F set udg_UnitCreepTipe[2]=0x6E62616E set udg_UnitCreepTipe[3]=0x6E736362 set udg_UnitCreepTipe[4]=0x6E6D726D set udg_UnitCreepTipe[5]=0x6F677275 set udg_UnitCreepTipe[6]=0x6F74626B set udg_UnitCreepTipe[7]=0x75736864 set udg_UnitCreepTipe[8]=0x7561626F set udg_UnitCreepTipe[9]=0x756E6563 set udg_UnitCreepTipe[10]=0x6E667368 set udg_UnitCreepTipe[11]=0x6F726169 set udg_UnitCreepTipe[12]=0x686D7474 set udg_UnitCreepTipe[13]=0x6F746175 set udg_UnitCreepTipe[14]=0x6E737062 set udg_UnitCreepTipe[15]=0x6E737276 set udg_UnitCreepTipe[16]=0x65617263 set udg_UnitCreepTipe[17]=0x6E677370 set udg_UnitCreepTipe[18]=0x68686573 set udg_UnitCreepTipe[19]=0x6E63706E set udg_UnitCreepTipe[20]=0x686B6E69 set udg_UnitCreepTipe[21]=0x75637279 set udg_UnitCreepTipeTower[1]=0x6F303030 set udg_UnitCreepTipeTower[2]=0x6F303031 set udg_UnitCreepTipeTower[3]=0x6F303043 set udg_UnitCreepTipeTower[4]=0x6F303035 set udg_UnitCreepTipeTower[5]=0x6F303041 set udg_UnitCreepTipeTower[6]=0x6F303036 set udg_UnitCreepTipeTower[7]=0x6F303034 set udg_UnitCreepTipeTower[8]=0x6F303032 set udg_UnitCreepTipeTower[9]=0x6F303037 set udg_UnitCreepTipeTower[10]=0x6F303039 set udg_UnitCreepTipeTower[11]=0x6F303042 set udg_UnitCreepTipeTower[12]=0x6F303033 set udg_UnitCreepTipeTower[13]=0x6F303044 set udg_UnitCreepTipeTower[14]=0x6F303038 set udg_UnitCreepTipeTower[15]=0x6F303045 set udg_UnitCreepTipeTower[16]=0x6F30304A set udg_UnitCreepTipeTower[17]=0x6F30304B set udg_UnitCreepTipeTower[18]=0x6F30304C set udg_UnitCreepTipeTower[19]=0x6F30304D set udg_UnitCreepTipeTower[20]=0x6F30304E set udg_UnitCreepTipeTower[21]=0x6F30304F set udg_UnitCreepTipeCost[1]=4 set udg_UnitCreepTipeCost[2]=8 set udg_UnitCreepTipeCost[3]=8 set udg_UnitCreepTipeCost[4]=8 set udg_UnitCreepTipeCost[5]=12 set udg_UnitCreepTipeCost[6]=24 set udg_UnitCreepTipeCost[7]=24 set udg_UnitCreepTipeCost[8]=24 set udg_UnitCreepTipeCost[9]=24 set udg_UnitCreepTipeCost[10]=24 set udg_UnitCreepTipeCost[11]=36 set udg_UnitCreepTipeCost[12]=72 set udg_UnitCreepTipeCost[13]=72 set udg_UnitCreepTipeCost[14]=72 set udg_UnitCreepTipeCost[15]=72 set udg_UnitCreepTipeCost[16]=8 set udg_UnitCreepTipeCost[17]=8 set udg_UnitCreepTipeCost[18]=24 set udg_UnitCreepTipeCost[19]=16 set udg_UnitCreepTipeCost[20]=72 set udg_UnitCreepTipeCost[21]=72 set bj_forLoopAIndex=1 set bj_forLoopAIndexEnd=12 loop exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd set bj_forLoopBIndex=1 set bj_forLoopBIndexEnd=15 loop exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd set udg_UnitCreepWhoSpawns[(((GetForLoopIndexA()-1)*36)+GetForLoopIndexB())]=0x6F70656F set bj_forLoopBIndex=bj_forLoopBIndex+1 endloop set bj_forLoopAIndex=bj_forLoopAIndex+1 endloop endfunction function InitTrig_InitCreeps takes nothing returns nothing set gg_trg_InitCreeps=CreateTrigger() call TriggerAddAction(gg_trg_InitCreeps,function Trig_InitCreeps_Actions) endfunction function Trig_NewCreepUpgrd_Actions takes nothing returns nothing local unit u=GetTriggerUnit() local integer a=1 local integer x=0 loop exitwhen(a>432)or(x>0) if(udg_UnitCreepStandingOnMap[a]==u)then set x=a endif set a=a+1 endloop if(GetUnitTypeId(u)==0x6F303046)then call ReplaceUnitNew(u,0x6F303030,bj_UNIT_STATE_METHOD_RELATIVE) set u=bj_lastReplacedUnit set udg_UnitCreepStandingOnMap[x]=u endif set a=1 loop exitwhen a>21 if(GetUnitTypeId(u)==udg_UnitCreepTipeTower[a])then set udg_UnitCreepWhoSpawns[x]=udg_UnitCreepTipe[a] endif set a=a+1 endloop set u=null endfunction function InitTrig_NewCreepUpgrd takes nothing returns nothing set gg_trg_NewCreepUpgrd=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(0),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(1),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(2),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(3),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(4),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(5),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(6),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(7),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(8),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(9),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(10),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerRegisterPlayerUnitEvent(gg_trg_NewCreepUpgrd,Player(11),EVENT_PLAYER_UNIT_UPGRADE_FINISH,null) call TriggerAddAction(gg_trg_NewCreepUpgrd,function Trig_NewCreepUpgrd_Actions) endfunction function Trig_WaveTimerExpires_Func003A takes nothing returns nothing set udg_PlayersNumber=(udg_PlayersNumber+1) set udg_PlayerInPlaying[udg_PlayersNumber]=GetEnumPlayer() endfunction function Trig_WaveTimerExpires_Actions takes nothing returns nothing local integer a local integer x set udg_PlayerAttackedDifferense=(udg_PlayerAttackedDifferense+1) set udg_PlayersNumber=0 call ForForce(udg_PlayingPlayers,function Trig_WaveTimerExpires_Func003A) loop exitwhen(udg_PlayersNumber>udg_PlayerAttackedDifferense)or(udg_PlayerAttackedDifferense==1) if(udg_PlayersNumber==udg_PlayerAttackedDifferense)then set udg_PlayerAttackedDifferense=1 else if(udg_PlayersNumberudg_PlayersNumber set x=(udg_PlayerAttackedDifferense+a) if(x>udg_PlayersNumber)then set x=(x-udg_PlayersNumber) endif set udg_PlayerAttack[a]=GetPlayerId(udg_PlayerInPlaying[x])+1 set a=a+1 endloop call DestroyTimerDialog(bj_lastCreatedTimerDialog) call TimerStart(udg_WaveTimer,66,false,null) call CreateTimerDialogBJ(udg_WaveTimer,"TRIGSTR_669") call TriggerExecute(gg_trg_CreateMultiboard) call TimerStart(udg_CreepsTimer,0.5,false,null) set udg_NumberOfCreep=0 endfunction function InitTrig_WaveTimerExpires takes nothing returns nothing set gg_trg_WaveTimerExpires=CreateTrigger() call TriggerRegisterTimerExpireEvent(gg_trg_WaveTimerExpires,udg_WaveTimer) call TriggerAddAction(gg_trg_WaveTimerExpires,function Trig_WaveTimerExpires_Actions) endfunction function Trig_CreepTimerExpires_Actions takes nothing returns nothing local integer c=1 local integer b=0 local integer x local integer y if(udg_NumberOfCreep<36)then set udg_NumberOfCreep=(udg_NumberOfCreep+1) loop exitwhen c>udg_PlayersNumber loop exitwhen b>11 if(Player(b)==udg_PlayerInPlaying[c])then set y=b endif set b=b+1 endloop set x=((y*36)+udg_NumberOfCreep) set b=1 loop exitwhen b>21 if(udg_UnitCreepWhoSpawns[x]==udg_UnitCreepTipe[b])then call SetPlayerState(udg_PlayerInPlaying[c],PLAYER_STATE_GOLD_GATHERED,GetPlayerState(udg_PlayerInPlaying[c],PLAYER_STATE_GOLD_GATHERED)+udg_UnitCreepTipeCost[b]) call SetPlayerState(udg_PlayerInPlaying[c],PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(udg_PlayerInPlaying[c],PLAYER_STATE_RESOURCE_GOLD)+udg_UnitCreepTipeCost[b]) endif set b=b+1 endloop if IsPlayerInForce(Player(udg_PlayerAttack[c]-1),udg_PlayingPlayers)then set bj_lastCreatedUnit=CreateUnitAtLoc(udg_PlayerInPlaying[c],udg_UnitCreepWhoSpawns[x],udg_point[(-20+(21*udg_PlayerAttack[c]))],90) set udg_CreepNumber=(udg_CreepNumber+1) set udg_Creep[udg_CreepNumber]=bj_lastCreatedUnit if not(IsUnitInGroup(bj_lastCreatedUnit,udg_GroupMobs))then call GroupAddUnit(udg_GroupMobs,bj_lastCreatedUnit) call TriggerRegisterUnitEvent(gg_trg_DamageTakenCheck,bj_lastCreatedUnit,EVENT_UNIT_DAMAGED) endif endif set c=c+1 set b=0 endloop call TimerStart(udg_CreepsTimer,1.75,false,null) endif endfunction function InitTrig_CreepTimerExpires takes nothing returns nothing set gg_trg_CreepTimerExpires=CreateTrigger() call TriggerRegisterTimerExpireEvent(gg_trg_CreepTimerExpires,udg_CreepsTimer) call TriggerAddAction(gg_trg_CreepTimerExpires,function Trig_CreepTimerExpires_Actions) endfunction function Trig_PlayerLeavesTheGame_kill takes nothing returns nothing call KillUnit(GetEnumUnit()) endfunction function Trig_PlayerLeavesTheGame_Actions takes nothing returns nothing local integer i=0 local integer x=GetPlayerId(GetTriggerPlayer())+1 local integer z local integer b local player p=GetTriggerPlayer() set udg_Lives[x]=0 if IsPlayerInForce(p,udg_PlayingPlayers)then loop exitwhen i>11 call DisplayTimedTextToPlayer(Player(i),0,0,5,(GetPlayerName(p)+" ливнул (проиграл)!")) set i=i+1 endloop call ForceRemovePlayer(udg_PlayingPlayers,p) call GroupEnumUnitsOfPlayer(udg_Group_Z,p,null) call ForGroup(udg_Group_Z,function Trig_PlayerLeavesTheGame_kill) call GroupClear(udg_Group_Z) call GroupEnumUnitsInRect(udg_Group_Z,udg_PlayerASector[udg_Integer_X],null) call ForGroup(udg_Group_Z,function Trig_PlayerLeavesTheGame_kill) call GroupClear(udg_Group_Z) call GroupEnumUnitsOfPlayer(udg_Group_Z,p,null) call ForGroup(udg_Group_Z,function Trig_enter_kill) call GroupClear(udg_Group_Z) set z=0 set b=0 loop exitwhen b>11 if IsPlayerInForce(Player(b),udg_PlayingPlayers)then set z=(z+1) set p=Player(b) endif set b=b+1 endloop if(z==1)then call CustomVictoryBJ(p,true,true) endif call TriggerExecute(gg_trg_CreateMultiboard) else loop exitwhen i>11 call DisplayTimedTextToPlayer(Player(i),0,0,5,(GetPlayerName(p)+" вышел из игры.")) endloop endif set p=null endfunction function InitTrig_PlayerLeavesTheGame takes nothing returns nothing set gg_trg_PlayerLeavesTheGame=CreateTrigger() call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(0),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(1),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(2),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(3),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(4),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(5),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(6),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(7),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(8),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(9),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(10),EVENT_PLAYER_LEAVE) call TriggerRegisterPlayerEvent(gg_trg_PlayerLeavesTheGame,Player(11),EVENT_PLAYER_LEAVE) call TriggerAddAction(gg_trg_PlayerLeavesTheGame,function Trig_PlayerLeavesTheGame_Actions) endfunction function Trig_AttackTowerSistemInit_Actions takes nothing returns nothing set udg_TowerAttackTipe[1]=0x68617477 set udg_TowerAttackTipe[2]=0x68777477 set udg_TowerAttackTipe[3]=0x68686F75 set udg_TowerAttackTipe[4]=0x68677477 set udg_TowerAttackTipe[5]=0x6E647432 set udg_TowerAttackTipe[6]=0x6F777477 set udg_TowerAttackTipe[7]=0x68637477 set udg_TowerAttackTipe[8]=0x6E6E7467 set udg_TowerAttackTipe[9]=0x6E667432 set udg_TowerAttackRange[1]=600.00 set udg_TowerAttackRange[2]=500.00 set udg_TowerAttackRange[3]=750.00 set udg_TowerAttackRange[4]=700.00 set udg_TowerAttackRange[5]=550.00 set udg_TowerAttackRange[6]=550.00 set udg_TowerAttackRange[7]=550.00 set udg_TowerAttackRange[8]=650.00 set udg_TowerAttackRange[9]=600.00 endfunction function InitTrig_AttackTowerSistemInit takes nothing returns nothing set gg_trg_AttackTowerSistemInit=CreateTrigger() call TriggerAddAction(gg_trg_AttackTowerSistemInit,function Trig_AttackTowerSistemInit_Actions) endfunction function Trig_UnitHasBeenAttacked_Conditions takes nothing returns boolean return not((GetUnitTypeId(GetAttacker())==0x75303031)or(GetUnitTypeId(GetAttacker())==0x75303032)or(GetUnitTypeId(GetAttacker())==0x75303030)or(GetUnitTypeId(GetAttacker())==0x75303033)) endfunction function Trig_UnitHasBeenAttacked_ReInv takes nothing returns nothing local integer id=GetUnitTypeId(GetEnumUnit()) if GetOwningPlayer(GetEnumUnit())==GetOwningPlayer(GetAttacker())or IsUnitInvisible(GetEnumUnit(),GetOwningPlayer(GetAttacker()))or IsUnitInvulnerable(GetEnumUnit())or(id==0x75303030)or(id==0x75303031)or(id==0x75303032)or(id==0x75303033)then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_UnitHasBeenAttacked_Func011A takes nothing returns nothing if(GetUnitAbilityLevel(GetEnumUnit(),0x42457368)==1)then set udg_boolean_Y=true endif endfunction function Trig_UnitHasBeenAttacked_Func012Func001A takes nothing returns nothing if(GetUnitAbilityLevel(GetEnumUnit(),0x42457368)==0)then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_UnitHasBeenAttacked_Func013A takes nothing returns nothing if IsUnitInGroup(GetEnumUnit(),udg_GoingBack)then set udg_boolean_X=true endif endfunction function Trig_UnitHasBeenAttacked_Func014Func008A takes nothing returns nothing local integer index=1 loop exitwhen index>udg_CreepNumber if(GetEnumUnit()==udg_Creep[index])then set udg_Integer_X=index endif set index=index+1 endloop if(udg_CreepFinishPInt[udg_Integer_X]>udg_Integer_Y)then set udg_Integer_Y=udg_CreepFinishPInt[udg_Integer_X] call GroupClear(udg_Group_Y) call GroupAddUnit(udg_Group_Y,GetEnumUnit()) else if(udg_CreepFinishPInt[udg_Integer_X]==udg_Integer_Y)then call GroupAddUnit(udg_Group_Y,GetEnumUnit()) endif endif endfunction function Trig_UnitHasBeenAttacked_Func014Func009A takes nothing returns nothing if not(IsUnitInGroup(GetEnumUnit(),udg_GoingBack))then call GroupRemoveUnit(udg_Group_X,GetEnumUnit()) endif endfunction function Trig_UnitHasBeenAttacked_Func014Func013A takes nothing returns nothing local integer index=1 loop exitwhen index>udg_CreepNumber if(GetEnumUnit()==udg_Creep[index])then set udg_Integer_X=index endif set index=index+1 endloop if(udg_CreepFinishPInt[udg_Integer_X]9 if(GetUnitTypeId(GetAttacker())==udg_TowerAttackTipe[i])then set udg_Real_X=udg_TowerAttackRange[i]+I2R(GetPlayerTechCount(GetOwningPlayer(GetAttacker()),0x52687269,true)*25) endif set i=i+1 endloop set udg_point_X=GetUnitLoc(GetAttacker()) call GroupEnumUnitsInRangeOfLoc(udg_Group_X,udg_point_X,udg_Real_X,null) call GroupRemoveUnit(udg_Group_X,GetAttacker()) set udg_boolean_X=false set udg_boolean_Y=false call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_ReInv) call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func011A) if(udg_boolean_Y)then call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func012Func001A) endif call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func013A) if(udg_boolean_X)then call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func014Func009A) set udg_Integer_Y=1000000000 call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func014Func013A) else set udg_Integer_Y=0 call ForGroup(udg_Group_X,function Trig_UnitHasBeenAttacked_Func014Func008A) endif set udg_Real_X=1000000000.00 call ForGroup(udg_Group_Y,function Trig_UnitHasBeenAttacked_Func020A) call DisableTrigger(GetTriggeringTrigger()) call IssueTargetOrder(GetAttacker(),"attack",udg_UnitX) call EnableTrigger(GetTriggeringTrigger()) call GroupClear(udg_Group_X) call GroupClear(udg_Group_Y) call RemoveLocation(udg_point_X) endfunction function InitTrig_UnitHasBeenAttacked takes nothing returns nothing set gg_trg_UnitHasBeenAttacked=CreateTrigger() call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(0),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(1),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(2),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(3),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(4),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(5),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(6),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(7),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(8),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(9),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(10),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerRegisterPlayerUnitEvent(gg_trg_UnitHasBeenAttacked,Player(11),EVENT_PLAYER_UNIT_ATTACKED,null) call TriggerAddCondition(gg_trg_UnitHasBeenAttacked,Condition(function Trig_UnitHasBeenAttacked_Conditions)) call TriggerAddAction(gg_trg_UnitHasBeenAttacked,function Trig_UnitHasBeenAttacked_Actions) endfunction function HandleCounter_Update takes nothing returns nothing local integer i=0 local integer id local location array P local real result=0 loop exitwhen i>=50 set i=i+1 set P[i]=Location(0,0) set id=GetHandleId(P[i]) set result=result+(id-0x100000) endloop set result=result/i-i/2 loop call RemoveLocation(P[i]) set P[i]=null exitwhen i<=1 set i=i-1 endloop call LeaderboardSetItemValue(udg_HandleBoard,0,R2I(result)) endfunction function HandleCounter_Actions takes nothing returns nothing set udg_HandleBoard=CreateLeaderboard() call LeaderboardSetLabel(udg_HandleBoard,"Handle Counter") call PlayerSetLeaderboard(GetLocalPlayer(),udg_HandleBoard) call LeaderboardDisplay(udg_HandleBoard,true) call LeaderboardAddItem(udg_HandleBoard,"Handles",0,Player(0)) call LeaderboardSetSizeByItemCount(udg_HandleBoard,1) call HandleCounter_Update() call TimerStart(GetExpiredTimer(),0.05,true,function HandleCounter_Update) endfunction function InitTrig_HandleCounter takes nothing returns nothing call TimerStart(CreateTimer(),0,false,function HandleCounter_Actions) endfunction function InitCustomTriggers takes nothing returns nothing call InitTrig_Initialization() call InitTrig_DialogsCreate() call InitTrig_GoldClickedDiffShow() call InitTrig_HardClicked() call InitTrig_variables() call InitTrig_peons() call InitTrig_enter() call InitTrig_unit_dies() call InitTrig_CreepMovesRight() call InitTrig_cristalls() call InitTrig_GoldMod() call InitTrig_FirstCreateM() call InitTrig_CreateMultiboard() call InitTrig_skaner() call InitTrig_splash() call InitTrig_toxiner() call InitTrig_critical() call InitTrig_minysarmorer() call InitTrig_froster() call InitTrig_stunner() call InitTrig_boundses() call InitTrig_multishot() call InitTrig_finish_constr_tower() call InitTrig_finish_upgrd_segment() call InitTrig_SectorsInit() call InitTrig_s1() call InitTrig_s2() call InitTrig_s3() call InitTrig_s4() call InitTrig_s5() call InitTrig_s6() call InitTrig_s7() call InitTrig_s8() call InitTrig_s9() call InitTrig_s10() call InitTrig_s11() call InitTrig_s12() call InitTrig_armageddon() call InitTrig_teleportation() call InitTrig_indylgention() call InitTrig_deathpact() call InitTrig_clearJass() call InitTrig_income() call InitTrig_transmute() call InitTrig_zalp() call InitTrig_DamageTakenCheck() call InitTrig_toxic() call InitTrig_toxic_s() call InitTrig_aoe() call InitTrig_aoe_s() call InitTrig_minysarmor() call InitTrig_minysarmor_s() call InitTrig_frost() call InitTrig_frost_s() call InitTrig_stun() call InitTrig_bloodrage() call InitTrig_divine_shield() call InitTrig_windwalk() call InitTrig_skeletons() call InitTrig_spiders() call InitTrig_crabs() call InitTrig_razor() call InitTrig_sleeper_sleep() call InitTrig_sleeper() call InitTrig_InitCreeps() call InitTrig_NewCreepUpgrd() call InitTrig_WaveTimerExpires() call InitTrig_CreepTimerExpires() call InitTrig_PlayerLeavesTheGame() call InitTrig_AttackTowerSistemInit() call InitTrig_UnitHasBeenAttacked() call InitTrig_HandleCounter() endfunction function RunInitializationTriggers takes nothing returns nothing call ConditionalTriggerExecute(gg_trg_Initialization) call ConditionalTriggerExecute(gg_trg_SectorsInit) call ConditionalTriggerExecute(gg_trg_InitCreeps) call ConditionalTriggerExecute(gg_trg_AttackTowerSistemInit) endfunction function InitCustomPlayerSlots takes nothing returns nothing call SetPlayerStartLocation(Player(0),0) call ForcePlayerStartLocation(Player(0),0) call SetPlayerColor(Player(0),ConvertPlayerColor(0)) call SetPlayerRacePreference(Player(0),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(0),true) call SetPlayerController(Player(0),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(1),1) call ForcePlayerStartLocation(Player(1),1) call SetPlayerColor(Player(1),ConvertPlayerColor(1)) call SetPlayerRacePreference(Player(1),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(1),true) call SetPlayerController(Player(1),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(2),2) call ForcePlayerStartLocation(Player(2),2) call SetPlayerColor(Player(2),ConvertPlayerColor(2)) call SetPlayerRacePreference(Player(2),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(2),true) call SetPlayerController(Player(2),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(3),3) call ForcePlayerStartLocation(Player(3),3) call SetPlayerColor(Player(3),ConvertPlayerColor(3)) call SetPlayerRacePreference(Player(3),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(3),true) call SetPlayerController(Player(3),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(4),4) call ForcePlayerStartLocation(Player(4),4) call SetPlayerColor(Player(4),ConvertPlayerColor(4)) call SetPlayerRacePreference(Player(4),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(4),true) call SetPlayerController(Player(4),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(5),5) call ForcePlayerStartLocation(Player(5),5) call SetPlayerColor(Player(5),ConvertPlayerColor(5)) call SetPlayerRacePreference(Player(5),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(5),true) call SetPlayerController(Player(5),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(6),6) call ForcePlayerStartLocation(Player(6),6) call SetPlayerColor(Player(6),ConvertPlayerColor(6)) call SetPlayerRacePreference(Player(6),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(6),true) call SetPlayerController(Player(6),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(7),7) call ForcePlayerStartLocation(Player(7),7) call SetPlayerColor(Player(7),ConvertPlayerColor(7)) call SetPlayerRacePreference(Player(7),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(7),true) call SetPlayerController(Player(7),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(8),8) call ForcePlayerStartLocation(Player(8),8) call SetPlayerColor(Player(8),ConvertPlayerColor(8)) call SetPlayerRacePreference(Player(8),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(8),true) call SetPlayerController(Player(8),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(9),9) call ForcePlayerStartLocation(Player(9),9) call SetPlayerColor(Player(9),ConvertPlayerColor(9)) call SetPlayerRacePreference(Player(9),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(9),true) call SetPlayerController(Player(9),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(10),10) call ForcePlayerStartLocation(Player(10),10) call SetPlayerColor(Player(10),ConvertPlayerColor(10)) call SetPlayerRacePreference(Player(10),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(10),true) call SetPlayerController(Player(10),MAP_CONTROL_USER) call SetPlayerStartLocation(Player(11),11) call ForcePlayerStartLocation(Player(11),11) call SetPlayerColor(Player(11),ConvertPlayerColor(11)) call SetPlayerRacePreference(Player(11),RACE_PREF_RANDOM) call SetPlayerRaceSelectable(Player(11),true) call SetPlayerController(Player(11),MAP_CONTROL_USER) endfunction function InitCustomTeams takes nothing returns nothing call SetPlayerTeam(Player(0),0) call SetPlayerTeam(Player(1),1) call SetPlayerTeam(Player(2),1) call SetPlayerTeam(Player(3),1) call SetPlayerTeam(Player(4),1) call SetPlayerTeam(Player(5),1) call SetPlayerTeam(Player(6),1) call SetPlayerTeam(Player(7),1) call SetPlayerTeam(Player(8),1) call SetPlayerTeam(Player(9),1) call SetPlayerTeam(Player(10),1) call SetPlayerTeam(Player(11),1) endfunction function InitAllyPriorities takes nothing returns nothing call SetStartLocPrioCount(0,1) call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(1,2) call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH) call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(2,1) call SetStartLocPrio(2,0,1,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(3,1) call SetStartLocPrio(3,0,4,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(4,2) call SetStartLocPrio(4,0,3,MAP_LOC_PRIO_HIGH) call SetStartLocPrio(4,1,5,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(5,1) call SetStartLocPrio(5,0,4,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(6,1) call SetStartLocPrio(6,0,7,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(7,2) call SetStartLocPrio(7,0,6,MAP_LOC_PRIO_HIGH) call SetStartLocPrio(7,1,8,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(8,1) call SetStartLocPrio(8,0,7,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(9,1) call SetStartLocPrio(9,0,10,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(10,2) call SetStartLocPrio(10,0,9,MAP_LOC_PRIO_HIGH) call SetStartLocPrio(10,1,11,MAP_LOC_PRIO_HIGH) call SetStartLocPrioCount(11,1) call SetStartLocPrio(11,0,10,MAP_LOC_PRIO_HIGH) endfunction function main takes nothing returns nothing call SetCameraBounds(-11776.0+GetCameraMargin(CAMERA_MARGIN_LEFT),-11776.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM),12544.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),1536.0-GetCameraMargin(CAMERA_MARGIN_TOP),-11776.0+GetCameraMargin(CAMERA_MARGIN_LEFT),1536.0-GetCameraMargin(CAMERA_MARGIN_TOP),12544.0-GetCameraMargin(CAMERA_MARGIN_RIGHT),-11776.0+GetCameraMargin(CAMERA_MARGIN_BOTTOM)) call SetDayNightModels("Environment\\DNC\\DNCLordaeron\\DNCLordaeronTerrain\\DNCLordaeronTerrain.mdl","Environment\\DNC\\DNCLordaeron\\DNCLordaeronUnit\\DNCLordaeronUnit.mdl") call NewSoundEnvironment("Default") call SetAmbientDaySound("LordaeronSummerDay") call SetAmbientNightSound("LordaeronSummerNight") call SetMapMusic("Music",true,0) call CreateRegions() call CreateAllUnits() call InitBlizzard() call InitGlobals() call InitCustomTriggers() call RunInitializationTriggers() endfunction function config takes nothing returns nothing call SetMapName("TRIGSTR_192") call SetMapDescription("TRIGSTR_194") call SetPlayers(12) call SetTeams(12) call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER) call DefineStartLocation(0,10368.0,-1216.0) call DefineStartLocation(1,10432.0,-5184.0) call DefineStartLocation(2,10432.0,-9152.0) call DefineStartLocation(3,4032.0,-1216.0) call DefineStartLocation(4,4096.0,-5120.0) call DefineStartLocation(5,4096.0,-9088.0) call DefineStartLocation(6,-2688.0,-1088.0) call DefineStartLocation(7,-2688.0,-5184.0) call DefineStartLocation(8,-2688.0,-9152.0) call DefineStartLocation(9,-9088.0,-1088.0) call DefineStartLocation(10,-9152.0,-5184.0) call DefineStartLocation(11,-9088.0,-9152.0) call InitCustomPlayerSlots() call InitCustomTeams() call InitAllyPriorities() endfunction