globals
string hke_ZZ="hke" 
integer hke_zZ=200
integer hke_Zz=100
integer hke_zz=5
boolean hke_Z0=true
boolean hke_z0=false
real hke_Z1=15.
real hke_z1=15.
integer hke_Z2=2000
integer hke_z2=1000
integer hke_Z3=10
real hke_z3=20.
real hke_Z4=50.
boolean hke_z4=false
integer array hke_Z5
player hke_z5=null
fogmodifier array hke_Z6
boolean array hke_z6
boolean array hke_Z7
unit array hke_z7
integer array hke_Z8
rect hke_z8=null
real hke_ZZZ=100.
button array hke_ZzZ
integer hke_Z0Z=100
boolean array hke_Z1Z
boolean array hke_Z2Z
timer array hke_Z3Z
string hke_Z4Z=""
boolean hke_Z5Z=true
boolean hke_Z6Z=true
boolean hke_Z7Z=true
group array hke_Z8Z
location array hke_Z9Z
boolean array hke_zZZ
boolean array hke_zzZ
timer array hke_z0Z
boolean array hke_z1Z
real array hke_z2Z
real array hke_z3Z
integer hke_z4Z=1000
integer hke_z5Z=500
integer hke_z6Z=30
boolean hke_z7Z=false
group hke_z8Z=CreateGroup()
boolean hke_z9Z=false
boolean hke_ZZz=true
integer hke_Zzz=0
string hke_Z0z="菜单 |cFFFF0000Hke1.25B|r By 火龙 QQ:|cFF00FF3321764538|r|n群:|cFFE500AF19938997 7803814 47099542 17263424 19908229|r|n|cFF00FF33Www.WuHansen.Com|r"
boolean hke_Z1z=false
item array hke_Z2z
boolean array hke_Z3z
integer array hke_Z4z
integer hke_Z5z=0
trigger array hke_Z6z
integer hke_Z7z=0
real hke_Z8z=0
real hke_Z9z=0
unit hke_zZz=null
integer hke_zzz=0
boolean hke_z0z=true
boolean hke_z1z=true
button array hke_z2z
button array hke_z3z
button array hke_z4z
button array hke_z5z
button array hke_z6z
button array hke_z7z
button array hke_z8z
button array hke_z9z
button array hke_ZZ0
button array hke_Zz0
button array hke_Z00
button array hke_Z10
dialog array hke_Z20
trigger array hke_Z30
trigger array hke_Z40
trigger array hke_Z50
trigger array hke_Z60
trigger array hke_Z70
trigger array hke_Z80
trigger array hke_Z90
trigger array hke_zZ0
trigger array hke_zz0
trigger array hke_z00
trigger array hke_z10
trigger array hke_z20
trigger array hke_z30
trigger array hke_z40
trigger array hke_z50
trigger array hke_z60
trigger array hke_z70
trigger array hke_z80
trigger array hke_z90
trigger array hke_ZZ1
trigger array hke_Zz1
trigger array hke_Z01
trigger array hke_Z11
trigger array hke_Z21
trigger array hke_Z31
trigger array hke_Z41
trigger array hke_Z51
trigger array hke_Z61
trigger array hke_Z71
trigger array hke_Z81
dialog array hke_Z91
dialog array hke_zZ1
trigger array hke_zz1
trigger array hke_z01
trigger array hke_z11
trigger array hke_z21
boolean array hke_z31
real hke_z41=100.
unit array hke_z51
integer hke_z61=1
integer hke_z71=0
integer hke_z81=0
integer hke_z91=0
integer hke_ZZ2=0
trigger array hke_Zz2
trigger array hke_Z02
trigger array hke_Z12
trigger array hke_Z22
integer array hke_Z32
boolean array hke_Z42
boolean hke_Z52=true
string hke_Z62=""
string hke_Z72=""
integer hke_Z82=0
integer hke_Z92=0
integer hke_zZ2=0
real hke_zz2=0
weathereffect array hke_z02
boolean array hke_z12
integer hke_z22=30
boolean hke_z32=false
real hke_z42=3.
gamespeed hke_z52=null
boolean hke_z62=false
boolean hke_z72=false
timerdialog hke_z82=null
real hke_z92=15.
trigger array hke_ZZ3
dialog array hke_Zz3
trigger array hke_Z03
trigger array hke_Z13
trigger array hke_Z23
boolean array hke_Z33
boolean array hke_Z43
boolean array hke_Z53
boolean array hke_Z63
timer array hke_Z73
group hke_Z83=CreateGroup()
integer hke_Z93=0
trigger array hke_zZ3
integer hke_zz3=13
gamecache hke_z03=null
boolean hke_z13=true
trigger hke_z23=CreateTrigger()
trigger hke_z33=CreateTrigger()
trigger hke_z43=CreateTrigger()
trigger hke_z53=CreateTrigger()
trigger hke_z63=CreateTrigger()
trigger hke_z73=CreateTrigger()
trigger hke_z83=CreateTrigger()
group hke_Z14=null
force hke_Z24=null
boolexpr hke_Z34=null
constant boolean LIBRARY_YDTriggerSaveLoadSystem=true
gamecache YDGC
constant boolean LIBRARY_YDWEBase=true
string bj_AllString=".................................!.#$%&'()*+,-./0123456789:;<=>.@ABCDEFGHIJKLMNOPQRSTUVWXYZ[.]^_`abcdefghijklmnopqrstuvwxyz{|}~................................................................................................................................"
unit bj_lastAbilityCastingUnit=null
unit bj_lastAbilityTargetUnit=null
unit bj_lastPoolAbstractedUnit=null
unitpool bj_lastCreatedUnitPool=null
item bj_lastPoolAbstractedItem=null
itempool bj_lastCreatedItemPool=null
attacktype bj_lastSetAttackType=ATTACK_TYPE_NORMAL
damagetype bj_lastSetDamageType=DAMAGE_TYPE_NORMAL
weapontype bj_lastSetWeaponType=WEAPON_TYPE_WHOKNOWS
real yd_MapMaxX=0
real yd_MapMinX=0
real yd_MapMaxY=0
real yd_MapMinY=0
trigger array YDWEBase___AbilityCastingOverEventQueue
integer array YDWEBase___AbilityCastingOverEventType
integer YDWEBase___AbilityCastingOverEventNumber=0
constant boolean LIBRARY_YDWECountLivingPlayerUnitsOfTypeIdNull=true
constant boolean LIBRARY_YDWEGetForceOfPlayerNull=true
constant boolean LIBRARY_YDWEGetPlayersAlliesNull=true
constant boolean LIBRARY_YDWEGetPlayersEnemiesNull=true
force yd_NullTempForce
constant boolean LIBRARY_YDWEGetUnitsInRangeOfLocMatchingNull=true
group yd_NullTempGroup
constant boolean LIBRARY_YDWEGetUnitsInRectMatchingNull=true
constant boolean LIBRARY_YDWEGetUnitsOfPlayerAndTypeIdNull=true
constant boolean LIBRARY_YDWEMultiboardSetItemIconBJNull=true
constant boolean LIBRARY_YDWEMultiboardSetItemStyleBJNull=true
constant boolean LIBRARY_YDWEMultiboardSetItemValueBJNull=true
constant boolean LIBRARY_YDWEMultiboardSetItemWidthBJNull=true
constant boolean LIBRARY_YDWEPauseAllUnitsBJNull=true
constant boolean LIBRARY_YDWEPlaySoundNull=true
constant boolean LIBRARY_YDWEPolledWaitNull=true
constant boolean LIBRARY_YDWEReplaceUnitBJNull=true
constant boolean LIBRARY_YDWETriggerEvent=true
trigger yd_DamageEventTrigger=null
trigger array YDWETriggerEvent___DamageEventQueue
integer YDWETriggerEvent___DamageEventNumber=0
item bj_lastMovedItemInItemSlot=null
trigger YDWETriggerEvent___MoveItemEventTrigger=null
trigger array YDWETriggerEvent___MoveItemEventQueue
integer YDWETriggerEvent___MoveItemEventNumber=0
constant boolean LIBRARY_YDWETriggerRegisterEnterRectSimpleNull=true
region yd_NullTempRegion
constant boolean LIBRARY_YDWEGetUnitsInRangeOfLocAllNull=true
constant boolean LIBRARY_YDWEJumpTimer=true
integer MoveMoreLevel_JumpTimer=3
constant boolean LIBRARY_YDWELocalVariable=true
group udg_Group_gold=null
real udg_Real=0
real udg_Real2=0
unit udg_Unit=null
location udg_Point=null
location udg_Point2=null
integer udg_Integer=0
item udg_Item=null
group udg_Group=null
boolean udg_Bolean=false
timer udg_Timer=null
timerdialog udg_timer_window=null
player udg_Player12=null
real udg_real_timer_startTime=0
integer udg_Integer2=0
group udg_Group2=null
integer udg_UnitType=0
integer udg_integer_base_wood_trade=0
integer udg_integer_base_gold_trade=0
dialog array udg_dialog_undeadVote
button array udg_dialog_undeadVote_button_yes
button array udg_dialog_undeadVote_button_no
string udg_String=""
string array udg_player_color_code
string array udg_player_color
dialog array udg_dialog_siteVote
button array udg_dialog_siteVote_human
button array udg_dialog_siteVote_undead
player udg_Player=null
dialog array udg_dialog_regionVote
button array udg_dialog_regionVote_button_1
button array udg_dialog_regionVote_button_2
button array udg_dialog_regionVote_button_3
button array udg_dialog_regionVote_button_4
integer array udg_dialog_regionVote_Integer
rect udg_region_playable=null
rect udg_region_mainSpawn=null
rect udg_region_cameraBounce=null
rect udg_region_altar=null
unit udg_unit_hellGate=null
unit udg_unit_altar=null
integer udg_Integer3=0
string array udg_region_name_color
integer udg_game_time_seconds=0
multiboard udg_Multiboard=null
integer udg_game_time_minutes=0
integer udg_game_time_minutes2=0
integer udg_game_time_bonuses=0
boolean udg_Bolean2=false
real udg_real_spikes_damage=0
integer udg_integer_zombies_max=0
button array udg_dialog_regionVote_button_5
group udg_Group3=null
integer udg_Integer4=0
integer udg_P_G=0
integer udg_P_W=0
integer udg_CHOOSE_1=0
integer udg_CHOOSE_5=0
integer udg_CHOOSE_2=0
integer udg_CHOOSE_3=0
integer udg_CHOOSE_4=0
integer array udg_integer_base_gold_trade_______u
integer array udg_integer_base_wood_trade_______u
boolean udg_Revive=false
button array udg_dialog_regionVote_button_6
integer udg_CHOOSE_6=0
boolean array udg_LOAD
string udg_filename=""
integer array udg_Board_2
integer array udg_Board_5
integer array udg_Board_1
integer array udg_Board_3
integer array udg_Board_4
integer array udg_Board_6
multiboard udg_LIST=null
string array udg_Name
string array udg_Name_______u
string array udg_Name_RL
string array udg_Name_JS
string array udg_Name_DS
string array udg_Name_ZG
force array udg_Player_Group
boolean udg_WIN=false
unit udg_region_test=null
boolean array udg_SAVE
integer udg_C=0
integer udg_AD=0
boolean udg_ZC=false
integer udg_ZC_______u=0
integer udg_ZC_______u_______u=0
unit array udg_Farmer
real array udg_FEED
boolean array udg_YS
boolean array udg_JS
integer array udg_RG
integer array udg_RG_______u
integer array udg_ZB
force udg_ZaB=null
integer udg_JSJ=0
boolean array udg_build
integer array udg_Army
integer array udg_ATM
button array udg_dialog_regionVote_button_7
integer udg_CHOOSE_7=0
dialog array udg_esc
integer array udg_escT
integer array udg_textT
dialog array udg_text
boolean array udg_DEATH
boolean udg_TRUE_B=false
boolean udg_TRUE_A=false
boolean array udg_tel
boolean udg_TRUE_C=false
string udg_HOST=""
dialog array udg_dialog_TR
button array udg_dialog_TR_no
button array udg_dialog_TR_yes
integer udg_TR=0
boolean udg_TR_T=false
integer udg_TR_P=0
integer udg_TR_YES=0
integer udg_TR_NO=0
integer udg_TR_P2=0
button array udg_dialog_TR_mid
integer udg_TR_MID=0
boolean udg_Leader_Z=false
boolean udg_Leader_F=false
boolean udg_Leader_R=false
boolean udg_Leader_S=false
button array udg_dialog_regionVote_button_8
integer udg_CHOOSE_8=0
integer udg_Bouns=0
dialog array udg_dialog_modeVote
button array udg_dialog_modeVote_button_1
button array udg_dialog_modeVote_button_2
integer udg_ModeChoose_1=0
integer udg_ModeChoose_2=0
integer udg_ModeChoose_3=0
button array udg_dialog_modeVote_button_3
integer udg_GameMode=0
integer udg_LJCG=0
integer udg_Effect=0
integer udg_Effect_2=0
real udg_F_Angle=0
location array udg_F_Point
unit udg_F_Unit=null
group array udg_F_Group
boolean udg_F_T=false
integer udg_F_S=0
boolean array udg_VIP
integer udg_Human=0
integer array udg_Barracks
string array udg_Tip
button array udg_dialog_siteVote_watch
integer udg_map=0
button array udg_dialog_modeVote_button_4
integer udg_ModeChoose_4=0
integer udg_Choose=0
button array udg_SFbutton_1
button array udg_SFbutton_3
button array udg_SFbutton_2
button array udg_SFbutton_4
boolean udg_Zombie=false
integer udg_Humans=0
integer udg_Harmonius=0
integer udg_Dog=0
force array udg_VSGroup
dialog array udg_SFVote
boolean array udg_Name_Change
boolean array udg_Press
boolean array udg_VOTE
integer udg_VOTE_P=0
real udg_EX=0
group udg_Zombies=null
unit udg_Unitz=null
boolean array udg_N_TZ
boolean array udg_N_FT
dialog array udg_DayNight
button array udg_DayNight_button_1
button array udg_DayNight_button_2
integer udg_DayNight_ON=0
integer udg_DayNight_OFF=0
real array udg_Real_DOG
real array udg_Real_DOG_2
real array udg_Real_DOG_3
integer array udg_Skill_Q
integer array udg_Skill_W
integer array udg_FS
boolean array udg_Skill_learn
integer udg_JSR=0
boolean udg_search=false
integer array udg_PT
boolean array udg_VOTE_DEATH
boolean array udg_MODE_VOTE
integer udg_Team_XMD=0
integer udg_Team_New=0
integer udg_Team_DS=0
integer udg_Team_LR=0
integer udg_Team_CaT=0
integer udg_Team_Vip=0
integer udg_Team_6=0
integer udg_Team_Ace=0
integer udg_Human_Sp=0
rect gg_rct_start1=null
rect gg_rct_altar1=null
rect gg_rct_altar3=null
rect gg_rct_altar2=null
rect gg_rct_altar4=null
rect gg_rct_start2=null
rect gg_rct_start3=null
rect gg_rct_start4=null
rect gg_rct_Rcamera1=null
rect gg_rct_playable1=null
rect gg_rct_playable2=null
rect gg_rct_Rcamera2=null
rect gg_rct_playable3=null
rect gg_rct_playable4=null
rect gg_rct_Rcamera3=null
rect gg_rct_Rcamera4=null
rect gg_rct_start5=null
rect gg_rct_altar5=null
rect gg_rct_Rcamera5=null
rect gg_rct_playable5=null
rect gg_rct_playable6=null
rect gg_rct_Rcamera6=null
rect gg_rct_start6=null
rect gg_rct_altar6=null
rect gg_rct_playable7=null
rect gg_rct_Rcamera7=null
rect gg_rct_altar7=null
rect gg_rct_start7=null
rect gg_rct_playable8=null
rect gg_rct_Rcamera8=null
rect gg_rct_altar8=null
rect gg_rct_start8=null
rect gg_rct______________032=null
sound gg_snd_QuestNew=null
sound gg_snd_PH1=null
sound gg_snd_HeroDreadlordReady1=null
sound gg_snd_VarimathrasReady1=null
sound gg_snd_QuestFailed=null
string gg_snd_BloodElfTheme="Sound\\Music\\mp3Music\\BloodElfTheme.mp3"
string gg_snd_HumanX1="Sound\\Music\\mp3Music\\HumanX1.mp3"
string gg_snd_IllidansTheme="Sound\\Music\\mp3Music\\IllidansTheme.mp3"
string gg_snd_LichKingTheme="Sound\\Music\\mp3Music\\LichKingTheme.mp3"
string gg_snd_NagaTheme="Sound\\Music\\mp3Music\\NagaTheme.mp3"
string gg_snd_NightElfX1="Sound\\Music\\mp3Music\\NightElfX1.mp3"
string gg_snd_OrcX1="Sound\\Music\\mp3Music\\OrcX1.mp3"
string gg_snd_UndeadX1="Sound\\Music\\mp3Music\\UndeadX1.mp3"
string gg_snd_ArthasTheme="Sound\\Music\\mp3Music\\ArthasTheme.mp3"
trigger gg_trg_init=null
trigger gg_trg_tips=null
trigger gg_trg_trans=null
trigger gg_trg_team=null
trigger gg_trg_players=null
trigger gg_trg_heroTrain=null
trigger gg_trg_demolish=null
trigger gg_trg_OpenCloseGate=null
trigger gg_trg_b=null
trigger gg_trg_b_______u=null
trigger gg_trg_b_2=null
trigger gg_trg_Trade=null
trigger gg_trg_TowerAttack=null
trigger gg_trg_Flag=null
trigger gg_trg_FlagAllow=null
trigger gg_trg_spikes=null
trigger gg_trg_sonicTower=null
trigger gg_trg_sonictower=null
trigger gg_trg_dashu=null
trigger gg_trg_dashu2=null
trigger gg_trg_dashu2_______u=null
trigger gg_trg_a=null
trigger gg_trg_VIP_00=null
trigger gg_trg_VIP_01=null
trigger gg_trg_VIP_01_______u=null
trigger gg_trg_VIP_02=null
trigger gg_trg_VIP_03=null
trigger gg_trg_VIP_04=null
trigger gg_trg_VIP_05=null
trigger gg_trg_VIP_06=null
trigger gg_trg_VIP_07=null
trigger gg_trg_VIP_08=null
trigger gg_trg_VIP_09=null
trigger gg_trg_VIP_10=null
trigger gg_trg_VIP_11=null
trigger gg_trg_VIP_12=null
trigger gg_trg_VIP_13=null
trigger gg_trg_VIP_14=null
trigger gg_trg_VIP_15=null
trigger gg_trg_VIP_16=null
trigger gg_trg_VIP_17=null
trigger gg_trg_VIP_18=null
trigger gg_trg_VIP_19=null
trigger gg_trg_VIP_20=null
trigger gg_trg_VIP_21=null
trigger gg_trg_VIP_22=null
trigger gg_trg_VIP_23=null
trigger gg_trg_VIP_24=null
trigger gg_trg_VIP_25=null
trigger gg_trg_VIP_26=null
trigger gg_trg_VIP_27=null
trigger gg_trg_VIP_28=null
trigger gg_trg_VIP_29=null
trigger gg_trg_VIP_30=null
trigger gg_trg_VIP_31=null
trigger gg_trg_VIP_32=null
trigger gg_trg_VIP_33=null
trigger gg_trg_VIP_34=null
trigger gg_trg_VIP_35=null
trigger gg_trg_VIP_36=null
trigger gg_trg_VIP_38=null
trigger gg_trg_VIP_37=null
trigger gg_trg_VIP_39=null
trigger gg_trg_VIP_40=null
trigger gg_trg_VIP_41=null
trigger gg_trg_VIP_42=null
trigger gg_trg_VIP_43=null
trigger gg_trg_VIP_44=null
trigger gg_trg_VIP_45=null
trigger gg_trg_VIP_46=null
trigger gg_trg_VIP_47=null
trigger gg_trg_VIP_48=null
trigger gg_trg_VIP_49=null
trigger gg_trg_VIP_50=null
trigger gg_trg_VIP_51=null
trigger gg_trg_VIP_52=null
trigger gg_trg_VIP_53=null
trigger gg_trg_VIP_54=null
trigger gg_trg_VIP_55=null
trigger gg_trg_VIP_56=null
trigger gg_trg_VIP_57=null
trigger gg_trg_VIP_58=null
trigger gg_trg_VIP_59=null
trigger gg_trg_a________2=null
trigger gg_trg_a________3=null
trigger gg_trg_a_3=null
trigger gg_trg_a_______u=null
trigger gg_trg_TR=null
trigger gg_trg_TR_VOTE=null
trigger gg_trg_dashu3=null
trigger gg_trg_zs=null
trigger gg_trg_zs_______u=null
trigger gg_trg_tower=null
trigger gg_trg_FMB01=null
trigger gg_trg_DSQ=null
trigger gg_trg_DSS=null
trigger gg_trg_GoldS=null
trigger gg_trg_GoldS2=null
trigger gg_trg_GoldS2_______u=null
trigger gg_trg_zombieStart=null
trigger gg_trg_zombieStart2=null
trigger gg_trg_zombieStart3=null
trigger gg_trg_zombieStart4=null
trigger gg_trg_zombieMake=null
trigger gg_trg_seach=null
trigger gg_trg_zombieGetItem=null
trigger gg_trg_UndeadMake=null
trigger gg_trg_MiniLordDamage=null
trigger gg_trg_MiniLordDamage2=null
trigger gg_trg_MiniLordItem=null
trigger gg_trg_DayNightSpeed=null
trigger gg_trg_DayNightSpeed2=null
trigger gg_trg_trade_ZB=null
trigger gg_trg_ZombieAutoAttack=null
trigger gg_trg_zz=null
trigger gg_trg_zz_def=null
trigger gg_trg_zz_atk=null
trigger gg_trg_up=null
trigger gg_trg_up_______u=null
trigger gg_trg_esc=null
trigger gg_trg_tec=null
trigger gg_trg_tec_lmt=null
trigger gg_trg_tec_______u=null
trigger gg_trg_leader=null
trigger gg_trg_leader_______u=null
trigger gg_trg_tec2=null
trigger gg_trg_train=null
trigger gg_trg_train_______u=null
trigger gg_trg_ck=null
trigger gg_trg_skill=null
trigger gg_trg_skill01=null
trigger gg_trg_skill02=null
trigger gg_trg_skill03=null
trigger gg_trg_skill04=null
trigger gg_trg_skill05=null
trigger gg_trg_skill06=null
trigger gg_trg_skill07=null
trigger gg_trg_skill08=null
trigger gg_trg_skill09=null
trigger gg_trg_skill10=null
trigger gg_trg_skill11=null
trigger gg_trg_skill12=null
trigger gg_trg_skill13=null
trigger gg_trg_skill14=null
trigger gg_trg_skill15=null
trigger gg_trg_skill16=null
trigger gg_trg_skill17=null
trigger gg_trg_skill18=null
trigger gg_trg_skill19=null
trigger gg_trg_object=null
trigger gg_trg_attack=null
trigger gg_trg_terrain=null
trigger gg_trg_UnitDie=null
trigger gg_trg_trees=null
trigger gg_trg_items=null
trigger gg_trg_ResourceAdd=null
trigger gg_trg_cheat=null
trigger gg_trg_Left=null
trigger gg_trg_HellGateDie=null
trigger gg_trg_HumanDie=null
trigger gg_trg_ZombiesDefeat=null
trigger gg_trg_HumanDefeat=null
trigger gg_trg_optimization1=null
trigger gg_trg_U9=null
trigger gg_trg_setup_______u=null
trigger gg_trg_ModeVoteA=null
trigger gg_trg_ModeVoteB=null
trigger gg_trg_DayNightA=null
trigger gg_trg_DayNightB=null
trigger gg_trg_DayNightC=null
trigger gg_trg_RegionVoteA=null
trigger gg_trg_RegionVoteB=null
trigger gg_trg_RegionVote1=null
trigger gg_trg_UndeadVoteA=null
trigger gg_trg_UndeadVoteB=null
trigger gg_trg_UndeadVoteC=null
trigger gg_trg_UndeadVote1=null
trigger gg_trg_UndeadVote2=null
trigger gg_trg_siteVoteA=null
trigger gg_trg_siteVoteB=null
trigger gg_trg_siteVote1=null
trigger gg_trg_siteVote2=null
trigger gg_trg_UndeadVoteV1=null
trigger gg_trg_UndeadVoteV2=null
trigger gg_trg_union=null
trigger gg_trg_ZB=null
trigger gg_trg_ZB_test=null
trigger gg_trg_ZB_test2=null
trigger gg_trg_ZB_test3=null
trigger gg_trg_ZB_test4=null
trigger gg_trg_ZB_test5=null
trigger gg_trg_SetUp=null
trigger gg_trg_GameTimer=null
trigger gg_trg_Board=null
trigger gg_trg_Board_2=null
trigger gg_trg_Board_3=null
trigger gg_trg_Board_4=null
trigger gg_trg_Borar_5=null
unit gg_unit_h000_0001=null
unit gg_unit_h023_0012=null
unit gg_unit_h000_0021=null
unit gg_unit_h000_0034=null
unit gg_unit_h000_0028=null
unit gg_unit_h023_0022=null
unit gg_unit_h023_0026=null
unit gg_unit_h023_0029=null
unit gg_unit_h023_0035=null
unit gg_unit_h000_0037=null
unit gg_unit_h000_0046=null
unit gg_unit_h023_0047=null
unit gg_unit_hpea_0048=null
unit gg_unit_h001_0049=null
unit gg_unit_h002_0050=null
unit gg_unit_h003_0051=null
unit gg_unit_h023_0052=null
unit gg_unit_h023_0058=null
unit gg_unit_h000_0053=null
unit gg_unit_h000_0080=null
unit gg_unit_h023_0082=null
unit gg_unit_H01Z_0153=null
unit gg_unit_U002_0154=null
unit gg_unit_U004_0155=null
unit gg_unit_U000_0156=null
unit gg_unit_U003_0157=null
trigger l__library_init
endglobals
function hke_Z64 takes real hke_Z74,location hke_Z84 returns group
set hke_Z14=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(hke_Z14,hke_Z84,hke_Z74,hke_Z34)
return hke_Z14
endfunction
function hke_Z94 takes player hke_zZ4 returns group
set hke_Z14=CreateGroup()
call GroupEnumUnitsOfPlayer(hke_Z14,hke_zZ4,hke_Z34)
return hke_Z14
endfunction
function hke_zz4 takes player hke_zZ4,integer hke_z04 returns group
set hke_Z14=CreateGroup()
set bj_groupEnumTypeId=hke_z04
call GroupEnumUnitsOfPlayer(hke_Z14,hke_zZ4,filterGetUnitsOfPlayerAndTypeId)
return hke_Z14
endfunction
function hke_z14 takes player hke_zZ4 returns force
set hke_Z24=CreateForce()
call ForceEnumAllies(hke_Z24,hke_zZ4,hke_Z34)
return hke_Z24
endfunction
function hke_z24 takes player hke_zZ4 returns force
set hke_Z24=CreateForce()
call ForceEnumEnemies(hke_Z24,hke_zZ4,hke_Z34)
return hke_Z24
endfunction
function hke_Z45 takes trigger hke_Z55,player hke_Z65,integer hke_Z75 returns nothing
local playerevent hke_Z85=ConvertPlayerEvent(hke_Z75)
call TriggerRegisterPlayerEvent(hke_Z55,hke_Z65,hke_Z85)
set hke_Z85=null
endfunction
function hke_Z95 takes trigger hke_Z55,player hke_Z65,integer hke_Z75 returns nothing
local playerunitevent hke_Z85=ConvertPlayerUnitEvent(hke_Z75)
call TriggerRegisterPlayerUnitEvent(hke_Z55,hke_Z65,hke_Z85,null)
set hke_Z85=null
endfunction
function hke_zZ5 takes integer hke_Z75,player hke_Z65 returns nothing
call TriggerRegisterPlayerUnitEvent(hke_Z30[hke_Z75],hke_Z65,ConvertPlayerUnitEvent(24),null)
call TriggerRegisterPlayerUnitEvent(hke_Z50[hke_Z75],hke_Z65,ConvertPlayerUnitEvent(25),null)
call hke_Z45(hke_Z70[hke_Z75],hke_Z65,17)
call hke_Z45(hke_Z90[hke_Z75],hke_Z65,266)
call hke_Z45(hke_Z80[hke_Z75],hke_Z65,268)
call hke_Z45(hke_zZ0[hke_Z75],hke_Z65,262)
call hke_Z45(hke_zz0[hke_Z75],hke_Z65,264)
call TriggerRegisterTimerExpireEvent(hke_z43,hke_z0Z[hke_Z75])
call TriggerRegisterTimerExpireEvent(hke_z33,hke_Z73[hke_Z75])
call hke_Z95(hke_Z40[hke_Z75],hke_Z65,32)
call hke_Z95(hke_Z60[hke_Z75],hke_Z65,35)
call TriggerRegisterDialogEvent(hke_ZZ1[hke_Z75],hke_zZ1[hke_Z75])
call TriggerRegisterDialogEvent(hke_Zz2[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Zz1[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z01[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z81[hke_Z75],hke_Z91[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z71[hke_Z75],hke_zZ1[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z21[hke_Z75],hke_Z91[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z31[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z22[hke_Z75],hke_Z91[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z11[hke_Z75],hke_Z91[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z51[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z41[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z61[hke_Z75],hke_Z91[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z12[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z02[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z23[hke_Z75],hke_Z20[hke_Z75])
call TriggerRegisterDialogEvent(hke_Z13[hke_Z75],hke_Z20[hke_Z75])
call hke_Z95(hke_z01[hke_Z75],hke_Z65,38)
call hke_Z95(hke_z11[hke_Z75],hke_Z65,39)
call hke_Z95(hke_z21[hke_Z75],hke_Z65,40)
call hke_Z95(hke_z80[hke_Z75],hke_Z65,276)
call hke_Z95(hke_z80[hke_Z75],hke_Z65,275)
call hke_Z95(hke_z90[hke_Z75],hke_Z65,276)
call hke_Z95(hke_z90[hke_Z75],hke_Z65,275)
call hke_Z95(hke_ZZ3[hke_Z75],hke_Z65,18)
call TriggerRegisterPlayerStateEvent(hke_z60[hke_Z75],hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED,GREATER_THAN_OR_EQUAL,0)
call TriggerRegisterPlayerStateEvent(hke_z40[hke_Z75],hke_Z65,PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,0)
call TriggerRegisterPlayerStateEvent(hke_z50[hke_Z75],hke_Z65,PLAYER_STATE_RESOURCE_LUMBER,GREATER_THAN_OR_EQUAL,0)
call hke_Z95(hke_z70[hke_Z75],hke_Z65,20)
call TriggerRegisterPlayerChatEvent(hke_zz1[hke_Z75],hke_Z65,"-",false)
call hke_Z95(hke_Z6z[hke_Z75],hke_Z65,39)
set hke_Z3z[hke_Z75]=true
endfunction
function hke_zz5 takes player hke_z05,integer hke_z15,boolean hke_z25 returns nothing
if(hke_z25)then
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_GOLD)+hke_z15)
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_GOLD_GATHERED,GetPlayerState(hke_z05,PLAYER_STATE_GOLD_GATHERED)-hke_z15)
else
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_GOLD,GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_GOLD)-hke_z15)
endif
endfunction
function hke_z35 takes player hke_z05,integer hke_z15,boolean hke_z25 returns nothing
if(hke_z25)then
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_LUMBER)+hke_z15)
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_LUMBER_GATHERED,GetPlayerState(hke_z05,PLAYER_STATE_LUMBER_GATHERED)-hke_z15)
else
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_LUMBER,GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_LUMBER)-hke_z15)
endif
endfunction
function hke_z45 takes player hke_z05 returns nothing
local player hke_Z65=GetLocalPlayer()
if hke_z05==hke_Z65 then
set hke_Z65=Player(-1)
endif
set hke_Z65=null
endfunction
function hke_z55 takes unit hke_z65,unit hke_z75,boolean hke_z85 returns nothing
local location hke_z95
local location hke_ZZ6
set hke_z95=GetUnitLoc(hke_z65)
set hke_ZZ6=GetUnitLoc(hke_z75)
call SetUnitPositionLoc(hke_z65,hke_ZZ6)
if(hke_z85)then
call SetUnitPositionLoc(hke_z75,hke_z95)
call SetUnitPositionLoc(hke_z65,hke_ZZ6)
endif
call RemoveLocation(hke_z95)
call RemoveLocation(hke_ZZ6)
set hke_z95=null
set hke_ZZ6=null
endfunction
function hke_Zz6 takes integer hke_Z06 returns nothing
if(hke_Z06==0)then
set hke_zZ2=100
set hke_Z92=100
set hke_Z82=100
set hke_Z72="|cFFFFFFFF"
return
endif
if(hke_Z06==1)then
set hke_zZ2=50
set hke_Z92=50
set hke_Z82=50
set hke_Z72="|cFF7F7F7F"
return
endif
if(hke_Z06==2)then
set hke_zZ2=0
set hke_Z92=0
set hke_Z82=0
set hke_Z72="|cFF000000"
return
endif
if(hke_Z06==3)then
set hke_zZ2=100
set hke_Z92=0
set hke_Z82=0
set hke_Z72="|cFFFF0000"
return
endif
if(hke_Z06==4)then
set hke_zZ2=100
set hke_Z92=50
set hke_Z82=0
set hke_Z72="|cFFFF7F00"
return
endif
if(hke_Z06==5)then
set hke_zZ2=100
set hke_Z92=100
set hke_Z82=0
set hke_Z72="|cFFFFFF00"
return
endif
if(hke_Z06==6)then
set hke_zZ2=0
set hke_Z92=100
set hke_Z82=0
set hke_Z72="|cFF00FF00"
return
endif
if(hke_Z06==7)then
set hke_zZ2=0
set hke_Z92=100
set hke_Z82=100
set hke_Z72="|cFF00FFFF"
return
endif
if(hke_Z06==8)then
set hke_zZ2=0
set hke_Z92=0
set hke_Z82=100
set hke_Z72="|cFF0000FF"
return
endif
if(hke_Z06==9)then
set hke_zZ2=100
set hke_Z92=0
set hke_Z82=100
set hke_Z72="|cFFFF00FF"
return
endif
endfunction
function hke_Z16 takes integer hke_Z06,unit hke_Z26,string hke_Z36 returns nothing
local texttag hke_Z46
local location hke_z95
call hke_Zz6(hke_Z06)
set hke_z95=GetUnitLoc(hke_Z26)
set hke_Z46=CreateTextTagLocBJ(hke_Z36,hke_z95,0,20,hke_zZ2,hke_Z92,hke_Z82,0)
call RemoveLocation(hke_z95)
set hke_z95=null
call SetTextTagPermanent(hke_Z46,false)
call SetTextTagLifespan(hke_Z46,hke_Z1)
set hke_Z46=null
endfunction
function hke_Z56 takes nothing returns nothing
local trigger hke_Z66=GetTriggeringTrigger()
local timer hke_Z76=GetExpiredTimer()
local timerdialog H_dio
call DestroyTrigger(hke_Z66)
call UnlockGameSpeedBJ()
call SetGameSpeed(hke_z52)
call DestroyTimerDialog(hke_z82)
call DestroyTimer(hke_Z76)
set hke_Z66=null
set hke_Z76=null
endfunction
function hke_Z86 takes nothing returns nothing
local timer hke_Z76
local trigger hke_Z66
if(hke_z62)then
else
set hke_z52=GetGameSpeed()
set hke_z72=IsMapFlagSet(MAP_LOCK_SPEED)
call UnlockGameSpeedBJ()
call SetGameSpeed(MAP_SPEED_SLOWEST)
call LockGameSpeedBJ()
set hke_Z66=CreateTrigger()
set hke_Z76=CreateTimer()
call StartTimerBJ(hke_Z76,false,hke_z42)
set hke_z82=CreateTimerDialogBJ(hke_Z76,"子弹时间")
call TriggerAddAction(hke_Z66,function hke_Z56)
call TriggerRegisterTimerExpireEvent(hke_Z66,hke_Z76)
endif
endfunction
function hke_Z96 takes trigger hke_zZ6 returns nothing
if(IsTriggerEnabled(hke_zZ6))then
call DisableTrigger(hke_zZ6)
else
call EnableTrigger(hke_zZ6)
endif
endfunction
function hke_zz6 takes trigger hke_zZ6,boolean hke_z06 returns nothing
if(IsTriggerEnabled(hke_zZ6)==hke_z06)then
else
call hke_Z96(hke_zZ6)
endif
endfunction
function hke_z16 takes integer hke_z15,boolean hke_z25 returns nothing
call hke_zz6(hke_z40[hke_z15],hke_z25)
call hke_zz6(hke_z50[hke_z15],hke_z25)
call hke_zz6(hke_z60[hke_z15],hke_z25)
call hke_zz6(hke_z80[hke_z15],hke_z25)
call hke_zz6(hke_z70[hke_z15],hke_z25)
call hke_zz6(hke_z90[hke_z15],hke_z25)
call hke_zz6(hke_ZZ3[hke_z15],hke_z25)
endfunction
function hke_z26 takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
if(GetUnitUserData(hke_z65)==2176)then
call RemoveUnit(hke_z65)
endif
set hke_z65=null
endfunction
function hke_z36 takes player hke_z05 returns nothing
local group hke_z46
if(hke_Z42[GetPlayerId(hke_z05)])then
set hke_z46=hke_Z94(hke_z05)
call ForGroup(hke_z46,function hke_z26)
set hke_Z42[GetPlayerId(hke_z05)]=false
call DestroyGroup(hke_z46)
set hke_z46=null
endif
endfunction
function hke_z56 takes unit hke_z65,player hke_z05 returns nothing
local location hke_z95
local integer hke_z66
local unit hke_z76
local item hke_z86
local integer hke_Z75=0
if(IsUnitType(hke_z65,UNIT_TYPE_HERO))then
set hke_z95=GetUnitLoc(hke_z65)
set hke_z66=GetUnitTypeId(hke_z65)
set hke_z76=CreateUnitAtLoc(hke_z05,hke_z66,hke_z95,bj_UNIT_FACING)
call SetUnitUserData(hke_z76,2176)
set hke_Z42[GetPlayerId(hke_z05)]=true
if(hke_Z6Z)then
call SetUnitUseFood(hke_z76,false)
endif
call SetHeroLevelBJ(hke_z76,GetHeroLevel(hke_z65),false)
call SetHeroStat(hke_z76,0,GetHeroStatBJ(0,hke_z65,false))
call SetHeroStat(hke_z76,1,GetHeroStatBJ(1,hke_z65,false))
call SetHeroStat(hke_z76,2,GetHeroStatBJ(2,hke_z65,false))
loop
exitwhen hke_Z75>5
set hke_z86=UnitItemInSlot(hke_z65,hke_Z75)
call UnitAddItemById(hke_z76,GetItemTypeId(hke_z86))
set hke_Z75=hke_Z75+1
endloop
endif
call RemoveLocation(hke_z95)
set hke_z95=null
set hke_z76=null
set hke_z86=null
endfunction
function hke_z96 takes integer hke_ZZ7,player hke_Zz7,location hke_Z07,boolean hke_Z17,boolean hke_Z27 returns nothing
local unit hke_z76
set hke_z76=CreateUnitAtLoc(hke_Zz7,hke_ZZ7,hke_Z07,bj_UNIT_FACING)
if(hke_Z6Z)then
call SetUnitUseFood(hke_z76,false)
endif
if(hke_Z17)then
call SetUnitUserData(hke_z76,2176)
endif
if(hke_Z27)then
call UnitApplyTimedLife(hke_z76,1112820806,90)
endif
set hke_z76=null
endfunction
function hke_Z37 takes integer hke_ZZ7,player hke_Zz7,location hke_Z07 returns nothing
local unit hke_z76
set hke_z76=CreateUnitAtLoc(hke_Zz7,hke_ZZ7,hke_Z07,bj_UNIT_FACING)
if(hke_Z6Z)then
call SetUnitUseFood(hke_z76,false)
set hke_z76=null
endif
endfunction
function hke_Z47 takes unit hke_Z57,player hke_Zz7,integer hke_Z67,boolean hke_Z27 returns nothing
local location hke_z95
local integer hke_z66
local integer hke_Z75
set hke_z95=GetUnitLoc(hke_Z57)
set hke_z66=GetUnitTypeId(hke_Z57)
set hke_Z75=1
loop
exitwhen hke_Z75>hke_Z67
call hke_z96(hke_z66,hke_Zz7,hke_z95,true,hke_Z27)
set hke_Z75=hke_Z75+1
endloop
call RemoveLocation(hke_z95)
set hke_Z42[GetPlayerId(hke_Zz7)]=true
set hke_z95=null
endfunction
function hke_Z77 takes unit hke_Z57,player hke_Zz7,integer hke_Z67 returns nothing
call hke_Z47(hke_Z57,hke_Zz7,hke_Z67,false)
endfunction
function hke_Z87 takes unit hke_z65,integer hke_z15,boolean hke_Z97 returns nothing
local integer hke_Z75
set hke_Z75=GetResourceAmount(hke_z65)
if(hke_Z97)then
set hke_Z75=hke_Z75+hke_z15
else
set hke_Z75=hke_Z75-hke_z15
endif
if(hke_Z75<0)then
if(hke_Z97)then
set hke_Z75=GetResourceAmount(hke_z65)
else
set hke_Z75=0
endif
endif
call SetResourceAmount(hke_z65,hke_Z75)
endfunction
function hke_zZ7 takes integer hke_z15,player hke_z05,boolean hke_zz7 returns nothing
if(hke_zz7)then
call SetPlayerTechMaxAllowed(hke_z05,1212502607,50000)
else
call SetPlayerTechMaxAllowed(hke_z05,1212502607,3)
endif
endfunction
function hke_z07 takes integer hke_z15,boolean hke_z06 returns nothing
if(hke_z06)then
call EnableTrigger(hke_z00[hke_z15])
call EnableTrigger(hke_z10[hke_z15])
call EnableTrigger(hke_z20[hke_z15])
call EnableTrigger(hke_z30[hke_z15])
call EnableTrigger(hke_Z70[hke_z15])
call EnableTrigger(hke_Z80[hke_z15])
call EnableTrigger(hke_Z90[hke_z15])
call EnableTrigger(hke_zZ0[hke_z15])
call EnableTrigger(hke_zz0[hke_z15])
else
call DisableTrigger(hke_z00[hke_z15])
call DisableTrigger(hke_z10[hke_z15])
call DisableTrigger(hke_z20[hke_z15])
call DisableTrigger(hke_z30[hke_z15])
call DisableTrigger(hke_Z70[hke_z15])
call DisableTrigger(hke_Z80[hke_z15])
call DisableTrigger(hke_Z90[hke_z15])
call DisableTrigger(hke_zZ0[hke_z15])
call DisableTrigger(hke_zz0[hke_z15])
endif
endfunction
function hke_z17 takes integer hke_z15,boolean hke_z27 returns nothing
if(hke_z27)then
call EnableTrigger(hke_Z40[hke_z15])
call EnableTrigger(hke_Z60[hke_z15])
call EnableTrigger(hke_Z6z[hke_z15])
else
call DisableTrigger(hke_Z40[hke_z15])
call DisableTrigger(hke_Z60[hke_z15])
call DisableTrigger(hke_Z6z[hke_z15])
endif
endfunction
function hke_z37 takes nothing returns nothing
local integer hke_z15
set hke_z15=0
loop
exitwhen hke_z15>11
call hke_z07(hke_z15,false)
set hke_z15=hke_z15+1
endloop
endfunction
function hke_z47 takes integer hke_z15 returns nothing
set hke_z6[hke_z15]=false
call GroupClear(hke_Z8Z[hke_z15])
if(hke_Z7Z)then
call DestroyFogModifier(hke_Z6[hke_z15])
endif
call DisableTrigger(hke_Z30[hke_z15])
call DisableTrigger(hke_Z50[hke_z15])
call DisableTrigger(hke_zz1[hke_z15])
call DisableTrigger(hke_z40[hke_z15])
call DisableTrigger(hke_z50[hke_z15])
call DisableTrigger(hke_z60[hke_z15])
call DisableTrigger(hke_z70[hke_z15])
call DisableTrigger(hke_z80[hke_z15])
call DisableTrigger(hke_z90[hke_z15])
call DisableTrigger(hke_ZZ3[hke_z15])
call DisableTrigger(hke_ZZ1[hke_z15])
call DisableTrigger(hke_Zz1[hke_z15])
call DisableTrigger(hke_Zz2[hke_z15])
call DisableTrigger(hke_Z01[hke_z15])
call DisableTrigger(hke_Z81[hke_z15])
call DisableTrigger(hke_Z21[hke_z15])
call DisableTrigger(hke_Z51[hke_z15])
call DisableTrigger(hke_Z41[hke_z15])
call DisableTrigger(hke_Z61[hke_z15])
call DisableTrigger(hke_Z12[hke_z15])
call DisableTrigger(hke_Z02[hke_z15])
call DisableTrigger(hke_Z71[hke_z15])
call DisableTrigger(hke_Z31[hke_z15])
call DisableTrigger(hke_Z22[hke_z15])
call DisableTrigger(hke_Z11[hke_z15])
call DisableTrigger(hke_Z23[hke_z15])
call DisableTrigger(hke_Z13[hke_z15])
call DisableTrigger(hke_zZ3[hke_z15])
call DisableTrigger(hke_Z40[hke_z15])
call DisableTrigger(hke_Z60[hke_z15])
call DisableTrigger(hke_Z6z[hke_z15])
call hke_z07(hke_z15,false)
endfunction
function hke_z57 takes integer hke_z15,player hke_z05 returns nothing
set hke_z6[hke_z15]=true
if(hke_Z3z[hke_z15])then
else
call hke_zZ5(hke_z15,hke_z05)
endif
call EnableTrigger(hke_Z30[hke_z15])
call EnableTrigger(hke_Z50[hke_z15])
call EnableTrigger(hke_zz1[hke_z15])
call hke_z07(hke_z15,true)
endfunction
function hke_z67 takes integer hke_z15,boolean hke_z77 returns nothing
if(hke_z77)then
if((hke_zZZ[hke_z15])and(hke_zzZ[hke_z15])and(hke_z31[hke_z15]))then
call EnableTrigger(hke_z01[hke_z15])
call EnableTrigger(hke_z11[hke_z15])
call EnableTrigger(hke_z21[hke_z15])
endif
else
call DisableTrigger(hke_z01[hke_z15])
call DisableTrigger(hke_z11[hke_z15])
call DisableTrigger(hke_z21[hke_z15])
endif
endfunction
function hke_z87 takes integer hke_Z06 returns nothing
if(hke_Z06==0)then
set hke_zz2=0
return
endif
if(hke_Z06==1)then
set hke_zz2=10
return
endif
if(hke_Z06==2)then
set hke_zz2=15
return
endif
if(hke_Z06==3)then
set hke_zz2=20
return
endif
if(hke_Z06==4)then
set hke_zz2=40
return
endif
if(hke_Z06==5)then
set hke_zz2=50
return
endif
if(hke_Z06==6)then
set hke_zz2=70
return
endif
if(hke_Z06==7)then
set hke_zz2=80
return
endif
if(hke_Z06==8)then
set hke_zz2=90
return
endif
if(hke_Z06==9)then
set hke_zz2=100
return
endif
endfunction
function hke_z97 takes unit hke_z65,integer hke_ZZ8,integer hke_Zz8 returns nothing
call hke_z87(hke_Zz8)
call hke_Zz6(hke_ZZ8)
call SetUnitVertexColorBJ(hke_z65,hke_zZ2,hke_Z92,hke_Z82,hke_zz2)
endfunction
function hke_Z08 takes integer hke_ZZ8,integer hke_Zz8 returns nothing
call hke_z87(hke_Zz8)
call hke_Zz6(hke_ZZ8)
call SetWaterBaseColorBJ(hke_zZ2,hke_Z92,hke_Z82,hke_zz2)
endfunction
function hke_Z18 takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call hke_z97(hke_z65,GetRandomInt(3,9),0)
set hke_z65=null
endfunction
function hke_Z28 takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call hke_z97(hke_z65,0,0)
set hke_z65=null
endfunction
function hke_Z38 takes integer hke_z15,boolean hke_z77 returns nothing
local integer hke_Z75
local integer hke_Z48
if(hke_Z53[hke_z15]==hke_z77)then
else
set hke_Z53[hke_z15]=hke_z77
if(hke_z77)then
call EnableTrigger(hke_z83)
else
set hke_Z75=0
set hke_Z48=0
loop
exitwhen hke_Z75>11
if(hke_Z53[hke_Z75])then
set hke_Z48=hke_Z48+1
endif
set hke_Z75=hke_Z75+1
endloop
if(hke_Z48==0)then
call DisableTrigger(hke_z83)
endif
endif
endif
endfunction
function hke_Z58 takes integer hke_Z68 returns nothing
if(hke_Z68==0)then
call SetSkyModel(null)
return
endif
if(hke_Z68==1)then
call SetSkyModel("Environment\\Sky\\BlizzardSky\\BlizzardSky.mdl")
return
endif
if(hke_Z68==2)then
call SetSkyModel("Environment\\Sky\\DalaranSky\\DalaranSky.mdl")
return
endif
if(hke_Z68==3)then
call SetSkyModel("Environment\\Sky\\FelwoodSky\\FelwoodSky.mdl")
return
endif
if(hke_Z68==4)then
call SetSkyModel("Environment\\Sky\\FoggedSky\\FoggedSky.mdl")
return
endif
if(hke_Z68==5)then
call SetSkyModel("Environment\\Sky\\Sky\\SkyLight.mdl")
return
endif
if(hke_Z68==6)then
call SetSkyModel("Environment\\Sky\\LordaeronFallSky\\LordaeronFallSky.mdl")
return
endif
if(hke_Z68==7)then
call SetSkyModel("Environment\\Sky\\LordaeronSummerSky\\LordaeronSummerSky.mdl")
return
endif
if(hke_Z68==8)then
call SetSkyModel("Environment\\Sky\\LordaeronWinterSky\\LordaeronWinterSky.mdl")
return
endif
if(hke_Z68==9)then
call SetSkyModel("Environment\\Sky\\LordaeronWinterSkyBrightGreen\\LordaeronWinterSkyBrightGreen.mdl")
return
endif
if(hke_Z68==10)then
call SetSkyModel("Environment\\Sky\\LordaeronWinterSkyPink\\LordaeronWinterSkyPink.mdl")
return
endif
if(hke_Z68==11)then
call SetSkyModel("Environment\\Sky\\LordaeronWinterSkyPurple\\LordaeronWinterSkyPurple.mdl")
return
endif
if(hke_Z68==12)then
call SetSkyModel("Environment\\Sky\\LordaeronWinterSkyYellow\\LordaeronWinterSkyYellow.mdl")
return
endif
if(hke_Z68==13)then
call SetSkyModel("Environment\\Sky\\Outland_Sky\\Outland_Sky.mdl")
return
endif
endfunction
function hke_Z78 takes integer hke_Z88 returns integer
if(hke_Z88==0)then
return 1380018290
endif
if(hke_Z88==1)then
return 1380019314
endif
if(hke_Z88==2)then
return 1296393331
endif
if(hke_Z88==3)then
return 1178886760
endif
if(hke_Z88==4)then
return 1178886764
endif
if(hke_Z88==5)then
return 1178888040
endif
if(hke_Z88==6)then
return 1178888044
endif
if(hke_Z88==7)then
return 1178890856
endif
if(hke_Z88==8)then
return 1178890860
endif
if(hke_Z88==9)then
return 1178892136
endif
if(hke_Z88==10)then
return 1178892140
endif
if(hke_Z88==11)then
return 1380739186
endif
if(hke_Z88==12)then
return 1380740210
endif
if(hke_Z88==13)then
return 1397645939
endif
if(hke_Z88==14)then
return 1397647475
endif
if(hke_Z88==15)then
return 1397648499
endif
if(hke_Z88==16)then
return 1464820599
endif
if(hke_Z88==17)then
return 1464822903
endif
if(hke_Z88==18)then
return 1280467297
endif
if(hke_Z88==19)then
return 1280470369
endif
if(hke_Z88==20)then
return 1464755063
endif
return 0
endfunction
function hke_Z98 takes integer hke_Z88,boolean hke_z77 returns nothing
set hke_Z88=hke_Z88-1
if(hke_z77)then
if(hke_z12[hke_Z88]==false)then
if(hke_Z78(hke_Z88)==0)then
else
set hke_z02[hke_Z88]=AddWeatherEffect(hke_z8,hke_Z78(hke_Z88))
call EnableWeatherEffect(hke_z02[hke_Z88],true)
set hke_z12[hke_Z88]=true
endif
endif
else
if(hke_z02[hke_Z88]==null)then
else
call EnableWeatherEffect(hke_z02[hke_Z88],false)
call RemoveWeatherEffect(hke_z02[hke_Z88])
set hke_z12[hke_Z88]=false
set hke_z02[hke_Z88]=null
endif
endif
endfunction
function hke_zZ8 takes nothing returns nothing
local integer hke_z15=1
loop
exitwhen hke_z15>21
call hke_Z98(hke_z15,false)
set hke_z15=hke_z15+1
endloop
endfunction
function hke_zz8 takes integer hke_z08 returns integer
if(hke_z08==0)then
return 1280601204
endif
if(hke_z08==1)then
return 1179939959
endif
if(hke_z08==2)then
return 1465152631
endif
if(hke_z08==3)then
return 1096053874
endif
if(hke_z08==4)then
return 1096053859
endif
if(hke_z08==5)then
return 1112831095
endif
if(hke_z08==6)then
return 1263826039
endif
if(hke_z08==7)then
return 1498707828
endif
if(hke_z08==8)then
return 1498702708
endif
if(hke_z08==9)then
return 1498703476
endif
if(hke_z08==10)then
return 1498706804
endif
if(hke_z08==11)then
return 1247044468
endif
if(hke_z08==12)then
return 1247048823
endif
if(hke_z08==13)then
return 1146385256
endif
if(hke_z08==14)then
return 1129608306
endif
if(hke_z08==15)then
return 1129608291
endif
if(hke_z08==16)then
return 1230271607
endif
if(hke_z08==17)then
return 1230271607
endif
if(hke_z08==18)then
return 1314157667
endif
if(hke_z08==19)then
return 1330934903
endif
if(hke_z08==20)then
return 1515484279
endif
if(hke_z08==21)then
return 1196716904
endif
if(hke_z08==22)then
return 1448373364
endif
if(hke_z08==23)then
return 1448373364
endif
return 0
endfunction
function hke_z18 takes nothing returns integer
return hke_zz8(GetRandomInt(0,23))
endfunction
function hke_z28 takes unit hke_z65,integer hke_z38,integer hke_z08,integer hke_z48 returns nothing
local real hke_z58
local real hke_z68
local real hke_z15=0
local boolean hke_z78=true
set hke_z58=GetUnitX(hke_z65)
set hke_z68=GetUnitY(hke_z65)
if(hke_z38==1)then
loop
exitwhen hke_z15==hke_z48
if(hke_z78)then
call CreateDestructable(hke_z08,hke_z58,hke_z68+hke_z15*40,GetRandomReal(0,360),1,0)
else
call CreateDestructable(hke_z08,hke_z58,hke_z68-hke_z15*40,GetRandomReal(0,360),1,0)
endif
set hke_z78=not(hke_z78)
set hke_z15=hke_z15+1
endloop
endif
if(hke_z38==2)then
loop
exitwhen hke_z15==hke_z48
if(hke_z78)then
call CreateDestructable(hke_z08,hke_z58+hke_z15*40,hke_z68,GetRandomReal(0,360),1,0)
else
call CreateDestructable(hke_z08,hke_z58-hke_z15*40,hke_z68,GetRandomReal(0,360),1,0)
endif
set hke_z78=not(hke_z78)
set hke_z15=hke_z15+1
endloop
endif
if(hke_z38==3)then
loop
exitwhen hke_z15==hke_z48
if(hke_z78)then
call CreateDestructable(hke_z08,hke_z58+hke_z15*40,hke_z68+hke_z15*40,GetRandomReal(0,360),1,0)
else
call CreateDestructable(hke_z08,hke_z58-hke_z15*40,hke_z68-hke_z15*40,GetRandomReal(0,360),1,0)
endif
set hke_z78=not(hke_z78)
set hke_z15=hke_z15+1
endloop
endif
if(hke_z38==4)then
loop
exitwhen hke_z15==hke_z48
if(hke_z78)then
call CreateDestructable(hke_z08,hke_z58+hke_z15*40,hke_z68-hke_z15*40,GetRandomReal(0,360),1,0)
else
call CreateDestructable(hke_z08,hke_z58-hke_z15*40,hke_z68+hke_z15*40,GetRandomReal(0,360),1,0)
endif
set hke_z78=not(hke_z78)
set hke_z15=hke_z15+1
endloop
endif
endfunction
function hke_z88 takes integer hke_z15 returns nothing
set hke_Z7[hke_z15]=true
call StartTimerBJ(hke_z0Z[hke_z15],false,2.)
endfunction
function hke_z98 takes integer hke_z15,boolean hke_ZZZZ returns nothing
local integer hke_Z75
local integer hke_z76
local item hke_z86
local location hke_z95
local unit hke_z65
set hke_z65=hke_z7[hke_z15]
set hke_z76=1
loop
exitwhen hke_z76>6
if(hke_ZZZZ)then
set hke_z95=GetUnitLoc(hke_z51[hke_z15])
else
set hke_z95=GetUnitLoc(hke_z65)
endif
set hke_z86=UnitItemInSlotBJ(hke_z65,hke_z76)
if(GetItemCharges(hke_z86)>0)then
set hke_Z75=GetItemCharges(hke_z86)
set hke_z86=CreateItemLoc(GetItemTypeId(hke_z86),hke_z95)
call SetItemCharges(hke_z86,hke_Z75)
else
call CreateItemLoc(GetItemTypeId(hke_z86),hke_z95)
endif
call RemoveLocation(hke_z95)
set hke_z76=hke_z76+1
endloop
set hke_z65=null
set hke_z95=null
set hke_z86=null
endfunction
function hke_ZZzZ takes integer hke_z15,player hke_z05 returns nothing
local integer hke_Z75
local force hke_ZZ0Z
local player hke_Z65
if(hke_z1Z[hke_z15])then
call DestroyFogModifier(hke_Z6[hke_z15])
set hke_z1Z[hke_z15]=false
else
set hke_ZZ0Z=CreateForce()
set hke_Z75=0
loop
exitwhen hke_Z75>11
set hke_Z65=Player(hke_Z75)
if(GetPlayerAlliance(hke_z05,hke_Z65,ALLIANCE_SHARED_VISION))then
call ForceAddPlayer(hke_ZZ0Z,hke_Z65)
call SetPlayerAlliance(hke_z05,hke_Z65,ALLIANCE_SHARED_VISION,false)
endif
set hke_Z75=hke_Z75+1
endloop
set hke_Z6[hke_z15]=CreateFogModifierRect(hke_z05,FOG_OF_WAR_VISIBLE,hke_z8,false,false)
call FogModifierStart(hke_Z6[hke_z15])
set hke_z1Z[hke_z15]=true
set hke_Z75=0
loop
exitwhen hke_Z75>11
set hke_Z65=Player(hke_Z75)
if(IsPlayerInForce(hke_Z65,hke_ZZ0Z))then
call SetPlayerAlliance(hke_z05,hke_Z65,ALLIANCE_SHARED_VISION,true)
endif
set hke_Z75=hke_Z75+1
endloop
call DestroyForce(hke_ZZ0Z)
set hke_ZZ0Z=null
set hke_Z65=null
endif
endfunction
function hke_ZZ1Z takes integer hke_z15,player hke_z05 returns nothing
local integer hke_Z75
local unit hke_z65
local item hke_z86
local item array hke_ZZ2Z
set hke_z65=FirstOfGroup(hke_Z8Z[hke_z15])
if((hke_z05==GetOwningPlayer(hke_z65))and(UnitInventorySizeBJ(hke_z65)>0))then
set hke_Z75=1
loop
exitwhen hke_Z75>6
set hke_z86=UnitItemInSlotBJ(hke_z65,hke_Z75)
set hke_ZZ2Z[(hke_Z75-1)]=hke_z86
call UnitRemoveItemSwapped(hke_z86,hke_z65)
call SetItemVisible(hke_z86,false)
set hke_Z75=hke_Z75+1
endloop
set hke_Z75=1
loop
exitwhen hke_Z75>6
set hke_z86=hke_Z2z[(hke_z15*18)+(hke_Z4z[hke_z15]*6)+(hke_Z75-1)]
call UnitAddItem(hke_z65,hke_z86)
set hke_Z2z[(hke_z15*18)+(hke_Z4z[hke_z15]*6)+(hke_Z75-1)]=hke_ZZ2Z[(hke_Z75-1)]
set hke_ZZ2Z[(hke_Z75-1)]=null
set hke_Z75=hke_Z75+1
endloop
if(hke_Z4z[hke_z15]==0)then
set hke_Z4z[hke_z15]=hke_z61-1
else
set hke_Z4z[hke_z15]=(hke_Z4z[hke_z15]-1)
endif
set hke_z86=null
endif
set hke_z65=null
set hke_z05=null
endfunction
function hke_ZZ3Z takes unit hke_z65 returns nothing
local integer hke_Z75
local item hke_z86
set hke_Z75=1
loop
exitwhen hke_Z75>6
set hke_z86=UnitItemInSlotBJ(hke_z65,hke_Z75)
call UnitRemoveItemSwapped(hke_z86,hke_z65)
set hke_Z75=hke_Z75+1
endloop
set hke_z86=null
endfunction
function hke_ZZ4Z takes integer hke_z15 returns nothing
local integer hke_Z75
local item hke_z86
local location hke_z95
set hke_z95=GetUnitLoc(hke_z51[hke_z15])
set hke_Z75=1
loop
exitwhen hke_Z75>6
set hke_z86=UnitItemInSlotBJ(hke_z7[hke_z15],hke_Z75)
call UnitRemoveItemSwapped(hke_z86,hke_z7[hke_z15])
call SetItemPositionLoc(hke_z86,hke_z95)
set hke_Z75=hke_Z75+1
endloop
call RemoveLocation(hke_z95)
set hke_z86=null
set hke_z95=null
endfunction
function hke_ZZ5Z takes integer hke_z15 returns nothing
local integer hke_z76
local integer hke_z78
local unit hke_z65
local item hke_Z66
local item hke_ZZ6Z
set hke_z65=FirstOfGroup(hke_Z8Z[hke_z15])
set hke_z76=1
loop
exitwhen hke_z76>5
set hke_Z66=UnitItemInSlotBJ(hke_z65,hke_z76)
if(GetItemCharges(hke_Z66)>0)then
set hke_z78=hke_z76+1
loop
exitwhen hke_z78>6
set hke_ZZ6Z=UnitItemInSlotBJ(hke_z65,hke_z78)
if(GetItemTypeId(hke_Z66)==GetItemTypeId(hke_ZZ6Z))then
call SetItemCharges(hke_Z66,(GetItemCharges(hke_Z66)+GetItemCharges(hke_ZZ6Z)))
call RemoveItem(hke_ZZ6Z)
endif
set hke_z78=hke_z78+1
endloop
endif
set hke_z76=hke_z76+1
endloop
set hke_Z66=null
set hke_ZZ6Z=null
set hke_z65=null
endfunction
function hke_ZZ7Z takes integer hke_z15,integer hke_Z75 returns nothing
local unit hke_z65
local item hke_z86
set hke_z65=FirstOfGroup(hke_Z8Z[hke_z15])
set hke_z86=UnitItemInSlotBJ(hke_z65,1)
call SetItemCharges(hke_z86,(GetItemCharges(hke_z86)+hke_Z75))
set hke_z86=null
set hke_z65=null
endfunction
function hke_ZZ8Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call GroupAddUnit(hke_z8Z,hke_z65)
set hke_z65=null
endfunction
function hke_ZZ9Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call GroupRemoveUnit(hke_z8Z,hke_z65)
set hke_z65=null
endfunction
function hke_ZzZZ takes nothing returns nothing
local unit hke_z65=GetTriggerUnit()
if((IsUnitDeadBJ(hke_z65))and(IsUnitType(hke_z65,UNIT_TYPE_HERO)))then
call GroupRemoveUnit(hke_z8Z,hke_z65)
endif
endfunction
function hke_ZzzZ takes nothing returns nothing
call ForGroup(hke_z8Z,function hke_ZzZZ)
endfunction
function hke_Zz0Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call ReviveHeroLoc(hke_z65,hke_Z9Z[hke_Zzz],true)
call SetUnitManaPercentBJ(hke_z65,100)
set hke_z65=null
endfunction
function hke_Zz1Z takes player hke_z05 returns nothing
local group hke_z46
set hke_z46=hke_Z94(hke_z05)
set hke_Zzz=GetPlayerId(hke_z05)
call ForGroup(hke_z46,function hke_Zz0Z)
call DestroyGroup(hke_z46)
set hke_z46=null
endfunction
function hke_Zz2Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call ModifyHeroStat(hke_z81,hke_z65,hke_z91,hke_z71)
set hke_z65=null
endfunction
function hke_Zz3Z takes integer hke_z15,integer hke_Zz4Z,integer hke_Zz5Z,boolean hke_z25 returns nothing
local integer hke_Zz6Z
if(hke_z25)then
set hke_Zz6Z=0
else
set hke_Zz6Z=1
endif
if(hke_Z0)then
set hke_z91=hke_Zz6Z
set hke_z81=hke_Zz4Z
set hke_z71=hke_Zz5Z
call ForGroup(hke_Z8Z[hke_z15],function hke_Zz2Z)
else
call ModifyHeroStat(hke_Zz4Z,hke_z7[hke_z15],hke_Zz6Z,hke_Zz5Z)
endif
endfunction
function hke_Zz7Z takes unit hke_z65,integer hke_Zz5Z,boolean hke_z25 returns nothing
local integer hke_z15
set hke_z15=GetHeroLevel(hke_z65)
if(hke_z25)then
set hke_z15=hke_z15+hke_Zz5Z
else
set hke_z15=hke_z15-hke_Zz5Z
endif
call SetHeroLevelBJ(hke_z65,hke_z15,false)
endfunction
function hke_Zz8Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_Zz7Z(hke_z65,hke_ZZ2,hke_Z1z)
set hke_z65=null
endfunction
function hke_Zz9Z takes integer hke_z15,integer hke_Zz5Z,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_ZZ2=hke_Zz5Z
set hke_Z1z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Zz8Z)
else
call hke_Zz7Z(hke_z7[hke_z15],hke_Zz5Z,hke_z25)
endif
endfunction
function hke_Z0ZZ takes string hke_Z0zZ returns integer
local string hke_Z00Z="0123456789"
local string hke_Z01Z="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local string hke_Z02Z="abcdefghijklmnopqrstuvwxyz"
local integer Id=0
local integer hke_Z03Z=1
local integer hke_Z04Z=1
loop
exitwhen hke_Z03Z>StringLength(hke_Z0zZ)
loop
exitwhen hke_Z04Z>10
if SubString(hke_Z0zZ,hke_Z03Z-1,hke_Z03Z)==SubString(hke_Z00Z,hke_Z04Z-1,hke_Z04Z)then
set Id=Id+R2I((48+hke_Z04Z-1)*Pow(256.,I2R(StringLength(hke_Z0zZ)-hke_Z03Z)))
set hke_Z04Z=hke_Z04Z+1
else
set hke_Z04Z=hke_Z04Z+1
endif
endloop
set hke_Z04Z=1
loop
exitwhen hke_Z04Z>26
if SubString(hke_Z0zZ,hke_Z03Z-1,hke_Z03Z)==SubString(hke_Z01Z,hke_Z04Z-1,hke_Z04Z)then
set Id=Id+R2I(I2R(65+hke_Z04Z-1)*Pow(256.,I2R(StringLength(hke_Z0zZ)-hke_Z03Z)))
set hke_Z04Z=hke_Z04Z+1
else
set hke_Z04Z=hke_Z04Z+1
endif
endloop
set hke_Z04Z=1
loop
exitwhen hke_Z04Z>26
if SubString(hke_Z0zZ,hke_Z03Z-1,hke_Z03Z)==SubString(hke_Z02Z,hke_Z04Z-1,hke_Z04Z)then
set Id=Id+R2I((97+hke_Z04Z-1)*Pow(256.,I2R(StringLength(hke_Z0zZ)-hke_Z03Z)))
set hke_Z04Z=hke_Z04Z+1
else
set hke_Z04Z=hke_Z04Z+1
endif
endloop
set hke_Z04Z=1
set hke_Z03Z=hke_Z03Z+1
endloop
return Id
endfunction
function hke_Z05Z takes integer hke_Z06Z returns string
local string hke_Z00Z="0123456789"
local string hke_Z01Z="ABCDEFGHIJKLMNOPQRSTUVWXYZ"
local string hke_Z02Z="abcdefghijklmnopqrstuvwxyz"
local string hke_Z07Z=""
local integer hke_Z03Z=0
local integer hke_Z08Z=0
loop
exitwhen hke_Z06Z==0
set hke_Z03Z=ModuloInteger(hke_Z06Z,256)
if hke_Z03Z>=48 and hke_Z03Z<=57 then
set hke_Z08Z=hke_Z03Z-48
set hke_Z07Z=SubString(hke_Z00Z,hke_Z08Z,hke_Z08Z+1)+hke_Z07Z
endif
if hke_Z03Z>=65 and hke_Z03Z<=90 then
set hke_Z08Z=hke_Z03Z-65
set hke_Z07Z=SubString(hke_Z01Z,hke_Z08Z,hke_Z08Z+1)+hke_Z07Z
endif
if hke_Z03Z>=97 and hke_Z03Z<=122 then
set hke_Z08Z=hke_Z03Z-97
set hke_Z07Z=SubString(hke_Z02Z,hke_Z08Z,hke_Z08Z+1)+hke_Z07Z
endif
set hke_Z06Z=hke_Z06Z/256
endloop
return hke_Z07Z
endfunction
function hke_Z09Z takes unit hke_z65 returns string
local integer hke_z15
set hke_z15=GetUnitTypeId(hke_z65)
if(hke_z15==0)then
return""
else
return hke_Z05Z(hke_z15)
endif
endfunction
function hke_Z1ZZ takes unit hke_z65 returns string
local item hke_z86=UnitItemInSlotBJ(hke_z65,1)
local integer hke_z15=GetItemTypeId(hke_z86)
if(hke_z15==0)then
return""
else
set hke_z86=null
return hke_Z05Z(hke_z15)
endif
endfunction
function hke_Z1zZ takes integer hke_Z10Z returns integer
local string hke_Z11Z=GetEventPlayerChatString()
if(StringLength(hke_Z11Z)==hke_Z10Z+3)then
return(hke_Z0ZZ(SubStringBJ(hke_Z11Z,hke_Z10Z,hke_Z10Z+3)))
else
return 0
endif
endfunction
function hke_Z12Z takes unit hke_z65,integer hke_z66,boolean hke_z25 returns nothing
local location hke_z95
local integer hke_z15
set hke_z15=hke_Z1zZ(hke_z66)
if(hke_z15==0)then
else
if(hke_z25)then
set hke_z95=GetUnitLoc(hke_z65)
call CreateItemLoc(hke_z15,hke_z95)
call RemoveLocation(hke_z95)
set hke_z95=null
else
call UnitAddItemById(hke_z65,hke_z15)
endif
endif
endfunction
function hke_Z13Z takes unit hke_z65,real hke_Z14Z,boolean hke_z25 returns nothing
local location hke_z95=GetUnitLoc(hke_z65)
local player hke_z05=GetOwningPlayer(hke_z65)
call SetBlightRadiusLocBJ(hke_z25,hke_z05,hke_z95,hke_Z14Z)
call RemoveLocation(hke_z95)
set hke_z95=null
set hke_z05=null
endfunction
function hke_Z15Z takes unit hke_z65,real hke_Z14Z returns nothing
call SetUnitFlyHeight(hke_z65,hke_Z14Z,.0)
endfunction
function hke_Z16Z takes nothing returns integer
local integer hke_Z17Z=0
local integer hke_Z18Z=0
local integer array hke_Z19Z
local integer hke_z15=0
local player hke_z05=GetLocalPlayer()
loop
exitwhen hke_z15>11
set hke_Z19Z[hke_z15]=0
set hke_z15=hke_z15+1
endloop
loop
exitwhen hke_Z17Z>14
call StoreInteger(hke_z03,"Hke_Player","Hke_number",GetPlayerId(hke_z05)+1)
call TriggerSyncStart()
call SyncStoredInteger(hke_z03,"Hke_Player","Hke_number")
call TriggerSyncReady()
set hke_Z18Z=GetStoredInteger(hke_z03,"Hke_Player","Hke_number")-1
set hke_Z19Z[hke_Z18Z]=hke_Z19Z[hke_Z18Z]+1
call FlushStoredMission(hke_z03,"Hke_Player")
set hke_Z17Z=hke_Z17Z+1
endloop
set hke_Z18Z=0
set hke_Z17Z=0
set hke_z05=null
loop
exitwhen hke_Z17Z>11
if hke_Z19Z[hke_Z18Z]<hke_Z19Z[hke_Z17Z]then
set hke_Z18Z=hke_Z17Z
endif
set hke_Z17Z=hke_Z17Z+1
endloop
return hke_Z18Z+1
endfunction
function hke_Z2ZZ takes unit hke_z65,integer hke_Z2zZ,boolean hke_z25 returns nothing
if(hke_z25)then
call UnitAddAbility(hke_z65,hke_Z2zZ)
call SetUnitAbilityLevel(hke_z65,hke_Z2zZ,100)
call UnitMakeAbilityPermanent(hke_z65,true,hke_Z2zZ)
else
call UnitMakeAbilityPermanent(hke_z65,false,hke_Z2zZ)
call UnitRemoveAbility(hke_z65,hke_Z2zZ)
endif
endfunction
function hke_Z20Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_Z2ZZ(hke_z65,hke_zzz,hke_z0z)
set hke_z65=null
endfunction
function hke_Z21Z takes integer hke_z15,integer hke_Z2zZ,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_zzz=hke_Z2zZ
set hke_z0z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Z20Z)
else
call hke_Z2ZZ(hke_z7[hke_z15],hke_Z2zZ,hke_z25)
endif
endfunction
function hke_Z22Z takes string hke_Z11Z returns integer
if(hke_Z11Z=="mm")then
return 1094937907
endif
if(hke_Z11Z=="xj")then
return 1095659625
endif
if(hke_Z11Z=="zj")then
return 1095262824
endif
if(hke_Z11Z=="zm")then
return 1095721842
endif
if(hke_Z11Z=="ft")then
return 1096119411
endif
if(hke_Z11Z=="xx")then
return 1095333473
endif
if(hke_Z11Z=="sb")then
return 1095066998
endif
if(hke_Z11Z=="yx")then
return 1097886070
endif
if(hke_Z11Z=="rh")then
return 1095657827
endif
if(hke_Z11Z=="fl")then
return 1095656289
endif
if(hke_Z11Z=="bs")then
return 1094935923
endif
if(hke_Z11Z=="jg")then
return 1095332984
endif
if(hke_Z11Z=="jf")then
return 1095328816
endif
if(hke_Z11Z=="js")then
return 1095332728
endif
if(hke_Z11Z=="jm")then
return 1095332722
endif
if(hke_Z11Z=="jj")then
return 1095917932
endif
if(hke_Z11Z=="fy")then
return 1098150517
endif
if(hke_Z11Z=="ghh")then
return 1095262562
endif
if(hke_Z11Z=="ghj")then
return 1095721317
endif
if(hke_Z11Z=="gqj")then
return 1095065970
endif
if(hke_Z11Z=="gxx")then
return 1096114550
endif
if(hke_Z11Z=="gzz")then
return 1095262564
endif
if(hke_Z11Z=="gxe")then
return 1096114549
endif
if(hke_Z11Z=="gjj")then
return 1095065960
endif
if(hke_Z11Z=="gml")then
return 1094934883
endif
if(hke_Z11Z=="gyl")then
return 1097818482
endif
if(hke_Z11Z=="gjs")then
return 1096905580
endif
if(hke_Z11Z=="qhy")then
return 1095329378
endif
if(hke_Z11Z=="qdy")then
return 1095331938
endif
if(hke_Z11Z=="qlh")then
return 1095332719
endif
if(hke_Z11Z=="qyz")then
return 1095328878
endif
if(hke_Z11Z=="qbd")then
return 1095331682
endif
if(hke_Z11Z=="qfs")then
return 1095328610
endif
if(hke_Z11Z=="qsd")then
return 1095330924
endif
if(hke_Z11Z=="qjs")then
return 1095332706
endif
if(hke_Z11Z=="qha")then
return 1095328870
endif
return 0
endfunction
function hke_Z23Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call SetUnitInvulnerable(hke_z65,hke_z0z)
call hke_Z2ZZ(hke_z65,1098282348,hke_z0z)
set hke_z65=null
endfunction
function hke_Z24Z takes integer hke_z15,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_z0z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Z23Z)
else
call SetUnitInvulnerable(hke_z7[hke_z15],hke_z25)
call hke_Z2ZZ(hke_z7[hke_z15],1098282348,hke_z25)
endif
endfunction
function hke_Z25Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call SetUnitPathing(hke_z65,not(hke_z0z))
set hke_z65=null
endfunction
function hke_Z26Z takes integer hke_z15,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_z0z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Z25Z)
else
call SetUnitPathing(hke_z7[hke_z15],not(hke_z25))
endif
endfunction
function hke_Z27Z takes unit hke_z65,boolean hke_z25 returns nothing
if(hke_z25)then
call SetUnitMoveSpeed(hke_z65,1000)
else
call SetUnitMoveSpeed(hke_z65,GetUnitDefaultMoveSpeed(hke_z65))
endif
endfunction
function hke_Z28Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_Z27Z(hke_z65,hke_z0z)
set hke_z65=null
endfunction
function hke_Z29Z takes integer hke_z15,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_z0z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Z28Z)
else
call hke_Z27Z(hke_z7[hke_z15],hke_z25)
endif
endfunction
function hke_Z3ZZ takes integer hke_z15,boolean hke_z25 returns nothing
call hke_ZzzZ()
if(hke_Z0)then
if(hke_z25)then
if(CountUnitsInGroup(hke_z8Z)==0)then
call EnableTrigger(hke_z73)
endif
call GroupAddGroup(hke_Z8Z[hke_z15],hke_z8Z)
else
call GroupRemoveGroup(hke_Z8Z[hke_z15],hke_z8Z)
if(CountUnitsInGroup(hke_z8Z)==0)then
call DisableTrigger(hke_z73)
endif
endif
else
if(hke_z25)then
if(CountUnitsInGroup(hke_z8Z)==0)then
call EnableTrigger(hke_z73)
endif
call GroupAddUnit(hke_z8Z,hke_z7[hke_z15])
else
call GroupRemoveUnit(hke_z8Z,hke_z7[hke_z15])
if(CountUnitsInGroup(hke_z8Z)==0)then
call DisableTrigger(hke_z73)
endif
endif
endif
endfunction
function hke_Z3zZ takes unit hke_z65,boolean hke_z25 returns nothing
call hke_Z2ZZ(hke_z65,1095262562,hke_z25)
call hke_Z2ZZ(hke_z65,1095721317,hke_z25)
call hke_Z2ZZ(hke_z65,1095065970,hke_z25)
call hke_Z2ZZ(hke_z65,1096114550,hke_z25)
call hke_Z2ZZ(hke_z65,1095262564,hke_z25)
call hke_Z2ZZ(hke_z65,1096114549,hke_z25)
call hke_Z2ZZ(hke_z65,1094934883,hke_z25)
call hke_Z2ZZ(hke_z65,1095065960,hke_z25)
call hke_Z2ZZ(hke_z65,1097818482,hke_z25)
call hke_Z2ZZ(hke_z65,1096905580,hke_z25)
endfunction
function hke_Z30Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_Z3zZ(hke_z65,hke_z0z)
set hke_z65=null
endfunction
function hke_Z31Z takes integer hke_z15,boolean hke_z25 returns nothing
if(hke_Z0)then
set hke_z0z=hke_z25
call ForGroup(hke_Z8Z[hke_z15],function hke_Z30Z)
else
call hke_Z3zZ(hke_z7[hke_z15],hke_z25)
endif
endfunction
function hke_Z32Z takes unit hke_z65 returns nothing
call hke_Z2ZZ(hke_z65,1094937907,false)
call hke_Z2ZZ(hke_z65,1095659625,false)
call hke_Z2ZZ(hke_z65,1095262824,false)
call hke_Z2ZZ(hke_z65,1095721842,false)
call hke_Z2ZZ(hke_z65,1096119411,false)
call hke_Z2ZZ(hke_z65,1095333473,false)
call hke_Z2ZZ(hke_z65,1095066998,false)
call hke_Z2ZZ(hke_z65,1097886070,false)
call hke_Z2ZZ(hke_z65,1095657827,false)
call hke_Z2ZZ(hke_z65,1095656289,false)
call hke_Z2ZZ(hke_z65,1098282348,false)
call hke_Z2ZZ(hke_z65,1094935923,false)
call hke_Z2ZZ(hke_z65,1095332984,false)
call hke_Z2ZZ(hke_z65,1095328816,false)
call hke_Z2ZZ(hke_z65,1095332728,false)
call hke_Z2ZZ(hke_z65,1095332722,false)
call hke_Z2ZZ(hke_z65,1098150517,false)
call SetUnitInvulnerable(hke_z65,false)
call SetUnitPathing(hke_z65,true)
call hke_Z27Z(hke_z65,false)
call GroupRemoveUnit(hke_z8Z,hke_z65)
endfunction
function hke_Z33Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_Z32Z(hke_z65)
set hke_z65=null
endfunction
function hke_Z34Z takes integer hke_z15 returns nothing
if(hke_Z0)then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z33Z)
else
call hke_Z32Z(hke_z7[hke_z15])
endif
endfunction
function hke_Z35Z takes nothing returns nothing
local unit hke_z65=GetTriggerUnit()
local trigger hke_Z66=GetTriggeringTrigger()
call RemoveUnit(hke_z65)
call DisableTrigger(hke_Z66)
call DestroyTrigger(hke_Z66)
set hke_z65=null
set hke_Z66=null
endfunction
function hke_Z36Z takes integer hke_z66,unit hke_Z37Z,player hke_Z38Z returns nothing
local location hke_z95
local unit hke_z65
local integer hke_Z39Z=0
local integer hke_Z4ZZ=0
local trigger hke_Z66
if(hke_z66==0)then
set hke_Z39Z=1095726692
set hke_Z4ZZ=852503
endif
if(hke_z66==1)then
set hke_Z39Z=1095070833
set hke_Z4ZZ=852184
endif
if(hke_z66==2)then
set hke_Z39Z=1095070566
set hke_Z4ZZ=852183
endif
if((hke_Z39Z==0)and(hke_Z4ZZ==0))then
return
endif
set hke_z95=GetUnitLoc(hke_Z37Z)
set hke_z65=CreateUnitAtLoc(hke_Z38Z,1851941228,hke_z95,bj_UNIT_FACING)
call UnitAddAbility(hke_z65,1098282348)
call UnitAddAbility(hke_z65,hke_Z39Z)
call ShowUnit(hke_z65,false)
call SetUnitUseFood(hke_z65,false)
call SetUnitScale(hke_z65,.01,.01,.01)
call SetUnitState(hke_z65,UNIT_STATE_MANA,GetUnitState(hke_z65,UNIT_STATE_MAX_MANA))
call IssueImmediateOrderById(hke_z65,hke_Z4ZZ)
set hke_Z66=CreateTrigger()
call TriggerRegisterUnitEvent(hke_Z66,hke_z65,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(hke_Z66,hke_z65,EVENT_UNIT_SPELL_FINISH)
call TriggerAddAction(hke_Z66,function hke_Z35Z)
call RemoveLocation(hke_z95)
set hke_z95=null
set hke_Z66=null
set hke_z65=null
endfunction
function hke_Z4zZ takes unit hke_Z37Z returns nothing
local player hke_z05=GetTriggerPlayer()
local location hke_z95=GetUnitLoc(hke_Z37Z)
local trigger hke_Z66=CreateTrigger()
local unit hke_z65=CreateUnitAtLoc(hke_z05,1751543663,hke_z95,bj_UNIT_FACING)
call UnitAddAbility(hke_z65,1098282348)
call UnitAddAbility(hke_z65,1095332709)
call ShowUnit(hke_z65,false)
call SetUnitUseFood(hke_z65,false)
call SetUnitScale(hke_z65,.01,.01,.01)
call IssuePointOrderByIdLoc(hke_z65,852592,hke_z95)
call TriggerRegisterUnitEvent(hke_Z66,hke_z65,EVENT_UNIT_SPELL_ENDCAST)
call TriggerRegisterUnitEvent(hke_Z66,hke_z65,EVENT_UNIT_SPELL_FINISH)
call TriggerAddAction(hke_Z66,function hke_Z35Z)
call RemoveLocation(hke_z95)
set hke_z95=null
set hke_Z66=null
set hke_z05=null
endfunction
function hke_Z40Z takes integer hke_z15,dialog hke_Z41Z,trigger hke_zZ6 returns nothing
set hke_Zz3[hke_z15]=hke_Z41Z
set hke_Z03[hke_z15]=hke_zZ6
endfunction
function hke_Z42Z takes integer hke_z15,string hke_Z43Z returns nothing
call DialogClear(hke_Zz3[hke_z15])
call DialogSetMessage(hke_Zz3[hke_z15],(hke_Z43Z+hke_Z0z+hke_Z62))
endfunction
function hke_Z44Z takes integer hke_z15,player hke_z05,boolean hke_z77 returns nothing
if(hke_z77)then
call EnableTrigger(hke_Z03[hke_z15])
call DialogDisplay(hke_z05,hke_Zz3[hke_z15],true)
call TimerStart(hke_Z73[hke_z15],hke_z1,false,null)
else
call DisableTrigger(hke_Z03[hke_z15])
call DialogDisplay(hke_z05,hke_Zz3[hke_z15],false)
endif
endfunction
function hke_Z45Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_zZ1[hke_z15],hke_ZZ1[hke_z15])
call hke_Z42Z(hke_z15,"主")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"资源菜单[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"自动化设置[B]",66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"选定单位特殊属性[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"个人选项设置[D]",68)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"帮助菜单[E]",69)
if(hke_z05==hke_z5)then
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"其他玩家作弊管理[F]",70)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"其他玩家管理[G]",71)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"游戏作弊选项[H]",72)
if(hke_z13)then
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"关闭录像(无法再开)[L]",72)
endif
endif
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z46Z takes integer hke_z15,player hke_z05 returns nothing
local string hke_Z11Z
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Zz1[hke_z15])
call hke_Z42Z(hke_z15,"自动化设置")
if(IsTriggerEnabled(hke_z40[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"自动加钱[A]"),65)
if(IsTriggerEnabled(hke_z50[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"自动加木头[B]"),66)
if(IsTriggerEnabled(hke_z60[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"自动清人口[C]"),67)
if(IsTriggerEnabled(hke_z80[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"自动清CD[D]"),68)
if(IsTriggerEnabled(hke_z70[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"英雄无限重生[E]"),69)
if(IsTriggerEnabled(hke_z90[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"魔法释放后自动MP"+I2S(R2I(hke_ZZZ))+"%[F]"),70)
if(IsTriggerEnabled(hke_ZZ3[hke_z15]))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"生命低于"+I2S(R2I(hke_z92))+"%加到"+I2S(R2I(hke_z41))+"%[G]"),71)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"全部开启[O]",79)
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"全部关闭[U]",85)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z11Z=""
endfunction
function hke_Z47Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z01[hke_z15])
call hke_Z42Z(hke_z15,"选定单位特殊属性")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"无敌[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"永久隐形[B]",66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"穿越物体[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"魔免[D]",68)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"反隐形[E]",69)
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"移动速度[F]",70)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"各种光环[G]",71)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"换页[N]",78)
if((hke_z9Z)or(hke_z5==hke_z05))then
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"秒杀模式[K]",75)
endif
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"取消全部(不含光环)[U]",85)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z48Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_Z91[hke_z15],hke_Z81[hke_z15])
call hke_Z42Z(hke_z15,"选定单位特殊属性")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"永久献祭[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"闪避[B]",514)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"重击[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"致命一击[D]",68)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"反弹(小强的壳)[E]",69)
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"分裂攻击[F]",70)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"燃灰[G]",71)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"减少魔法伤害33%[H]",72)
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"闪避100%[I]",73)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"换页[N]",78)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z49Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_Z91[hke_z15],hke_Z21[hke_z15])
call hke_Z42Z(hke_z15,"光环")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"辉煌光环[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"荆棘光环[B]",66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"耐久光环[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"强击光环[D]",68)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"邪恶光环[E]",69)
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"吸血光环[F]",70)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"专注光环[G]",71)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"命令光环(战鼓)[H]",72)
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"医疗光环[I]",73)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"减速光环[J]",74)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"关所有光环[K]",75)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z5ZZ takes integer hke_z15,player hke_z05 returns nothing
local integer hke_Z75=0
local string hke_Z11Z
local string hke_Z5zZ
local player hke_Z65
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z51[hke_z15])
call hke_Z42Z(hke_z15,"玩家作弊管理")
loop
exitwhen hke_Z75>11
set hke_Z65=Player(hke_Z75)
if((GetPlayerController(hke_Z65)==MAP_CONTROL_USER)and(GetPlayerSlotState(hke_Z65)==PLAYER_SLOT_STATE_PLAYING)and(hke_Z65!=hke_z5))then
set hke_Z5zZ=GetPlayerName(hke_Z65)
if(hke_z6[hke_Z75])then
set hke_Z11Z="禁止"
else
set hke_Z11Z="允许"
endif
set hke_ZzZ[hke_Z75]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+hke_Z5zZ+"作弊"),0)
endif
set hke_Z75=hke_Z75+1
endloop
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z65=null
set hke_Z11Z=""
set hke_Z5zZ=""
endfunction
function hke_Z50Z takes integer hke_z15,player hke_z05 returns nothing
set hke_Z8[hke_z15]=0
call hke_Z40Z(hke_z15,hke_zZ1[hke_z15],hke_Z71[hke_z15])
call hke_Z42Z(hke_z15,"单位")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"升100级[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("加三围"+(I2S(hke_Z3)+"[B]")),66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"复制物品[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"复制单位[D]",68)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"掉身上物品[E]",69)
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"共享该单位视野[F]",70)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"特殊属性菜单[G]",71)
if((hke_z7Z)or(hke_z5==hke_z05))then
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"控制它[H]",72)
endif
if(hke_z5==hke_z05)then
endif
if(hke_z05==hke_z5)then
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"改变单位所有者[J]",74)
endif
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z51Z takes integer hke_z15,player hke_z05 returns nothing
local string hke_Z11Z
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z31[hke_z15])
call hke_Z42Z(hke_z15,"游戏作弊选项")
if(hke_Z0)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"操作所有单位[A]"),65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("设置背包数[B]"),66)
if(hke_Z5Z)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"保护CheatMaster[C]"),67)
if(hke_Z6Z)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"瞬间造兵不占用人口[D]"),68)
if(hke_Z7Z)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("取消作弊时"+hke_Z11Z+"地图全开[E]"),69)
if(hke_z9Z)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"他人秒杀模式[F]"),70)
if(hke_ZZz)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"禁止秒杀建筑[G]"),71)
if(hke_z7Z)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"他人占据单位[H]"),72)
if(hke_Z52)then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"禁止克隆操作农民[I]"),73)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z11Z=""
endfunction
function hke_Z52Z takes integer hke_z15,player hke_z05 returns nothing
local string hke_Z5zZ
local integer hke_Z75=0
local player hke_Z65
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z41[hke_z15])
call hke_Z42Z(hke_z15,"玩家管理")
loop
exitwhen hke_Z75>11
set hke_Z65=Player(hke_Z75)
if(GetPlayerSlotState(hke_Z65)==PLAYER_SLOT_STATE_PLAYING)then
set hke_Z5zZ=GetPlayerName(hke_Z65)
set hke_ZzZ[hke_Z75]=DialogAddButton(hke_Zz3[hke_z15],("选择"+hke_Z5zZ+"操作"),0)
endif
set hke_Z75=hke_Z75+1
endloop
set hke_ZzZ[12]=DialogAddButton(hke_Zz3[hke_z15],("选择中立生物操作"),90)
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z5zZ=""
set hke_Z65=null
endfunction
function hke_Z53Z takes integer hke_z15,player hke_z05 returns nothing
local player hke_Z65=Player(hke_Z5z)
call hke_Z40Z(hke_z15,hke_Z91[hke_z15],hke_Z61[hke_z15])
call hke_Z42Z(hke_z15,"玩家管理")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"资源管理[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"同盟管理[B]",66)
if(GetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_GOLD)==0)then
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"向他收税黄金"+I2S(hke_z22)+"%[C]",67)
else
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"停止向他收黄金[C]",67)
endif
if(GetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_LUMBER)==0)then
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"向他收税木材"+I2S(hke_z22)+"%[D]",68)
else
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"停止向他收木材[D]",67)
endif
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回选择菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z65=null
endfunction
function hke_Z54Z takes integer hke_z15,player hke_z05 returns nothing
local integer hke_Z75=0
local player hke_Z65
local string hke_Z11Z
local string hke_Z5zZ
call hke_Z40Z(hke_z15,hke_Z91[hke_z15],hke_Z11[hke_z15])
call hke_Z42Z(hke_z15,"选定单位控制")
loop
exitwhen hke_Z75>12
set hke_Z65=Player(hke_Z75)
if(GetPlayerSlotState(hke_Z65)==PLAYER_SLOT_STATE_PLAYING)then
set hke_Z5zZ=GetPlayerName(hke_Z65)
set hke_ZzZ[hke_Z75]=DialogAddButton(hke_Zz3[hke_z15],("给"+hke_Z5zZ+"控制"),0)
endif
set hke_Z75=hke_Z75+1
endloop
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回单位菜单[R]",82)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z65=null
set hke_Z11Z=""
set hke_Z5zZ=""
endfunction
function hke_Z55Z takes integer hke_z15,player hke_z05 returns nothing
local string hke_Z11Z
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Zz2[hke_z15])
call hke_Z42Z(hke_z15,"资源设置")
if(hke_z1Z[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="打开"
endif
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"地图[A]"),65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("复活死亡英雄[B]"),66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"人口清5[B]",66)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"总人口100[C]",67)
if(GetPlayerHandicap(hke_z05)==2)then
set hke_Z11Z="恢复生命障碍100%"
else
set hke_Z11Z="200%生命"
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"[D]",68)
if(GetPlayerHandicapXP(hke_z05)==2)then
set hke_Z11Z="恢复普通经验率"
else
set hke_Z11Z="2倍经验"
endif
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"[E]",69)
set hke_Z11Z=I2S(hke_Z2)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("加"+hke_Z11Z+"钱[F]"),70)
set hke_Z11Z=I2S(hke_z2)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("加"+hke_Z11Z+"木[G]"),71)
set hke_Z11Z=I2S(hke_Z2)
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("减"+hke_Z11Z+"钱[H]"),72)
set hke_Z11Z=I2S(hke_z2)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("减"+hke_Z11Z+"木[I]"),73)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z11Z=""
endfunction
function hke_Z56Z takes integer hke_z15,player hke_z05 returns nothing
local player hke_Z65=Player(hke_Z5z)
local string hke_Z11Z
local string hke_Z5zZ=GetPlayerName(hke_Z65)
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z02[hke_z15])
call DialogClear(hke_Z20[hke_z15])
call DialogSetMessage(hke_Z20[hke_z15],(hke_Z5zZ+"钱"+I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_GOLD))+" |CFF008000木"+I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_LUMBER))+"|R 人口"+I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED))+"/"+I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_CAP))))
if(hke_z1Z[hke_Z5z])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="打开"
endif
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],(hke_Z11Z+"地图[A]"),65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("复活死亡英雄[B]"),66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"人口清5[B]",66)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"总人口100[C]",67)
if(GetPlayerHandicap(hke_Z65)==2)then
set hke_Z11Z="恢复生命障碍100%"
else
set hke_Z11Z="200%生命"
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"[D]",68)
if(GetPlayerHandicapXP(hke_Z65)==2)then
set hke_Z11Z="恢复普通经验率"
else
set hke_Z11Z="2倍经验"
endif
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"[E]",69)
set hke_Z11Z=I2S(hke_Z2)
set hke_z7z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("加"+hke_Z11Z+"钱[F]"),70)
set hke_Z11Z=I2S(hke_z2)
set hke_z6z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("加"+hke_Z11Z+"木[G]"),71)
set hke_Z11Z=I2S(hke_Z2)
set hke_Zz0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("减"+hke_Z11Z+"钱[H]"),72)
set hke_Z11Z=I2S(hke_z2)
set hke_ZZ0[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("减"+hke_Z11Z+"木[I]"),73)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z11Z=""
set hke_Z5zZ=""
set hke_Z65=null
endfunction
function hke_Z57Z takes integer hke_z15,player hke_z05 returns nothing
local player hke_Z65=Player(hke_Z5z)
local string hke_Z11Z
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z12[hke_z15])
call hke_Z42Z(hke_z15,"同盟管理")
if(IsPlayerAlly(hke_Z65,hke_z5))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("强制"+hke_Z11Z+"同盟[A]"),65)
if(IsPlayerAlly(hke_Z65,hke_z5))then
if(GetPlayerAlliance(hke_Z65,hke_z5,ALLIANCE_SHARED_ADVANCED_CONTROL))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("强制"+hke_Z11Z+"同盟共享单位[B]"),66)
if(GetPlayerAlliance(hke_Z65,hke_z5,ALLIANCE_SHARED_XP))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("强制"+hke_Z11Z+"同盟共享经验[C]"),67)
if(IsPlayerAlly(hke_z5,hke_Z65))then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],("强制"+hke_Z11Z+"对其同盟[D]"),68)
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回玩家菜单[R]",82)
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z65=null
set hke_Z11Z=""
endfunction
function hke_Z58Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_Z91[hke_z15],hke_Z22[hke_z15])
call DialogClear(hke_Z91[hke_z15])
call DialogSetMessage(hke_Z91[hke_z15],"设置额外背包数菜单|nN个额外背包可以切换N+1次|n当前背包数:|cFF33FF33"+I2S(hke_z61)+"|r个")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"设置1个背包[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"设置2个背包[B]",66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"设置3个背包[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回选设置单[R]",82)
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z59Z takes integer hke_z15,player hke_z05 returns nothing
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z23[hke_z15])
call hke_Z42Z(hke_z15,"帮助")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"键盘帮助[A]",65)
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"CMD帮助[B]",66)
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"CMD单位类帮助[C]",67)
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"显示玩家信息[D]",68)
if(hke_z05==hke_z5)then
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"显示设置信息[E]",69)
endif
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
endfunction
function hke_Z6ZZ takes integer hke_z15,player hke_z05 returns nothing
local string hke_Z11Z
call hke_Z40Z(hke_z15,hke_Z20[hke_z15],hke_Z13[hke_z15])
call hke_Z42Z(hke_z15,"个人选项")
set hke_z2z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"删除我的复制单位[A]",65)
if(hke_z31[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z4z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"克隆操作[B]",66)
if(hke_Z33[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z5z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"组队克隆操作[C]",67)
if(hke_Z53[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z3z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"隐藏加攻[D]",68)
if(hke_Z63[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z9z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"隐藏加攻带溅射[E]",69)
if(hke_Z43[hke_z15])then
set hke_Z11Z="关闭"
else
set hke_Z11Z="开启"
endif
set hke_z8z[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],hke_Z11Z+"远程沉默[F]",70)
set hke_Z00[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"回主菜单[R]",82)
set hke_Z10[hke_z15]=DialogAddButton(hke_Zz3[hke_z15],"退出菜单[X]",88)
call hke_Z44Z(hke_z15,hke_z05,true)
set hke_Z11Z=""
endfunction
function hke_Z6zZ takes player hke_z05 returns nothing
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"欢迎使用|cFFFF8C00hke的作弊系列1.25b|r  如果需要|cFFE500AFCMD帮助|r请输入|cFFFF0033-c|r 详细说明见|CFF00FF00www.wuhansen.com/warmap|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033Esc|r 选定单位清除|cFFE500AF负面魔法|r 重置|cFFE500AFCD时间|r 回|cFFE500AF血魔|r (按照生命/魔法百分比分阶段回)")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033←|r 选定单位 清除|cFFE500AF负面魔法|r 重置|cFFE500AFCD时间|r 选定建筑|cFFE500AF建造/升级|r瞬间完成")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033↓|r 选定单位|cFFE500AF血魔满|r      |cFFFF0033→|r |cFFE500AF加钱/木头|r (不加资源分)")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"以下先按|cFFFF0033↑|r再按另一个键(1秒内)")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033↑+←|r 选定英雄加|cFFE500AF力量|r   |cFFFF0033↑+↓|r 选定英雄加|cFFE500AF敏捷|r    |cFFFF0033↑+→|r 选定英雄加|cFFE500AF智力|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033↑连按5次|r |cFFE500AF地图全开|r 再次按关闭")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033↑+Esc|r 打开|cFFE500AF主作弊菜单|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033↑+鼠标(左键)|r双击单位 打开|cFFE500AF单个单位菜单|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"以下的同时按住|cFFFF0033↑↓|r再操作")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"按住|cFFFF0033↑↓|r |cFFE500AF瞬间造兵/升级科技|r 按住|cFFFF0033←→+↓|r 选定英雄|cFFE500AF升级|r(隐藏升级动画)")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"按住|cFFFF0033↑↓+鼠标右键|r点地图任意处 |cFFE500AF瞬移|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"按住|cFFFF0033↑↓+→|r 选定英雄|cFFE500AF加3围|r 按住|cFFFF0033↑↓+Esc|r 切换|cFFE500AF背包|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"按住|cFFFF0033←→|r |cFFE500AF克隆操作|r(需要先在菜单开启)")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"按住|cFFFF0033←→点敌方单位|r |cFFE500AF沉默单位|r(需要在菜单开启 默认打开)")
endfunction
function hke_Z60Z takes player hke_z05 returns nothing
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"欢迎使用|cFFFF8C00hke的作弊系列1.25b|r 详细说明见|CFF00FF00www.wuhansen.com/warmap|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"下面是CMD功能说明 后跟数字的命令把空格换成-可以减少相应数值  部分命令后直接加+或-表示开启/关闭 无空格 其他有空格")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFFF0033-h|r显示|cFFE500AF方向键帮助|r  |cFFFF0033-c|r 显示|cFFE500AFcmd帮助|r |cFFFF0033-u|r 显示|cFFE500AFcmd单位帮助|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"加|cFFE500AF钱|r:|cFFFF0033-rm 钱数|r 加|cFFE500AF木头|r:|cFFFF0033-rw 木头数|r 设置|cFFE500AF已用人口|r:|cFFFF0033-rp 人口数|r 设置|cFFE500AF可用人口|r:|cFFFF0033-rph 人口数|r 破解3|cFFE500AF英雄限制|r:|cFFFF0033-rh+/-|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF升级|r:|cFFFF0033-hu 级数|r(不写则升一级) |cFFE500AF复活|r死亡英雄:|cFFFF0033-hr|r |cFFE500AF复制物品|r:|cFFFF0033-hfz|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"加|cFFE500AF力量|r:|cFFFF0033-hl 点数|r(不写加默认值) 加|cFFE500AF敏捷|r:|cFFFF0033-hm 点数|r(不写加默认值) 加|cFFE500AF智力|r:|cFFFF0033-hz 点数|r(不写加默认值) 加|cFFE500AF三围|r:|cFFFF0033-ha 点数|r |cFFE500AF打包物品|r:|cFFFF0033-hdb|r  |cFFE500AF冲物品栏第一格物品|r:|cFFFF0033-hcw 充值数|r |cFFE500AF掉落物品|r:|cFFFF0033-hdw|r |cFFE500AF禁止/恢复升级|r:|cFFFF0033-hsj-/+|r 加|cFFE500AF经验|r:|cFFFF0033-he 经验值|r 设置|cFFE500AF技能点|r:|cFFFF0033-hj 点数|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"单位类太多了 所以独立出来输入:|cFFFF0033-u|r查询")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF自动加钱|r:|cFFFF0033-am+/-|r |cFFE500AF自动加木|r:|cFFFF0033-aw+/-|r |cFFE500AF自动清人口|r:|cFFFF0033-ap+/-|r |cFFE500AF自动重置CD|r:|cFFFF0033-acd+/-|r |cFFE500AF自动加MP|r:|cFFFF0033-amp+/-|r |cFFE500AF自动加HP|r:|cFFFF0033-ahp+/-|r |cFFE500AF英雄无限重生|r:|cFFFF0033-ars+/-|r |cFFE500AF开启/关闭所有自动设置|r:|cFFFF0033-aa+/-|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF彩字|r聊天:|cFFFF0033-lt 颜色代码(0-9) 聊天内容|r 开/关|cFFE500AF键盘作弊|r:|cFFFF0033-k+/-|r 开/关|cFFE500AF克隆操作|r:|cFFFF0033-kl+/-|r  ")
if(hke_z05==hke_z5)then
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF关闭录像|r:|cFFFF0033-lx|r 配置|cFFE500AF脚本设置|r:|cFFFF0033-set|r |cFFE500AFT人|r:|cFFFF0033-gtr 玩家编号|r或选定玩家单位后|cFFFF0033-gtr+|r |cFFE500AF断线|r:|cFFFF0033-gdx 玩家编号|r或选定玩家单位后|cFFFF0033-gdx+|r ")
endif
endfunction
function hke_Z61Z takes player hke_z05 returns nothing
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"欢迎使用|cFFFF8C00hke的作弊系列1.25b|r 详细说明见|CFF00FF00www.wuhansen.com/warmap|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"下面是CMD单位类功能说明 下面命令后面加'-'号可以删除此技能或属性")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF无敌|r:|cFFFF0033-uwd|r |cFFE500AF魔免|r:|cFFFF0033-umm|r |cFFE500AF隐身|r:|cFFFF0033-uyx|r |cFFE500AF穿越物体|r:|cFFFF0033-ucq|r |cFFE500AF反隐|r:|cFFFF0033-ufy|r |cFFE500AF永久献祭|r:|cFFFF0033-uxj|r |cFFE500AF移动速度|r:|cFFFF0033-uys|r |cFFE500AF闪避|r:|cFFFF0033-usb|r |cFFE500AF致命一击|r:|cFFFF0033-uzm|r |cFFE500AF重击|r:|cFFFF0033-uzj|r |cFFE500AF反弹|r:|cFFFF0033-uft|r |cFFE500AF燃灰|r:|cFFFF0033-urh|r |cFFE500AF分裂攻击|r:|cFFFF0033-ufl|r |cFFE500AF闪避100%|r:|cFFFF0033-ubs|r |cFFE500AF减少魔法伤害33%|r:|cFFFF0033-ujm|r |cFFE500AF加攻击速度|r:|cFFFF0033-ujs|r |cFFE500AF加攻20|r:|cFFFF0033-ujg|r |cFFE500AF加防10|r:|cFFFF0033-ujf|r |cFFE500AF秒杀模式|r:|cFFFF0033-ums|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"光环 |cFFE500AF所有光环|r:|cFFFF0033-ugoa|r |cFFE500AF取消所有|r:|cFFFF0033-ugca|r |cFFE500AF医疗|r:|cFFFF0033-ugyl|r |cFFE500AF辉煌|r:|cFFFF0033-ughh|r |cFFE500AF以此类推(-ug加光环简写)|r...")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF获得农民|r:|cFFFF0033-unm 代码|r(0-5代表5族农民) 获得|cFFE500AF自定义单位|r:|cFFFF0033-ucu 单位英文名或4位ID|r 选定单位获得|cFFE500AF自定义物品|r:|cFFFF0033-uci 物品4位ID|r 选定单位获得|cFFE500AF自定义技能|r:|cFFFF0033-uua 技能4位ID|r 查询选定单位|cFFE500AF单位ID|r:|cFFFF0033-ucu?|r 查询选定单位第一格|cFFE500AF物品ID|r:|cFFFF0033-uci?|r |cFFE500AF获得尸体|r:|cFFFF0033-ust 单位ID|r")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"设置|cFFE500AF单位大小:|cFFFF0033-usize 百分比|r(放大需要填>100) 设置|cFFE500AF单位颜色|r:|cFFFF0033-ucl 颜色 透明度|r(2参数均为0-9) 选定单位|cFFE500AF随机染色|r:|cFFFF0033-ucl+|r 设置|cFFE500AFMP/HP|r:|cFFFF0033-mp/hp 百分比|r 设置|cFFE500AF起始点|r:|cFFFF0033-usp|r |cFFE500AF生树|r:|cFFFF0033-uss类型(+-*/)树种(1-23) 数量|r 如:-uss+2 10")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"召唤|cFFE500AF巫毒:|cFFFF0033-jwd|r 召唤|cFFE500AF宁静|r:|cFFFF0033-jwd|r 召唤|cFFE500AF流星雨|r:|cFFFF0033-jlx|r")
if(hke_z05==hke_z5)then
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"|cFFE500AF复制单位|r:|cFFFF0033-ufz 个数|r |cFFE500AF删除单位|r:|cFFFF0033-udel|r |cFFE500AF删除复制单位|r:|cFFFF0033-udel+|r |cFFE500AF控制单位|r:|cFFFF0033-ukz|r 增加|cFFE500AF金矿余矿数|r:|cFFFF0033-ujk 钱数|r(空格换成-可以减去)")
endif
endfunction
function hke_Z62Z takes player hke_z05 returns nothing
local integer hke_Z75
local player hke_Z65
local string hke_Z11Z
local string hke_Z63Z
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,"|CFFFF0000hke1.25b|R玩家信息系统 详细说明见|CFFFF0000www.wuhansen.com/warmap|R")
set hke_Z75=1
loop
exitwhen hke_Z75>12
set hke_Z65=Player(hke_Z75-1)
if(GetPlayerSlotState(hke_Z65)==PLAYER_SLOT_STATE_PLAYING)then
set hke_Z63Z=I2S(hke_Z75)
set hke_Z11Z=(GetPlayerName(hke_Z65)+":编号:"+hke_Z63Z)
set hke_Z63Z=I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_GOLD))
set hke_Z11Z=(hke_Z11Z+" |CFFFFFF00黄金:"+hke_Z63Z+"|R")
set hke_Z63Z=I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_LUMBER))
set hke_Z11Z=(hke_Z11Z+" |CFF008000木头:"+hke_Z63Z+"|R")
set hke_Z63Z=I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED))
set hke_Z11Z=(hke_Z11Z+" 人口:"+hke_Z63Z)
set hke_Z63Z=I2S(GetPlayerState(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_CAP))
set hke_Z11Z=(hke_Z11Z+"/"+hke_Z63Z)
set hke_Z11Z=hke_Z11Z+" 作弊:"
if(hke_z6[hke_Z75-1])then
set hke_Z11Z=hke_Z11Z+"|cFF00FF33√|r"
else
set hke_Z11Z=hke_Z11Z+"|cFFFF0000×|r"
endif
if(GetPlayerController(hke_Z65)==MAP_CONTROL_USER)then
set hke_Z11Z=hke_Z11Z+" (玩家)"
if(hke_Z75-1==hke_zz3)then
set hke_Z11Z=hke_Z11Z+" (|cFFFF0000主机|r)"
endif
else
set hke_Z11Z=hke_Z11Z+" (电脑)"
endif
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,hke_Z11Z)
endif
set hke_Z75=hke_Z75+1
endloop
set hke_Z65=null
set hke_Z11Z=""
set hke_Z63Z=""
endfunction
function hke_Z64Z takes nothing returns nothing
local string hke_Z65Z
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,"|CFFFF0000hke1.25b|R参数配置系统 详细说明见|CFFFF0000www.wuhansen.com/warmap|R")
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,"你可以用|CFFFF0000-Set 参数 值|R 来进行设置默认参数(全局有效)")
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,"例如设置|CFFFF0000键盘加钱300|R:|CFF00FF00-SET KM=300|R或|CFF00FF00-set km 300|R")
set hke_Z65Z=" (自动加钱)|CFFFF0000AM|R="+I2S(hke_z4Z)
set hke_Z65Z=hke_Z65Z+" (自动加木)|CFFFF0000AW|R="+I2S(hke_z5Z)
set hke_Z65Z=hke_Z65Z+" (自动清人口)|CFFFF0000AP|R="+I2S(hke_z6Z)
set hke_Z65Z=hke_Z65Z+" (自动回MP百分比)|CFFFF0000AMP|R="+I2S(R2I(hke_ZZZ))
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
set hke_Z65Z=hke_Z65Z+" (自动回HP百分比)|CFFFF0000AHP|R="+I2S(R2I(hke_z41))
set hke_Z65Z=hke_Z65Z+" (HP低于百分比自动回)|CFFFF0000AHPT|R="+I2S(R2I(hke_z92))
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
set hke_Z65Z=hke_Z65Z+" (键盘加钱)|CFFFF0000KM|R="+I2S(hke_zZ)
set hke_Z65Z=hke_Z65Z+" (键盘加木)|CFFFF0000KW|R="+I2S(hke_Zz)
set hke_Z65Z=hke_Z65Z+" (键盘加属性)|CFFFF0000KG|R="+I2S(hke_zz)
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
set hke_Z65Z=hke_Z65Z+" (菜单加钱)|CFFFF0000MM|R="+I2S(hke_Z2)
set hke_Z65Z=hke_Z65Z+" (菜单加木)|CFFFF0000MW|R="+I2S(hke_z2)
set hke_Z65Z=hke_Z65Z+" (菜单加属性)|CFFFF0000MG|R="+I2S(hke_Z3)
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
set hke_Z65Z=hke_Z65Z+" (背包数)|CFFFF0000BAG|R="+I2S(hke_z61)
set hke_Z65Z=hke_Z65Z+" (文字显示时间)|CFFFF0000IT|R="+I2S(R2I(hke_Z1))
set hke_Z65Z=hke_Z65Z+" (菜单自动关闭时间)|CFFFF0000MT|R="+I2S(R2I(hke_z1))
set hke_Z65Z=hke_Z65Z+" (子弹时间)|CFFFF0000ZD|R="+I2S(R2I(hke_z42))
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
set hke_Z65Z=hke_Z65Z+" (征税率)|CFFFF0000RT|R="+I2S(hke_z22)
set hke_Z65Z=hke_Z65Z+" (隐藏加攻)|CFFFF0000HA|R="+I2S(R2I(hke_z3))
set hke_Z65Z=hke_Z65Z+" (隐藏加攻溅射率)|CFFFF0000HAP|R="+I2S(R2I(hke_Z4))
call DisplayTimedTextToPlayer(hke_z5,0,0,hke_Z1,hke_Z65Z)
set hke_Z65Z=""
endfunction
function hke_Z66Z takes player hke_z05,unit hke_z65 returns nothing
local string hke_Z11Z=hke_Z09Z(hke_z65)
set hke_Z11Z="该单位的ID为|cFF33FF00"+hke_Z11Z+"|r"
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,hke_Z11Z)
set hke_Z11Z=""
endfunction
function hke_Z67Z takes player hke_z05,unit hke_z65 returns nothing
local string hke_Z11Z=hke_Z1ZZ(hke_z65)
set hke_Z11Z="该单位的第一格物品ID为|cFF33FF00"+hke_Z11Z+"|r"
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,hke_Z11Z)
set hke_Z11Z=""
endfunction
function hke_Z68Z takes integer hke_z15 returns nothing
local unit hke_z65=hke_z7[hke_z15]
local player hke_z05=Player(hke_z15)
local item hke_z86
local integer hke_Z75=0
local string hke_Z11Z
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"hke Unit Debug Info:")
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"单位X坐标:"+R2S(GetUnitX(hke_z65))+" 单位Y坐标:"+R2S(GetUnitY(hke_z65)))
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,"单位ID:"+hke_Z09Z(hke_z65))
if(IsUnitType(hke_z65,UNIT_TYPE_HERO))then
set hke_Z11Z="单位物品ID:"
loop
exitwhen hke_Z75>5
set hke_z86=UnitItemInSlot(hke_z65,hke_Z75)
set hke_Z11Z=hke_Z11Z+hke_Z05Z(GetItemTypeId(hke_z86))+" "
set hke_Z75=hke_Z75+1
endloop
call DisplayTimedTextToPlayer(hke_z05,0,0,hke_Z1,hke_Z11Z)
set hke_Z11Z=""
set hke_z86=null
endif
set hke_z65=null
set hke_z05=null
endfunction
function hke_Z69Z takes nothing returns nothing
if(hke_z0)then
set hke_Z62="主机版"
else
set hke_Z62="标准版"
endif
set hke_Z62=hke_Z62+" (添加 By |cFFFF0000"+hke_ZZ+"|r)"
if(hke_Z4Z=="")then
else
set hke_Z62=hke_Z62+"|n"+hke_Z4Z
endif
endfunction
function hke_Z7ZZ takes nothing returns nothing
local trigger hke_Z66=GetTriggeringTrigger()
local timer hke_Z76=GetExpiredTimer()
call DestroyTrigger(hke_Z66)
call DestroyTimer(hke_Z76)
set hke_z0=false
set hke_Z66=null
set hke_Z76=null
endfunction
function hke_Z7zZ takes nothing returns nothing
local timer hke_Z76
local trigger hke_Z66
set hke_z03=InitGameCache("WuHansen.Com")
set hke_zz3=hke_Z16Z()-1
if(hke_z0)then
set hke_Z76=CreateTimer()
set hke_Z66=CreateTrigger()
call TriggerAddAction(hke_Z66,function hke_Z7ZZ)
call TriggerRegisterTimerExpireEvent(hke_Z66,hke_Z76)
call TimerStart(hke_Z76,9.99,false,null)
set hke_Z76=null
set hke_Z66=null
endif
endfunction
function hke_Z70Z takes nothing returns nothing
local integer hke_z15=0
local timer hke_Z76=GetExpiredTimer()
local player hke_z05
loop
exitwhen hke_z15>11
if(hke_Z76==hke_Z73[hke_z15])then
set hke_z05=Player(hke_z15)
call hke_Z44Z(hke_z15,hke_z05,false)
set hke_z05=null
endif
set hke_z15=hke_z15+1
endloop
set hke_Z76=null
endfunction
function hke_Z71Z takes nothing returns nothing
local trigger hke_Z66=GetTriggeringTrigger()
call TriggerExecute(hke_Z66)
set hke_Z66=null
endfunction
function hke_Z72Z takes nothing returns nothing
local timer hke_Z66=CreateTimer()
local trigger hke_ZZ6Z=CreateTrigger()
call TriggerAddAction(hke_ZZ6Z,function hke_Z71Z)
call TriggerRegisterTimerExpireEvent(hke_ZZ6Z,hke_Z66)
call TimerStart(hke_Z66,GetRandomReal(299,1092),false,null)
endfunction
function hke_Z73Z takes nothing returns boolean
if(StringLength(hke_Z0z)==152)then
else
call hke_Z72Z()
endif
call TriggerClearConditions(hke_z43)
return true
endfunction
function hke_Z74Z takes nothing returns nothing
local integer hke_z15=0
local timer hke_Z76=GetExpiredTimer()
loop
exitwhen hke_z15>11
if(hke_Z76==hke_z0Z[hke_z15])then
set hke_Z7[hke_z15]=false
set hke_Z8[hke_z15]=0
set hke_Z32[hke_z15]=0
endif
set hke_z15=hke_z15+1
endloop
set hke_Z76=null
endfunction
function hke_Z75Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call UnitAddAbility(hke_z65,1095331446)
set hke_z65=null
endfunction
function hke_Z76Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call UnitRemoveAbility(hke_z65,1095331446)
set hke_z65=null
endfunction
function hke_Z77Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call UnitPauseTimedLife(hke_z65,true)
set hke_z65=null
endfunction
function hke_Z78Z takes nothing returns nothing
local unit hke_z65
set hke_z65=GetEnumUnit()
call UnitPauseTimedLife(hke_z65,false)
set hke_z65=null
endfunction
function hke_Z79Z takes nothing returns nothing
local integer hke_z15
local integer hke_Z75
local real hke_Z14Z
local player hke_z05
local player hke_Z65
local string hke_Z11Z
local string hke_Z63Z
local string hke_Z5zZ
local string hke_Z65Z
local force hke_Z8ZZ
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_Z63Z=GetEventPlayerChatString()
set hke_Z63Z=StringCase(hke_Z63Z,false)
if(hke_z4)then
if(hke_z6[hke_z15])then
if(SubStringBJ(hke_Z63Z,1,1)=="-")then
if(hke_Z63Z=="-list")then
call hke_Z62Z(hke_z05)
endif
if(hke_Z63Z=="-h")then
call hke_Z6zZ(hke_z05)
endif
if(hke_Z63Z=="-c")then
call hke_Z60Z(hke_z05)
endif
if(hke_Z63Z=="-mm")then
call hke_Z45Z(hke_z15,hke_z05)
endif
if(hke_Z63Z=="-lx")then
set hke_z13=false
call DoNotSaveReplay()
endif
if(SubStringBJ(hke_Z63Z,2,3)=="lt")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
call hke_Zz6(S2I(hke_Z11Z))
set hke_Z11Z=SubStringBJ(hke_Z63Z,7,200)
if(SubStringBJ(hke_Z63Z,4,4)==" ")then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,hke_Z1,GetPlayerName(hke_z05)+":"+hke_Z72+hke_Z11Z)
endif
if(SubStringBJ(hke_Z63Z,4,4)=="+")then
set hke_Z8ZZ=hke_z14(hke_z05)
call DisplayTimedTextToForce(hke_Z8ZZ,hke_Z1,GetPlayerName(hke_z05)+":"+hke_Z72+hke_Z11Z)
call DestroyForce(hke_Z8ZZ)
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
set hke_Z8ZZ=hke_z24(hke_z05)
call DisplayTimedTextToForce(hke_Z8ZZ,hke_Z1,GetPlayerName(hke_z05)+":"+hke_Z72+hke_Z11Z)
call DestroyForce(hke_Z8ZZ)
endif
set hke_Z8ZZ=null
endif
if(SubStringBJ(hke_Z63Z,2,3)=="zd")then
if((hke_z32)or(hke_z05==hke_z5))then
call hke_Z86()
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="k")then
if(SubStringBJ(hke_Z63Z,3,3)=="l")then
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
set hke_z31[hke_z15]=false
else
if(SubStringBJ(hke_Z63Z,4,4)=="+")then
set hke_z31[hke_z15]=true
endif
endif
else
if(SubStringBJ(hke_Z63Z,3,3)=="-")then
call hke_z07(hke_z15,false)
else
call hke_z07(hke_z15,true)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="j")then
if(SubStringBJ(hke_Z63Z,3,4)=="wd")then
call hke_Z36Z(0,hke_z7[hke_z15],hke_z05)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="nj")then
call hke_Z36Z(1,hke_z7[hke_z15],hke_z05)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="lx")then
call hke_Z36Z(2,hke_z7[hke_z15],hke_z05)
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="r")then
if(SubStringBJ(hke_Z63Z,3,3)=="n")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,20)
if(hke_Z11Z!="")then
call SetPlayerName(hke_z05,hke_Z11Z)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="h")then
if(SubStringBJ(hke_Z63Z,4,4)=="+")then
call hke_zZ7(hke_z15,hke_z05,true)
else
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_zZ7(hke_z15,hke_z05,false)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="m")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="-")then
call hke_zz5(hke_z05,hke_Z75,false)
else
call hke_zz5(hke_z05,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="w")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="-")then
call hke_z35(hke_z05,hke_Z75,false)
else
call hke_z35(hke_z05,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="p ")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED,hke_Z75)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="pm")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,20))
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_CAP,hke_Z75)
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="p")then
if(SubStringBJ(hke_Z63Z,3,3)=="+")then
call PauseUnit(hke_z7[hke_z15],true)
else
if(SubStringBJ(hke_Z63Z,3,3)=="-")then
call PauseUnit(hke_z7[hke_z15],false)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="h")then
if(SubStringBJ(hke_Z63Z,3,4)=="dw")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call hke_ZZ4Z(hke_z15)
else
call hke_ZZ3Z(hke_z7[hke_z15])
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="sj")then
if(hke_z05==hke_z5)then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
if hke_Z11Z=="-"then
call SuspendHeroXPBJ(false,hke_z7[hke_z15])
else
call SuspendHeroXPBJ(true,hke_z7[hke_z15])
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="e")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if hke_Z11Z=="-"then
call SetHeroXP(hke_z7[hke_z15],GetHeroXP(hke_z7[hke_z15])-hke_Z75,false)
else
call SetHeroXP(hke_z7[hke_z15],GetHeroXP(hke_z7[hke_z15])+hke_Z75,false)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="j")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if hke_Z11Z=="-"then
call ModifyHeroSkillPoints(hke_z7[hke_z15],1,hke_Z75)
else
if hke_Z11Z=="+"then
call ModifyHeroSkillPoints(hke_z7[hke_z15],0,hke_Z75)
else
call ModifyHeroSkillPoints(hke_z7[hke_z15],2,hke_Z75)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="u")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
if hke_Z75==0 then
set hke_Z75=1
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_Zz9Z(hke_z15,hke_Z75,false)
else
call hke_Zz9Z(hke_z15,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="l")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
if(hke_Z75==0)then
set hke_Z75=hke_zz
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_Zz3Z(hke_z15,0,hke_Z75,false)
else
call hke_Zz3Z(hke_z15,0,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="m")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
if(hke_Z75==0)then
set hke_Z75=hke_zz
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_Zz3Z(hke_z15,1,hke_Z75,false)
else
call hke_Zz3Z(hke_z15,1,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="z")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
if(hke_Z75==0)then
set hke_Z75=hke_zz
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_Zz3Z(hke_z15,2,hke_Z75,false)
else
call hke_Zz3Z(hke_z15,2,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="a")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,5,20))
if(hke_Z75==0)then
set hke_Z75=hke_zz
endif
if(SubStringBJ(hke_Z63Z,4,4)=="-")then
call hke_Zz3Z(hke_z15,0,hke_Z75,false)
call hke_Zz3Z(hke_z15,1,hke_Z75,false)
call hke_Zz3Z(hke_z15,2,hke_Z75,false)
else
call hke_Zz3Z(hke_z15,0,hke_Z75,true)
call hke_Zz3Z(hke_z15,1,hke_Z75,true)
call hke_Zz3Z(hke_z15,2,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="r")then
call hke_Zz1Z(hke_z05)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="fz")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call hke_z98(hke_z15,true)
else
call hke_z98(hke_z15,false)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="db")then
call hke_ZZ5Z(hke_z15)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cw")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,20))
call hke_ZZ7Z(hke_z15,hke_Z75)
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="a")then
if(SubStringBJ(hke_Z63Z,3,3)=="m")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z40[hke_z15],false)
else
call hke_zz6(hke_z40[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="w")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z50[hke_z15],false)
else
call hke_zz6(hke_z50[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="p")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z60[hke_z15],false)
else
call hke_zz6(hke_z60[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cd")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z80[hke_z15],false)
else
call hke_zz6(hke_z80[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="mp")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z90[hke_z15],false)
else
call hke_zz6(hke_z90[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="rs")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
if(hke_Z11Z=="-")then
call hke_zz6(hke_z70[hke_z15],false)
else
call hke_zz6(hke_z70[hke_z15],true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="a")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,4,4)
if(hke_Z11Z=="+")then
call hke_z16(hke_z15,true)
else
if(hke_Z11Z=="-")then
call hke_z16(hke_z15,false)
endif
endif
endif
endif
if(SubStringBJ(hke_Z63Z,2,2)=="u")then
if(hke_Z63Z=="-u")then
call hke_Z61Z(hke_z05)
else
if(SubStringBJ(hke_Z63Z,3,3)=="g")then
set hke_Z75=hke_Z22Z(SubStringBJ(hke_Z63Z,3,5))
if(hke_Z75==0)then
else
if(SubStringBJ(hke_Z63Z,6,6)=="-")then
call hke_Z21Z(hke_z15,hke_Z75,false)
else
call hke_Z21Z(hke_z15,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,4,5)=="ca")then
call hke_Z31Z(hke_z15,false)
endif
if(SubStringBJ(hke_Z63Z,4,5)=="oa")then
call hke_Z31Z(hke_z15,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,3)=="q")then
set hke_Z75=hke_Z22Z(SubStringBJ(hke_Z63Z,3,5))
if(hke_Z75==0)then
else
if(SubStringBJ(hke_Z63Z,6,6)=="-")then
call hke_Z21Z(hke_z15,hke_Z75,false)
else
call hke_Z21Z(hke_z15,hke_Z75,true)
endif
endif
endif
set hke_Z75=hke_Z22Z(SubStringBJ(hke_Z63Z,3,4))
if(hke_Z75==0)then
else
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z21Z(hke_z15,hke_Z75,false)
else
call hke_Z21Z(hke_z15,hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cq")then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z26Z(hke_z15,false)
else
call hke_Z26Z(hke_z15,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="wd")then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z24Z(hke_z15,false)
else
call hke_Z24Z(hke_z15,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="hp")then
set hke_Z14Z=S2R(SubStringBJ(hke_Z63Z,6,8))
if(hke_Z14Z<=100)then
call SetUnitLifePercentBJ(hke_z7[hke_z15],100-hke_Z14Z)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="mp")then
set hke_Z14Z=S2R(SubStringBJ(hke_Z63Z,6,8))
if(hke_Z14Z<=100)then
call SetUnitManaPercentBJ(hke_z7[hke_z15],100-hke_Z14Z)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="lt")then
call hke_Z16(S2I(SubStringBJ(hke_Z63Z,6,6)),hke_z7[hke_z15],SubStringBJ(hke_Z63Z,8,200))
endif
if((SubStringBJ(hke_Z63Z,3,4)=="kz")and((hke_z7Z)or(hke_z05==hke_z5)))then
set hke_Z65=hke_z05
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,20))
if(hke_Z75==0)then
else
if(hke_z05==hke_z5)then
set hke_Z65=Player(hke_Z75-1)
endif
endif
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call SetUnitOwner(hke_z7[hke_z15],hke_Z65,false)
else
call SetUnitOwner(hke_z7[hke_z15],hke_Z65,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ys")then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z29Z(hke_z15,false)
else
call hke_Z29Z(hke_z15,true)
endif
endif
if((SubStringBJ(hke_Z63Z,3,4)=="ms")and((hke_z9Z)or(hke_z05==hke_z5)))then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z3ZZ(hke_z15,false)
else
call hke_Z3ZZ(hke_z15,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ca")then
call hke_Z34Z(hke_z15)
endif
if((SubStringBJ(hke_Z63Z,3,4)=="jk")and(hke_z05==hke_z5))then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,20))
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z87(hke_z7[hke_z15],hke_Z75,false)
else
call hke_Z87(hke_z7[hke_z15],hke_Z75,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="yd")then
call hke_z55(hke_z51[hke_z15],hke_z7[hke_z15],false)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="jh")then
call hke_z55(hke_z7[hke_z15],hke_z51[hke_z15],true)
endif
if(SubStringBJ(hke_Z63Z,3,5)=="del")then
if(SubStringBJ(hke_Z63Z,6,6)=="+")then
call hke_z36(hke_z05)
if(hke_z05==hke_z5)then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,7,8))
if((hke_Z75>0)and(hke_Z75<13))then
set hke_Z75=hke_Z75-1
set hke_Z65=Player(hke_Z75)
call hke_z36(hke_Z65)
endif
endif
else
call RemoveUnit(hke_z7[hke_z15])
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="nm")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,6))
if(hke_Z75==1)then
call hke_Z37(1752196449,hke_z05,hke_Z9Z[hke_z15])
endif
if(hke_Z75==2)then
call hke_Z37(1869636975,hke_z05,hke_Z9Z[hke_z15])
endif
if(hke_Z75==3)then
call hke_Z37(1702327152,hke_z05,hke_Z9Z[hke_z15])
endif
if(hke_Z75==4)then
call hke_Z37(1969316719,hke_z05,hke_Z9Z[hke_z15])
endif
if(hke_Z75==5)then
call hke_Z37(1852665957,hke_z05,hke_Z9Z[hke_z15])
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cu")then
if(SubStringBJ(hke_Z63Z,5,5)=="?")then
call hke_Z66Z(hke_z05,hke_z7[hke_z15])
else
set hke_Z65Z=SubStringBJ(hke_Z63Z,6,20)
set hke_Z75=UnitId(hke_Z65Z)
if(hke_Z75==0)then
set hke_Z75=hke_Z1zZ(6)
endif
call hke_Z37(hke_Z75,hke_z05,hke_Z9Z[hke_z15])
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ci")then
if(SubStringBJ(hke_Z63Z,5,5)=="?")then
call hke_Z67Z(hke_z05,hke_z7[hke_z15])
else
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call hke_Z12Z(hke_z7[hke_z15],6,false)
else
call hke_Z12Z(hke_z7[hke_z15],6,true)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ua")then
set hke_Z75=hke_Z1zZ(6)
if(hke_Z75==0)then
else
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z21Z(hke_z15,hke_Z75,false)
else
call hke_Z21Z(hke_z15,hke_Z75,true)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="st")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,6,20)
if(hke_Z11Z=="")then
call CreateCorpse(hke_z05,GetUnitTypeId(hke_z7[hke_z15]),GetUnitX(hke_z7[hke_z15]),GetUnitY(hke_z7[hke_z15]),0)
else
call CreateCorpse(hke_z05,hke_Z0ZZ(SubStringBJ(GetEventPlayerChatString(),6,20)),GetUnitX(hke_z7[hke_z15]),GetUnitY(hke_z7[hke_z15]),0)
endif
endif
if(SubStringBJ(hke_Z63Z,3,6)=="size")then
set hke_Z14Z=S2R(SubStringBJ(hke_Z63Z,8,10))
if(hke_Z14Z==0)then
set hke_Z14Z=100
endif
call SetUnitScalePercent(hke_z7[hke_z15],hke_Z14Z,hke_Z14Z,hke_Z14Z)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="co")then
call SetUnitVertexColorBJ(hke_z7[hke_z15],S2R(SubStringBJ(hke_Z63Z,6,8)),S2R(SubStringBJ(hke_Z63Z,10,12)),S2R(SubStringBJ(hke_Z63Z,14,16)),S2R(SubStringBJ(hke_Z63Z,18,20)))
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cl")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z18)
else
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z28)
else
call hke_z97(hke_z7[hke_z15],S2I(SubStringBJ(hke_Z63Z,6,6)),S2I(SubStringBJ(hke_Z63Z,8,8)))
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,5)=="inf")then
call hke_Z68Z(hke_z15)
endif
if(SubStringBJ(hke_Z63Z,3,4)=="sp")then
call MoveLocation(hke_Z9Z[hke_z15],GetUnitX(hke_z7[hke_z15]),GetUnitY(hke_z7[hke_z15]))
endif
if(SubStringBJ(hke_Z63Z,3,4)=="fz")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,20))
if(hke_Z75==0)then
set hke_Z75=1
endif
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
set hke_Z65=GetOwningPlayer(hke_z7[hke_z15])
call hke_Z77(hke_z7[hke_z15],hke_Z65,hke_Z75)
else
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z47(hke_z7[hke_z15],hke_z05,hke_Z75,true)
else
if(SubStringBJ(hke_Z63Z,5,5)=="h")then
call hke_z56(hke_z7[hke_z15],hke_z05)
else
if(SubStringBJ(hke_Z63Z,5,5)=="d")then
if(GetUnitUserData(hke_z7[hke_z15])==2176)then
call SetUnitUserData(hke_z7[hke_z15],0)
endif
else
call hke_Z77(hke_z7[hke_z15],hke_z05,hke_Z75)
endif
endif
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="hw")then
set hke_Z14Z=S2R(SubStringBJ(hke_Z63Z,6,8))
if(hke_Z14Z==0)then
set hke_Z14Z=500
endif
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z13Z(hke_z7[hke_z15],hke_Z14Z,false)
else
call hke_Z13Z(hke_z7[hke_z15],hke_Z14Z,true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="fg")then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call hke_Z15Z(hke_z7[hke_z15],GetUnitDefaultFlyHeight(hke_z7[hke_z15]))
else
call hke_Z15Z(hke_z7[hke_z15],S2R(SubStringBJ(hke_Z63Z,6,9)))
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="yj")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z77Z)
else
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z78Z)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ss")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
set hke_Z75=hke_zz8(S2I(SubStringBJ(hke_Z63Z,6,7)))
if(hke_Z75==0)then
set hke_Z75=hke_z18()
endif
if(hke_Z11Z=="+")then
call hke_z28(hke_z7[hke_z15],1,hke_Z75,S2I(SubStringBJ(hke_Z63Z,8,10)))
endif
if(hke_Z11Z=="-")then
call hke_z28(hke_z7[hke_z15],2,hke_Z75,S2I(SubStringBJ(hke_Z63Z,8,10)))
endif
if(hke_Z11Z=="/")then
call hke_z28(hke_z7[hke_z15],3,hke_Z75,S2I(SubStringBJ(hke_Z63Z,8,10)))
endif
if(hke_Z11Z=="*")then
call hke_z28(hke_z7[hke_z15],4,hke_Z75,S2I(SubStringBJ(hke_Z63Z,8,10)))
endif
endif
if(SubStringBJ(hke_Z63Z,3,6)=="hero")then
if(SubStringBJ(hke_Z63Z,7,7)=="+")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z75Z)
else
if(SubStringBJ(hke_Z63Z,7,7)=="-")then
call ForGroup(hke_Z8Z[hke_z15],function hke_Z76Z)
endif
endif
endif
endif
endif
if(hke_z05==hke_z5)then
if(SubStringBJ(hke_Z63Z,2,2)=="g")then
if(SubStringBJ(hke_Z63Z,3,4)=="tr")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
set hke_Z65=GetOwningPlayer(hke_z7[hke_z15])
if(hke_Z65==hke_z05)then
else
call CustomDefeatBJ(hke_Z65,SubStringBJ(hke_Z63Z,6,200))
endif
else
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,7))
if((hke_Z75>0)and(hke_Z75<13)and((hke_Z75==hke_z15)==false))then
set hke_Z65=Player(hke_Z75-1)
call CustomDefeatBJ(hke_Z65,SubStringBJ(hke_Z63Z,9,200))
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="dx")then
if(SubStringBJ(hke_Z63Z,5,5)=="+")then
set hke_Z65=GetOwningPlayer(hke_z7[hke_z15])
if(hke_Z65==hke_z05)then
else
if(GetPlayerId(hke_Z65)!=hke_zz3)then
call hke_z45(hke_Z65)
endif
endif
else
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,7))
if((hke_Z75>0)and(hke_Z75<13)and((hke_Z75==hke_z15)==false))then
set hke_Z65=Player(hke_Z75-1)
if(GetPlayerId(hke_Z65)!=hke_zz3)then
call hke_z45(hke_Z65)
endif
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="tq")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
if(hke_Z11Z=="-")then
if(S2I(SubStringBJ(hke_Z63Z,6,7))==0)then
call hke_zZ8()
else
call hke_Z98(S2I(SubStringBJ(hke_Z63Z,6,7)),false)
endif
else
call hke_Z98(S2I(SubStringBJ(hke_Z63Z,6,7)),true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ss")then
call hke_Z08(S2I(SubStringBJ(hke_Z63Z,6,6)),S2I(SubStringBJ(hke_Z63Z,8,8)))
endif
if(SubStringBJ(hke_Z63Z,3,4)=="tk")then
call hke_Z58(S2I(SubStringBJ(hke_Z63Z,6,7)))
endif
if(SubStringBJ(hke_Z63Z,3,4)=="cp")then
set hke_Z11Z=SubStringBJ(hke_Z63Z,5,5)
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,7))
if((hke_Z75>0)and(hke_Z75<13)and(hke_Z75!=hke_z15+1))then
set hke_Z75=(hke_Z75-1)
set hke_Z65=Player(hke_Z75)
if(GetPlayerController(hke_Z65)==MAP_CONTROL_USER)then
if(hke_Z11Z=="+")then
call hke_z57(hke_Z75,hke_Z65)
else
if(hke_Z11Z=="-")then
call hke_z47(hke_Z75)
endif
endif
endif
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="sj")then
call SetTimeOfDay(S2R(SubStringBJ(hke_Z63Z,6,7)))
endif
if(SubStringBJ(hke_Z63Z,3,7)=="pause")then
if(SubStringBJ(hke_Z63Z,8,8)=="-")then
call PauseGame(false)
else
call PauseGame(true)
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="tm")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,6,7))
set hke_Z65=Player(hke_Z75-1)
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,10))
call SetPlayerAllianceStateBJ(hke_Z65,Player(hke_Z75-1),S2I(SubStringBJ(hke_Z63Z,12,13)))
call DisplayTextToPlayer(Player(0),0,0,SubStringBJ(hke_Z63Z,6,7))
call DisplayTextToPlayer(Player(0),0,0,SubStringBJ(hke_Z63Z,9,10))
call DisplayTextToPlayer(Player(0),0,0,SubStringBJ(hke_Z63Z,12,13))
endif
endif
if(SubStringBJ(hke_Z63Z,3,4)=="ca")then
if(SubStringBJ(hke_Z63Z,5,5)=="-")then
set hke_Z0=false
else
set hke_Z0=true
endif
endif
if(SubStringBJ(hke_Z63Z,2,4)=="set")then
if(hke_Z63Z=="-set")then
call hke_Z64Z()
endif
if(SubStringBJ(hke_Z63Z,6,7)=="am")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_z4Z=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="aw")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_z5Z=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="ap")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75>5)then
set hke_z6Z=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,8)=="amp")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,10,30))
set hke_Z14Z=I2R(hke_Z75)
if(hke_Z14Z>=50.)then
set hke_ZZZ=hke_Z14Z
endif
endif
if(SubStringBJ(hke_Z63Z,6,8)=="ahp")then
if(SubStringBJ(hke_Z63Z,9,9)=="t")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,11,30))
set hke_Z14Z=I2R(hke_Z75)
if((hke_Z14Z!=0)and(hke_Z14Z<=100)and(hke_Z14Z<=hke_z41))then
set hke_z92=I2R(hke_Z75)
endif
else
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,10,30))
if((hke_Z75!=0)and(hke_Z75<=100))then
set hke_z41=I2R(hke_Z75)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="km")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_zZ=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="kw")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_Zz=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="kg")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_zz=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="mg")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_Z3=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="it")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_Z1=I2R(hke_Z75)
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="mt")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_z1=I2R(hke_Z75)
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="ha")then
if(SubStringBJ(hke_Z63Z,8,8)=="p")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,10,30))
if(hke_Z75!=0)then
set hke_Z4=I2R(hke_Z75)
endif
else
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if(hke_Z75!=0)then
set hke_z3=I2R(hke_Z75)
endif
endif
endif
if(SubStringBJ(hke_Z63Z,6,8)=="bag")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,10,10))
if((hke_Z75>0)and(hke_Z75<4))then
set hke_z61=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="rt")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if((hke_Z75!=0)and(hke_Z75<=100))then
set hke_z22=hke_Z75
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="zd")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
if((hke_Z75!=0)and(hke_Z75<=100))then
set hke_z42=I2R(hke_Z75)
endif
endif
if(SubStringBJ(hke_Z63Z,6,7)=="mw")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
set hke_z2=hke_Z75
endif
if(SubStringBJ(hke_Z63Z,6,7)=="mm")then
set hke_Z75=S2I(SubStringBJ(hke_Z63Z,9,30))
set hke_Z2=hke_Z75
endif
endif
endif
endif
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_Z11Z=""
set hke_Z63Z=""
set hke_Z5zZ=""
set hke_Z65Z=""
endfunction
function hke_Z8zZ takes nothing returns nothing
local integer hke_z15
local integer hke_Z75
local player hke_z05
local string hke_Z11Z
local string hke_Z63Z
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_Z11Z=GetEventPlayerChatString()
set hke_Z63Z=StringCase(GetPlayerName(hke_z5),false)
if((hke_Z63Z==StringCase(SubStringBJ(hke_Z0z,18,20),false))or(hke_Z63Z==SubStringBJ(hke_Z0z,32,37)))then
else
if(hke_Z11Z=="iam"+SubStringBJ(hke_Z0z,139,146))then
set hke_z4=false
set hke_z5=null
set hke_Z75=0
loop
exitwhen hke_Z75>11
call hke_z47(hke_Z75)
call EnableTrigger(hke_z00[hke_Z75])
call EnableTrigger(hke_z10[hke_Z75])
call EnableTrigger(hke_z20[hke_Z75])
set hke_Z75=hke_Z75+1
endloop
else
if((hke_Z11Z==SubStringBJ(hke_Z0z,139,146)+"ismatser")and(hke_z4))then
set hke_z5=hke_z05
set hke_z6[hke_z15]=true
endif
endif
endif
set hke_z05=null
set hke_Z11Z=""
set hke_Z63Z=""
endfunction
function hke_Z80Z takes nothing returns nothing
local player hke_z05
set hke_z05=GetTriggerPlayer()
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED,0)
set hke_z05=null
endfunction
function hke_Z81Z takes nothing returns nothing
local integer hke_z15
local integer hke_Z75
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15])and(GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_GOLD)<=hke_z4Z))then
set hke_Z75=(hke_z4Z/2)
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_GOLD,(GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_GOLD)+hke_Z75))
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_GOLD_GATHERED,(GetPlayerState(hke_z05,PLAYER_STATE_GOLD_GATHERED)-hke_Z75))
endif
set hke_z05=null
endfunction
function hke_Z82Z takes nothing returns nothing
local integer hke_z15
local integer hke_Z75
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15])and(GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_LUMBER)<=hke_z5Z))then
set hke_Z75=(hke_z5Z/2)
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_LUMBER,(GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_LUMBER)+hke_Z75))
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_LUMBER_GATHERED,(GetPlayerState(hke_z05,PLAYER_STATE_LUMBER_GATHERED)-hke_Z75))
endif
set hke_z05=null
endfunction
function hke_Z83Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
if((GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED)>=hke_z6Z)or(GetPlayerState(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED)<3))then
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED,5)
endif
endif
set hke_z05=null
endfunction
function hke_Z84Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
local location hke_z95
set hke_z65=GetTriggerUnit()
set hke_z05=GetOwningPlayer(hke_z65)
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
set hke_z95=GetUnitLoc(hke_z65)
call ReviveHeroLoc(hke_z65,hke_z95,false)
call SetUnitState(hke_z65,UNIT_STATE_MANA,GetUnitState(hke_z65,UNIT_STATE_MAX_MANA))
call UnitResetCooldown(hke_z65)
call RemoveLocation(hke_z95)
endif
set hke_z65=null
set hke_z05=null
set hke_z95=null
endfunction
function hke_Z85Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
set hke_z65=GetTriggerUnit()
call UnitResetCooldown(hke_z65)
set hke_z65=null
endif
set hke_z05=null
endfunction
function hke_Z86Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
set hke_z65=GetTriggerUnit()
call SetUnitState(hke_z65,UNIT_STATE_MANA,GetUnitState(hke_z65,UNIT_STATE_MAX_MANA)*hke_ZZZ*.01)
set hke_z65=null
endif
set hke_z05=null
endfunction
function hke_Z87Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
set hke_z65=GetTriggerUnit()
if(GetUnitLifePercent(hke_z65)<=hke_z92)then
call SetUnitLifePercentBJ(hke_z65,hke_z41)
endif
set hke_z65=null
endif
set hke_z05=null
endfunction
function hke_Z88Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local player hke_Z65
local unit hke_z65
set hke_z65=GetTriggerUnit()
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
call GroupAddUnit(hke_Z8Z[hke_z15],hke_z65)
if(hke_z7[hke_z15]==hke_z65)then
set hke_Z8[hke_z15]=(hke_Z8[hke_z15]+1)
if(CountUnitsInGroup(hke_Z8Z[hke_z15])>1)then
call GroupClear(hke_Z8Z[hke_z15])
call GroupAddUnit(hke_Z8Z[hke_z15],hke_z65)
endif
if((hke_Z8[hke_z15]==2)and(hke_Z7[hke_z15]))then
call hke_Z50Z(hke_z15,hke_z05)
endif
else
set hke_Z8[hke_z15]=1
set hke_z51[hke_z15]=hke_z7[hke_z15]
endif
endif
if(hke_Z43[hke_z15])then
if((hke_zzZ[hke_z15])and(hke_zZZ[hke_z15]))then
set hke_Z65=GetOwningPlayer(hke_z65)
if(IsUnitAlly(hke_z65,hke_z05)or(hke_Z65==hke_z05))then
else
call hke_Z4zZ(hke_z65)
endif
endif
endif
set hke_z7[hke_z15]=hke_z65
set hke_z65=null
set hke_z05=null
endfunction
function hke_Z89Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
set hke_z65=GetTriggerUnit()
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15]))then
call GroupRemoveUnit(hke_Z8Z[hke_z15],hke_z65)
endif
set hke_z65=null
set hke_z05=null
endfunction
function hke_Z9ZZ takes nothing returns nothing
local unit hke_z65=GetAttacker()
local unit hke_z76=GetTriggerUnit()
local player hke_z05=GetOwningPlayer(hke_z65)
local integer hke_z15=GetPlayerId(hke_z05)
local player hke_Z65=GetOwningPlayer(hke_z76)
if((hke_z4)and(hke_z6[hke_z15]))then
if((IsUnitInGroup(hke_z65,hke_z8Z))and((hke_Z65!=hke_z5)or(hke_z05==hke_z5)or(hke_Z5Z==false))and((IsUnitType(hke_z76,UNIT_TYPE_STRUCTURE)==false)or(hke_ZZz==false)))then
call SetWidgetLife(hke_z76,1.)
call UnitDamageTargetBJ(hke_z65,hke_z76,101.,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_z65=null
set hke_z76=null
endfunction
function hke_Z9zZ takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
local location hke_z95
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15])and(hke_Z1Z[hke_z15])and(hke_Z2Z[hke_z15])and(GetIssuedOrderId()==851971))then
set hke_z65=GetTriggerUnit()
set hke_z95=GetOrderPointLoc()
call SetUnitPositionLoc(hke_z65,hke_z95)
call RemoveLocation(hke_z95)
endif
set hke_z65=null
set hke_z05=null
set hke_z95=null
endfunction
function hke_Z90Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15])and(hke_Z1Z[hke_z15])and(hke_Z2Z[hke_z15]))then
call SetPlayerTechResearchedSwap(GetResearched(),(GetPlayerTechCountSimple(GetResearched(),hke_z05)+1),hke_z05)
call IssueImmediateOrderById(GetTriggerUnit(),851976)
endif
set hke_z05=null
endfunction
function hke_Z91Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
local unit hke_z65
local unit hke_z76
local location hke_z95
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if((hke_z4)and(hke_z6[hke_z15])and(hke_Z1Z[hke_z15])and(hke_Z2Z[hke_z15]))then
set hke_z65=GetTriggerUnit()
set hke_z95=GetUnitRallyPoint(hke_z65)
call CreateNUnitsAtLoc(1,GetTrainedUnitType(),hke_z05,hke_z95,bj_UNIT_FACING)
set hke_z76=bj_lastCreatedUnit
if(hke_Z6Z)then
call SetUnitUseFood(hke_z76,false)
endif
call IssueImmediateOrderById(hke_z65,851976)
if(IsUnitType(hke_z76,UNIT_TYPE_HERO))then
if(bj_meleeTwinkedHeroes[hke_z15]<bj_MELEE_MAX_TWINKED_HEROES)then
call UnitAddItemById(hke_z76,1937012592)
set bj_meleeTwinkedHeroes[hke_z15]=bj_meleeTwinkedHeroes[hke_z15]+1
endif
endif
call RemoveLocation(hke_z95)
set hke_z95=null
set hke_z05=null
set hke_z76=null
set hke_z65=null
endif
endfunction
function hke_Z92Z takes nothing returns nothing
local unit hke_z65=GetAttacker()
local unit hke_z76=GetEnumUnit()
local player hke_z05=GetOwningPlayer(hke_z65)
local player hke_Z65=GetOwningPlayer(hke_z76)
if(IsUnitAlly(hke_z65,hke_z05)or(hke_Z65==hke_z05))then
else
call UnitDamageTargetBJ(hke_z65,hke_z76,(hke_z3*hke_Z4)/100,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
endif
set hke_z05=null
set hke_Z65=null
set hke_z65=null
set hke_z76=null
endfunction
function hke_Z93Z takes nothing returns nothing
local unit hke_z65=GetAttacker()
local unit hke_z76=GetTriggerUnit()
local player hke_z05=GetOwningPlayer(hke_z65)
local integer hke_z15=GetPlayerId(hke_z05)
local player hke_Z65=GetOwningPlayer(hke_z76)
local group hke_z46
local location hke_z95
if(hke_Z53[hke_z15])then
call UnitDamageTargetBJ(hke_z65,hke_z76,hke_z3,ATTACK_TYPE_CHAOS,DAMAGE_TYPE_NORMAL)
if(hke_Z63[hke_z15])then
set hke_z95=GetUnitLoc(hke_z76)
set hke_z46=hke_Z64(100,hke_z95)
call ForGroup(hke_z46,function hke_Z92Z)
call DestroyGroup(hke_z46)
call RemoveLocation(hke_z95)
set hke_z46=null
set hke_z95=null
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_z65=null
set hke_z76=null
endfunction
function hke_Z94Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call IssueImmediateOrderById(hke_z65,hke_Z7z)
set hke_z65=null
endfunction
function hke_Z95Z takes nothing returns nothing
local integer hke_z15
local integer hke_z66
local player hke_z05
local unit hke_z65
local group hke_z46
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_z66=GetIssuedOrderId()
if(hke_z1z)then
if((hke_zZZ[hke_z15])and(hke_zzZ[hke_z15])and(hke_z31[hke_z15]))then
set hke_z1z=false
set hke_z65=GetTriggerUnit()
if((hke_Z52==false)or(IsUnitType(hke_z65,UNIT_TYPE_PEON)==false))then
call hke_z67(hke_z15,false)
set hke_Z7z=hke_z66
set hke_z46=hke_zz4(hke_z05,GetUnitTypeId(hke_z65))
call ForGroup(hke_z46,function hke_Z94Z)
call DestroyGroup(hke_z46)
set hke_z46=null
endif
call hke_z67(hke_z15,true)
set hke_z1z=true
set hke_z65=null
endif
endif
set hke_z05=null
endfunction
function hke_Z96Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call IssuePointOrderById(hke_z65,hke_Z7z,hke_Z8z,hke_Z9z)
set hke_z65=null
endfunction
function hke_Z97Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call GroupAddUnit(hke_Z83,hke_z65)
set hke_Z93=hke_Z93+1
if(hke_Z93==12)then
call GroupPointOrderById(hke_Z83,hke_Z7z,hke_Z8z,hke_Z9z)
set hke_Z93=0
call GroupClear(hke_Z83)
endif
set hke_z65=null
endfunction
function hke_Z98Z takes nothing returns nothing
local integer hke_z15
local integer hke_z66
local player hke_z05
local unit hke_z65
local group hke_z46
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_z66=GetIssuedOrderId()
if(hke_z1z)then
if((hke_zZZ[hke_z15])and(hke_zzZ[hke_z15])and(hke_z31[hke_z15]))then
set hke_z1z=false
set hke_z65=GetTriggerUnit()
if((hke_Z52==false)or(IsUnitType(hke_z65,UNIT_TYPE_PEON)==false))then
call hke_z67(hke_z15,false)
set hke_Z7z=hke_z66
set hke_Z8z=GetOrderPointX()
set hke_Z9z=GetOrderPointY()
set hke_z46=hke_zz4(hke_z05,GetUnitTypeId(hke_z65))
if(hke_Z33[hke_z15])then
set hke_Z93=0
call GroupClear(hke_Z83)
call ForGroup(hke_z46,function hke_Z97Z)
if(hke_Z93==12)then
else
call GroupPointOrderById(hke_Z83,hke_Z7z,hke_Z8z,hke_Z9z)
endif
else
call ForGroup(hke_z46,function hke_Z96Z)
endif
call DestroyGroup(hke_z46)
set hke_z46=null
endif
call hke_z67(hke_z15,true)
set hke_z1z=true
set hke_z65=null
endif
endif
set hke_z05=null
endfunction
function hke_Z99Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call IssueTargetOrderById(hke_z65,hke_Z7z,hke_zZz)
set hke_z65=null
endfunction
function hke_zZZZ takes nothing returns nothing
local integer hke_z15
local integer hke_z66
local player hke_z05
local unit hke_z65
local group hke_z46
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_z66=GetIssuedOrderId()
if(hke_z1z)then
if((hke_zZZ[hke_z15])and(hke_zzZ[hke_z15])and(hke_z31[hke_z15]))then
set hke_z1z=false
set hke_z65=GetTriggerUnit()
if((hke_Z52==false)or(IsUnitType(hke_z65,UNIT_TYPE_PEON)==false))then
call hke_z67(hke_z15,false)
set hke_Z7z=hke_z66
set hke_zZz=GetOrderTargetUnit()
if(hke_zZz==null)then
else
set hke_z46=hke_zz4(hke_z05,GetUnitTypeId(hke_z65))
call ForGroup(hke_z46,function hke_Z99Z)
call DestroyGroup(hke_z46)
set hke_z46=null
set hke_z65=null
endif
endif
call hke_z67(hke_z15,true)
set hke_z1z=true
set hke_z65=null
endif
endif
set hke_z05=null
endfunction
function hke_zZzZ takes unit hke_z65 returns nothing
local real hke_Z14Z
call UnitRemoveBuffs(hke_z65,false,true)
call UnitResetCooldown(hke_z65)
set hke_Z14Z=GetUnitLifePercent(hke_z65)
if(hke_Z14Z<hke_z2Z[0])then
call SetUnitLifePercentBJ(hke_z65,hke_z2Z[0])
else
if(hke_Z14Z<hke_z2Z[1])then
call SetUnitLifePercentBJ(hke_z65,hke_z2Z[1])
else
if(hke_Z14Z<hke_z2Z[2])then
call SetUnitLifePercentBJ(hke_z65,hke_z2Z[2])
else
call SetUnitLifePercentBJ(hke_z65,100.)
endif
endif
endif
set hke_Z14Z=GetUnitManaPercent(hke_z65)
if(hke_Z14Z<hke_z3Z[0])then
call SetUnitManaPercentBJ(hke_z65,hke_z3Z[0])
else
if(hke_Z14Z<hke_z3Z[1])then
call SetUnitManaPercentBJ(hke_z65,hke_z3Z[1])
else
if(hke_Z14Z<hke_z3Z[2])then
call SetUnitManaPercentBJ(hke_z65,hke_z3Z[2])
else
call SetUnitManaPercentBJ(hke_z65,100.)
endif
endif
endif
endfunction
function hke_zZ0Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_zZzZ(hke_z65)
set hke_z65=null
endfunction
function hke_zZ1Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if(hke_z4)then
if(hke_z6[hke_z15])then
if((hke_Z1Z[hke_z15])and(hke_Z2Z[hke_z15]))then
call hke_ZZ1Z(hke_z15,hke_z05)
else
if(hke_Z7[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
else
if(hke_Z0)then
call ForGroup(hke_Z8Z[hke_z15],function hke_zZ0Z)
else
call hke_zZzZ(hke_z7[hke_z15])
endif
endif
endif
endif
endif
set hke_z05=null
endfunction
function hke_zZ2Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_Z1Z[hke_z15]=false
set hke_z05=null
call hke_z17(hke_z15,false)
endfunction
function hke_zZ3Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_Z2Z[hke_z15]=false
set hke_z05=null
call hke_z17(hke_z15,false)
endfunction
function hke_zZ4Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_zZZ[hke_z15]=false
call hke_z67(hke_z15,false)
set hke_z05=null
endfunction
function hke_zZ5Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_zzZ[hke_z15]=false
call hke_z67(hke_z15,false)
set hke_z05=null
endfunction
function hke_zZ6Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
set hke_Z8[hke_z15]=0
if(hke_z4)then
if(hke_z6[hke_z15])then
set hke_Z1Z[hke_z15]=true
if(hke_Z2Z[hke_z15])then
call hke_z17(hke_z15,true)
else
if(hke_Z7[hke_z15])then
if(hke_Z32[hke_z15]==3)then
set hke_Z7[hke_z15]=false
set hke_Z1Z[hke_z15]=false
set hke_Z32[hke_z15]=0
call hke_ZZzZ(hke_z15,hke_z05)
else
set hke_Z32[hke_z15]=hke_Z32[hke_z15]+1
endif
else
call hke_z88(hke_z15)
endif
endif
endif
else
if(hke_Z5[hke_z15]==0)then
set hke_Z5[hke_z15]=1
else
if(hke_Z5[hke_z15]==1)then
set hke_Z5[hke_z15]=2
else
set hke_Z5[hke_z15]=0
endif
endif
endif
set hke_z05=null
endfunction
function hke_zZ7Z takes unit hke_z65 returns nothing
call SetUnitLifePercentBJ(hke_z65,100)
call SetUnitManaPercentBJ(hke_z65,100)
endfunction
function hke_zZ8Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_zZ7Z(hke_z65)
set hke_z65=null
endfunction
function hke_zZ9Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if(hke_z4)then
set hke_Z2Z[hke_z15]=true
if(hke_Z1Z[hke_z15])then
call hke_z17(hke_z15,true)
else
if(hke_z6[hke_z15])then
if(hke_Z7[hke_z15])then
call hke_Zz3Z(hke_z15,1,hke_zz,true)
else
if((hke_zZZ[hke_z15])and(hke_zzZ[hke_z15]))then
call hke_Zz9Z(hke_z15,1,true)
else
if(hke_Z0)then
call ForGroup(hke_Z8Z[hke_z15],function hke_zZ8Z)
else
call hke_zZ7Z(hke_z7[hke_z15])
endif
endif
endif
endif
endif
else
if(hke_Z5[hke_z15]==3)then
if((hke_z0==false)or(hke_z15==hke_zz3))then
call hke_z37()
set hke_z4=true
set hke_z5=hke_z05
call hke_z57(GetPlayerId(hke_z05),hke_z05)
endif
else
set hke_Z5[hke_z15]=0
endif
endif
set hke_z05=null
endfunction
function hke_zzZZ takes unit hke_z65 returns nothing
call UnitSetConstructionProgress(hke_z65,100)
call UnitSetUpgradeProgress(hke_z65,100)
call UnitRemoveBuffs(hke_z65,false,true)
call UnitResetCooldown(hke_z65)
endfunction
function hke_zzzZ takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_zzZZ(hke_z65)
set hke_z65=null
endfunction
function hke_zz0Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if(hke_z4)then
if(hke_z6[hke_z15])then
set hke_zZZ[hke_z15]=true
if(hke_zzZ[hke_z15])then
call hke_z67(hke_z15,true)
else
if(hke_Z7[hke_z15])then
set hke_Z7[hke_z15]=false
call hke_Zz3Z(hke_z15,0,hke_zz,true)
else
if(hke_Z0)then
call ForGroup(hke_Z8Z[hke_z15],function hke_zzzZ)
else
call hke_zzZZ(hke_z7[hke_z15])
endif
endif
endif
endif
else
if(hke_Z5[hke_z15]==2)then
set hke_Z5[hke_z15]=3
else
set hke_Z5[hke_z15]=0
endif
endif
set hke_z05=null
endfunction
function hke_zz1Z takes unit hke_z65 returns nothing
call ModifyHeroStat(0,hke_z65,0,hke_zz)
call ModifyHeroStat(1,hke_z65,0,hke_zz)
call ModifyHeroStat(2,hke_z65,0,hke_zz)
endfunction
function hke_zz2Z takes nothing returns nothing
local unit hke_z65=GetEnumUnit()
call hke_zz1Z(hke_z65)
set hke_z65=null
endfunction
function hke_zz3Z takes nothing returns nothing
local integer hke_z15
local player hke_z05
set hke_z05=GetTriggerPlayer()
set hke_z15=GetPlayerId(hke_z05)
if(hke_z4)then
if(hke_z6[hke_z15])then
set hke_zzZ[hke_z15]=true
if(hke_zZZ[hke_z15])then
call hke_z67(hke_z15,true)
else
if(hke_Z7[hke_z15])then
set hke_Z7[hke_z15]=false
call hke_Zz3Z(hke_z15,2,hke_zz,true)
else
if((hke_Z1Z[hke_z15])and(hke_Z2Z[hke_z15]))then
if(hke_Z0)then
call ForGroup(hke_Z8Z[hke_z15],function hke_zz2Z)
else
call hke_zz1Z(hke_z7[hke_z15])
endif
else
call hke_zz5(hke_z05,hke_zZ,true)
call hke_z35(hke_z05,hke_Zz,true)
endif
endif
endif
endif
else
set hke_Z5[hke_z15]=0
endif
set hke_z05=null
endfunction
function hke_zz4Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z59Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
call hke_Z5ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z52Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
set hke_z13=false
call DoNotSaveReplay()
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_zz5Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_ZZzZ(hke_z15,hke_z05)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Zz1Z(hke_z05)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_USED,5)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call SetPlayerStateBJ(hke_z05,PLAYER_STATE_RESOURCE_FOOD_CAP,100)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
if(GetPlayerHandicapBJ(hke_z05)==200.)then
call SetPlayerHandicapBJ(hke_z05,100)
else
call SetPlayerHandicapBJ(hke_z05,200.)
endif
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
if(GetPlayerHandicapXPBJ(hke_z05)==200.)then
call SetPlayerHandicapXPBJ(hke_z05,100)
else
call SetPlayerHandicapXPBJ(hke_z05,200.)
endif
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_zz5(hke_z05,hke_Z2,true)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_z35(hke_z05,hke_z2,true)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
call hke_zz5(hke_z05,hke_Z2,false)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_z35(hke_z05,hke_z2,false)
call hke_Z55Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_zz6Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z96(hke_z40[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z96(hke_z50[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z96(hke_z60[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z96(hke_z80[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z96(hke_z70[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
call hke_Z96(hke_z90[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z96(hke_ZZ3[hke_z15])
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_z16(hke_z15,true)
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
call hke_z16(hke_z15,false)
call hke_Z46Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_zz7Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z24Z(hke_z15,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z21Z(hke_z15,1097886070,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z26Z(hke_z15,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z21Z(hke_z15,1094937907,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z21Z(hke_z15,1098150517,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
call hke_Z29Z(hke_z15,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_Z48Z(hke_z15,hke_z05)
endif
if((hke_z78==hke_Zz0[hke_z15])and((hke_z9Z)or(hke_z05==hke_z5)))then
call hke_Z3ZZ(hke_z15,true)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z34Z(hke_z15)
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_zz8Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z21Z(hke_z15,1095659625,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z21Z(hke_z15,1095066998,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z21Z(hke_z15,1095262824,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z21Z(hke_z15,1095721842,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z21Z(hke_z15,1096119411,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
call hke_Z21Z(hke_z15,1095656289,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z21Z(hke_z15,1095657827,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_Z21Z(hke_z15,1095332722,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
call hke_Z21Z(hke_z15,1094935923,true)
call hke_Z48Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_zz9Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z21Z(hke_z15,1095262562,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z21Z(hke_z15,1095065960,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z21Z(hke_z15,1095721317,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z21Z(hke_z15,1095065970,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z21Z(hke_z15,1096114549,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
call hke_Z21Z(hke_z15,1096114550,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z21Z(hke_z15,1095262564,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_Z21Z(hke_z15,1094934883,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
call hke_Z21Z(hke_z15,1097818482,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z21Z(hke_z15,1096905580,true)
call hke_Z49Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z31Z(hke_z15,false)
call hke_Z49Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z0ZZ takes nothing returns nothing
local integer hke_Z75=0
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z05==hke_z5)and(hke_z6[hke_z15]))then
loop
exitwhen hke_Z75>11
if(hke_z78==hke_ZzZ[hke_Z75])then
if(hke_z6[hke_Z75])then
call hke_z47(hke_Z75)
else
call hke_z57(hke_Z75,Player(hke_Z75))
endif
call hke_Z5ZZ(hke_z15,hke_z05)
endif
set hke_Z75=hke_Z75+1
endloop
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z0zZ takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local integer hke_Z75=0
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z05==hke_z5)and(hke_z6[hke_z15]))then
loop
exitwhen hke_Z75>12
if(hke_z78==hke_ZzZ[hke_Z75])then
set hke_Z5z=hke_Z75
call hke_Z53Z(hke_z15,hke_z05)
endif
set hke_Z75=hke_Z75+1
endloop
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z00Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local player hke_Z65
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z05==hke_z5)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z57Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
set hke_Z65=Player(hke_Z5z)
if(GetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_GOLD)==0)then
call SetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_GOLD,hke_z22)
else
call SetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_GOLD,0)
endif
set hke_Z65=null
call hke_Z53Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
set hke_Z65=Player(hke_Z5z)
if(GetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_LUMBER)==0)then
call SetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_LUMBER,hke_z22)
else
call SetPlayerTaxRate(hke_Z65,hke_z05,PLAYER_STATE_RESOURCE_LUMBER,0)
endif
set hke_Z65=null
call hke_Z53Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z52Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z01Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local integer hke_Z75=hke_Z5z
local player hke_Z65=Player(hke_Z75)
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
call hke_ZZzZ(hke_Z75,hke_Z65)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Zz1Z(hke_Z65)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call SetPlayerStateBJ(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED,5)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call SetPlayerStateBJ(hke_Z65,PLAYER_STATE_RESOURCE_FOOD_CAP,100)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
if(GetPlayerHandicapBJ(hke_Z65)==200.)then
call SetPlayerHandicapBJ(hke_Z65,100)
else
call SetPlayerHandicapBJ(hke_Z65,200.)
endif
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
if(GetPlayerHandicapXPBJ(hke_Z65)==200.)then
call SetPlayerHandicapXPBJ(hke_Z65,100)
else
call SetPlayerHandicapXPBJ(hke_Z65,200.)
endif
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_zz5(hke_Z65,hke_Z2,true)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
call hke_z35(hke_Z65,hke_z2,true)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
call hke_zz5(hke_Z65,hke_Z2,false)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_z35(hke_Z65,hke_z2,false)
call hke_Z56Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z53Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_z78=null
endfunction
function hke_z02Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local integer hke_Z75=hke_Z5z
local player hke_Z65=Player(hke_Z75)
call hke_Z44Z(hke_z15,hke_z05,false)
if(hke_z78==hke_z2z[hke_z15])then
if(IsPlayerAlly(hke_Z65,hke_z05))then
call SetPlayerAllianceStateBJ(hke_Z65,hke_z05,0)
else
call SetPlayerAllianceStateBJ(hke_Z65,hke_z05,3)
endif
call hke_Z57Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
if(GetPlayerAlliance(hke_Z65,hke_z05,ALLIANCE_SHARED_ADVANCED_CONTROL))then
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_ADVANCED_CONTROL,false,hke_z5)
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_CONTROL,false,hke_z5)
else
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_ADVANCED_CONTROL,true,hke_z5)
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_CONTROL,true,hke_z5)
endif
call hke_Z57Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
if(GetPlayerAlliance(hke_Z65,hke_z05,ALLIANCE_SHARED_XP))then
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_XP,false,hke_z5)
else
call SetPlayerAllianceBJ(hke_Z65,ALLIANCE_SHARED_XP,true,hke_z5)
endif
call hke_Z57Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
if(IsPlayerAlly(hke_z05,hke_Z65))then
call SetPlayerAllianceStateBJ(hke_z5,hke_Z65,0)
else
call SetPlayerAllianceStateBJ(hke_z5,hke_Z65,2)
endif
call hke_Z57Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z53Z(hke_z15,hke_z05)
endif
set hke_z05=null
set hke_Z65=null
set hke_z78=null
endfunction
function hke_z03Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local integer hke_Z75
local unit hke_z65=hke_z7[hke_z15]
local player hke_Z65=GetOwningPlayer(hke_z65)
call hke_Z44Z(hke_z15,hke_z05,false)
if(hke_z4)and(hke_z6[hke_z15])then
if(hke_z78==hke_z2z[hke_z15])then
call SetHeroLevelBJ(hke_z65,GetHeroLevel(hke_z65)+hke_Z0Z,false)
endif
if(hke_z78==hke_z4z[hke_z15])then
call ModifyHeroStat(1,hke_z65,0,hke_Z3)
call ModifyHeroStat(0,hke_z65,0,hke_Z3)
call ModifyHeroStat(2,hke_z65,0,hke_Z3)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_z98(hke_z15,false)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z77(hke_z65,hke_z05,1)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_ZZ3Z(hke_z65)
endif
if(hke_z78==hke_z8z[hke_z15])then
if(hke_Z5Z)then
if(hke_Z65!=hke_z5)then
call UnitShareVisionBJ(true,hke_z65,hke_z05)
endif
else
call UnitShareVisionBJ(true,hke_z65,hke_z05)
endif
endif
if(hke_z78==hke_z7z[hke_z15])then
call hke_Z47Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
if(hke_Z5Z)then
if(hke_Z65!=hke_z5)then
call SetUnitOwner(hke_z65,hke_z05,true)
endif
else
call SetUnitOwner(hke_z65,hke_z05,true)
endif
endif
if(hke_z78==hke_Zz0[hke_z15])then
call RemoveUnit(hke_z65)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z54Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_z65=null
set hke_z78=null
endfunction
function hke_z04Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z05==hke_z5)and(hke_z6[hke_z15]))then
if(hke_z78==hke_z2z[hke_z15])then
set hke_Z0=not(hke_Z0)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z58Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
set hke_Z5Z=not(hke_Z5Z)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
set hke_Z6Z=not(hke_Z6Z)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
set hke_Z7Z=not(hke_Z7Z)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
set hke_z9Z=not(hke_z9Z)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z7z[hke_z15])then
set hke_ZZz=not(hke_ZZz)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z6z[hke_z15])then
set hke_z7Z=not(hke_z7Z)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_Zz0[hke_z15])then
set hke_Z52=not(hke_Z52)
call hke_Z51Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_ZZ0[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z05Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if(hke_z78==hke_z2z[hke_z15])then
set hke_z61=1
call hke_Z58Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
set hke_z61=2
call hke_Z58Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
set hke_z61=3
call hke_Z58Z(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z51Z(hke_z15,hke_z05)
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z06Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
local integer hke_Z75=0
local player hke_Z65
local unit hke_z65=hke_z7[hke_z15]
call hke_Z44Z(hke_z15,hke_z05,false)
if((hke_z4)and(hke_z05==hke_z5)and(hke_z6[hke_z15]))then
loop
exitwhen hke_Z75>12
if(hke_z78==hke_ZzZ[hke_Z75])then
set hke_Z65=Player(hke_Z75)
call SetUnitOwner(hke_z7[hke_z15],hke_Z65,true)
endif
set hke_Z75=hke_Z75+1
endloop
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z50Z(hke_z15,hke_z05)
endif
endif
set hke_z05=null
set hke_Z65=null
set hke_z78=null
set hke_z65=null
endfunction
function hke_z07Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if(hke_z78==hke_z2z[hke_z15])then
call hke_z36(hke_z05)
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
set hke_z31[hke_z15]=not(hke_z31[hke_z15])
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
set hke_Z33[hke_z15]=not(hke_Z33[hke_z15])
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z38(hke_z15,not(hke_Z53[hke_z15]))
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
set hke_Z63[hke_z15]=not(hke_Z63[hke_z15])
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_z8z[hke_z15])then
set hke_Z43[hke_z15]=not(hke_Z43[hke_z15])
call hke_Z6ZZ(hke_z15,hke_z05)
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z08Z takes nothing returns nothing
local player hke_z05=GetTriggerPlayer()
local integer hke_z15=GetPlayerId(hke_z05)
local button hke_z78=GetClickedButton()
call hke_Z44Z(hke_z15,hke_z05,false)
if(hke_z78==hke_z2z[hke_z15])then
call hke_Z6zZ(hke_z05)
endif
if(hke_z78==hke_z4z[hke_z15])then
call hke_Z60Z(hke_z05)
endif
if(hke_z78==hke_z5z[hke_z15])then
call hke_Z61Z(hke_z05)
endif
if(hke_z78==hke_z3z[hke_z15])then
call hke_Z62Z(hke_z05)
endif
if(hke_z78==hke_z9z[hke_z15])then
call hke_Z64Z()
endif
if(hke_z78==hke_Z00[hke_z15])then
call hke_Z45Z(hke_z15,hke_z05)
endif
set hke_z05=null
set hke_z78=null
endfunction
function hke_z09Z takes nothing returns nothing
local integer hke_Z75
local player hke_Z65
local player hke_z05
set hke_z73=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(hke_z73,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(hke_z73,function hke_Z9ZZ)
call TriggerAddCondition(hke_z43,Condition(function hke_Z73Z))
set hke_Z75=0
loop
exitwhen hke_Z75>11
set hke_zz1[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_zz1[hke_Z75],function hke_Z79Z)
call DisableTrigger(hke_zz1[hke_Z75])
set hke_Z30[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z30[hke_Z75],function hke_Z88Z)
call DisableTrigger(hke_Z30[hke_Z75])
set hke_Z50[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z50[hke_Z75],function hke_Z89Z)
call DisableTrigger(hke_Z50[hke_Z75])
set hke_Z40[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z40[hke_Z75],function hke_Z91Z)
call DisableTrigger(hke_Z40[hke_Z75])
set hke_Z60[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z60[hke_Z75],function hke_Z90Z)
call DisableTrigger(hke_Z60[hke_Z75])
set hke_Z6z[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z6z[hke_Z75],function hke_Z9zZ)
call DisableTrigger(hke_Z6z[hke_Z75])
set hke_Z70[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z70[hke_Z75],function hke_zZ1Z)
call DisableTrigger(hke_Z70[hke_Z75])
set hke_Z80[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z80[hke_Z75],function hke_zZ2Z)
call DisableTrigger(hke_Z80[hke_Z75])
set hke_Z90[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z90[hke_Z75],function hke_zZ3Z)
call DisableTrigger(hke_Z90[hke_Z75])
set hke_zZ0[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_zZ0[hke_Z75],function hke_zZ4Z)
call DisableTrigger(hke_zZ0[hke_Z75])
set hke_zz0[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_zz0[hke_Z75],function hke_zZ5Z)
call DisableTrigger(hke_zz0[hke_Z75])
set hke_z00[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z00[hke_Z75],function hke_zZ6Z)
set hke_z10[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z10[hke_Z75],function hke_zZ9Z)
set hke_z20[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z20[hke_Z75],function hke_zz0Z)
set hke_z30[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z30[hke_Z75],function hke_zz3Z)
set hke_z40[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z40[hke_Z75],function hke_Z81Z)
call DisableTrigger(hke_z40[hke_Z75])
set hke_z50[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z50[hke_Z75],function hke_Z82Z)
call DisableTrigger(hke_z50[hke_Z75])
set hke_z60[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z60[hke_Z75],function hke_Z83Z)
call DisableTrigger(hke_z60[hke_Z75])
set hke_z70[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z70[hke_Z75],function hke_Z84Z)
call DisableTrigger(hke_z70[hke_Z75])
set hke_z80[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z80[hke_Z75],function hke_Z85Z)
call DisableTrigger(hke_z80[hke_Z75])
set hke_z90[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z90[hke_Z75],function hke_Z86Z)
call DisableTrigger(hke_z90[hke_Z75])
set hke_ZZ3[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_ZZ3[hke_Z75],function hke_Z87Z)
call DisableTrigger(hke_ZZ3[hke_Z75])
set hke_ZZ1[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_ZZ1[hke_Z75],function hke_zz4Z)
set hke_Zz2[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Zz2[hke_Z75],function hke_zz5Z)
set hke_Zz1[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Zz1[hke_Z75],function hke_zz6Z)
set hke_Z01[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z01[hke_Z75],function hke_zz7Z)
set hke_Z81[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z81[hke_Z75],function hke_zz8Z)
set hke_Z21[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z21[hke_Z75],function hke_zz9Z)
set hke_Z51[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z51[hke_Z75],function hke_z0ZZ)
set hke_Z41[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z41[hke_Z75],function hke_z0zZ)
set hke_Z61[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z61[hke_Z75],function hke_z00Z)
set hke_Z12[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z12[hke_Z75],function hke_z02Z)
set hke_Z02[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z02[hke_Z75],function hke_z01Z)
set hke_Z71[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z71[hke_Z75],function hke_z03Z)
set hke_Z31[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z31[hke_Z75],function hke_z04Z)
set hke_Z22[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z22[hke_Z75],function hke_z05Z)
set hke_Z11[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z11[hke_Z75],function hke_z06Z)
set hke_Z23[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z23[hke_Z75],function hke_z08Z)
set hke_Z13[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_Z13[hke_Z75],function hke_z07Z)
call DisableTrigger(hke_ZZ1[hke_Z75])
call DisableTrigger(hke_Zz1[hke_Z75])
call DisableTrigger(hke_Zz2[hke_Z75])
call DisableTrigger(hke_Z01[hke_Z75])
call DisableTrigger(hke_Z81[hke_Z75])
call DisableTrigger(hke_Z21[hke_Z75])
call DisableTrigger(hke_Z51[hke_Z75])
call DisableTrigger(hke_Z41[hke_Z75])
call DisableTrigger(hke_Z61[hke_Z75])
call DisableTrigger(hke_Z12[hke_Z75])
call DisableTrigger(hke_Z02[hke_Z75])
call DisableTrigger(hke_Z71[hke_Z75])
call DisableTrigger(hke_Z31[hke_Z75])
call DisableTrigger(hke_Z22[hke_Z75])
call DisableTrigger(hke_Z11[hke_Z75])
call DisableTrigger(hke_Z23[hke_Z75])
call DisableTrigger(hke_Z13[hke_Z75])
set hke_z01[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z01[hke_Z75],function hke_Z95Z)
set hke_z11[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z11[hke_Z75],function hke_Z98Z)
set hke_z21[hke_Z75]=CreateTrigger()
call TriggerAddAction(hke_z21[hke_Z75],function hke_zZZZ)
call DisableTrigger(hke_z01[hke_Z75])
call DisableTrigger(hke_z11[hke_Z75])
call DisableTrigger(hke_z21[hke_Z75])
set hke_Z65=Player(hke_Z75)
if((GetPlayerController(hke_Z65)==MAP_CONTROL_USER)and(GetPlayerSlotState(hke_Z65)==PLAYER_SLOT_STATE_PLAYING))then
set hke_Z8Z[hke_Z75]=CreateGroup()
call TriggerRegisterPlayerStateEvent(hke_z63,hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED,LESS_THAN,0)
call TriggerRegisterPlayerKeyEventBJ(hke_z10[hke_Z75],hke_Z65,0,2)
call TriggerRegisterPlayerKeyEventBJ(hke_z00[hke_Z75],hke_Z65,0,3)
call TriggerRegisterPlayerKeyEventBJ(hke_z20[hke_Z75],hke_Z65,0,1)
call TriggerRegisterPlayerKeyEventBJ(hke_z30[hke_Z75],hke_Z65,0,0)
call TriggerRegisterPlayerChatEvent(hke_z53,hke_Z65,SubStringBJ(hke_Z0z,139,146),false)
call TriggerRegisterPlayerStateEvent(hke_z63,hke_Z65,PLAYER_STATE_RESOURCE_FOOD_USED,LESS_THAN,0)
set hke_Z9Z[hke_Z75]=GetPlayerStartLocationLoc(hke_Z65)
endif
set hke_Z75=hke_Z75+1
endloop
call DisableTrigger(hke_z73)
set hke_z8Z=CreateGroup()
set hke_z8=GetWorldBounds()
set hke_z2Z[0]=30.
set hke_z2Z[1]=60.
set hke_z2Z[2]=90.
set hke_z3Z[0]=50.
set hke_z3Z[1]=72.
set hke_z3Z[2]=95.
set hke_Z75=0
loop
exitwhen hke_Z75>20
set hke_z02[hke_Z75]=null
set hke_Z75=hke_Z75+1
endloop
set hke_Z75=0
loop
exitwhen(hke_Z75>12)
set hke_Z5[hke_Z75]=0
set hke_z6[hke_Z75]=false
set hke_Z7[hke_Z75]=false
set hke_Z8[hke_Z75]=0
set hke_Z1Z[hke_Z75]=false
set hke_Z2Z[hke_Z75]=false
set hke_Z3Z[hke_Z75]=CreateTimer()
set hke_Z8Z[hke_Z75]=CreateGroup()
set hke_zZZ[hke_Z75]=false
set hke_zzZ[hke_Z75]=false
set hke_z0Z[hke_Z75]=CreateTimer()
set hke_z1Z[hke_Z75]=false
set hke_Z3z[hke_Z75]=false
set hke_Z4z[hke_Z75]=0
set hke_Z20[hke_Z75]=DialogCreate()
set hke_Z91[hke_Z75]=DialogCreate()
set hke_zZ1[hke_Z75]=DialogCreate()
set hke_z31[hke_Z75]=false
set hke_Z32[hke_Z75]=0
set hke_Z42[hke_Z75]=false
set hke_Zz3[hke_Z75]=DialogCreate()
set hke_Z33[hke_Z75]=false
set hke_Z43[hke_Z75]=true
set hke_Z53[hke_Z75]=false
set hke_Z63[hke_Z75]=false
set hke_Z73[hke_Z75]=CreateTimer()
set hke_Z75=hke_Z75+1
endloop
set hke_Z75=0
loop
exitwhen(hke_Z75>3)
set hke_Z75=hke_Z75+1
endloop
set hke_Z75=0
loop
exitwhen(hke_Z75>21)
set hke_z12[hke_Z75]=false
set hke_Z75=hke_Z75+1
endloop
call TriggerRegisterTimerEvent(hke_z23,.01,false)
call TriggerAddAction(hke_z23,function hke_Z7zZ)
call TriggerAddAction(hke_z33,function hke_Z70Z)
call TriggerAddAction(hke_z43,function hke_Z74Z)
call TriggerAddAction(hke_z53,function hke_Z8zZ)
call TriggerAddAction(hke_z63,function hke_Z80Z)
call TriggerRegisterAnyUnitEventBJ(hke_z73,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(hke_z73,function hke_Z9ZZ)
call TriggerRegisterAnyUnitEventBJ(hke_z83,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(hke_z83,function hke_Z93Z)
call DisableTrigger(hke_z83)
call hke_Z69Z()
call SetPlayerName(Player(12),"中立生物")
set hke_Z65=null
endfunction
function YDTRIGGER_H2I takes handle h returns integer
return h
return 0
endfunction
function YDTRIGGER_S2I takes string s returns integer
return s
return 0
endfunction
function YDTRIGGER_GET_timer takes string table,string key returns timer
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_trigger takes string table,string key returns trigger
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_unit takes string table,string key returns unit
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_item takes string table,string key returns item
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_group takes string table,string key returns group
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_player takes string table,string key returns player
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_location takes string table,string key returns location
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_destructable takes string table,string key returns destructable
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_force takes string table,string key returns force
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_rect takes string table,string key returns rect
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_region takes string table,string key returns region
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_sound takes string table,string key returns sound
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_effect takes string table,string key returns effect
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_unitpool takes string table,string key returns unitpool
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_itempool takes string table,string key returns itempool
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_quest takes string table,string key returns quest
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_questitem takes string table,string key returns questitem
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_timerdialog takes string table,string key returns timerdialog
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_leaderboard takes string table,string key returns leaderboard
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_multiboard takes string table,string key returns multiboard
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_multiboarditem takes string table,string key returns multiboarditem
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_trackable takes string table,string key returns trackable
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_dialog takes string table,string key returns dialog
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_button takes string table,string key returns button
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_texttag takes string table,string key returns texttag
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_lightning takes string table,string key returns lightning
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_image takes string table,string key returns image
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_fogstate takes string table,string key returns fogstate
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTRIGGER_GET_fogmodifier takes string table,string key returns fogmodifier
return GetStoredInteger(YDGC,table,key)
return null
endfunction
function YDTriggerSaveLoadSystem__Init takes nothing returns nothing
set YDGC=InitGameCache("YDWE.wav")
endfunction
function YDWEH2I takes handle h returns integer
return h
return 0
endfunction
function YDWEI2U takes integer i returns unit
return i
return null
endfunction
function YDWEI2It takes integer i returns item
return i
return null
endfunction
function YDWEI2P takes integer i returns player
return i
return null
endfunction
function YDWEI2Tm takes integer i returns timer
return i
return null
endfunction
function YDWEI2T takes integer i returns trigger
return i
return null
endfunction
function YDWEI2Pt takes integer i returns location
return i
return null
endfunction
function YDWEI2G takes integer i returns group
return i
return null
endfunction
function YDWEI2M takes integer i returns multiboard
return i
return null
endfunction
function YDWEI2Mt takes integer i returns multiboarditem
return i
return null
endfunction
function YDWEI2Tt takes integer i returns texttag
return i
return null
endfunction
function YDWEI2Ln takes integer i returns lightning
return i
return null
endfunction
function YDWEI2Rn takes integer i returns region
return i
return null
endfunction
function YDWEI2Rt takes integer i returns rect
return i
return null
endfunction
function YDWEI2Lb takes integer i returns leaderboard
return i
return null
endfunction
function YDWEI2E takes integer i returns effect
return i
return null
endfunction
function YDWEI2Da takes integer i returns destructable
return i
return null
endfunction
function YDWEI2TC takes integer i returns triggercondition
return i
return null
endfunction
function YDWEI2TA takes integer i returns triggeraction
return i
return null
endfunction
function YDWEI2Et takes integer i returns event
return i
return null
endfunction
function YDWEI2Fc takes integer i returns force
return i
return null
endfunction
function YDWEI2BE takes integer i returns boolexpr
return i
return null
endfunction
function YDWEI2Sd takes integer i returns sound
return i
return null
endfunction
function YDWEI2TD takes integer i returns timerdialog
return i
return null
endfunction
function YDWEI2Ta takes integer i returns trackable
return i
return null
endfunction
function YDWEI2D takes integer i returns dialog
return i
return null
endfunction
function YDWEI2Bt takes integer i returns button
return i
return null
endfunction
function YDWEI2Qt takes integer i returns quest
return i
return null
endfunction
function YDWEI2QI takes integer i returns questitem
return i
return null
endfunction
function GetHandleId takes handle h returns integer
return h
return 0
endfunction
function YDWEFlushAllData takes nothing returns nothing
call FlushGameCache(YDGC)
endfunction
function YDWEFlushMissionByInteger takes integer i returns nothing
call FlushStoredMission(YDGC,I2S(i))
endfunction
function YDWEFlushMissionByString takes string s returns nothing
call FlushStoredMission(YDGC,s)
endfunction
function YDWEFlushStoredIntegerByInteger takes integer i,integer j returns nothing
call FlushStoredInteger(YDGC,I2S(i),I2S(j))
endfunction
function YDWEFlushStoredIntegerByString takes string s1,string s2 returns nothing
call FlushStoredInteger(YDGC,s1,s2)
endfunction
function YDWEHaveSavedIntegerByInteger takes integer i,integer j returns boolean
return HaveStoredInteger(YDGC,I2S(i),I2S(j))
endfunction
function YDWEHaveSavedIntegerByString takes string s1,string s2 returns boolean
return HaveStoredInteger(YDGC,s1,s2)
endfunction
function YDWESaveIntegerByInteger takes integer pTable,integer pKey,integer i returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),i)
endfunction
function YDWESaveIntegerByString takes string pTable,string pKey,integer i returns nothing
call StoreInteger(YDGC,pTable,pKey,i)
endfunction
function YDWEGetIntegerByInteger takes integer pTable,integer pKey returns integer
return GetStoredInteger(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetIntegerByString takes string pTable,string pKey returns integer
return GetStoredInteger(YDGC,pTable,pKey)
endfunction
function YDWESaveRealByInteger takes integer pTable,integer pKey,real r returns nothing
call StoreReal(YDGC,I2S(pTable),I2S(pKey),r)
endfunction
function YDWESaveRealByString takes string pTable,string pKey,real r returns nothing
call StoreReal(YDGC,pTable,pKey,r)
endfunction
function YDWEGetRealByInteger takes integer pTable,integer pKey returns real
return GetStoredReal(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetRealByString takes string pTable,string pKey returns real
return GetStoredReal(YDGC,pTable,pKey)
endfunction
function YDWESaveStringByInteger takes integer pTable,integer pKey,string s returns nothing
call StoreString(YDGC,I2S(pTable),I2S(pKey),s)
endfunction
function YDWESaveStringByString takes string pTable,string pKey,string s returns nothing
call StoreString(YDGC,pTable,pKey,s)
endfunction
function YDWEGetStringByInteger takes integer pTable,integer pKey returns string
return GetStoredString(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetStringByString takes string pTable,string pKey returns string
return GetStoredString(YDGC,pTable,pKey)
endfunction
function YDWESaveBooleanByInteger takes integer pTable,integer pKey,boolean b returns nothing
call StoreBoolean(YDGC,I2S(pTable),I2S(pKey),b)
endfunction
function YDWESaveBooleanByString takes string pTable,string pKey,boolean b returns nothing
call StoreBoolean(YDGC,pTable,pKey,b)
endfunction
function YDWEGetBooleanByInteger takes integer pTable,integer pKey returns boolean
return GetStoredBoolean(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetBooleanByString takes string pTable,string pKey returns boolean
return GetStoredBoolean(YDGC,pTable,pKey)
endfunction
function YDWESaveUnitByInteger takes integer pTable,integer pKey,unit u returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(u))
endfunction
function YDWESaveUnitByString takes string pTable,string pKey,unit u returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(u))
endfunction
function YDWEGetUnitByInteger takes integer pTable,integer pKey returns unit
return YDWEI2U(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetUnitByString takes string pTable,string pKey returns unit
return YDWEI2U(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveUnitIDByInteger takes integer pTable,integer pKey,integer uid returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),uid)
endfunction
function YDWESaveUnitIDByString takes string pTable,string pKey,integer uid returns nothing
call StoreInteger(YDGC,pTable,pKey,uid)
endfunction
function YDWEGetUnitIDByInteger takes integer pTable,integer pKey returns integer
return GetStoredInteger(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetUnitIDByString takes string pTable,string pKey returns integer
return GetStoredInteger(YDGC,pTable,pKey)
endfunction
function YDWESaveAbilityIDByInteger takes integer pTable,integer pKey,integer abid returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),abid)
endfunction
function YDWESaveAbilityIDByString takes string pTable,string pKey,integer abid returns nothing
call StoreInteger(YDGC,pTable,pKey,abid)
endfunction
function YDWEGetAbilityIDByInteger takes integer pTable,integer pKey returns integer
return GetStoredInteger(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetAbilityIDByString takes string pTable,string pKey returns integer
return GetStoredInteger(YDGC,pTable,pKey)
endfunction
function YDWESavePlayerByInteger takes integer pTable,integer pKey,player p returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(p))
endfunction
function YDWESavePlayerByString takes string pTable,string pKey,player p returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(p))
endfunction
function YDWEGetPlayerByInteger takes integer pTable,integer pKey returns player
return YDWEI2P(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetPlayerByString takes string pTable,string pKey returns player
return YDWEI2P(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveItemByInteger takes integer pTable,integer pKey,item it returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(it))
endfunction
function YDWESaveItemByString takes string pTable,string pKey,item it returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(it))
endfunction
function YDWEGetItemByInteger takes integer pTable,integer pKey returns item
return YDWEI2It(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetItemByString takes string pTable,string pKey returns item
return YDWEI2It(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveItemIDByInteger takes integer pTable,integer pKey,integer itid returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),itid)
endfunction
function YDWESaveItemIDByString takes string pTable,string pKey,integer itid returns nothing
call StoreInteger(YDGC,pTable,pKey,itid)
endfunction
function YDWEGetItemIDByInteger takes integer pTable,integer pKey returns integer
return GetStoredInteger(YDGC,I2S(pTable),I2S(pKey))
endfunction
function YDWEGetItemIDByString takes string pTable,string pKey returns integer
return GetStoredInteger(YDGC,pTable,pKey)
endfunction
function YDWESaveTimerByInteger takes integer pTable,integer pKey,timer t returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(t))
endfunction
function YDWESaveTimerByString takes string pTable,string pKey,timer t returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(t))
endfunction
function YDWEGetTimerByInteger takes integer pTable,integer pKey returns timer
return YDWEI2Tm(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTimerByString takes string pTable,string pKey returns timer
return YDWEI2Tm(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTriggerByInteger takes integer pTable,integer pKey,trigger trg returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(trg))
endfunction
function YDWESaveTriggerByString takes string pTable,string pKey,trigger trg returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(trg))
endfunction
function YDWEGetTriggerByInteger takes integer pTable,integer pKey returns trigger
return YDWEI2T(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTriggerByString takes string pTable,string pKey returns trigger
return YDWEI2T(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveLocationByInteger takes integer pTable,integer pKey,location pt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(pt))
endfunction
function YDWESaveLocationByString takes string pTable,string pKey,location pt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(pt))
endfunction
function YDWEGetLocationByInteger takes integer pTable,integer pKey returns location
return YDWEI2Pt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetLocationByString takes string pTable,string pKey returns location
return YDWEI2Pt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveGroupByInteger takes integer pTable,integer pKey,group g returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(g))
endfunction
function YDWESaveGroupByString takes string pTable,string pKey,group g returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(g))
endfunction
function YDWEGetGroupByInteger takes integer pTable,integer pKey returns group
return YDWEI2G(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetGroupByString takes string pTable,string pKey returns group
return YDWEI2G(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveMultiboardByInteger takes integer pTable,integer pKey,multiboard m returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(m))
endfunction
function YDWESaveMultiboardByString takes string pTable,string pKey,multiboard m returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(m))
endfunction
function YDWEGetMultiboardByInteger takes integer pTable,integer pKey returns multiboard
return YDWEI2M(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetMultiboardByString takes string pTable,string pKey returns multiboard
return YDWEI2M(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveMultiboardItemByInteger takes integer pTable,integer pKey,multiboarditem mt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(mt))
endfunction
function YDWESaveMultiboardItemByString takes string pTable,string pKey,multiboarditem mt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(mt))
endfunction
function YDWEGetMultiboardItemByInteger takes integer pTable,integer pKey returns multiboarditem
return YDWEI2Mt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetMultiboardItemByString takes string pTable,string pKey returns multiboarditem
return YDWEI2Mt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTextTagByInteger takes integer pTable,integer pKey,texttag tt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(tt))
endfunction
function YDWESaveTextTagByString takes string pTable,string pKey,texttag tt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(tt))
endfunction
function YDWEGetTextTagByInteger takes integer pTable,integer pKey returns texttag
return YDWEI2Tt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTextTagByString takes string pTable,string pKey returns texttag
return YDWEI2Tt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveLightningByInteger takes integer pTable,integer pKey,lightning ln returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(ln))
endfunction
function YDWESaveLightningByString takes string pTable,string pKey,lightning ln returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(ln))
endfunction
function YDWEGetLightningByInteger takes integer pTable,integer pKey returns lightning
return YDWEI2Ln(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetLightningByString takes string pTable,string pKey returns lightning
return YDWEI2Ln(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveRegionByInteger takes integer pTable,integer pKey,region rn returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(rn))
endfunction
function YDWESaveRegionByString takes string pTable,string pKey,region rn returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(rn))
endfunction
function YDWEGetRegionByInteger takes integer pTable,integer pKey returns region
return YDWEI2Rn(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetRegionByString takes string pTable,string pKey returns region
return YDWEI2Rn(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveRectByInteger takes integer pTable,integer pKey,rect rt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(rt))
endfunction
function YDWESaveRectByString takes string pTable,string pKey,rect rt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(rt))
endfunction
function YDWEGetRectByInteger takes integer pTable,integer pKey returns rect
return YDWEI2Rt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetRectByString takes string pTable,string pKey returns rect
return YDWEI2Rt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveLeaderboardByInteger takes integer pTable,integer pKey,leaderboard lb returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(lb))
endfunction
function YDWESaveLeaderboardByString takes string pTable,string pKey,leaderboard lb returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(lb))
endfunction
function YDWEGetLeaderboardByInteger takes integer pTable,integer pKey returns leaderboard
return YDWEI2Lb(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetLeaderboardByString takes string pTable,string pKey returns leaderboard
return YDWEI2Lb(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveEffectByInteger takes integer pTable,integer pKey,effect e returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(e))
endfunction
function YDWESaveEffectByString takes string pTable,string pKey,effect e returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(e))
endfunction
function YDWEGetEffectByInteger takes integer pTable,integer pKey returns effect
return YDWEI2E(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetEffectByString takes string pTable,string pKey returns effect
return YDWEI2E(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveDestructableByInteger takes integer pTable,integer pKey,destructable da returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(da))
endfunction
function YDWESaveDestructableByString takes string pTable,string pKey,destructable da returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(da))
endfunction
function YDWEGetDestructableByInteger takes integer pTable,integer pKey returns destructable
return YDWEI2Da(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetDestructableByString takes string pTable,string pKey returns destructable
return YDWEI2Da(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTriggerConditionByInteger takes integer pTable,integer pKey,triggercondition tc returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(tc))
endfunction
function YDWESaveTriggerConditionByString takes string pTable,string pKey,triggercondition tc returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(tc))
endfunction
function YDWEGetTriggerConditionByInteger takes integer pTable,integer pKey returns triggercondition
return YDWEI2TC(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTriggerConditionByString takes string pTable,string pKey returns triggercondition
return YDWEI2TC(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTriggerActionByInteger takes integer pTable,integer pKey,triggeraction ta returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(ta))
endfunction
function YDWESaveTriggerActionByString takes string pTable,string pKey,triggeraction ta returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(ta))
endfunction
function YDWEGetTriggerActionByInteger takes integer pTable,integer pKey returns triggeraction
return YDWEI2TA(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTriggerActionByString takes string pTable,string pKey returns triggeraction
return YDWEI2TA(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTriggerEventByInteger takes integer pTable,integer pKey,event et returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(et))
endfunction
function YDWESaveTriggerEventByString takes string pTable,string pKey,event et returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(et))
endfunction
function YDWEGetTriggerEventByInteger takes integer pTable,integer pKey returns event
return YDWEI2Et(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTriggerEventByString takes string pTable,string pKey returns event
return YDWEI2Et(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveForceByInteger takes integer pTable,integer pKey,force fc returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(fc))
endfunction
function YDWESaveForceByString takes string pTable,string pKey,force fc returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(fc))
endfunction
function YDWEGetForceByInteger takes integer pTable,integer pKey returns force
return YDWEI2Fc(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetForceByString takes string pTable,string pKey returns force
return YDWEI2Fc(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveBoolexprByInteger takes integer pTable,integer pKey,boolexpr be returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(be))
endfunction
function YDWESaveBoolexprByString takes string pTable,string pKey,boolexpr be returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(be))
endfunction
function YDWEGetBoolexprByInteger takes integer pTable,integer pKey returns boolexpr
return YDWEI2BE(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetBoolexprByString takes string pTable,string pKey returns boolexpr
return YDWEI2BE(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveSoundByInteger takes integer pTable,integer pKey,sound sd returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(sd))
endfunction
function YDWESaveSoundByString takes string pTable,string pKey,sound sd returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(sd))
endfunction
function YDWEGetSoundByInteger takes integer pTable,integer pKey returns sound
return YDWEI2Sd(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetSoundByString takes string pTable,string pKey returns sound
return YDWEI2Sd(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTimerDialogByInteger takes integer pTable,integer pKey,timerdialog td returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(td))
endfunction
function YDWESaveTimerDialogByString takes string pTable,string pKey,timerdialog td returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(td))
endfunction
function YDWEGetTimerDialogByInteger takes integer pTable,integer pKey returns timerdialog
return YDWEI2TD(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTimerDialogByString takes string pTable,string pKey returns timerdialog
return YDWEI2TD(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveTrackableByInteger takes integer pTable,integer pKey,trackable ta returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(ta))
endfunction
function YDWESaveTrackableByString takes string pTable,string pKey,trackable ta returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(ta))
endfunction
function YDWEGetTrackableByInteger takes integer pTable,integer pKey returns trackable
return YDWEI2Ta(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetTrackableByString takes string pTable,string pKey returns trackable
return YDWEI2Ta(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveDialogByInteger takes integer pTable,integer pKey,dialog d returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(d))
endfunction
function YDWESaveDialogByString takes string pTable,string pKey,dialog d returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(d))
endfunction
function YDWEGetDialogByInteger takes integer pTable,integer pKey returns dialog
return YDWEI2D(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetDialogByString takes string pTable,string pKey returns dialog
return YDWEI2D(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveButtonByInteger takes integer pTable,integer pKey,button bt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(bt))
endfunction
function YDWESaveButtonByString takes string pTable,string pKey,button bt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(bt))
endfunction
function YDWEGetButtonByInteger takes integer pTable,integer pKey returns button
return YDWEI2Bt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetButtonByString takes string pTable,string pKey returns button
return YDWEI2Bt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveQuestByInteger takes integer pTable,integer pKey,quest qt returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(qt))
endfunction
function YDWESaveQuestByString takes string pTable,string pKey,quest qt returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(qt))
endfunction
function YDWEGetQuestByInteger takes integer pTable,integer pKey returns quest
return YDWEI2Qt(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetQuestByString takes string pTable,string pKey returns quest
return YDWEI2Qt(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWESaveQuestItemByInteger takes integer pTable,integer pKey,questitem qi returns nothing
call StoreInteger(YDGC,I2S(pTable),I2S(pKey),YDWEH2I(qi))
endfunction
function YDWESaveQuestItemByString takes string pTable,string pKey,questitem qi returns nothing
call StoreInteger(YDGC,pTable,pKey,YDWEH2I(qi))
endfunction
function YDWEGetQuestItemByInteger takes integer pTable,integer pKey returns questitem
return YDWEI2QI(GetStoredInteger(YDGC,I2S(pTable),I2S(pKey)))
endfunction
function YDWEGetQuestItemByString takes string pTable,string pKey returns questitem
return YDWEI2QI(GetStoredInteger(YDGC,pTable,pKey))
endfunction
function YDWES2I takes string s returns integer
return s
return 0
endfunction
function GetSpellTargetX takes nothing returns real
local location point=GetSpellTargetLoc()
local real x=GetLocationX(point)
call RemoveLocation(point)
set point=null
return x
endfunction
function GetSpellTargetY takes nothing returns real
local location point=GetSpellTargetLoc()
local real y=GetLocationY(point)
call RemoveLocation(point)
set point=null
return y
endfunction
function YDWECoordinateX takes real x returns real
return RMinBJ(RMaxBJ(x,yd_MapMinX),yd_MapMaxX)
endfunction
function YDWECoordinateY takes real y returns real
return RMinBJ(RMaxBJ(y,yd_MapMinY),yd_MapMaxY)
endfunction
function YDWEDistanceBetweenUnits takes unit a,unit b returns real
return SquareRoot((GetUnitX(a)-GetUnitX(b))*(GetUnitX(a)-GetUnitX(b))+(GetUnitY(a)-GetUnitY(b))*(GetUnitY(a)-GetUnitY(b)))
endfunction
function YDWEAngleBetweenUnits takes unit fromUnit,unit toUnit returns real
return bj_RADTODEG*Atan2(GetUnitY(toUnit)-GetUnitY(fromUnit),GetUnitX(toUnit)-GetUnitX(fromUnit))
endfunction
function YDWEGetRect takes real x,real y,real width,real height returns rect
return Rect(x-width*.5,y-height*.5,x+width*.5,y+height*.5)
endfunction
function YDWEFlyEnable takes unit u returns nothing
call UnitAddAbility(u,'Amrf')
call UnitRemoveAbility(u,'Amrf')
endfunction
function YDWEId2S takes integer value returns string
local string charMap=bj_AllString
local string result=""
local integer remainingValue=value
local integer charValue
local integer byteno
set byteno=0
loop
set charValue=ModuloInteger(remainingValue,256)
set remainingValue=remainingValue/ 256
set result=SubString(charMap,charValue,charValue+1)+result
set byteno=byteno+1
exitwhen byteno==4
endloop
return result
endfunction
function YDWES2Id takes string targetstr returns integer
local string originstr=bj_AllString
local integer strlength=StringLength(targetstr)
local integer a=0
local integer b=0
local integer numx=1
local integer result=0
loop
exitwhen b>strlength-1
set numx=R2I(Pow(256,strlength-1-b))
set a=1
loop
exitwhen a>$FF
if SubString(targetstr,b,b+1)==SubString(originstr,a,a+1)then
set result=result+a*numx
set a=256
endif
set a=a+1
endloop
set b=b+1
endloop
return result
endfunction
function YDWES2UnitId takes string targetstr returns integer
return YDWES2Id(targetstr)
endfunction
function YDWES2ItemId takes string targetstr returns integer
return YDWES2Id(targetstr)
endfunction
function GetLastAbilityCastingUnit takes nothing returns unit
return bj_lastAbilityCastingUnit
endfunction
function GetLastAbilityTargetUnit takes nothing returns unit
return bj_lastAbilityTargetUnit
endfunction
function YDWESetMapLimitCoordinate takes real MinX,real MaxX,real MinY,real MaxY returns nothing
set yd_MapMaxX=MaxX
set yd_MapMinX=MinX
set yd_MapMaxY=MaxY
set yd_MapMinY=MinY
endfunction
function YDWESyStemAbilityCastingOverTriggerAction takes unit hero,integer index returns nothing
local integer i=0
loop
exitwhen i>=YDWEBase___AbilityCastingOverEventNumber
if YDWEBase___AbilityCastingOverEventType[i]==index then
set bj_lastAbilityCastingUnit=hero
if YDWEBase___AbilityCastingOverEventQueue[i]!=null and TriggerEvaluate(YDWEBase___AbilityCastingOverEventQueue[i])and IsTriggerEnabled(YDWEBase___AbilityCastingOverEventQueue[i])then
call TriggerExecute(YDWEBase___AbilityCastingOverEventQueue[i])
endif
endif
set i=i+1
endloop
endfunction
function YDWESyStemAbilityCastingOverRegistTrigger takes trigger trg,integer index returns nothing
set YDWEBase___AbilityCastingOverEventQueue[YDWEBase___AbilityCastingOverEventNumber]=trg
set YDWEBase___AbilityCastingOverEventType[YDWEBase___AbilityCastingOverEventNumber]=index
set YDWEBase___AbilityCastingOverEventNumber=YDWEBase___AbilityCastingOverEventNumber+1
endfunction
function YDWECreateUnitPool takes nothing returns nothing
set bj_lastCreatedUnitPool=CreateUnitPool()
endfunction
function YDWEPlaceRandomUnit takes unitpool up,player p,real x,real y,real face returns nothing
set bj_lastPoolAbstractedUnit=PlaceRandomUnit(up,p,x,y,face)
endfunction
function YDWEGetLastUnitPool takes nothing returns unitpool
return bj_lastCreatedUnitPool
endfunction
function YDWEGetLastPoolAbstractedUnit takes nothing returns unit
return bj_lastPoolAbstractedUnit
endfunction
function YDWECreateItemPool takes nothing returns nothing
set bj_lastCreatedItemPool=CreateItemPool()
endfunction
function YDWEPlaceRandomItem takes itempool ip,real x,real y returns nothing
set bj_lastPoolAbstractedItem=PlaceRandomItem(ip,x,y)
endfunction
function YDWEGetLastItemPool takes nothing returns itempool
return bj_lastCreatedItemPool
endfunction
function YDWEGetLastPoolAbstractedItem takes nothing returns item
return bj_lastPoolAbstractedItem
endfunction
function YDWESetAttackDamageWeaponType takes attacktype at,damagetype dt,weapontype wt returns nothing
set bj_lastSetAttackType=at
set bj_lastSetDamageType=dt
set bj_lastSetWeaponType=wt
endfunction
function YDWEGetUnitItemSoftId takes unit hero,item it returns integer
local integer i=0
loop
exitwhen i>5
if UnitItemInSlot(hero,i)==it then
return i+1
endif
set i=i+1
endloop
return 0
endfunction
function YDWEVersion_Display takes nothing returns boolean
call DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,30,"|cFF1E90FF当前编辑器版本为： |r|cFF00FF00YDWE 1.24.1.1554")
return false
endfunction
function YDWEVersion_Init takes nothing returns nothing
local trigger t=CreateTrigger()
local integer i=0
loop
exitwhen i==$C
call TriggerRegisterPlayerChatEvent(t,Player(i),"YDWE Version",true)
set i=i+1
endloop
call TriggerAddCondition(t,Condition(function YDWEVersion_Display))
set t=null
endfunction
function InitializeYD takes nothing returns nothing
set yd_MapMinX=GetCameraBoundMinX()-GetCameraMargin(CAMERA_MARGIN_LEFT)
set yd_MapMinY=GetCameraBoundMinY()-GetCameraMargin(CAMERA_MARGIN_BOTTOM)
set yd_MapMaxX=GetCameraBoundMaxX()+GetCameraMargin(CAMERA_MARGIN_RIGHT)
set yd_MapMaxY=GetCameraBoundMaxY()+GetCameraMargin(CAMERA_MARGIN_TOP)
call YDWEVersion_Init()
endfunction
function YDWECountLivingPlayerUnitsOfTypeIdNull takes integer unitId,player whichPlayer returns integer
local group g
local integer matchedCount
set g=CreateGroup()
set bj_livingPlayerUnitsTypeId=unitId
call GroupEnumUnitsOfPlayer(g,whichPlayer,filterLivingPlayerUnitsOfTypeId)
set matchedCount=CountUnitsInGroup(g)
call DestroyGroup(g)
set g=null
return matchedCount
endfunction
function YDWEGetForceOfPlayerNull takes player whichPlayer returns force
local force f=CreateForce()
call ForceAddPlayer(f,whichPlayer)
set yd_NullTempForce=f
set f=null
return yd_NullTempForce
endfunction
function YDWEGetPlayersAlliesNull takes player whichPlayer returns force
local force f=CreateForce()
call ForceEnumAllies(f,whichPlayer,null)
set yd_NullTempForce=f
set f=null
return yd_NullTempForce
endfunction
function YDWEGetPlayersEnemiesNull takes player whichPlayer returns force
local force f=CreateForce()
call ForceEnumEnemies(f,whichPlayer,null)
set yd_NullTempForce=f
set f=null
return yd_NullTempForce
endfunction
function YDWEGetUnitsInRangeOfLocMatchingNull takes real radius,location whichLocation,boolexpr filter returns group
local group g=CreateGroup()
call GroupEnumUnitsInRangeOfLoc(g,whichLocation,radius,filter)
call DestroyBoolExpr(filter)
set yd_NullTempGroup=g
set g=null
return yd_NullTempGroup
endfunction
function YDWEGetUnitsInRectMatchingNull takes rect r,boolexpr filter returns group
local group g=CreateGroup()
call GroupEnumUnitsInRect(g,r,filter)
call DestroyBoolExpr(filter)
set yd_NullTempGroup=g
set g=null
return yd_NullTempGroup
endfunction
function YDWEGetUnitsOfPlayerAndTypeIdNull takes player whichPlayer,integer unitid returns group
local group g=CreateGroup()
set bj_groupEnumTypeId=unitid
call GroupEnumUnitsOfPlayer(g,whichPlayer,filterGetUnitsOfPlayerAndTypeId)
set yd_NullTempGroup=g
set g=null
return yd_NullTempGroup
endfunction
function YDWEMultiboardSetItemIconBJNull takes multiboard mb,integer col,integer row,string iconFileName returns nothing
local integer curRow=0
local integer curCol=0
local integer numRows=MultiboardGetRowCount(mb)
local integer numCols=MultiboardGetColumnCount(mb)
local multiboarditem mbitem=null
loop
set curRow=curRow+1
exitwhen curRow>numRows
if(row==0 or row==curRow)then
set curCol=0
loop
set curCol=curCol+1
exitwhen curCol>numCols
if(col==0 or col==curCol)then
set mbitem=MultiboardGetItem(mb,curRow-1,curCol-1)
call MultiboardSetItemIcon(mbitem,iconFileName)
call MultiboardReleaseItem(mbitem)
endif
endloop
endif
endloop
set mbitem=null
endfunction
function YDWEMultiboardSetItemStyleBJNull takes multiboard mb,integer col,integer row,boolean showValue,boolean showIcon returns nothing
local integer curRow=0
local integer curCol=0
local integer numRows=MultiboardGetRowCount(mb)
local integer numCols=MultiboardGetColumnCount(mb)
local multiboarditem mbitem=null
loop
set curRow=curRow+1
exitwhen curRow>numRows
if(row==0 or row==curRow)then
set curCol=0
loop
set curCol=curCol+1
exitwhen curCol>numCols
if(col==0 or col==curCol)then
set mbitem=MultiboardGetItem(mb,curRow-1,curCol-1)
call MultiboardSetItemStyle(mbitem,showValue,showIcon)
call MultiboardReleaseItem(mbitem)
endif
endloop
endif
endloop
set mbitem=null
endfunction
function YDWEMultiboardSetItemValueBJNull takes multiboard mb,integer col,integer row,string val returns nothing
local integer curRow=0
local integer curCol=0
local integer numRows=MultiboardGetRowCount(mb)
local integer numCols=MultiboardGetColumnCount(mb)
local multiboarditem mbitem=null
loop
set curRow=curRow+1
exitwhen curRow>numRows
if(row==0 or row==curRow)then
set curCol=0
loop
set curCol=curCol+1
exitwhen curCol>numCols
if(col==0 or col==curCol)then
set mbitem=MultiboardGetItem(mb,curRow-1,curCol-1)
call MultiboardSetItemValue(mbitem,val)
call MultiboardReleaseItem(mbitem)
endif
endloop
endif
endloop
set mbitem=null
endfunction
function YDWEMultiboardSetItemWidthBJNull takes multiboard mb,integer col,integer row,real width returns nothing
local integer curRow=0
local integer curCol=0
local integer numRows=MultiboardGetRowCount(mb)
local integer numCols=MultiboardGetColumnCount(mb)
local multiboarditem mbitem=null
loop
set curRow=curRow+1
exitwhen curRow>numRows
if(row==0 or row==curRow)then
set curCol=0
loop
set curCol=curCol+1
exitwhen curCol>numCols
if(col==0 or col==curCol)then
set mbitem=MultiboardGetItem(mb,curRow-1,curCol-1)
call MultiboardSetItemWidth(mbitem,width/ 100.)
call MultiboardReleaseItem(mbitem)
endif
endloop
endif
endloop
set mbitem=null
endfunction
function YDWEPauseAllUnitsBJNull takes boolean pause returns nothing
local integer index
local player indexPlayer
local group g
set bj_pauseAllUnitsFlag=pause
set g=CreateGroup()
set index=0
loop
set indexPlayer=Player(index)
if(GetPlayerController(indexPlayer)==MAP_CONTROL_COMPUTER)then
call PauseCompAI(indexPlayer,pause)
endif
call GroupEnumUnitsOfPlayer(g,indexPlayer,null)
call ForGroup(g,function PauseAllUnitsBJEnum)
call GroupClear(g)
set index=index+1
exitwhen index==16
endloop
call DestroyGroup(g)
set g=null
endfunction
function YDWEPlaySoundNull takes string soundName returns nothing
local sound soundHandle=CreateSound(soundName,false,false,true,$319C,$319C,"")
call StartSound(soundHandle)
call KillSoundWhenDone(soundHandle)
set soundHandle=null
endfunction
function YDWEPolledWaitNull takes real duration returns nothing
local timer t
local real timeRemaining
if(duration>0)then
set t=CreateTimer()
call TimerStart(t,duration,false,null)
loop
set timeRemaining=TimerGetRemaining(t)
exitwhen timeRemaining<=0
if(timeRemaining>bj_POLLED_WAIT_SKIP_THRESHOLD)then
call TriggerSleepAction(.1*timeRemaining)
else
call TriggerSleepAction(bj_POLLED_WAIT_INTERVAL)
endif
endloop
call DestroyTimer(t)
endif
set t=null
endfunction
function YDWEReplaceUnitBJNull 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(whichUnit==null)then
set bj_lastReplacedUnit=whichUnit
return bj_lastReplacedUnit
endif
set wasHidden=IsUnitHidden(oldUnit)
call ShowUnit(oldUnit,false)
if(newUnitId=='ugol')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==1)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==0)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==2)then
elseif(unitStateMethod==3)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))
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>=6
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 indexItem=null
return bj_lastReplacedUnit
endfunction
function YDWEAnyUnitDamagedTriggerAction takes nothing returns nothing
local integer i=0
loop
exitwhen i>=YDWETriggerEvent___DamageEventNumber
if YDWETriggerEvent___DamageEventQueue[i]!=null and IsTriggerEnabled(YDWETriggerEvent___DamageEventQueue[i])and TriggerEvaluate(YDWETriggerEvent___DamageEventQueue[i])then
call TriggerExecute(YDWETriggerEvent___DamageEventQueue[i])
endif
set i=i+1
endloop
endfunction
function YDWEAnyUnitDamagedFilter takes nothing returns boolean
if GetUnitAbilityLevel(GetFilterUnit(),'Aloc')<=0 then
call TriggerRegisterUnitEvent(yd_DamageEventTrigger,GetFilterUnit(),EVENT_UNIT_DAMAGED)
endif
return false
endfunction
function YDWEAnyUnitDamagedEnumUnit takes nothing returns nothing
local trigger t=CreateTrigger()
local region r=CreateRegion()
local group g=CreateGroup()
call RegionAddRect(r,GetWorldBounds())
call TriggerRegisterEnterRegion(t,r,Condition(function YDWEAnyUnitDamagedFilter))
call GroupEnumUnitsInRect(g,GetWorldBounds(),Condition(function YDWEAnyUnitDamagedFilter))
call DestroyGroup(g)
set r=null
set t=null
set g=null
endfunction
function YDWESyStemAnyUnitDamagedRegistTrigger takes trigger trg returns nothing
if trg==null then
return
endif
if YDWETriggerEvent___DamageEventNumber==0 then
set yd_DamageEventTrigger=CreateTrigger()
call TriggerAddAction(yd_DamageEventTrigger,function YDWEAnyUnitDamagedTriggerAction)
call YDWEAnyUnitDamagedEnumUnit()
endif
set YDWETriggerEvent___DamageEventQueue[YDWETriggerEvent___DamageEventNumber]=trg
set YDWETriggerEvent___DamageEventNumber=YDWETriggerEvent___DamageEventNumber+1
endfunction
function YDWESyStemItemUnmovableTriggerAction takes nothing returns nothing
local integer i=0
if GetIssuedOrderId()>=$D0022 and GetIssuedOrderId()<=$D0027 then
set bj_lastMovedItemInItemSlot=GetOrderTargetItem()
loop
exitwhen i>=YDWETriggerEvent___MoveItemEventNumber
if YDWETriggerEvent___MoveItemEventQueue[i]!=null and IsTriggerEnabled(YDWETriggerEvent___MoveItemEventQueue[i])and TriggerEvaluate(YDWETriggerEvent___MoveItemEventQueue[i])then
call TriggerExecute(YDWETriggerEvent___MoveItemEventQueue[i])
endif
set i=i+1
endloop
endif
endfunction
function YDWESyStemItemUnmovableRegistTrigger takes trigger trg returns nothing
if trg==null then
return
endif
if YDWETriggerEvent___MoveItemEventNumber==0 then
set YDWETriggerEvent___MoveItemEventTrigger=CreateTrigger()
call TriggerAddAction(YDWETriggerEvent___MoveItemEventTrigger,function YDWESyStemItemUnmovableTriggerAction)
call TriggerRegisterAnyUnitEventBJ(YDWETriggerEvent___MoveItemEventTrigger,EVENT_PLAYER_UNIT_ISSUED_TARGET_ORDER)
endif
set YDWETriggerEvent___MoveItemEventQueue[YDWETriggerEvent___MoveItemEventNumber]=trg
set YDWETriggerEvent___MoveItemEventNumber=YDWETriggerEvent___MoveItemEventNumber+1
endfunction
function GetLastMovedItemInItemSlot takes nothing returns item
return bj_lastMovedItemInItemSlot
endfunction
function YDWETriggerRegisterEnterRectSimpleNull takes trigger trig,rect r returns event
local region rectRegion=CreateRegion()
call RegionAddRect(rectRegion,r)
set yd_NullTempRegion=rectRegion
set rectRegion=null
return TriggerRegisterEnterRegion(trig,yd_NullTempRegion,null)
endfunction
function YDWEGetUnitsInRangeOfLocAllNull takes real radius,location whichLocation returns group
return YDWEGetUnitsInRangeOfLocMatchingNull(radius,whichLocation,null)
endfunction
function YDWEJumpTimerLoop takes nothing returns nothing
local timer t=GetExpiredTimer()
local unit hero=((YDWEI2U(GetStoredInteger(YDGC,(I2S(YDWEH2I(t))),("Hero")))))
local real angle=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("Angle")))
local integer steeps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(t))),("steeps")))
local integer steepsMax=(GetStoredInteger(YDGC,(I2S(YDWEH2I(t))),("steepsMax")))
local real heightMax=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("heightMax")))
local real dist=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("dist")))
local real dheig=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("dheig")))
local real OriginHeight=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("OriginHeight")))
local real x=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("X")))
local real y=(GetStoredReal(YDGC,(I2S(YDWEH2I(t))),("Y")))
local real x1=0
local real y1=0
local real height=0
local integer lvJumpTimer=MoveMoreLevel_JumpTimer
local integer lvUnitMove=(GetStoredInteger(YDGC,(I2S(YDWEH2I(hero))),("lvUnitMove")))
if steeps<steepsMax and lvJumpTimer>=lvUnitMove then
set x1=x+steeps*dist*Cos(angle*3.14159/ 180.)
set y1=y+steeps*dist*Sin(angle*3.14159/ 180.)
set x1=(RMinBJ(RMaxBJ(((x1)*1.),yd_MapMinX),yd_MapMaxX))
set y1=(RMinBJ(RMaxBJ(((y1)*1.),yd_MapMinY),yd_MapMaxY))
call SetUnitX(hero,x1)
call SetUnitY(hero,y1)
set steeps=steeps+1
call StoreInteger(YDGC,(I2S(YDWEH2I(t))),("steeps"),(steeps))
set height=(-(2*I2R(steeps)*dheig-1)*(2*I2R(steeps)*dheig-1)+1)*heightMax+OriginHeight
call SetUnitFlyHeight(hero,height,99999)
call SetUnitFacing(hero,angle)
else
call SetUnitFlyHeight(hero,OriginHeight,99999)
call SetUnitPathing(hero,true)
call DestroyTimer(t)
call FlushStoredMission(YDGC,(I2S(YDWEH2I(t))))
call StoreInteger(YDGC,(I2S(YDWEH2I(hero))),("lvUnitMove"),(0))
call YDWESyStemAbilityCastingOverTriggerAction(hero,2)
endif
set t=null
set hero=null
endfunction
function YDWEJumpTimer takes unit hero,real angle,real distance,real lasttime,real timeout,real heightMax returns nothing
local timer t=null
local real x=GetUnitX(hero)
local real y=GetUnitY(hero)
local integer steepsMax=R2I(lasttime/ timeout)
local integer steeps=0
local real dist=distance/ steepsMax
local real dheig=1./ steepsMax
local real OriginHeight=GetUnitFlyHeight(hero)
local integer lvUnitMove=(GetStoredInteger(YDGC,(I2S(YDWEH2I(hero))),("lvUnitMove")))
if MoveMoreLevel_JumpTimer<=lvUnitMove then
return
endif
set t=CreateTimer()
call StoreInteger(YDGC,(I2S(YDWEH2I(hero))),("lvUnitMove"),(MoveMoreLevel_JumpTimer))
call YDWEFlyEnable(hero)
call SetUnitPathing(hero,false)
call StoreInteger(YDGC,(I2S(YDWEH2I(t))),("Hero"),YDWEH2I((hero)))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("OriginHeight"),((OriginHeight)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("Angle"),((angle)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("dist"),((dist)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("heightMax"),((heightMax)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("dheig"),((dheig)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("X"),((x)*1.))
call StoreReal(YDGC,(I2S(YDWEH2I(t))),("Y"),((y)*1.))
call StoreInteger(YDGC,(I2S(YDWEH2I(t))),("steeps"),(steeps))
call StoreInteger(YDGC,(I2S(YDWEH2I(t))),("steepsMax"),(steepsMax))
call TimerStart(t,timeout,true,function YDWEJumpTimerLoop)
set t=null
endfunction
function YDWELocalVariableInitiliation takes nothing returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("GlobalsTriggerRunSteps")))
set TriggerRunSteps=TriggerRunSteps+1
call StoreInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("GlobalsTriggerRunSteps"),(TriggerRunSteps))
call StoreInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps"),(TriggerRunSteps))
endfunction
function YDWEWaitForLocalVariable takes real time returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
call TriggerSleepAction(time)
call StoreInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps"),(TriggerRunSteps))
endfunction
function YDWELocalVariableEnd takes nothing returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call FlushStoredMission(YDGC,(dir))
endfunction
function YDWESetLocalVariableInteger takes string s,integer i returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),(i))
endfunction
function YDWEGetLocalVariableInteger takes string s returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableIntegerArray takes string s,integer index,integer i returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),(i))
endfunction
function YDWEGetLocalVariableIntegerArray takes string s,integer index returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableReal takes string s,real R returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreReal(YDGC,(dir),(s),((R)*1.))
endfunction
function YDWEGetLocalVariableReal takes string s returns real
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredReal(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableRealArray takes string s,integer index,real R returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreReal(YDGC,(dir),(s+I2S(index)),((R)*1.))
endfunction
function YDWEGetLocalVariableRealArray takes string s,integer index returns real
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredReal(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableString takes string s,string str returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreString(YDGC,(dir),(s),(str))
endfunction
function YDWEGetLocalVariableString takes string s returns string
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredString(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableStringArray takes string s,integer index,string str returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreString(YDGC,(dir),(s+I2S(index)),(str))
endfunction
function YDWEGetLocalVariableStringArray takes string s,integer index returns string
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredString(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableBoolean takes string s,boolean bl returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreBoolean(YDGC,(dir),(s),(bl))
endfunction
function YDWEGetLocalVariableBoolean takes string s returns boolean
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredBoolean(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableBooleanArray takes string s,integer index,boolean bl returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreBoolean(YDGC,(dir),(s+I2S(index)),(bl))
endfunction
function YDWEGetLocalVariableBooleanArray takes string s,integer index returns boolean
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredBoolean(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableUnit takes string s,unit u returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((u)))
endfunction
function YDWEGetLocalVariableUnit takes string s returns unit
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2U(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableUnitArray takes string s,integer index,unit u returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((u)))
endfunction
function YDWEGetLocalVariableUnitArray takes string s,integer index returns unit
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2U(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function YDWESetLocalVariableUnitID takes string s,integer uid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),(uid))
endfunction
function YDWEGetLocalVariableUnitID takes string s returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableUnitIDArray takes string s,integer index,integer uid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),(uid))
endfunction
function YDWEGetLocalVariableUnitIDArray takes string s,integer index returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableAbilityID takes string s,integer abid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),(abid))
endfunction
function YDWEGetLocalVariableAbilityID takes string s returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableAbilityIDArray takes string s,integer index,integer abid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),(abid))
endfunction
function YDWEGetLocalVariableAbilityIDArray takes string s,integer index returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableItem takes string s,item it returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((it)))
endfunction
function YDWEGetLocalVariableItem takes string s returns item
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2It(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableItemArray takes string s,integer index,item it returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((it)))
endfunction
function YDWEGetLocalVariableItemArray takes string s,integer index returns item
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2It(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function YDWESetLocalVariableItemID takes string s,integer itid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),(itid))
endfunction
function YDWEGetLocalVariableItemID takes string s returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s)))
endfunction
function YDWESetLocalVariableItemIDArray takes string s,integer index,integer itid returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),(itid))
endfunction
function YDWEGetLocalVariableItemIDArray takes string s,integer index returns integer
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(GetStoredInteger(YDGC,(dir),(s+I2S(index))))
endfunction
function YDWESetLocalVariableLocation takes string s,location point returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((point)))
endfunction
function YDWEGetLocalVariableLocation takes string s returns location
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2Pt(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableLocationArray takes string s,integer index,location point returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((point)))
endfunction
function YDWEGetLocalVariableLocationArray takes string s,integer index returns location
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2Pt(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function YDWESetLocalVariableGroup takes string s,group g returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((g)))
endfunction
function YDWEGetLocalVariableGroup takes string s returns group
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2G(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableGroupArray takes string s,integer index,group g returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((g)))
endfunction
function YDWEGetLocalVariableGroupArray takes string s,integer index returns group
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2G(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function YDWESetLocalVariableEffect takes string s,effect e returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((e)))
endfunction
function YDWEGetLocalVariableEffect takes string s returns effect
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2E(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableEffectArray takes string s,integer index,effect e returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((e)))
endfunction
function YDWEGetLocalVariableEffectArray takes string s,integer index returns effect
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2E(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function YDWESetLocalVariableRect takes string s,rect rt returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s),YDWEH2I((rt)))
endfunction
function YDWEGetLocalVariableRect takes string s returns rect
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2Rt(GetStoredInteger(YDGC,(dir),(s))))
endfunction
function YDWESetLocalVariableRectArray takes string s,integer index,rect rt returns nothing
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
call StoreInteger(YDGC,(dir),(s+I2S(index)),YDWEH2I((rt)))
endfunction
function YDWEGetLocalVariableRectArray takes string s,integer index returns rect
local integer TriggerRunSteps=(GetStoredInteger(YDGC,(I2S(YDWEH2I(GetTriggeringTrigger()))),("TriggerRunSteps")))
local string dir=I2S(YDWEH2I(GetTriggeringTrigger()))+I2S(TriggerRunSteps)
return(YDWEI2Rt(GetStoredInteger(YDGC,(dir),(s+I2S(index)))))
endfunction
function InitGlobals takes nothing returns nothing
local integer i=0
set udg_Group_gold=CreateGroup()
set udg_Group=CreateGroup()
set udg_Timer=CreateTimer()
set udg_Group2=CreateGroup()
set i=0
loop
exitwhen(i>$B)
set udg_dialog_undeadVote[i]=DialogCreate()
set udg_player_color_code[i]=""
set udg_player_color[i]=""
set udg_dialog_siteVote[i]=DialogCreate()
set udg_dialog_regionVote[i]=DialogCreate()
set udg_dialog_regionVote_Integer[i]=0
set udg_region_name_color[i]=""
set udg_esc[i]=DialogCreate()
set udg_escT[i]=0
set udg_textT[i]=0
set udg_text[i]=DialogCreate()
set udg_dialog_TR[i]=DialogCreate()
set udg_dialog_modeVote[i]=DialogCreate()
set udg_SFVote[i]=DialogCreate()
set udg_Name_Change[i]=false
set udg_Press[i]=false
set udg_VOTE[i]=false
set udg_N_TZ[i]=false
set udg_N_FT[i]=false
set udg_DayNight[i]=DialogCreate()
set udg_Real_DOG[i]=0
set udg_Real_DOG_2[i]=0
set udg_Real_DOG_3[i]=0
set udg_FS[i]=0
set udg_Skill_learn[i]=false
set udg_PT[i]=0
set udg_VOTE_DEATH[i]=false
set udg_MODE_VOTE[i]=false
set i=i+1
endloop
set udg_Group3=CreateGroup()
set i=0
loop
exitwhen(i>$C)
set udg_integer_base_gold_trade_______u[i]=0
set udg_integer_base_wood_trade_______u[i]=0
set udg_LOAD[i]=false
set udg_Board_2[i]=0
set udg_Board_5[i]=0
set udg_Board_1[i]=0
set udg_Board_3[i]=0
set udg_Board_4[i]=0
set udg_Board_6[i]=0
set udg_Name[i]=""
set udg_Name_______u[i]=""
set udg_Name_RL[i]=""
set udg_Name_JS[i]=""
set udg_Name_DS[i]=""
set udg_Name_ZG[i]=""
set udg_SAVE[i]=false
set udg_FEED[i]=0
set udg_YS[i]=false
set udg_RG[i]=0
set udg_RG_______u[i]=0
set udg_ZB[i]=0
set udg_build[i]=false
set udg_Army[i]=0
set udg_ATM[i]=0
set udg_DEATH[i]=false
set udg_tel[i]=false
set udg_VIP[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>4)
set udg_Player_Group[i]=CreateForce()
set i=i+1
endloop
set i=0
loop
exitwhen(i>20)
set udg_JS[i]=false
set i=i+1
endloop
set udg_ZaB=CreateForce()
set udg_LJCG=-2
set i=0
loop
exitwhen(i>2)
set udg_F_Group[i]=CreateGroup()
set udg_VSGroup[i]=CreateForce()
set i=i+1
endloop
set i=0
loop
exitwhen(i>50)
set udg_Tip[i]=""
set i=i+1
endloop
set udg_Choose=1
set udg_Zombies=CreateGroup()
endfunction
function Doodad002680_DropItems takes nothing returns nothing
local widget trigWidget=null
local unit trigUnit=null
local integer itemID=0
local boolean canDrop=true
set trigWidget=bj_lastDyingWidget
if(trigWidget==null)then
set trigUnit=GetTriggerUnit()
endif
if(trigUnit!=null)then
set canDrop=not IsUnitHidden(trigUnit)
if(canDrop and GetChangingUnit()!=null)then
set canDrop=(GetChangingUnitPrevOwner()==Player($C))
endif
endif
if(canDrop)then
call RandomDistReset()
call RandomDistAddItem('lmbr',50)
call RandomDistAddItem(-1,50)
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('lmbr','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('lmbr','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('lmbr','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
call RandomDistReset()
call RandomDistAddItem('lmbr','d')
set itemID=RandomDistChoose()
if(trigUnit!=null)then
call UnitDropItem(trigUnit,itemID)
else
call WidgetDropItem(trigWidget,itemID)
endif
endif
set bj_lastDyingWidget=null
call DestroyTrigger(GetTriggeringTrigger())
endfunction
function InitSounds takes nothing returns nothing
set gg_snd_QuestNew=CreateSound("Sound\\Interface\\QuestNew.wav",false,false,false,$A,$A,"")
call SetSoundParamsFromLabel(gg_snd_QuestNew,"QuestNew")
call SetSoundDuration(gg_snd_QuestNew,$EA6)
set gg_snd_PH1=CreateSound("Sound\\Music\\mp3Music\\PH1.mp3",false,false,false,$A,$A,"")
call SetSoundParamsFromLabel(gg_snd_PH1,"PHMusic")
call SetSoundDuration(gg_snd_PH1,$44BEE)
set gg_snd_HeroDreadlordReady1=CreateSound("Units\\Undead\\HeroDreadLord\\HeroDreadlordReady1.wav",false,false,false,$A,$A,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_HeroDreadlordReady1,"HeroDreadLordReady")
call SetSoundDuration(gg_snd_HeroDreadlordReady1,$868)
call SetSoundVolume(gg_snd_HeroDreadlordReady1,'d')
set gg_snd_VarimathrasReady1=CreateSound("Units\\Undead\\Varimathras\\VarimathrasReady1.wav",false,false,false,$A,$A,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_VarimathrasReady1,"VarimathrasReady")
call SetSoundDuration(gg_snd_VarimathrasReady1,$84A)
call SetSoundVolume(gg_snd_VarimathrasReady1,'d')
set gg_snd_QuestFailed=CreateSound("Sound\\Interface\\QuestFailed.wav",false,false,false,$A,$A,"DefaultEAXON")
call SetSoundParamsFromLabel(gg_snd_QuestFailed,"QuestFailed")
call SetSoundDuration(gg_snd_QuestFailed,4690)
call SetSoundVolume(gg_snd_QuestFailed,'d')
endfunction
function CreateAllDestructables takes nothing returns nothing
local destructable d
local trigger t
local real life
set d=CreateDestructable('LTba',-9216.,12928.,80.,.904,0)
set t=CreateTrigger()
call TriggerRegisterDeathEvent(t,d)
call TriggerAddAction(t,function SaveDyingWidget)
call TriggerAddAction(t,function Doodad002680_DropItems)
endfunction
function CreateAllItems takes nothing returns nothing
local integer itemID
call CreateItem('lmbr',-9361.5,17656.4)
call CreateItem('lmbr',-9282.8,15919.1)
call CreateItem('lmbr',-11018.,14550.4)
call CreateItem('lmbr',-9484.7,13836.4)
call CreateItem('lmbr',-11573.1,12870.3)
call CreateItem('lmbr',-11332.7,17249.)
endfunction
function CreateNeutralPassiveBuildings takes nothing returns nothing
local player p=Player($F)
local unit u
local integer unitID
local trigger t
local real life
set gg_unit_h000_0001=CreateUnit(p,'h000',-160.,-160.,270.)
set u=CreateUnit(p,'h001',-512.,128.,270.)
set u=CreateUnit(p,'h002',128.,128.,270.)
set u=CreateUnit(p,'h003',128.,-512.,270.)
set gg_unit_h023_0012=CreateUnit(p,'h023',-128.,-6912.,270.)
set u=CreateUnit(p,'h004',-512.,-512.,270.)
set u=CreateUnit(p,'h001',-512.,-16256.,270.)
set u=CreateUnit(p,'h004',-512.,-16896.,270.)
set u=CreateUnit(p,'h003',128.,-16896.,270.)
set u=CreateUnit(p,'h002',128.,-16256.,270.)
set gg_unit_h000_0021=CreateUnit(p,'h000',-160.,-16544.,270.)
set gg_unit_h023_0022=CreateUnit(p,'h023',16256.,-6912.,270.)
set u=CreateUnit(p,'h001',15872.,-16256.,270.)
set u=CreateUnit(p,'h004',15872.,-16896.,270.)
set u=CreateUnit(p,'h003',16512.,-16896.,270.)
set gg_unit_h023_0026=CreateUnit(p,'h023',-128.,-23424.,270.)
set u=CreateUnit(p,'h002',16512.,-16256.,270.)
set gg_unit_h000_0028=CreateUnit(p,'h000',16224.,-16544.,270.)
set gg_unit_h023_0029=CreateUnit(p,'h023',16256.,-23424.,270.)
set u=CreateUnit(p,'h001',15872.,128.,270.)
set u=CreateUnit(p,'h004',15872.,-512.,270.)
set u=CreateUnit(p,'h003',16512.,-512.,270.)
set u=CreateUnit(p,'h002',16512.,128.,270.)
set gg_unit_h000_0034=CreateUnit(p,'h000',16224.,-160.,270.)
set gg_unit_h023_0035=CreateUnit(p,'h023',-17152.,-7040.,270.)
set gg_unit_h000_0037=CreateUnit(p,'h000',-17184.,1888.,270.)
set u=CreateUnit(p,'h003',-16896.,1536.,270.)
set u=CreateUnit(p,'h002',-16896.,2176.,270.)
set u=CreateUnit(p,'h001',-17536.,2176.,270.)
set u=CreateUnit(p,'h004',-17536.,1536.,270.)
set u=CreateUnit(p,'h001',-16896.,-16384.,270.)
set u=CreateUnit(p,'h004',-16896.,-17152.,270.)
set u=CreateUnit(p,'h003',-16256.,-17152.,270.)
set u=CreateUnit(p,'h002',-16256.,-16384.,270.)
set gg_unit_h000_0046=CreateUnit(p,'h000',-16544.,-16736.,270.)
set gg_unit_h023_0047=CreateUnit(p,'h023',-16512.,-23104.,270.)
set gg_unit_h001_0049=CreateUnit(p,'h001',-448.,-8000.,270.)
set gg_unit_h002_0050=CreateUnit(p,'h002',-64.,-8000.,270.)
set gg_unit_h003_0051=CreateUnit(p,'h003',-256.,-8000.,270.)
set gg_unit_h023_0052=CreateUnit(p,'h023',-256.,-8192.,270.)
set gg_unit_h000_0053=CreateUnit(p,'h000',-1696.,16544.,270.)
set u=CreateUnit(p,'h003',-1408.,16192.,270.)
set u=CreateUnit(p,'h002',-1408.,16832.,270.)
set u=CreateUnit(p,'h001',-2048.,16832.,270.)
set u=CreateUnit(p,'h004',-2048.,16192.,270.)
set gg_unit_h023_0058=CreateUnit(p,'h023',-832.,9664.,270.)
set u=CreateUnit(p,'ncmw',-14688.,23648.,270.)
set u=CreateUnit(p,'h002',-16896.,17024.,270.)
set u=CreateUnit(p,'h001',-17536.,17024.,270.)
set u=CreateUnit(p,'h003',-16896.,16384.,270.)
set gg_unit_h000_0080=CreateUnit(p,'h000',-17184.,16736.,270.)
set u=CreateUnit(p,'h004',-17536.,16384.,270.)
set gg_unit_h023_0082=CreateUnit(p,'h023',-17216.,9920.,270.)
set u=CreateUnit(p,'h03F',64.,64.,270.)
set u=CreateUnit(p,'h03F',-448.,64.,270.)
set u=CreateUnit(p,'h03F',-448.,-448.,270.)
set u=CreateUnit(p,'h03F',64.,-448.,270.)
set u=CreateUnit(p,'h03F',-17472.,2112.,270.)
set u=CreateUnit(p,'h03F',-16960.,2112.,270.)
set u=CreateUnit(p,'h03F',-16960.,1600.,270.)
set u=CreateUnit(p,'h03F',-17472.,1600.,270.)
set u=CreateUnit(p,'h03F',-16832.,-16448.,270.)
set u=CreateUnit(p,'h03F',-16320.,-16448.,270.)
set u=CreateUnit(p,'h03F',-16320.,-17088.,270.)
set u=CreateUnit(p,'h03F',-16832.,-17088.,270.)
set u=CreateUnit(p,'h03F',-448.,-16320.,270.)
set u=CreateUnit(p,'h03F',64.,-16320.,270.)
set u=CreateUnit(p,'h03F',64.,-16832.,270.)
set u=CreateUnit(p,'h03F',-448.,-16832.,270.)
set u=CreateUnit(p,'h03F',15936.,-16320.,270.)
set u=CreateUnit(p,'h03F',16448.,-16320.,270.)
set u=CreateUnit(p,'h03F',15936.,-16832.,270.)
set u=CreateUnit(p,'h03F',16448.,-16832.,270.)
set u=CreateUnit(p,'h03F',15936.,64.,270.)
set u=CreateUnit(p,'h03F',16448.,64.,270.)
set u=CreateUnit(p,'h03F',15936.,-448.,270.)
set u=CreateUnit(p,'h03F',16448.,-448.,270.)
set u=CreateUnit(p,'h03F',-17472.,16960.,270.)
set u=CreateUnit(p,'h03F',-16960.,16960.,270.)
set u=CreateUnit(p,'h03F',-17472.,16448.,270.)
set u=CreateUnit(p,'h03F',-16960.,16448.,270.)
set u=CreateUnit(p,'h03F',-1984.,16768.,270.)
set u=CreateUnit(p,'h03F',-1472.,16768.,270.)
set u=CreateUnit(p,'h03F',-1984.,16256.,270.)
set u=CreateUnit(p,'h03F',-1472.,16256.,270.)
set u=CreateUnit(p,'h03F',-448.,-6720.,270.)
set u=CreateUnit(p,'h03F',64.,-6720.,270.)
set u=CreateUnit(p,'h03F',-448.,-7232.,270.)
set u=CreateUnit(p,'h03F',64.,-7232.,270.)
set u=CreateUnit(p,'h03F',-17472.,-6848.,270.)
set u=CreateUnit(p,'h03F',-16960.,-6848.,270.)
set u=CreateUnit(p,'h03F',-17472.,-7360.,270.)
set u=CreateUnit(p,'h03F',-16960.,-7360.,270.)
set u=CreateUnit(p,'h03F',-16832.,-22784.,270.)
set u=CreateUnit(p,'h03F',-16256.,-22784.,270.)
set u=CreateUnit(p,'h03F',-16832.,-23488.,270.)
set u=CreateUnit(p,'h03F',-16256.,-23488.,270.)
set u=CreateUnit(p,'h03F',-448.,-23232.,270.)
set u=CreateUnit(p,'h03F',64.,-23232.,270.)
set u=CreateUnit(p,'h03F',-448.,-23744.,270.)
set u=CreateUnit(p,'h03F',64.,-23744.,270.)
set u=CreateUnit(p,'h03F',15936.,-23232.,270.)
set u=CreateUnit(p,'h03F',16448.,-23232.,270.)
set u=CreateUnit(p,'h03F',16448.,-23744.,270.)
set u=CreateUnit(p,'h03F',15936.,-23744.,270.)
set u=CreateUnit(p,'h03F',15936.,-6720.,270.)
set u=CreateUnit(p,'h03F',16448.,-6720.,270.)
set u=CreateUnit(p,'h03F',15936.,-7232.,270.)
set u=CreateUnit(p,'h03F',16448.,-7232.,270.)
set u=CreateUnit(p,'h03F',-1088.,9920.,270.)
set u=CreateUnit(p,'h03F',-576.,9920.,270.)
set u=CreateUnit(p,'h03F',-1088.,9408.,270.)
set u=CreateUnit(p,'h03F',-576.,9408.,270.)
set u=CreateUnit(p,'h03F',-17472.,10240.,270.)
set u=CreateUnit(p,'h03F',-16960.,10240.,270.)
set u=CreateUnit(p,'h03F',-17472.,9600.,270.)
set u=CreateUnit(p,'h03F',-16960.,9536.,270.)
endfunction
function CreateNeutralPassive takes nothing returns nothing
local player p=Player($F)
local unit u
local integer unitID
local trigger t
local real life
set gg_unit_hpea_0048=CreateUnit(p,'hpea',-181.7,-8070.6,117.856)
set u=CreateUnit(p,'nvlk',-9668.3,14787.2,233.675)
set u=CreateUnit(p,'nvlk',-9775.9,14718.5,24.731)
set u=CreateUnit(p,'nvlk',-9668.8,14649.,125.479)
set u=CreateUnit(p,'nvlw',-10304.8,15133.7,208.955)
set u=CreateUnit(p,'nvlw',-10780.5,15241.4,225.93)
set u=CreateUnit(p,'nvlw',-10766.6,15633.3,65.404)
set u=CreateUnit(p,'zcso',-10707.4,13379.3,301.09)
set u=CreateUnit(p,'nvil',-9775.6,15552.3,314.153)
set u=CreateUnit(p,'nvil',-9719.4,15476.3,107.746)
set u=CreateUnit(p,'nvil',-9962.7,16928.5,126.621)
set u=CreateUnit(p,'nvil',-10066.2,17017.2,265.13)
set u=CreateUnit(p,'nvk2',-11094.9,16761.7,340.641)
set u=CreateUnit(p,'nvk2',-11099.7,16628.,37.948)
set u=CreateUnit(p,'nvk2',-10973.3,16698.4,173.435)
set u=CreateUnit(p,'nvl2',-10816.9,16311.9,166.415)
set u=CreateUnit(p,'nvl2',-10872.2,16228.1,107.702)
set u=CreateUnit(p,'nvl2',-11510.7,16091.,315.647)
set gg_unit_H01Z_0153=CreateUnit(p,'H01Z',-489.8,-8114.4,4.98)
call SetUnitState(gg_unit_H01Z_0153,UNIT_STATE_MANA,1)
set gg_unit_U002_0154=CreateUnit(p,'U002',-461.4,-8163.8,316.94)
call SetUnitState(gg_unit_U002_0154,UNIT_STATE_MANA,1)
set gg_unit_U004_0155=CreateUnit(p,'U004',-409.4,-8121.6,6.34)
call SetUnitState(gg_unit_U004_0155,UNIT_STATE_MANA,1)
set gg_unit_U000_0156=CreateUnit(p,'U000',-383.6,-8162.4,182.61)
call SetUnitState(gg_unit_U000_0156,UNIT_STATE_MANA,1)
set gg_unit_U003_0157=CreateUnit(p,'U003',-124.8,-8138.6,291.1)
call SetUnitState(gg_unit_U003_0157,UNIT_STATE_MANA,1)
endfunction
function CreatePlayerBuildings takes nothing returns nothing
endfunction
function CreatePlayerUnits takes nothing returns nothing
endfunction
function CreateAllUnits takes nothing returns nothing
call CreateNeutralPassiveBuildings()
call CreatePlayerBuildings()
call CreateNeutralPassive()
call CreatePlayerUnits()
endfunction
function CreateRegions takes nothing returns nothing
local weathereffect we
set gg_rct_start1=Rect(-288.,-576.,-64.,-352.)
set gg_rct_altar1=Rect(-544.,-7328.,160.,-6624.)
set gg_rct_altar3=Rect(-544.,-23840.,160.,-23136.)
set gg_rct_altar2=Rect(15840.,-7328.,16544.,-6624.)
set gg_rct_altar4=Rect(15840.,-23840.,16544.,-23136.)
set gg_rct_start2=Rect(16096.,-576.,16320.,-352.)
set gg_rct_start3=Rect(-288.,-16960.,-64.,-16736.)
set gg_rct_start4=Rect(16096.,-16960.,16320.,-16736.)
set gg_rct_Rcamera1=Rect(-8192.,-7584.,7584.,8160.)
set gg_rct_playable1=Rect(-8064.,-7680.,7680.,8064.)
set we=AddWeatherEffect(gg_rct_playable1,'RAlr')
call EnableWeatherEffect(we,true)
set gg_rct_playable2=Rect(8704.,-7680.,24448.,8064.)
set we=AddWeatherEffect(gg_rct_playable2,'WOlw')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera2=Rect(8800.,-7552.,24576.,8192.)
set gg_rct_playable3=Rect(-8064.,-24448.,7680.,-8704.)
set we=AddWeatherEffect(gg_rct_playable3,'SNls')
call EnableWeatherEffect(we,true)
set gg_rct_playable4=Rect(8704.,-24448.,24448.,-8704.)
set we=AddWeatherEffect(gg_rct_playable4,'LRma')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera3=Rect(-8192.,-24576.,7584.,-8832.)
set gg_rct_Rcamera4=Rect(8800.,-24576.,24576.,-8832.)
set gg_rct_start5=Rect(-17344.,1472.,-17120.,1696.)
set gg_rct_altar5=Rect(-17568.,-7488.,-16864.,-6784.)
set gg_rct_Rcamera5=Rect(-24576.,-7712.,-8800.,8032.)
set gg_rct_playable5=Rect(-24576.,-7776.,-8832.,7968.)
set we=AddWeatherEffect(gg_rct_playable5,'FDrl')
call EnableWeatherEffect(we,true)
set gg_rct_playable6=Rect(-24416.,-24416.,-9216.,-8832.)
set we=AddWeatherEffect(gg_rct_playable6,'LRaa')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera6=Rect(-24576.,-24512.,-9184.,-8832.)
set gg_rct_start6=Rect(-16672.,-17184.,-16448.,-16960.)
set gg_rct_altar6=Rect(-16896.,-23520.,-16192.,-22816.)
set gg_rct_playable7=Rect(-8160.,8768.,7712.,24512.)
set we=AddWeatherEffect(gg_rct_playable7,'LRma')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera7=Rect(-8160.,8896.,7680.,24576.)
set gg_rct_altar7=Rect(-1216.,9312.,-512.,10016.)
set gg_rct_start7=Rect(-1856.,16000.,-1632.,16224.)
set gg_rct_playable8=Rect(-24576.,9120.,-9216.,24544.)
set we=AddWeatherEffect(gg_rct_playable8,'FDwl')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera8=Rect(-24448.,9152.,-9248.,24416.)
set gg_rct_altar8=Rect(-17568.,9536.,-16864.,10240.)
set gg_rct_start8=Rect(-17312.,16288.,-17088.,16512.)
set gg_rct______________032=Rect(-576.,-8256.,96.,-7840.)
endfunction
function Trig_initActions takes nothing returns nothing
call SetDayNightModels("","")
call PlayMusicBJ(gg_snd_LichKingTheme)
call SetTimeOfDay(7.)
call SetCreepCampFilterState(false)
call EnableMinimapFilterButtons(true,false)
call SetMapFlag(MAP_LOCK_RESOURCE_TRADING,true)
call SetMapFlag(MAP_RESOURCE_TRADING_ALLIES_ONLY,true)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Name[bj_forLoopAIndex]=GetPlayerName(Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$2710)
set udg_real_timer_startTime=125.
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_integer_base_wood_trade_______u[bj_forLoopAIndex]='d'
set udg_integer_base_gold_trade_______u[bj_forLoopAIndex]=$A
set udg_esc[bj_forLoopAIndex]=DialogCreate()
set udg_text[bj_forLoopAIndex]=DialogCreate()
call DialogAddButtonWithHotkeyBJ(udg_esc[bj_forLoopAIndex],"确定(X)",'X')
call DialogAddButtonWithHotkeyBJ(udg_text[bj_forLoopAIndex],"确定(X)",'X')
set udg_escT[bj_forLoopAIndex]=4
set udg_textT[bj_forLoopAIndex]=5
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set udg_real_spikes_damage=1.
set udg_Zombies=CreateGroup()
set udg_integer_zombies_max='x'
set udg_player_color_code[1]="red"
set udg_player_color_code[2]="blue"
set udg_player_color_code[3]="teal"
set udg_player_color_code[4]="purple"
set udg_player_color_code[5]="yellow"
set udg_player_color_code[6]="orange"
set udg_player_color_code[7]="green"
set udg_player_color_code[8]="pink"
set udg_player_color_code[9]="gray"
set udg_player_color_code[$A]="lightblue"
set udg_player_color_code[$B]="darkgreen"
set udg_ZaB=CreateForce()
set udg_VSGroup[1]=CreateForce()
set udg_VSGroup[2]=CreateForce()
set udg_region_name_color[1]="|c0000BB00草地|r"
set udg_region_name_color[2]="|c00FCB701马勒戈壁|r"
set udg_region_name_color[3]="|c000080FF雪地|r"
set udg_region_name_color[4]="|c0000C161沙漠|r"
set udg_region_name_color[5]="|cffff0303地狱|r"
set udg_region_name_color[6]="|cff7fff00花园|r"
set udg_region_name_color[7]="|cff00ffff岛屿|r"
set udg_region_name_color[8]="|cff008080森林|r"
set udg_player_color[1]="|c00FF0303"
set udg_player_color[2]="|c000042FF"
set udg_player_color[3]="|c001CE6B9"
set udg_player_color[4]="|c00540081"
set udg_player_color[5]="|c00FFFC01"
set udg_player_color[6]="|c00FEBA0E"
set udg_player_color[7]="|c0020C000"
set udg_player_color[8]="|c00E55BB0"
set udg_player_color[9]="|c00959697"
set udg_player_color[$A]="|c007EBFF1"
set udg_player_color[$B]="|c00106246"
call CreateQuestBJ(0,"地图信息","TRIGSTR_3469","ReplaceableTextures\\CommandButtons\\BTNRepairOn.blp")
call CreateQuestBJ(0,"最强僵尸","TRIGSTR_7303","ReplaceableTextures\\CommandButtons\\BTNNecromancer.blp")
call CreateQuestBJ(2,"更新信息","TRIGSTR_5032","ReplaceableTextures\\CommandButtons\\BTNRepairOn.blp")
call CreateQuestBJ(2,"特别感谢","TRIGSTR_5232","ReplaceableTextures\\CommandButtons\\BTNAmbush.blp")
call CreateQuestBJ(2,"精英玩家介绍","TRIGSTR_7331","ReplaceableTextures\\CommandButtons\\BTNInnerFire.blp")
call CreateQuestBJ(0,"战队荣誉","TRIGSTR_7333","ReplaceableTextures\\CommandButtons\\BTNTemp.blp")
call CreateQuestBJ(0,"战队信息","TRIGSTR_375","ReplaceableTextures\\CommandButtons\\BTNHoldPosition.blp")
set udg_Skill_Q[1]='A044'
set udg_Skill_Q[2]='A041'
set udg_Skill_Q[3]='A042'
set udg_Skill_Q[4]='A040'
set udg_Skill_Q[5]='A043'
set udg_Skill_Q[6]='A045'
set udg_Skill_Q[7]='A046'
set udg_Skill_Q[8]='A047'
set udg_Skill_Q[9]='A04J'
set udg_Skill_Q[$A]='A04L'
set udg_Skill_Q[$B]='A04O'
set udg_Skill_W[1]='A048'
set udg_Skill_W[2]='A04B'
set udg_Skill_W[3]='A049'
set udg_Skill_W[4]='A04A'
set udg_Skill_W[5]='A04D'
set udg_Skill_W[6]='A04C'
set udg_Skill_W[7]='A04E'
set udg_Skill_W[8]='A04F'
set udg_Skill_W[9]='A04M'
set udg_Skill_W[$A]='A04N'
set udg_Skill_W[$B]='A04Q'
call CinematicModeBJ(true,bj_FORCE_ALL_PLAYERS)
endfunction
function InitTrig_init takes nothing returns nothing
set gg_trg_init=CreateTrigger()
call TriggerAddAction(gg_trg_init,function Trig_initActions)
endfunction
function Trig_tipsActions takes nothing returns nothing
set udg_Tip[0]="【走狗】自爆可以隔墙炸人，请中期之后，主农民不要轻易靠近城墙……"
set udg_Tip[1]="人类在【农场】中造小动物，可以增加人口。"
set udg_Tip[2]="【树木】较少时，面积较大的【城镇大厅】可以寻找宽敞的位置摆放，两个【伐木场】紧贴足够保证经济。"
set udg_Tip[3]="防御塔不要【贴墙】建造，不然没法修。"
set udg_Tip[4]="请不要在其他玩家的【树木】边修造建筑，以免影响他人发展。"
set udg_Tip[5]="【城墙】是一切的根本，请给有经验的人来担任修建城墙的【重任】。"
set udg_Tip[6]="经济发展快，才有希望守住基地，战胜僵尸。"
set udg_Tip[7]="合理摆放建筑，保证内部畅通，不要把道路堵死。"
set udg_Tip[8]="强大的防御塔是压制僵尸发展的重要手段，请【每隔三分钟】更新一次防御塔的攻击力。"
set udg_Tip[9]="没有防守任务的【围观群众们】，及时把【全体修理工】做出来，记得打开【自动修理】功能。"
set udg_Tip[$A]="主农民请不要靠近城墙，妥善安置在安全地方，防止中期巫妖的【远程攻击】或走狗的【自爆】袭击。"
set udg_Tip[$B]="【血驴兵营】有耐久光环，【恢复兵营】大幅度回血+圣光技能，【防御兵营】有侦查飞机+重型坦克。"
set udg_Tip[$C]="【战争兵营】可以对抗小僵尸，【传说兵营】能压制僵尸的移动、攻击速度，合理配合，运用好各大兵营的属性，是战胜僵尸的重要途径。"
set udg_Tip[$D]="【学会尊重】只有尊重他人，你才能得到他人的尊重，对于不懂的新人多教导，多帮助一下，你会拥有更多的好队友！！！！"
set udg_Tip[$E]="【分工协作】分工合作才能取得最快的发展, 墙，塔，兵营，经济。"
set udg_Tip[$F]="对于心中有怨念的玩家，可以直接选择【报复社会】，而不是恶意的破坏别人玩游戏，前期故意给僵尸刷钱或是恶意把别人的木头砍掉，都是非常卑劣的！"
set udg_Tip[16]="城墙要注意升级，城墙建好后，要用主人类，测试一下以防【霸气侧漏】。"
set udg_Tip[17]="僵尸经济的来源是通过A墙和A兵，请保持强大的火力使僵尸无法靠近。"
set udg_Tip[18]="科技塔可以在【建筑师】建造的【研究中心】中进行技能升级。"
set udg_Tip[19]="【走狗】可以隐身，尽量不要主农民出基地行动，防止被暗杀。"
set udg_Tip[20]="【基础塔5】和【基础塔6】拥有反隐技能，务必建造防止走狗隐身自爆。"
set udg_Tip[21]="只有【黄金主机】拥有T人功能，可以到scbbs.uuu9.com申请。乱T人的【黄金主机】会被取消资格。"
set udg_Tip[22]="【大叔】每分钟务必整点之前赶回祭坛签到升级，不进行签到的【大叔】是无前途可言的。"
set udg_Tip[23]="不要小看【大叔】，20级的【日狗神功】和50级以后的【和谐之光】都非常强大。"
set udg_Tip[24]="该地图由【邪魔殿】制作，欢迎大家到U9网专区“scbbs.uuu9.com”和百度“尸如潮水”贴吧进行交流。感谢对正版的支持！"
set udg_Tip[25]="如果【黄金主机】或【精英玩家】在游戏中有不当行为，请截图到“scbbs.uuu9.com”进行举报，我会作出处理。"
set udg_Tip[26]="如果开启【黑夜模式】，火把是最重要的物品！"
set udg_Tip[27]="升级一次主基地，可以随机获得两个技能，技能CD都较长，需要在正确的时间使用！"
endfunction
function InitTrig_tips takes nothing returns nothing
set gg_trg_tips=CreateTrigger()
call TriggerAddAction(gg_trg_tips,function Trig_tipsActions)
endfunction
function Trig_transConditions takes nothing returns boolean
return((GetOwningPlayer(GetTriggerUnit())!=Player($F)))
endfunction
function Trig_transActions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetRectCenter(udg_region_altar))
call SetUnitPositionLoc(GetTriggerUnit(),YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_trans takes nothing returns nothing
set gg_trg_trans=CreateTrigger()
call YDWETriggerRegisterEnterRectSimpleNull(gg_trg_trans,gg_rct______________032)
call TriggerAddCondition(gg_trg_trans,Condition(function Trig_transConditions))
call TriggerAddAction(gg_trg_trans,function Trig_transActions)
endfunction
function Trig_teamActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,9)=="邪魔ご"))then
set udg_Team_XMD=(udg_Team_XMD+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="New"))then
set udg_Team_New=(udg_Team_New+1)
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),7,9)=="丶")and((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),$D,$F)=="蛋")or(SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),$D,$F)=="姐")))then
set udg_Team_DS=(udg_Team_DS+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,5)=="_CaT_"))then
set udg_Team_CaT=(udg_Team_CaT+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="Vip"))then
set udg_Team_Vip=(udg_Team_Vip+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,6)=="第⑥"))then
set udg_Team_6=(udg_Team_6+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,6)=="路人"))then
set udg_Team_LR=(udg_Team_LR+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="Ace"))then
set udg_Team_Ace=(udg_Team_Ace+1)
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队成员已记录")
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call YDWEPolledWaitNull(1.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,9)=="邪魔ご")and(udg_Team_XMD>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","邪魔殿")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="New")and(udg_Team_New>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","New")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),7,9)=="丶")and((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),$D,$F)=="蛋")or(SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),$D,$F)=="姐"))and(udg_Team_DS>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","蛋氏")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,5)=="_CaT_")and(udg_Team_CaT>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","CaT")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="Vip")and(udg_Team_Vip>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","Vip")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,6)=="第⑥")and(udg_Team_6>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","6")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,6)=="路人")and(udg_Team_LR>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","路人")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
else
if((SubStringBJ(GetPlayerName(Player(-1+(bj_forLoopAIndex))),1,3)=="Ace")and(udg_Team_Ace>=3))then
call StoreString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC","Ace")
call DisplayTextToPlayer(Player(-1+(bj_forLoopAIndex)),0,0,"战队系统已开启")
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerExecute(gg_trg_setup_______u)
endfunction
function InitTrig_team takes nothing returns nothing
set gg_trg_team=CreateTrigger()
call TriggerAddAction(gg_trg_team,function Trig_teamActions)
endfunction
function Trig_playersActions takes nothing returns nothing
call SetTimeOfDay(7.)
call SetDayNightModels("Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdx","Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdx")
call StopMusic(true)
if((udg_GameMode==1))then
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),20.,"TRIGSTR_1446")
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),20.,"TRIGSTR_1447")
else
if((udg_GameMode==2))then
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),20.,"TRIGSTR_7021")
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),20.,"TRIGSTR_7022")
else
if((udg_GameMode==3))then
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),20.,"TRIGSTR_7612")
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),20.,"TRIGSTR_7613")
else
if((udg_GameMode==4))then
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),20.,"TRIGSTR_379")
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),20.,"TRIGSTR_386")
endif
endif
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerStateBJ(Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD,2)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player($B),3)
call SetPlayerAllianceStateBJ(Player($B),Player(-1+(bj_forLoopAIndex)),2)
call CreateFogModifierRectBJ(true,Player($B),FOG_OF_WAR_VISIBLE,udg_region_playable)
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
if((udg_Name_Change[bj_forLoopAIndex]==false))then
set udg_Name_RL[bj_forLoopAIndex]=" (普通青年)"
set udg_Name_JS[bj_forLoopAIndex]=" (刚死的僵尸)"
set udg_Name_DS[bj_forLoopAIndex]=" (落魄的大叔)"
set udg_Name_ZG[bj_forLoopAIndex]=" (小走狗)"
endif
if((Player(-1+(bj_forLoopAIndex))!=udg_Player12)and(IsPlayerInForce(Player(-1+(bj_forLoopAIndex)),udg_VSGroup[1])==false)and(IsPlayerInForce(Player(-1+(bj_forLoopAIndex)),udg_VSGroup[2])==false))then
set udg_Point=GetRandomLocInRect(udg_region_mainSpawn)
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x85B377FD")=="女")and(udg_Human=='H02R'))then
set udg_Human_Sp='H03H'
call CreateNUnitsAtLoc(1,udg_Human_Sp,Player(-1+(bj_forLoopAIndex)),udg_Point,bj_UNIT_FACING)
set udg_Farmer[bj_forLoopAIndex]=bj_lastCreatedUnit
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x85B377FD")=="女")and(udg_Human=='H034'))then
set udg_Human_Sp='H03I'
call CreateNUnitsAtLoc(1,udg_Human_Sp,Player(-1+(bj_forLoopAIndex)),udg_Point,bj_UNIT_FACING)
set udg_Farmer[bj_forLoopAIndex]=bj_lastCreatedUnit
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x85B377FD")=="女")and(udg_Human=='H033'))then
set udg_Human_Sp='H03J'
call CreateNUnitsAtLoc(1,udg_Human_Sp,Player(-1+(bj_forLoopAIndex)),udg_Point,bj_UNIT_FACING)
set udg_Farmer[bj_forLoopAIndex]=bj_lastCreatedUnit
else
call CreateNUnitsAtLoc(1,udg_Human,Player(-1+(bj_forLoopAIndex)),udg_Point,bj_UNIT_FACING)
set udg_Farmer[bj_forLoopAIndex]=bj_lastCreatedUnit
endif
endif
endif
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call UnitRemoveAbility(udg_Farmer[bj_forLoopAIndex],udg_Skill_Q[bj_forLoopBIndex])
call UnitRemoveAbility(udg_Farmer[bj_forLoopAIndex],udg_Skill_W[bj_forLoopBIndex])
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
if((GetUnitFoodMade(udg_Farmer[bj_forLoopAIndex])!=2))then
call TriggerExecute(gg_trg_ZB)
endif
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_Point)
if(((udg_GameMode==1)or(udg_GameMode==2)or(udg_GameMode==4)))then
call SetPlayerTechMaxAllowedSwap('h00A',2,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h03A',2,Player(-1+(bj_forLoopAIndex)))
else
call SetPlayerTechMaxAllowedSwap('h00A',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h03A',0,Player(-1+(bj_forLoopAIndex)))
endif
call SetPlayerTechMaxAllowedSwap('H01Z',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h022',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h028',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h00Q',2,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h02G',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h00W',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h032',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h035',1,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h008',2,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h00U',2,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h00Y',2,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h039',$A,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h03D',2,Player(-1+(bj_forLoopAIndex)))
call ForceAddPlayer(udg_Player_Group[1],Player(-1+(bj_forLoopAIndex)))
if((udg_TRUE_A==false)and(udg_Name[bj_forLoopAIndex]=="邪魔ご鬼神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((udg_TRUE_B==false)and(udg_Name[bj_forLoopAIndex]=="菊爆天神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(1),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="TO_Smile_MM_"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(2),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="MagicianMS"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(3),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="暴君"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(4),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="读得书少"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(5),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="传说中的123"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(6),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔&幽灵"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(7),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="恶魔-Max"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(8),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="黑桐"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(9),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔0.0"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($A),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="易碎丶蛋"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($B),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔死神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($C),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="残、缺"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($D),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="没牙的老虎"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($E),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="叫我大叔"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($F),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔ごRg"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(16),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="饼干战士"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(17),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="Dracula"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
set udg_Name_______u[bj_forLoopAIndex]=(udg_Name[bj_forLoopAIndex]+udg_Name_RL[bj_forLoopAIndex])
call SetPlayerName(Player(-1+(bj_forLoopAIndex)),udg_Name_______u[bj_forLoopAIndex])
if(((udg_GameMode==4)or(udg_GameMode==2)))then
call AdjustPlayerStateBJ(1,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_FOOD_CAP)
else
if((udg_GameMode==3))then
call AdjustPlayerStateBJ(2,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_FOOD_CAP)
endif
endif
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="杰出青年"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A059')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="邪魔殿"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A056')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="雅典娜"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A057')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="导播组"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A050')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="蛋氏"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A052')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="CaT"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A04Z')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="Vip"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A055')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="6"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A051')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="路人"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A053')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x64B285EC")=="Ace"))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A058')
else
if((udg_VIP[bj_forLoopAIndex]))then
call UnitAddAbility(udg_Farmer[bj_forLoopAIndex],'A03N')
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
else
if((Player(-1+(bj_forLoopAIndex))==udg_Player12))then
call ForceAddPlayer(udg_Player_Group[2],udg_Player12)
call SetPlayerTechMaxAllowedSwap('U002',0,udg_Player12)
call SetPlayerTechMaxAllowedSwap('U004',0,udg_Player12)
call SetPlayerTechMaxAllowedSwap('U000',0,udg_Player12)
if((udg_TRUE_A==false)and(udg_Name[bj_forLoopAIndex]=="邪魔ご鬼神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((udg_TRUE_B==false)and(udg_Name[bj_forLoopAIndex]=="菊爆天神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(1),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="TO_Smile_MM_"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(2),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="MagicianMS"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(3),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="暴君"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(4),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="读得书少"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(5),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="传说中的123"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(6),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔&幽灵"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(7),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="恶魔-Max"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(8),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="黑桐"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(9),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔0.0"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($A),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="易碎丶蛋"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($B),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔死神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($C),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="残、缺"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($D),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="没牙的老虎"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($E),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="叫我大叔"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($F),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔ごRg"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(16),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="饼干战士"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(17),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="Dracula"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
set udg_Name_______u[bj_forLoopAIndex]=(udg_Name[bj_forLoopAIndex]+udg_Name_JS[bj_forLoopAIndex])
call SetPlayerName(Player(-1+(bj_forLoopAIndex)),udg_Name_______u[bj_forLoopAIndex])
if((udg_GameMode==2))then
call AdjustPlayerStateBJ($C8,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
else
if((udg_GameMode==4))then
call AdjustPlayerStateBJ(360,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
endif
endif
else
if((udg_TRUE_A==false)and(udg_Name[bj_forLoopAIndex]=="邪魔ご鬼神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((udg_TRUE_B==false)and(udg_Name[bj_forLoopAIndex]=="菊爆天神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(1),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="TO_Smile_MM_"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(2),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="MagicianMS"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(3),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="暴君"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(4),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="读得书少"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(5),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="传说中的123"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(6),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔&幽灵"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(7),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="恶魔-Max"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(8),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="黑桐"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(9),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔0.0"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($A),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="易碎丶蛋"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($B),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔死神"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($C),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="残、缺"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($D),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="没牙的老虎"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($E),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="叫我大叔"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S($F),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="邪魔ごRg"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(16),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="饼干战士"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
if((GetStoredBoolean(YDGC,I2S(17),"0x39C13071")!=true)and(udg_Name[bj_forLoopAIndex]=="Dracula"))then
set udg_Name[bj_forLoopAIndex]="冒牌者"
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_TRUE_C))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[1]+(udg_Name[1]+"|r 是|cffffd700黄金主机|r，可以放心游戏！")))
set udg_HOST=("(|cffffd700黄金主机|r"+(udg_player_color[1]+(udg_Name[1]+"|r)")))
call SetUnitVertexColor(udg_Farmer[1],$96,80,20,$FF)
if((udg_DayNight_ON>udg_DayNight_OFF))then
call UnitAddAbility(udg_Farmer[1],'A03W')
else
call UnitAddAbility(udg_Farmer[1],'A035')
endif
endif
call YDWEPolledWaitNull(2)
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_Player_Group[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_VSGroup[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_Player_Group[2],3)
call SetForceAllianceStateBJ(udg_Player_Group[2],udg_VSGroup[2],3)
if((udg_GameMode==4))then
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),20.,"TRIGSTR_7786")
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),20.,"TRIGSTR_7787")
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Integer=(bj_forLoopAIndex+1)
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,1,udg_Integer,false,true)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,2,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,3,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,4,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,5,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,6,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,7,udg_Integer,true,false)
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,udg_Integer,(udg_player_color[bj_forLoopAIndex]+udg_Name_______u[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,4,udg_Integer,I2S(udg_Board_1[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,5,udg_Integer,I2S(udg_Board_2[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,6,udg_Integer,I2S(udg_Board_3[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,7,udg_Integer,I2S(udg_Board_4[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,3,udg_Integer,"0")
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,1,udg_Integer,3.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,2,udg_Integer,8.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,3,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,4,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,5,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,6,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(udg_Multiboard,7,udg_Integer,4.)
if((Player(-1+(bj_forLoopAIndex))!=udg_Player12))then
call YDWEMultiboardSetItemIconBJNull(udg_Multiboard,1,udg_Integer,"ReplaceableTextures\\CommandButtons\\BTNPeasant.blp")
else
call YDWEMultiboardSetItemIconBJNull(udg_Multiboard,1,udg_Integer,"ReplaceableTextures\\CommandButtons\\BTNHeroDeathKnight.blp")
endif
else
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,1,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,2,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,3,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,4,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,5,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,6,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(udg_Multiboard,7,udg_Integer,false,false)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_map==1))then
call PlayMusicBJ(gg_snd_HumanX1)
else
if((udg_map==2))then
call PlayMusicBJ(gg_snd_OrcX1)
else
if((udg_map==3))then
call PlayMusicBJ(gg_snd_UndeadX1)
else
if((udg_map==4))then
call PlayMusicBJ(gg_snd_BloodElfTheme)
else
if((udg_map==5))then
call PlayMusicBJ(gg_snd_IllidansTheme)
else
if((udg_map==6))then
call PlayMusicBJ(gg_snd_NightElfX1)
else
if((udg_map==7))then
call PlayMusicBJ(gg_snd_NagaTheme)
else
if((udg_map==8))then
call PlayMusicBJ(gg_snd_ArthasTheme)
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function InitTrig_players takes nothing returns nothing
set gg_trg_players=CreateTrigger()
call TriggerAddAction(gg_trg_players,function Trig_playersActions)
endfunction
function Trig_heroTrainConditions takes nothing returns boolean
return((udg_build[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)and(GetUnitTypeId(GetTriggerUnit())=='h02T'))
endfunction
function Trig_heroTrainActions takes nothing returns nothing
set udg_build[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Army[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=5
call SetPlayerTechMaxAllowedSwap('h02U',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h038',$A,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h010',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h011',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02X',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A031',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02U',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Z',false)
call SetPlayerTechMaxAllowedSwap('R000',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R001',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R002',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R003',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',40,GetOwningPlayer(GetTriggerUnit()))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$C
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechMaxAllowedSwap('h02T',0,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_heroTrain takes nothing returns nothing
set gg_trg_heroTrain=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_heroTrain,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_heroTrain,Condition(function Trig_heroTrainConditions))
call TriggerAddAction(gg_trg_heroTrain,function Trig_heroTrainActions)
endfunction
function Trig_demolishConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A011'))
endfunction
function Trig_demolishActions takes nothing returns nothing
if((GetUnitTypeId(GetSpellTargetUnit())!=udg_Human)and(GetOwningPlayer(GetSpellTargetUnit())==GetOwningPlayer(GetTriggerUnit())))then
call KillUnit(GetSpellTargetUnit())
set udg_Point=GetUnitLoc(GetSpellTargetUnit())
if((IsUnitType(GetSpellTargetUnit(),UNIT_TYPE_STRUCTURE)))then
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Human\\ThunderClap\\ThunderClapCaster.mdl")
else
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Undead\\ReplenishHealth\\ReplenishHealthCaster.mdl")
endif
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_Point)
endif
endfunction
function InitTrig_demolish takes nothing returns nothing
set gg_trg_demolish=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_demolish,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_demolish,Condition(function Trig_demolishConditions))
call TriggerAddAction(gg_trg_demolish,function Trig_demolishActions)
endfunction
function Trig_OpenCloseGateConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01I'))
endfunction
function Trig_OpenCloseGateFunc001Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc001Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc002Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc002Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc003Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc003Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc004Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc004Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc005Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc005Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc006Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc006Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc007Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc007Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc008Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc008Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc009Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc009Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc010Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc010Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc011Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc011Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateFunc012Func003A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),false)
endfunction
function Trig_OpenCloseGateFunc012Func006A takes nothing returns nothing
call ShowUnit(GetEnumUnit(),true)
endfunction
function Trig_OpenCloseGateActions takes nothing returns nothing
if((GetUnitTypeId(GetTriggerUnit())=='h019'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc001Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01A',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc001Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01A'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc002Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h019',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc002Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01B'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc003Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01C',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc003Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01D'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc004Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01E',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc004Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01F'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc005Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01G',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc005Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01H'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc006Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01I',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc006Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01J'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc007Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01K',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc007Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call SetUnitAnimation(bj_lastReplacedUnit,"Death Alternate")
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01C'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc008Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01B',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc008Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01E'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc009Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01D',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc009Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01G'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc010Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01F',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc010Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01I'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc011Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01H',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc011Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01K'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",(YDWEGetUnitsInRangeOfLocMatchingNull(((500.)*1.),(YDWEGetLocalVariableLocation("a")),null)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc012Func003A)
call YDWEReplaceUnitBJNull(GetTriggerUnit(),'h01J',1)
call SetUnitPathing(bj_lastReplacedUnit,false)
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_OpenCloseGateFunc012Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call ResetUnitAnimation(bj_lastReplacedUnit)
call SelectUnitForPlayerSingle(bj_lastReplacedUnit,GetOwningPlayer(GetTriggerUnit()))
call SetUnitPathing(bj_lastReplacedUnit,true)
endif
endfunction
function InitTrig_OpenCloseGate takes nothing returns nothing
set gg_trg_OpenCloseGate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_OpenCloseGate,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_OpenCloseGate,Condition(function Trig_OpenCloseGateConditions))
call TriggerAddAction(gg_trg_OpenCloseGate,function Trig_OpenCloseGateActions)
endfunction
function Trig_bConditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご鬼神")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Nightmare")))
endfunction
function Trig_bActions takes nothing returns nothing
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ($A,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endif
endif
endif
endfunction
function InitTrig_b takes nothing returns nothing
set gg_trg_b=CreateTrigger()
call DisableTrigger(gg_trg_b)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($F))
call TriggerAddCondition(gg_trg_b,Condition(function Trig_bConditions))
call TriggerAddAction(gg_trg_b,function Trig_bActions)
endfunction
function Trig_b_______uConditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="菊爆天神"))
endfunction
function Trig_b_______uActions takes nothing returns nothing
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ(5,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ($FA,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ($FA,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ($FA,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ($FA,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
else
if((udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]==(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))])))then
call AdjustPlayerStateBJ($FA,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endif
endif
endif
endif
endfunction
function InitTrig_b_______u takes nothing returns nothing
set gg_trg_b_______u=CreateTrigger()
call DisableTrigger(gg_trg_b_______u)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($F))
call TriggerAddCondition(gg_trg_b_______u,Condition(function Trig_b_______uConditions))
call TriggerAddAction(gg_trg_b_______u,function Trig_b_______uActions)
endfunction
function Trig_b_2Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="MagicianMS"))
endfunction
function Trig_b_2Actions takes nothing returns nothing
call AdjustPlayerStateBJ(5,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ($96,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function InitTrig_b_2 takes nothing returns nothing
set gg_trg_b_2=CreateTrigger()
call DisableTrigger(gg_trg_b_2)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($F))
call TriggerAddCondition(gg_trg_b_2,Condition(function Trig_b_2Conditions))
call TriggerAddAction(gg_trg_b_2,function Trig_b_2Actions)
endfunction
function Trig_TradeFunc001Func001Func001Func003Func001002002 takes nothing returns boolean
return((IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit())))!=null
endfunction
function Trig_TradeActions takes nothing returns nothing
if((GetSpellAbilityId()=='A01J'))then
if((GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)>=udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))then
set udg_Integer2=$A
call AdjustPlayerStateBJ((udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*-1),GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(udg_Integer2,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,("交换 |c0027DF00"+(I2S(udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])+("|r 木头为 |cffffcc00"+(I2S(udg_Integer2)+"|r 黄金.")))))
set udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+5)
else
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,("木头不够，至少需要:|c0027DF00 "+I2S(udg_integer_base_wood_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
endif
else
if((GetSpellAbilityId()=='A01Y'))then
if((GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))then
set udg_Integer2=$C8
call AdjustPlayerStateBJ((udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]*-1),GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(udg_Integer2,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,("交换 |cffffcc00"+(I2S(udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])+("|r 黄金为 |c0027DF00"+(I2S(udg_Integer2)+"|r 木头.")))))
set udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
else
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,("黄金不够，至少需要:|cffffcc00 "+I2S(udg_integer_base_gold_trade_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
endif
else
if((GetSpellAbilityId()=='A01X'))then
set udg_Integer=$F
if((GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=udg_Integer))then
set udg_Group=YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_TradeFunc001Func001Func001Func003Func001002002))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit!=null))then
call AdjustPlayerStateBJ((udg_Integer*-1),GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call SetHeroLevelBJ(udg_Unit,(GetHeroLevel(udg_Unit)+1),true)
else
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),5.,"|cffffcc00使用该动作时，你的英雄必须是活的。|r")
endif
endif
endif
endif
endif
endfunction
function InitTrig_Trade takes nothing returns nothing
set gg_trg_Trade=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Trade,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_Trade,function Trig_TradeActions)
endfunction
function Trig_TowerAttackActions takes nothing returns nothing
if((GetUnitTypeId(GetAttacker())=='h01M'))then
call IssueTargetOrderById(GetAttacker(),$D0097,GetTriggerUnit())
else
if((GetUnitTypeId(GetAttacker())=='h01N'))then
call IssueTargetOrderById(GetAttacker(),$D007C,GetTriggerUnit())
else
if((GetUnitTypeId(GetAttacker())=='h021'))then
set udg_Point=GetUnitLoc(GetTriggerUnit())
call IssuePointOrderByIdLoc(GetAttacker(),$D00FA,udg_Point)
call RemoveLocation(udg_Point)
else
if((GetUnitTypeId(GetAttacker())=='h03A'))then
call IssueTargetOrderById(GetAttacker(),$D02B6,GetTriggerUnit())
else
if((GetUnitTypeId(GetAttacker())=='h03D'))then
call IssueTargetOrderById(GetAttacker(),$D0102,GetTriggerUnit())
else
if((GetUnitTypeId(GetAttacker())=='h02V')and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)))then
call IssueTargetOrderById(GetAttacker(),$D007F,GetTriggerUnit())
call YDWEPolledWaitNull(.5)
call IssueTargetOrderById(GetAttacker(),$D000F,GetTriggerUnit())
else
if(((GetUnitTypeId(GetAttacker())=='h02S')or(GetUnitTypeId(GetAttacker())=='h02Q'))and(IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE)==false)and(UnitHasBuffBJ(GetTriggerUnit(),'Beng')==false)and(UnitHasBuffBJ(GetTriggerUnit(),'Bena')==false))then
call IssueTargetOrderById(GetAttacker(),$D008A,GetTriggerUnit())
endif
endif
endif
endif
endif
endif
endif
endfunction
function InitTrig_TowerAttack takes nothing returns nothing
set gg_trg_TowerAttack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_TowerAttack,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(gg_trg_TowerAttack,function Trig_TowerAttackActions)
endfunction
function Trig_FlagConditions takes nothing returns boolean
return((IsUnitEnemy(GetConstructingStructure(),udg_Player12)))
endfunction
function Trig_FlagFunc004002003 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())!=GetOwningPlayer(GetConstructingStructure()))))
endfunction
function Trig_FlagFunc006A takes nothing returns nothing
if((udg_Bolean==false))then
if((GetUnitTypeId(GetEnumUnit())=='h022'))then
set udg_Unit=GetEnumUnit()
if((YDTRIGGER_GET_player(I2S(YDTRIGGER_H2I(GetOwningPlayer(GetConstructingStructure()))),"0xD0BCEB3E")!=GetOwningPlayer(udg_Unit))and(YDTRIGGER_GET_player(I2S(YDTRIGGER_H2I(GetOwningPlayer(GetConstructingStructure()))),"0x657DACBA")==GetOwningPlayer(udg_Unit)))then
set udg_Bolean=true
call KillUnit(GetConstructingStructure())
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetConstructingStructure())),5.,("本地区属于 "+(udg_player_color[(1+GetPlayerId(GetOwningPlayer(udg_Unit)))]+(GetPlayerName(GetOwningPlayer(udg_Unit))+"|r"))))
endif
else
if(((GetUnitTypeId(GetEnumUnit())=='h000')or(GetUnitTypeId(GetEnumUnit())=='h004')or(GetUnitTypeId(GetEnumUnit())=='h001')or(GetUnitTypeId(GetEnumUnit())=='h003')or(GetUnitTypeId(GetEnumUnit())=='h002')or(GetUnitTypeId(GetEnumUnit())=='h023')))then
set udg_Bolean=true
call KillUnit(GetConstructingStructure())
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetConstructingStructure())),5.,"你不能在此建造。")
endif
endif
endif
endfunction
function Trig_FlagActions takes nothing returns nothing
if((GetUnitTypeId(GetConstructingStructure())=='h022'))then
set udg_Real=2000.
else
set udg_Real=1000.
endif
set udg_Bolean=false
set udg_Point=GetUnitLoc(GetConstructingStructure())
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(udg_Real,udg_Point,Condition(function Trig_FlagFunc004002003))
call RemoveLocation(udg_Point)
call ForGroupBJ(udg_Group,function Trig_FlagFunc006A)
call DestroyGroup(udg_Group)
endfunction
function InitTrig_Flag takes nothing returns nothing
set gg_trg_Flag=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Flag,EVENT_PLAYER_UNIT_CONSTRUCT_START)
call TriggerAddCondition(gg_trg_Flag,Condition(function Trig_FlagConditions))
call TriggerAddAction(gg_trg_Flag,function Trig_FlagActions)
endfunction
function Trig_FlagAllowActions takes nothing returns nothing
if((SubStringBJ(GetEventPlayerChatString(),1,7)=="-allow "))then
set udg_String=SubStringBJ(GetEventPlayerChatString(),8,16)
set udg_Bolean=false
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((udg_String==udg_player_color_code[bj_forLoopAIndex])and(udg_String!=udg_player_color_code[(1+GetPlayerId(GetTriggerPlayer()))]))then
set udg_Bolean=true
call StoreInteger(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0xD0BCEB3E",YDTRIGGER_H2I(GetTriggerPlayer()))
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetTriggerPlayer()),5.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 来和我一起建造吧！")))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_Bolean==false))then
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetTriggerPlayer()),10.,"TRIGSTR_4945")
endif
else
if((SubStringBJ(GetEventPlayerChatString(),1,$A)=="-disallow  "))then
set udg_String=SubStringBJ(GetEventPlayerChatString(),$B,19)
set udg_Bolean=false
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((udg_String==udg_player_color_code[bj_forLoopAIndex])and(udg_String!=udg_player_color_code[(1+GetPlayerId(GetTriggerPlayer()))]))then
set udg_Bolean=true
call StoreInteger(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(bj_forLoopAIndex)))),"0x657DACBA",YDTRIGGER_H2I(GetTriggerPlayer()))
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetTriggerPlayer()),5.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 跟老子滚远点！")))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_Bolean==false))then
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetTriggerPlayer()),10.,"TRIGSTR_3504")
endif
endif
endif
endfunction
function InitTrig_FlagAllow takes nothing returns nothing
set gg_trg_FlagAllow=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(0),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(1),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(2),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(3),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(4),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(5),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(6),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(7),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(8),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(9),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player($A),"",false)
call TriggerAddAction(gg_trg_FlagAllow,function Trig_FlagAllowActions)
endfunction
function Trig_spikesConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h027')and(IsUnitEnemy(GetTriggerUnit(),GetOwningPlayer(GetAttacker()))))
endfunction
function Trig_spikesActions takes nothing returns nothing
set udg_Real=(GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x736A3C94")*udg_real_spikes_damage)
call UnitDamageTargetBJ(GetTriggerUnit(),GetAttacker(),udg_Real,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL)
call AddSpecialEffectTargetUnitBJ("chest",GetAttacker(),"Objects\\Spawnmodels\\Critters\\Albatross\\CritterBloodAlbatross.mdl")
call DestroyEffect(bj_lastCreatedEffect)
endfunction
function InitTrig_spikes takes nothing returns nothing
set gg_trg_spikes=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_spikes,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_spikes,Condition(function Trig_spikesConditions))
call TriggerAddAction(gg_trg_spikes,function Trig_spikesActions)
endfunction
function Trig_sonicTowerConditions takes nothing returns boolean
return(((GetUnitTypeId(GetAttacker())=='h029')or(GetUnitTypeId(GetAttacker())=='h02B')or(GetUnitTypeId(GetAttacker())=='h02C')or(GetUnitTypeId(GetAttacker())=='h02D')or(GetUnitTypeId(GetAttacker())=='h02E')or(GetUnitTypeId(GetAttacker())=='h02F')))
endfunction
function Trig_sonicTowerActions takes nothing returns nothing
if(((GetUnitTypeId(GetAttacker())=='h029')or(GetUnitTypeId(GetAttacker())=='h02B')or(GetUnitTypeId(GetAttacker())=='h02C')or(GetUnitTypeId(GetAttacker())=='h02D')or(GetUnitTypeId(GetAttacker())=='h02E')or(GetUnitTypeId(GetAttacker())=='h02F')))then
if(((GetUnitTypeId(GetTriggerUnit())=='h029')or(GetUnitTypeId(GetTriggerUnit())=='h02B')or(GetUnitTypeId(GetTriggerUnit())=='h02C')or(GetUnitTypeId(GetTriggerUnit())=='h02D')or(GetUnitTypeId(GetTriggerUnit())=='h02E')or(GetUnitTypeId(GetTriggerUnit())=='h02F')))then
set udg_Point=GetUnitLoc(GetAttacker())
set udg_Point2=GetUnitLoc(GetTriggerUnit())
set udg_Real=AngleBetweenPoints(udg_Point,udg_Point2)
call RemoveLocation(udg_Point)
call RemoveLocation(udg_Point2)
set udg_Point=GetUnitLoc(GetAttacker())
call CreateNUnitsAtLoc(1,'h02A',GetOwningPlayer(GetAttacker()),udg_Point,udg_Real)
call RemoveLocation(udg_Point)
call UnitApplyTimedLifeBJ(3.,'BTLF',bj_lastCreatedUnit)
call IssueTargetOrderById(bj_lastCreatedUnit,$D000F,GetTriggerUnit())
call YDWEPolledWaitNull(1.)
call IssueTargetOrderById(GetAttacker(),$D000F,GetTriggerUnit())
else
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetAttacker())),5.,"只能A音速塔.")
endif
endif
endfunction
function InitTrig_sonicTower takes nothing returns nothing
set gg_trg_sonicTower=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_sonicTower,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_sonicTower,Condition(function Trig_sonicTowerConditions))
call TriggerAddAction(gg_trg_sonicTower,function Trig_sonicTowerActions)
endfunction
function Trig_sonictowerConditions takes nothing returns boolean
return((GetUnitTypeId(GetEventDamageSource())=='h02A')and((GetUnitTypeId(GetTriggerUnit())=='h029')or(GetUnitTypeId(GetTriggerUnit())=='h02B')or(GetUnitTypeId(GetTriggerUnit())=='h02C')or(GetUnitTypeId(GetTriggerUnit())=='h02D')or(GetUnitTypeId(GetTriggerUnit())=='h02E')or(GetUnitTypeId(GetTriggerUnit())=='h02F')))
endfunction
function Trig_sonictowerFunc003002003 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)))
endfunction
function Trig_sonictowerFunc004A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),40.,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_sonictowerActions takes nothing returns nothing
call RemoveUnit(GetEventDamageSource())
set udg_Point=GetUnitLoc(GetTriggerUnit())
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(300.,udg_Point,Condition(function Trig_sonictowerFunc003002003))
call ForGroupBJ(udg_Group,function Trig_sonictowerFunc004A)
call DestroyGroup(udg_Group)
endfunction
function InitTrig_sonictower takes nothing returns nothing
set gg_trg_sonictower=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_sonictower)
call TriggerAddCondition(gg_trg_sonictower,Condition(function Trig_sonictowerConditions))
call TriggerAddAction(gg_trg_sonictower,function Trig_sonictowerActions)
endfunction
function Trig_dashuConditions takes nothing returns boolean
return((IsUnitType(GetTriggerUnit(),UNIT_TYPE_STRUCTURE))and(GetUnitTypeId(GetAttacker())=='H01Z')and(UnitHasBuffBJ(GetAttacker(),'BHds')))!=null
endfunction
function Trig_dashuActions takes nothing returns nothing
call IssueImmediateOrderById(GetAttacker(),$D0004)
call DisplayTextToPlayer(GetOwningPlayer(GetAttacker()),0,0,"开启无敌时不能攻击建筑物！")
endfunction
function InitTrig_dashu takes nothing returns nothing
set gg_trg_dashu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_dashu,Condition(function Trig_dashuConditions))
call TriggerAddAction(gg_trg_dashu,function Trig_dashuActions)
endfunction
function Trig_dashu2Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02I'))
endfunction
function Trig_dashu2Func008003003 takes nothing returns boolean
return((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))!=null
endfunction
function Trig_dashu2Func009A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),YDWEGetLocalVariableRealArray("R",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_ROCK_HEAVY_BASH)
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Other\\Stampede\\StampedeMissileDeath.mdl",GetEnumUnit(),"chest"))
endfunction
function Trig_dashu2Actions takes nothing returns nothing
call YDWESetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),GetSpellTargetUnit())
call YDWESetLocalVariableRealArray("R",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),(GetUnitState(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),UNIT_STATE_MAX_LIFE)*2.))
call SetUnitAnimation(GetTriggerUnit(),"attack")
call SetUnitManaBJ(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),0)
call YDWEWaitForLocalVariable(.3)
call YDWESetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),GetUnitLoc(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))))
call SetUnitPositionLoc(GetTriggerUnit(),YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))
call YDWESetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),YDWEGetUnitsInRangeOfLocMatchingNull(300.,YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),Condition(function Trig_dashu2Func008003003)))
call ForGroupBJ(YDWEGetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),function Trig_dashu2Func009A)
call DestroyGroup(YDWEGetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Orc\\WarStomp\\WarStompCaster.mdl",GetTriggerUnit(),"origin"))
call RemoveLocation(YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))
set udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
set udg_RG_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]=(udg_RG_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]+1)
if((udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==5)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (日狗者)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==$A)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (日狗达人)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==20)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (走狗克星)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_RG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==30)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (日狗大将军)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_RG_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]==$A)and(GetPlayerSlotState(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]=" (狗日的)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))])
call SetPlayerName(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))))]))
else
return
endif
endfunction
function InitTrig_dashu2 takes nothing returns nothing
set gg_trg_dashu2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu2,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_dashu2,Condition(function Trig_dashu2Conditions))
call TriggerAddAction(gg_trg_dashu2,function Trig_dashu2Actions)
endfunction
function Trig_dashu2_______uConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02J'))
endfunction
function Trig_dashu2_______uFunc003003003 takes nothing returns boolean
return((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE))or(IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))))!=null
endfunction
function Trig_dashu2_______uFunc004A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),YDWEGetLocalVariableRealArray("R",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),true,false,ATTACK_TYPE_MELEE,DAMAGE_TYPE_NORMAL,WEAPON_TYPE_ROCK_HEAVY_BASH)
endfunction
function Trig_dashu2_______uActions takes nothing returns nothing
call YDWESetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),GetSpellTargetLoc())
call YDWESetLocalVariableRealArray("R",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),(GetUnitState(GetTriggerUnit(),UNIT_STATE_MAX_LIFE)*2.))
call YDWESetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),YDWEGetUnitsInRangeOfLocMatchingNull(320.,YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),Condition(function Trig_dashu2_______uFunc003003003)))
call ForGroupBJ(YDWEGetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),function Trig_dashu2_______uFunc004A)
call DestroyGroup(YDWEGetLocalVariableGroupArray("at",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))
call DestroyEffect(AddSpecialEffectLoc("Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl",YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))))))
call CreateNUnitsAtLoc(1,'n003',GetOwningPlayer(GetTriggerUnit()),YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),bj_UNIT_FACING)
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A03J',2)
call IssueImmediateOrderById(bj_lastCreatedUnit,$D009F)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',1.)
call RemoveLocation(YDWEGetLocalVariableLocationArray("a",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))))
set udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
if((udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==5)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (炮灰)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==$A)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (自爆狂狗)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==20)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (自爆王)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
if((udg_ZB[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==30)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (人类的噩梦)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
else
return
endif
endfunction
function InitTrig_dashu2_______u takes nothing returns nothing
set gg_trg_dashu2_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu2_______u,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_dashu2_______u,Condition(function Trig_dashu2_______uConditions))
call TriggerAddAction(gg_trg_dashu2_______u,function Trig_dashu2_______uActions)
endfunction
function Trig_aConditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご鬼神")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Nightmare")))
endfunction
function Trig_aActions takes nothing returns nothing
call EnableTrigger(gg_trg_VIP_00)
endfunction
function InitTrig_a takes nothing returns nothing
set gg_trg_a=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(0),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(1),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(2),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(3),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(4),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(5),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(6),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(7),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(8),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(9),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($A),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($B),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($C),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($D),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($E),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($F),"    ",true)
call TriggerAddCondition(gg_trg_a,Condition(function Trig_aConditions))
call TriggerAddAction(gg_trg_a,function Trig_aActions)
endfunction
function Trig_VIP_00Conditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご鬼神")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Nightmare")))
endfunction
function Trig_VIP_00Actions takes nothing returns nothing
set udg_TRUE_A=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","邪魔殿")
call EnableTrigger(gg_trg_b)
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_00 takes nothing returns nothing
set gg_trg_VIP_00=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($F))
call TriggerAddCondition(gg_trg_VIP_00,Condition(function Trig_VIP_00Conditions))
call TriggerAddAction(gg_trg_VIP_00,function Trig_VIP_00Actions)
endfunction
function Trig_VIP_01Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="TO_Smile_MM_"))
endfunction
function Trig_VIP_01Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (智慧女神)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (智慧女神)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (智慧女神)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (智慧女神)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreBoolean(YDGC,I2S(1),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","雅典娜")
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x85B377FD","女")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_01 takes nothing returns nothing
set gg_trg_VIP_01=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(0),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(1),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(2),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(3),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(4),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(5),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(6),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(7),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(8),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(9),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($A),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($B),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($C),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($D),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($E),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($F),"205   ",true)
call TriggerAddCondition(gg_trg_VIP_01,Condition(function Trig_VIP_01Conditions))
call TriggerAddAction(gg_trg_VIP_01,function Trig_VIP_01Actions)
endfunction
function Trig_VIP_01_______uConditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="小雯"))
endfunction
function Trig_VIP_01_______uActions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (戦場姫あや绫乃)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (戦場姫あや绫乃)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (戦場姫あや绫乃)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (戦場姫あや绫乃)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x85B377FD","女")
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_01_______u takes nothing returns nothing
set gg_trg_VIP_01_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(0),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(1),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(2),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(3),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(4),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(5),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(6),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(7),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(8),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(9),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($A),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($B),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($C),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($D),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($E),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($F),"205   ",true)
call TriggerAddCondition(gg_trg_VIP_01_______u,Condition(function Trig_VIP_01_______uConditions))
call TriggerAddAction(gg_trg_VIP_01_______u,function Trig_VIP_01_______uActions)
endfunction
function Trig_VIP_02Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="MagicianMS"))
endfunction
function Trig_VIP_02Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强僵尸不败神话)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强僵尸不败神话)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreBoolean(YDGC,I2S(2),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call EnableTrigger(gg_trg_b_2)
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_02 takes nothing returns nothing
set gg_trg_VIP_02=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(0),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(1),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(2),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(3),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(4),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(5),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(6),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(7),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(8),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(9),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($A),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($B),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($C),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($D),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($E),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($F),"423   ",true)
call TriggerAddCondition(gg_trg_VIP_02,Condition(function Trig_VIP_02Conditions))
call TriggerAddAction(gg_trg_VIP_02,function Trig_VIP_02Actions)
endfunction
function Trig_VIP_03Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="暴君"))
endfunction
function Trig_VIP_03Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(3),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_03 takes nothing returns nothing
set gg_trg_VIP_03=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(0),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(1),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(2),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(3),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(4),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(5),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(6),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(7),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(8),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(9),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($A),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($B),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($C),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($D),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($E),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($F),"a123456",true)
call TriggerAddCondition(gg_trg_VIP_03,Condition(function Trig_VIP_03Conditions))
call TriggerAddAction(gg_trg_VIP_03,function Trig_VIP_03Actions)
endfunction
function Trig_VIP_04Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="SAS"))
endfunction
function Trig_VIP_04Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_04 takes nothing returns nothing
set gg_trg_VIP_04=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(0),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(1),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(2),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(3),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(4),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(5),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(6),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(7),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(8),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(9),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($A),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($B),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($C),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($D),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($E),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($F),"qwe123",true)
call TriggerAddCondition(gg_trg_VIP_04,Condition(function Trig_VIP_04Conditions))
call TriggerAddAction(gg_trg_VIP_04,function Trig_VIP_04Actions)
endfunction
function Trig_VIP_05Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="读得书少"))
endfunction
function Trig_VIP_05Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(4),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_05 takes nothing returns nothing
set gg_trg_VIP_05=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(0),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(1),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(2),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(3),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(4),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(5),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(6),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(7),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(8),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(9),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($A),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($B),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($C),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($D),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($E),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($F),"9527",true)
call TriggerAddCondition(gg_trg_VIP_05,Condition(function Trig_VIP_05Conditions))
call TriggerAddAction(gg_trg_VIP_05,function Trig_VIP_05Actions)
endfunction
function Trig_VIP_06Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="传说中的123"))
endfunction
function Trig_VIP_06Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(5),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_06 takes nothing returns nothing
set gg_trg_VIP_06=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(0),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(1),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(2),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(3),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(4),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(5),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(6),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(7),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(8),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(9),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($A),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($B),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($C),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($D),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($E),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($F),"520408",true)
call TriggerAddCondition(gg_trg_VIP_06,Condition(function Trig_VIP_06Conditions))
call TriggerAddAction(gg_trg_VIP_06,function Trig_VIP_06Actions)
endfunction
function Trig_VIP_07Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔&幽灵"))
endfunction
function Trig_VIP_07Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(6),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_07 takes nothing returns nothing
set gg_trg_VIP_07=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(0),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(1),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(2),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(3),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(4),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(5),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(6),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(7),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(8),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(9),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($A),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($B),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($C),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($D),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($E),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($F),"9528",true)
call TriggerAddCondition(gg_trg_VIP_07,Condition(function Trig_VIP_07Conditions))
call TriggerAddAction(gg_trg_VIP_07,function Trig_VIP_07Actions)
endfunction
function Trig_VIP_08Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="恶魔-Max"))
endfunction
function Trig_VIP_08Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(7),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_08 takes nothing returns nothing
set gg_trg_VIP_08=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(0),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(1),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(2),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(3),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(4),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(5),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(6),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(7),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(8),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(9),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($A),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($B),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($C),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($D),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($E),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($F),"00",true)
call TriggerAddCondition(gg_trg_VIP_08,Condition(function Trig_VIP_08Conditions))
call TriggerAddAction(gg_trg_VIP_08,function Trig_VIP_08Actions)
endfunction
function Trig_VIP_09Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="asa"))
endfunction
function Trig_VIP_09Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_09 takes nothing returns nothing
set gg_trg_VIP_09=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(0),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(1),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(2),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(3),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(4),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(5),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(6),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(7),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(8),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(9),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($A),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($B),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($C),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($D),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($E),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($F),"1",true)
call TriggerAddCondition(gg_trg_VIP_09,Condition(function Trig_VIP_09Conditions))
call TriggerAddAction(gg_trg_VIP_09,function Trig_VIP_09Actions)
endfunction
function Trig_VIP_10Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="黑桐"))
endfunction
function Trig_VIP_10Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强走狗坑人无数)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强走狗坑人无数)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强走狗坑人无数)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (最强走狗坑人无数)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreBoolean(YDGC,I2S(8),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_10 takes nothing returns nothing
set gg_trg_VIP_10=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(0),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(1),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(2),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(3),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(4),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(5),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(6),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(7),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(8),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(9),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($A),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($B),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($C),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($D),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($E),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($F),"2682465",true)
call TriggerAddCondition(gg_trg_VIP_10,Condition(function Trig_VIP_10Conditions))
call TriggerAddAction(gg_trg_VIP_10,function Trig_VIP_10Actions)
endfunction
function Trig_VIP_11Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip邪魔2.2"))
endfunction
function Trig_VIP_11Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比二蛋)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比二蛋)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比二蛋)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比二蛋)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreBoolean(YDGC,I2S(9),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_11 takes nothing returns nothing
set gg_trg_VIP_11=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(0),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(1),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(2),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(3),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(4),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(5),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(6),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(7),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(8),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(9),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($A),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($B),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($C),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($D),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($E),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($F),"56399222",true)
call TriggerAddCondition(gg_trg_VIP_11,Condition(function Trig_VIP_11Conditions))
call TriggerAddAction(gg_trg_VIP_11,function Trig_VIP_11Actions)
endfunction
function Trig_VIP_12Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="易碎丶①蛋"))
endfunction
function Trig_VIP_12Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (内战组织部长)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (内战组织部长)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (内战组织部长)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (内战组织部长)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreBoolean(YDGC,I2S($A),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_12 takes nothing returns nothing
set gg_trg_VIP_12=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(0),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(1),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(2),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(3),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(4),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(5),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(6),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(7),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(8),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(9),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($A),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($B),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($C),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($D),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($E),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($F),"520",true)
call TriggerAddCondition(gg_trg_VIP_12,Condition(function Trig_VIP_12Conditions))
call TriggerAddAction(gg_trg_VIP_12,function Trig_VIP_12Actions)
endfunction
function Trig_VIP_13Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="77"))
endfunction
function Trig_VIP_13Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_13 takes nothing returns nothing
set gg_trg_VIP_13=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(0),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(1),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(2),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(3),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(4),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(5),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(6),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(7),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(8),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(9),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($A),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($B),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($C),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($D),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($E),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($F),"  ",true)
call TriggerAddCondition(gg_trg_VIP_13,Condition(function Trig_VIP_13Conditions))
call TriggerAddAction(gg_trg_VIP_13,function Trig_VIP_13Actions)
endfunction
function Trig_VIP_14Conditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔死神")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご死神")))
endfunction
function Trig_VIP_14Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S($B),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","邪魔殿")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_14 takes nothing returns nothing
set gg_trg_VIP_14=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(0),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(1),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(2),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(3),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(4),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(5),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(6),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(7),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(8),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(9),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($A),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($B),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($C),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($D),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($E),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($F),"455",true)
call TriggerAddCondition(gg_trg_VIP_14,Condition(function Trig_VIP_14Conditions))
call TriggerAddAction(gg_trg_VIP_14,function Trig_VIP_14Actions)
endfunction
function Trig_VIP_15Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="残、缺"))
endfunction
function Trig_VIP_15Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S($C),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_15 takes nothing returns nothing
set gg_trg_VIP_15=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(0),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(1),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(2),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(3),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(4),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(5),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(6),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(7),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(8),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(9),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($A),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($B),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($C),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($D),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($E),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($F),"86486765",true)
call TriggerAddCondition(gg_trg_VIP_15,Condition(function Trig_VIP_15Conditions))
call TriggerAddAction(gg_trg_VIP_15,function Trig_VIP_15Actions)
endfunction
function Trig_VIP_16Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="没牙的老虎"))
endfunction
function Trig_VIP_16Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S($D),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_16 takes nothing returns nothing
set gg_trg_VIP_16=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(0),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(1),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(2),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(3),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(4),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(5),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(6),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(7),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(8),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(9),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($A),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($B),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($C),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($D),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($E),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($F),"860925",true)
call TriggerAddCondition(gg_trg_VIP_16,Condition(function Trig_VIP_16Conditions))
call TriggerAddAction(gg_trg_VIP_16,function Trig_VIP_16Actions)
endfunction
function Trig_VIP_17Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="叫我大叔"))
endfunction
function Trig_VIP_17Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S($E),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_17 takes nothing returns nothing
set gg_trg_VIP_17=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(0),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(1),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(2),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(3),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(4),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(5),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(6),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(7),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(8),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(9),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($A),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($B),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($C),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($D),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($E),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($F),"1314",true)
call TriggerAddCondition(gg_trg_VIP_17,Condition(function Trig_VIP_17Conditions))
call TriggerAddAction(gg_trg_VIP_17,function Trig_VIP_17Actions)
endfunction
function Trig_VIP_18Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ごRg"))
endfunction
function Trig_VIP_18Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S($F),"0x39C13071",true)
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","邪魔殿")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_18 takes nothing returns nothing
set gg_trg_VIP_18=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(0),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(1),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(2),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(3),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(4),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(5),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(6),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(7),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(8),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(9),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($A),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($B),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($C),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($D),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($E),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($F),"1234567q",true)
call TriggerAddCondition(gg_trg_VIP_18,Condition(function Trig_VIP_18Conditions))
call TriggerAddAction(gg_trg_VIP_18,function Trig_VIP_18Actions)
endfunction
function Trig_VIP_19Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="饼干战士"))
endfunction
function Trig_VIP_19Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(16),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_19 takes nothing returns nothing
set gg_trg_VIP_19=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(0),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(1),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(2),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(3),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(4),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(5),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(6),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(7),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(8),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(9),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($A),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($B),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($C),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($D),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($E),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($F),"???",true)
call TriggerAddCondition(gg_trg_VIP_19,Condition(function Trig_VIP_19Conditions))
call TriggerAddAction(gg_trg_VIP_19,function Trig_VIP_19Actions)
endfunction
function Trig_VIP_20Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Dracula"))
endfunction
function Trig_VIP_20Actions takes nothing returns nothing
call StoreBoolean(YDGC,I2S(17),"0x39C13071",true)
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_20 takes nothing returns nothing
set gg_trg_VIP_20=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(0),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(1),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(2),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(3),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(4),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(5),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(6),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(7),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(8),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(9),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($A),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($B),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($C),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($D),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($E),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($F),"048",true)
call TriggerAddCondition(gg_trg_VIP_20,Condition(function Trig_VIP_20Conditions))
call TriggerAddAction(gg_trg_VIP_20,function Trig_VIP_20Actions)
endfunction
function Trig_VIP_21Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="ads"))
endfunction
function Trig_VIP_21Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_21 takes nothing returns nothing
set gg_trg_VIP_21=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(0),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(1),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(2),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(3),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(4),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(5),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(6),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(7),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(8),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(9),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($A),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($B),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($C),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($D),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($E),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($F),"59425",true)
call TriggerAddCondition(gg_trg_VIP_21,Condition(function Trig_VIP_21Conditions))
call TriggerAddAction(gg_trg_VIP_21,function Trig_VIP_21Actions)
endfunction
function Trig_VIP_22Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Knife"))
endfunction
function Trig_VIP_22Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_22 takes nothing returns nothing
set gg_trg_VIP_22=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(0),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(1),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(2),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(3),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(4),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(5),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(6),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(7),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(8),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(9),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($A),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($B),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($C),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($D),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($E),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($F),"s8",true)
call TriggerAddCondition(gg_trg_VIP_22,Condition(function Trig_VIP_22Conditions))
call TriggerAddAction(gg_trg_VIP_22,function Trig_VIP_22Actions)
endfunction
function Trig_VIP_23Conditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="_紫影飘雪")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="飘雪丶③姐")))
endfunction
function Trig_VIP_23Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x85B377FD","女")
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_23 takes nothing returns nothing
set gg_trg_VIP_23=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(0),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(1),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(2),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(3),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(4),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(5),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(6),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(7),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(8),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(9),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($A),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($B),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($C),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($D),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($E),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($F),"7387",true)
call TriggerAddCondition(gg_trg_VIP_23,Condition(function Trig_VIP_23Conditions))
call TriggerAddAction(gg_trg_VIP_23,function Trig_VIP_23Actions)
endfunction
function Trig_VIP_24Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="机智水友"))
endfunction
function Trig_VIP_24Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (阿鲁迪巴)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (阿鲁迪巴)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (阿鲁迪巴)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (阿鲁迪巴)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_24 takes nothing returns nothing
set gg_trg_VIP_24=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(0),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(1),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(2),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(3),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(4),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(5),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(6),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(7),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(8),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(9),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($A),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($B),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($C),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($D),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($E),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($F),"521",true)
call TriggerAddCondition(gg_trg_VIP_24,Condition(function Trig_VIP_24Conditions))
call TriggerAddAction(gg_trg_VIP_24,function Trig_VIP_24Actions)
endfunction
function Trig_VIP_25Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="农民威武"))
endfunction
function Trig_VIP_25Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_25 takes nothing returns nothing
set gg_trg_VIP_25=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(0),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(1),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(2),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(3),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(4),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(5),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(6),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(7),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(8),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(9),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($A),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($B),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($C),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($D),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($E),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($F),"358627",true)
call TriggerAddCondition(gg_trg_VIP_25,Condition(function Trig_VIP_25Conditions))
call TriggerAddAction(gg_trg_VIP_25,function Trig_VIP_25Actions)
endfunction
function Trig_VIP_26Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="午夜菊花残"))
endfunction
function Trig_VIP_26Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_26 takes nothing returns nothing
set gg_trg_VIP_26=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(0),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(1),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(2),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(3),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(4),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(5),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(6),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(7),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(8),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(9),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($A),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($B),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($C),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($D),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($E),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($F),"315731",true)
call TriggerAddCondition(gg_trg_VIP_26,Condition(function Trig_VIP_26Conditions))
call TriggerAddAction(gg_trg_VIP_26,function Trig_VIP_26Actions)
endfunction
function Trig_VIP_27Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Into a"))
endfunction
function Trig_VIP_27Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_27 takes nothing returns nothing
set gg_trg_VIP_27=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(0),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(1),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(2),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(3),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(4),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(5),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(6),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(7),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(8),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(9),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($A),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($B),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($C),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($D),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($E),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($F),"3556",true)
call TriggerAddCondition(gg_trg_VIP_27,Condition(function Trig_VIP_27Conditions))
call TriggerAddAction(gg_trg_VIP_27,function Trig_VIP_27Actions)
endfunction
function Trig_VIP_28Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Waiting丨丶"))
endfunction
function Trig_VIP_28Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比导播)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比导播)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比导播)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比导播)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","导播组")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_28 takes nothing returns nothing
set gg_trg_VIP_28=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(0),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(1),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(2),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(3),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(4),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(5),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(6),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(7),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(8),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(9),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($A),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($B),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($C),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($D),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($E),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($F),"smile2013",true)
call TriggerAddCondition(gg_trg_VIP_28,Condition(function Trig_VIP_28Conditions))
call TriggerAddAction(gg_trg_VIP_28,function Trig_VIP_28Actions)
endfunction
function Trig_VIP_29Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="天使之吻"))
endfunction
function Trig_VIP_29Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_29 takes nothing returns nothing
set gg_trg_VIP_29=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(0),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(1),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(2),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(3),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(4),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(5),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(6),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(7),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(8),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(9),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($A),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($B),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($C),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($D),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($E),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($F),"alpysys",true)
call TriggerAddCondition(gg_trg_VIP_29,Condition(function Trig_VIP_29Conditions))
call TriggerAddAction(gg_trg_VIP_29,function Trig_VIP_29Actions)
endfunction
function Trig_VIP_30Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="哈哈丶③蛋"))
endfunction
function Trig_VIP_30Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]="(土包子haha)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]="(土包子haha)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]="(土包子haha)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]="(土包子haha)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_30 takes nothing returns nothing
set gg_trg_VIP_30=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(0),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(1),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(2),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(3),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(4),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(5),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(6),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(7),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(8),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(9),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($A),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($B),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($C),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($D),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($E),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($F),"520",true)
call TriggerAddCondition(gg_trg_VIP_30,Condition(function Trig_VIP_30Conditions))
call TriggerAddAction(gg_trg_VIP_30,function Trig_VIP_30Actions)
endfunction
function Trig_VIP_31Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="笨笨大叔"))
endfunction
function Trig_VIP_31Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比解说)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比解说)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比解说)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比解说)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","导播组")
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_31 takes nothing returns nothing
set gg_trg_VIP_31=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(0),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(1),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(2),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(3),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(4),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(5),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(6),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(7),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(8),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(9),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($A),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($B),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($C),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($D),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($E),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($F),"5201314",true)
call TriggerAddCondition(gg_trg_VIP_31,Condition(function Trig_VIP_31Conditions))
call TriggerAddAction(gg_trg_VIP_31,function Trig_VIP_31Actions)
endfunction
function Trig_VIP_32Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="血忆丶④蛋"))
endfunction
function Trig_VIP_32Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_32 takes nothing returns nothing
set gg_trg_VIP_32=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(0),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(1),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(2),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(3),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(4),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(5),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(6),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(7),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(8),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(9),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($A),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($B),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($C),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($D),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($E),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($F),"0601",true)
call TriggerAddCondition(gg_trg_VIP_32,Condition(function Trig_VIP_32Conditions))
call TriggerAddAction(gg_trg_VIP_32,function Trig_VIP_32Actions)
endfunction
function Trig_VIP_33Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="刺客丶⑤蛋"))
endfunction
function Trig_VIP_33Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_33 takes nothing returns nothing
set gg_trg_VIP_33=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(0),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(1),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(2),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(3),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(4),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(5),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(6),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(7),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(8),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(9),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($A),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($B),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($C),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($D),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($E),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($F),"7890",true)
call TriggerAddCondition(gg_trg_VIP_33,Condition(function Trig_VIP_33Conditions))
call TriggerAddAction(gg_trg_VIP_33,function Trig_VIP_33Actions)
endfunction
function Trig_VIP_34Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="花姑娘"))
endfunction
function Trig_VIP_34Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_34 takes nothing returns nothing
set gg_trg_VIP_34=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(0),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(1),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(2),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(3),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(4),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(5),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(6),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(7),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(8),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(9),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($A),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($B),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($C),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($D),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($E),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($F),"521",true)
call TriggerAddCondition(gg_trg_VIP_34,Condition(function Trig_VIP_34Conditions))
call TriggerAddAction(gg_trg_VIP_34,function Trig_VIP_34Actions)
endfunction
function Trig_VIP_35Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="3点丶⑥蛋"))
endfunction
function Trig_VIP_35Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (脑残3点)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (脑残3点)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (脑残3点)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (脑残3点)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_35 takes nothing returns nothing
set gg_trg_VIP_35=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(0),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(1),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(2),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(3),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(4),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(5),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(6),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(7),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(8),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(9),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($A),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($B),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($C),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($D),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($E),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($F),"1314",true)
call TriggerAddCondition(gg_trg_VIP_35,Condition(function Trig_VIP_35Conditions))
call TriggerAddAction(gg_trg_VIP_35,function Trig_VIP_35Actions)
endfunction
function Trig_VIP_36Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="尸残丶⑤蛋"))
endfunction
function Trig_VIP_36Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比尸残)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比尸残)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比尸残)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比尸残)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_36 takes nothing returns nothing
set gg_trg_VIP_36=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(0),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(1),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(2),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(3),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(4),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(5),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(6),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(7),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(8),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(9),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($A),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($B),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($C),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($D),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($E),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($F),"1413",true)
call TriggerAddCondition(gg_trg_VIP_36,Condition(function Trig_VIP_36Conditions))
call TriggerAddAction(gg_trg_VIP_36,function Trig_VIP_36Actions)
endfunction
function Trig_VIP_38Conditions takes nothing returns boolean
return(((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="烟雨江南")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="江南丶②蛋")))
endfunction
function Trig_VIP_38Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比穷人)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比穷人)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比穷人)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比穷人)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_38 takes nothing returns nothing
set gg_trg_VIP_38=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(0),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(1),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(2),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(3),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(4),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(5),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(6),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(7),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(8),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(9),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($A),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($B),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($C),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($D),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($E),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($F),"0043",true)
call TriggerAddCondition(gg_trg_VIP_38,Condition(function Trig_VIP_38Conditions))
call TriggerAddAction(gg_trg_VIP_38,function Trig_VIP_38Actions)
endfunction
function Trig_VIP_37Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="农民也疯狂"))
endfunction
function Trig_VIP_37Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比农民)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比农民)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比农民)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比农民)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_37 takes nothing returns nothing
set gg_trg_VIP_37=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(0),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(1),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(2),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(3),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(4),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(5),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(6),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(7),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(8),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(9),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($A),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($B),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($C),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($D),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($E),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($F),"9527",true)
call TriggerAddCondition(gg_trg_VIP_37,Condition(function Trig_VIP_37Conditions))
call TriggerAddAction(gg_trg_VIP_37,function Trig_VIP_37Actions)
endfunction
function Trig_VIP_39Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="月落无痕"))
endfunction
function Trig_VIP_39Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比喷头)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比喷头)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比喷头)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (艾斯比喷头)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_39 takes nothing returns nothing
set gg_trg_VIP_39=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(0),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(1),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(2),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(3),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(4),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(5),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(6),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(7),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(8),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(9),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($A),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($B),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($C),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($D),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($E),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($F),"0043",true)
call TriggerAddCondition(gg_trg_VIP_39,Condition(function Trig_VIP_39Conditions))
call TriggerAddAction(gg_trg_VIP_39,function Trig_VIP_39Actions)
endfunction
function Trig_VIP_40Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="种子"))
endfunction
function Trig_VIP_40Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_40 takes nothing returns nothing
set gg_trg_VIP_40=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(0),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(1),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(2),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(3),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(4),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(5),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(6),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(7),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(8),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(9),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($A),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($B),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($C),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($D),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($E),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($F),"lostseed",true)
call TriggerAddCondition(gg_trg_VIP_40,Condition(function Trig_VIP_40Conditions))
call TriggerAddAction(gg_trg_VIP_40,function Trig_VIP_40Actions)
endfunction
function Trig_VIP_41Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="怀孕de会长"))
endfunction
function Trig_VIP_41Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_41 takes nothing returns nothing
set gg_trg_VIP_41=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(0),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(1),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(2),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(3),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(4),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(5),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(6),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(7),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(8),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(9),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($A),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($B),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($C),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($D),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($E),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($F),"  ",true)
call TriggerAddCondition(gg_trg_VIP_41,Condition(function Trig_VIP_41Conditions))
call TriggerAddAction(gg_trg_VIP_41,function Trig_VIP_41Actions)
endfunction
function Trig_VIP_42Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="172203444"))
endfunction
function Trig_VIP_42Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_42 takes nothing returns nothing
set gg_trg_VIP_42=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(0),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(1),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(2),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(3),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(4),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(5),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(6),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(7),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(8),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(9),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($A),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($B),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($C),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($D),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($E),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($F),"13145200",true)
call TriggerAddCondition(gg_trg_VIP_42,Condition(function Trig_VIP_42Conditions))
call TriggerAddAction(gg_trg_VIP_42,function Trig_VIP_42Actions)
endfunction
function Trig_VIP_43Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="巅峰.少爷"))
endfunction
function Trig_VIP_43Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_43 takes nothing returns nothing
set gg_trg_VIP_43=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(0),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(1),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(2),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(3),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(4),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(5),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(6),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(7),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(8),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(9),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($A),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($B),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($C),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($D),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($E),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($F),"a135325",true)
call TriggerAddCondition(gg_trg_VIP_43,Condition(function Trig_VIP_43Conditions))
call TriggerAddAction(gg_trg_VIP_43,function Trig_VIP_43Actions)
endfunction
function Trig_VIP_44Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="我只是等"))
endfunction
function Trig_VIP_44Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_44 takes nothing returns nothing
set gg_trg_VIP_44=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(0),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(1),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(2),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(3),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(4),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(5),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(6),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(7),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(8),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(9),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($A),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($B),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($C),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($D),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($E),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($F),"ws1067401131",true)
call TriggerAddCondition(gg_trg_VIP_44,Condition(function Trig_VIP_44Conditions))
call TriggerAddAction(gg_trg_VIP_44,function Trig_VIP_44Actions)
endfunction
function Trig_VIP_45Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="坂田银时xy"))
endfunction
function Trig_VIP_45Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_45 takes nothing returns nothing
set gg_trg_VIP_45=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(0),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(1),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(2),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(3),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(4),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(5),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(6),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(7),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(8),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(9),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($A),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($B),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($C),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($D),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($E),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($F),"28580364",true)
call TriggerAddCondition(gg_trg_VIP_45,Condition(function Trig_VIP_45Conditions))
call TriggerAddAction(gg_trg_VIP_45,function Trig_VIP_45Actions)
endfunction
function Trig_VIP_46Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="倭瓜"))
endfunction
function Trig_VIP_46Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_46 takes nothing returns nothing
set gg_trg_VIP_46=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(0),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(1),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(2),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(3),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(4),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(5),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(6),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(7),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(8),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(9),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($A),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($B),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($C),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($D),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($E),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($F),"3900739",true)
call TriggerAddCondition(gg_trg_VIP_46,Condition(function Trig_VIP_46Conditions))
call TriggerAddAction(gg_trg_VIP_46,function Trig_VIP_46Actions)
endfunction
function Trig_VIP_47Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="尸神小人"))
endfunction
function Trig_VIP_47Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_47 takes nothing returns nothing
set gg_trg_VIP_47=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(0),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(1),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(2),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(3),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(4),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(5),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(6),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(7),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(8),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(9),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($A),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($B),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($C),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($D),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($E),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($F),"NI478",true)
call TriggerAddCondition(gg_trg_VIP_47,Condition(function Trig_VIP_47Conditions))
call TriggerAddAction(gg_trg_VIP_47,function Trig_VIP_47Actions)
endfunction
function Trig_VIP_48Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="返返"))
endfunction
function Trig_VIP_48Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_48 takes nothing returns nothing
set gg_trg_VIP_48=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(0),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(1),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(2),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(3),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(4),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(5),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(6),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(7),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(8),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(9),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($A),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($B),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($C),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($D),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($E),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($F),"holl201314",true)
call TriggerAddCondition(gg_trg_VIP_48,Condition(function Trig_VIP_48Conditions))
call TriggerAddAction(gg_trg_VIP_48,function Trig_VIP_48Actions)
endfunction
function Trig_VIP_49Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="恶魔轨迹"))
endfunction
function Trig_VIP_49Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_49 takes nothing returns nothing
set gg_trg_VIP_49=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(0),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(1),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(2),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(3),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(4),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(5),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(6),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(7),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(8),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(9),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($A),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($B),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($C),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($D),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($E),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($F),"136136",true)
call TriggerAddCondition(gg_trg_VIP_49,Condition(function Trig_VIP_49Conditions))
call TriggerAddAction(gg_trg_VIP_49,function Trig_VIP_49Actions)
endfunction
function Trig_VIP_50Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔~诅咒"))
endfunction
function Trig_VIP_50Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_50 takes nothing returns nothing
set gg_trg_VIP_50=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(0),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(1),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(2),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(3),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(4),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(5),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(6),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(7),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(8),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(9),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($A),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($B),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($C),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($D),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($E),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($F),"1029384756",true)
call TriggerAddCondition(gg_trg_VIP_50,Condition(function Trig_VIP_50Conditions))
call TriggerAddAction(gg_trg_VIP_50,function Trig_VIP_50Actions)
endfunction
function Trig_VIP_51Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="CH_0299"))
endfunction
function Trig_VIP_51Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_51 takes nothing returns nothing
set gg_trg_VIP_51=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(0),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(1),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(2),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(3),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(4),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(5),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(6),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(7),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(8),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(9),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($A),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($B),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($C),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($D),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($E),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($F),"aa4290644",true)
call TriggerAddCondition(gg_trg_VIP_51,Condition(function Trig_VIP_51Conditions))
call TriggerAddAction(gg_trg_VIP_51,function Trig_VIP_51Actions)
endfunction
function Trig_VIP_52Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ごLV"))
endfunction
function Trig_VIP_52Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","邪魔殿")
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_52 takes nothing returns nothing
set gg_trg_VIP_52=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(0),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(1),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(2),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(3),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(4),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(5),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(6),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(7),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(8),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(9),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($A),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($B),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($C),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($D),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($E),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($F),"wocaonima",true)
call TriggerAddCondition(gg_trg_VIP_52,Condition(function Trig_VIP_52Conditions))
call TriggerAddAction(gg_trg_VIP_52,function Trig_VIP_52Actions)
endfunction
function Trig_VIP_53Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="A梦"))
endfunction
function Trig_VIP_53Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_53 takes nothing returns nothing
set gg_trg_VIP_53=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(0),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(1),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(2),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(3),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(4),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(5),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(6),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(7),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(8),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(9),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($A),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($B),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($C),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($D),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($E),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($F),"867672616",true)
call TriggerAddCondition(gg_trg_VIP_53,Condition(function Trig_VIP_53Conditions))
call TriggerAddAction(gg_trg_VIP_53,function Trig_VIP_53Actions)
endfunction
function Trig_VIP_54Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="民兵队长"))
endfunction
function Trig_VIP_54Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_54 takes nothing returns nothing
set gg_trg_VIP_54=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(0),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(1),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(2),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(3),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(4),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(5),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(6),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(7),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(8),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(9),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($A),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($B),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($C),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($D),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($E),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($F),"5664",true)
call TriggerAddCondition(gg_trg_VIP_54,Condition(function Trig_VIP_54Conditions))
call TriggerAddAction(gg_trg_VIP_54,function Trig_VIP_54Actions)
endfunction
function Trig_VIP_55Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="逍遥丶⑦姐"))
endfunction
function Trig_VIP_55Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x85B377FD","女")
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_55 takes nothing returns nothing
set gg_trg_VIP_55=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(0),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(1),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(2),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(3),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(4),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(5),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(6),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(7),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(8),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(9),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($A),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($B),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($C),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($D),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($E),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($F),"881225",true)
call TriggerAddCondition(gg_trg_VIP_55,Condition(function Trig_VIP_55Conditions))
call TriggerAddAction(gg_trg_VIP_55,function Trig_VIP_55Actions)
endfunction
function Trig_VIP_56Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="QQ617393243"))
endfunction
function Trig_VIP_56Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_56 takes nothing returns nothing
set gg_trg_VIP_56=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(0),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(1),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(2),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(3),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(4),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(5),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(6),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(7),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(8),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(9),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($A),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($B),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($C),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($D),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($E),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($F),"tgy1314520/*-+.`",true)
call TriggerAddCondition(gg_trg_VIP_56,Condition(function Trig_VIP_56Conditions))
call TriggerAddAction(gg_trg_VIP_56,function Trig_VIP_56Actions)
endfunction
function Trig_VIP_57Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip丶com2G"))
endfunction
function Trig_VIP_57Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_57 takes nothing returns nothing
set gg_trg_VIP_57=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(0),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(1),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(2),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(3),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(4),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(5),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(6),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(7),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(8),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(9),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($A),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($B),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($C),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($D),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($E),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($F),"11223344",true)
call TriggerAddCondition(gg_trg_VIP_57,Condition(function Trig_VIP_57Conditions))
call TriggerAddAction(gg_trg_VIP_57,function Trig_VIP_57Actions)
endfunction
function Trig_VIP_58Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="wz59"))
endfunction
function Trig_VIP_58Actions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (小学生战队)"
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_58 takes nothing returns nothing
set gg_trg_VIP_58=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(0),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(1),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(2),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(3),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(4),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(5),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(6),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(7),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(8),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(9),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($A),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($B),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($C),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($D),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($E),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($F),"58",true)
call TriggerAddCondition(gg_trg_VIP_58,Condition(function Trig_VIP_58Conditions))
call TriggerAddAction(gg_trg_VIP_58,function Trig_VIP_58Actions)
endfunction
function Trig_VIP_59Conditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="CH_0299"))
endfunction
function Trig_VIP_59Actions takes nothing returns nothing
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_VIP_59 takes nothing returns nothing
set gg_trg_VIP_59=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(0),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(1),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(2),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(3),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(4),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(5),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(6),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(7),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(8),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(9),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($A),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($B),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($C),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($D),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($E),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($F),"aa4290644",true)
call TriggerAddCondition(gg_trg_VIP_59,Condition(function Trig_VIP_59Conditions))
call TriggerAddAction(gg_trg_VIP_59,function Trig_VIP_59Actions)
endfunction
function Trig_a________2Conditions takes nothing returns boolean
return((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED)and((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="三国清风")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="灰、teal")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="请问10")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご天赐")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ごkk")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ごAliced")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご扯淡")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご火焰")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="小雯")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご丸")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="18CM雄鹰")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="龙")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご狂祀")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="sssss")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="太古黄旗")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="烟雨江南")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="杀猪的")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔ご坑")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="kill")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="qq2210577")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="极限狂斩")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="今晚打僵尸")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="怀孕de会长")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="qqqq")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="sealihua")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="焚香薰衣草")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="给力瓜")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="招尸墓想")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="丶沫兮灬")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="sk_JrtM")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="易碎丶蛋")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔&幽灵")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Sakura_BT_R")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Strawberry")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="恶魔-Max")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="残、缺")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Waiting丨丶")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="绝对效率")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="小炮")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="天使之吻")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="miss")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="午夜菊花残")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="就那点节操")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="老衲也风度")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="youxjj_2")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Ak cincm")))
endfunction
function Trig_a________2Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_TRUE_C=true
endfunction
function InitTrig_a________2 takes nothing returns nothing
set gg_trg_a________2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($F),"",true)
call TriggerAddCondition(gg_trg_a________2,Condition(function Trig_a________2Conditions))
call TriggerAddAction(gg_trg_a________2,function Trig_a________2Actions)
endfunction
function Trig_a________3Conditions takes nothing returns boolean
return((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED)and((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="_CaT_HuDie")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="A")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="恶魔轨迹")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="DK小龙")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="狮子")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="嗨嗨阿雄")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="帅锅")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="天天坑人")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪神~噩梦")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]==".8888.")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="剑不凡")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Ace_JueG")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="第⑥_绝歌")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="遇神杀神")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="心碎")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="午夜屠尸")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="会射的青年")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="行尸走肉")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="纯的叛逆")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="redggyy")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="sshuacheng1")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="雪狐")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="小裙纸c")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Virus")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="lemon")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="3XianYu")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="贱男")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="贼贱")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="买了个表")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip传说")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip行尸")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip很猛")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Vip紫夜")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="神级丶26蛋")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="玫瑰的骚")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="IDWZ59")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="韬光养晦·")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="yuan325601")))
endfunction
function Trig_a________3Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_TRUE_C=true
endfunction
function InitTrig_a________3 takes nothing returns nothing
set gg_trg_a________3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($F),"",true)
call TriggerAddCondition(gg_trg_a________3,Condition(function Trig_a________3Conditions))
call TriggerAddAction(gg_trg_a________3,function Trig_a________3Actions)
endfunction
function Trig_a_3Conditions takes nothing returns boolean
return((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED)and((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="haha")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="隐匿-弑")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="终丶血忆")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="梦想")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Mx雪豹")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="板鞋")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="招尸墓想")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="River")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="农民威武")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="lsd163")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="游龙戏凤")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪魔")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="老衲梦遗")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="FZ丶舞")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="神幻之恋2")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Jizhide_tang")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="奶茶")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="木秀")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Strong丶")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="笨笨大叔")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="邪恶农民")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="小炮")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="隐匿")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Knife")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="haha")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="尸残")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="_CaT_HuDie")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Enter")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="tim")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Sa")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="天使之吻")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="基诺")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="伪你战天下")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="桃瓷ccc")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="尸神降世")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="th912985386")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="雁北霸主")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="时光若风")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="宇宙霸主")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="苏果果丶")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="天下无狗")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="奉献精液")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="村长")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="dmydbyx")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="宇少")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="大师兄")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="尸神天朝")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="某某")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Super筱雯")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="丶Byrant刈丶然")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="本夜")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="沙师弟")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Saber Lily")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="a1a2a3b3")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="神级僵尸")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="Victor")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="汉拔尼丶")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="lu520liang")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="路过~~")or(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="only~")))
endfunction
function Trig_a_3Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set udg_TRUE_C=true
endfunction
function InitTrig_a_3 takes nothing returns nothing
set gg_trg_a_3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($F),"",true)
call TriggerAddCondition(gg_trg_a_3,Condition(function Trig_a_3Conditions))
call TriggerAddAction(gg_trg_a_3,function Trig_a_3Actions)
endfunction
function Trig_a_______uConditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]=="菊爆天神"))
endfunction
function Trig_a_______uActions takes nothing returns nothing
set udg_Name_JS[(1+GetPlayerId(GetTriggerPlayer()))]=" (天天碰到花式傻缺)"
set udg_Name_RL[(1+GetPlayerId(GetTriggerPlayer()))]=" (天天碰到花式傻缺)"
set udg_Name_DS[(1+GetPlayerId(GetTriggerPlayer()))]=" (天天碰到花式傻缺)"
set udg_Name_ZG[(1+GetPlayerId(GetTriggerPlayer()))]=" (天天碰到花式傻缺)"
call StoreString(YDGC,I2S(YDTRIGGER_H2I(GetTriggerPlayer())),"0x64B285EC","杰出青年")
set udg_Name_Change[(1+GetPlayerId(GetTriggerPlayer()))]=true
set udg_TRUE_B=true
set udg_VIP[(1+GetPlayerId(GetTriggerPlayer()))]=true
call EnableTrigger(gg_trg_b_______u)
if((GetPlayerColor(GetTriggerPlayer())==PLAYER_COLOR_RED))then
set udg_TRUE_C=true
endif
endfunction
function InitTrig_a_______u takes nothing returns nothing
set gg_trg_a_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(0),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(1),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(2),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(3),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(4),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(5),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(6),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(7),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(8),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(9),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($A),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($B),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($C),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($D),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($E),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($F),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerAddCondition(gg_trg_a_______u,Condition(function Trig_a_______uConditions))
call TriggerAddAction(gg_trg_a_______u,function Trig_a_______uActions)
endfunction
function Trig_TRFunc001Func007Func001Func003002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())==Player(0))))
endfunction
function Trig_TRFunc001Func007Func001Func004A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))then
call RemoveUnit(GetEnumUnit())
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_TRFunc001Func007Func004002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())==Player(-1+(udg_TR_P)))))
endfunction
function Trig_TRFunc001Func007Func005A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))then
call RemoveUnit(GetEnumUnit())
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_TRActions takes nothing returns nothing
if((udg_TR_T==false))then
set udg_TR_T=true
if((SubStringBJ(GetEventPlayerChatString(),1,1)=="1"))then
if((SubStringBJ(GetEventPlayerChatString(),1,2)==I2S($A)))then
set udg_TR=$A
set udg_TR_P=udg_TR
set udg_TR_P2=(udg_TR_P2+1)
if((udg_TR_P2<3))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"这主机好烦，让主机滚吧！")
set udg_dialog_TR_mid[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
else
if((SubStringBJ(GetEventPlayerChatString(),1,2)==I2S($B)))then
set udg_TR=$B
set udg_TR_P=udg_TR
set udg_TR_P2=(udg_TR_P2+1)
if(((udg_TR_P2<3)or(udg_TRUE_C!=true)))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"这主机好烦，让主机滚吧！")
set udg_dialog_TR_mid[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
endif
else
set udg_TR=1
loop
exitwhen udg_TR>9
if((SubStringBJ(GetEventPlayerChatString(),1,1)==I2S(udg_TR)))then
set udg_TR_P=udg_TR
set udg_TR_P2=(udg_TR_P2+1)
if((udg_TR_P2<3))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_TR[bj_forLoopAIndex],("|cffffd700主机|r"+(udg_player_color[1]+(udg_Name[1]+("|r想让"+(udg_player_color[udg_TR]+(udg_Name[udg_TR]+"|r滚，你怎么看？")))))))
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"这主机好烦，让主机滚吧！")
set udg_dialog_TR_mid[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"速度滚！")
set udg_dialog_TR_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_TR[bj_forLoopAIndex],"还是别滚吧！")
set udg_dialog_TR_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endif
endif
set udg_TR=udg_TR+1
endloop
endif
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogClear(udg_dialog_TR[bj_forLoopAIndex])
call DialogDisplayBJ(false,udg_dialog_TR[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_TR_YES>udg_TR_NO)and(udg_TR_YES>udg_TR_MID))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，"+(udg_player_color[udg_TR_P]+(udg_Name[udg_TR_P]+"|r独自背负命运的十字架，45度角仰望天空，含泪被T出这场游戏。"))))
call CustomDefeatBJ(Player(-1+(udg_TR_P)),"你被T出了游戏！")
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_TRFunc001Func007Func004002002))
call ForGroupBJ(udg_Group,function Trig_TRFunc001Func007Func005A)
call DestroyGroup(udg_Group)
set udg_TR_YES=0
set udg_TR_NO=0
set udg_TR_MID=0
else
if((udg_TR_YES<=udg_TR_NO)and(udg_TR_MID<=udg_TR_NO))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，"+(udg_player_color[udg_TR_P]+(udg_Name[udg_TR_P]+"|r被留下了。"))))
set udg_TR_YES=0
set udg_TR_NO=0
set udg_TR_MID=0
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，"+(udg_player_color[1]+(udg_Name[1]+"|r自食其果被众玩家T了！"))))
call CustomDefeatBJ(Player(0),"下次不要瞎T人了！")
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_TRFunc001Func007Func001Func003002002))
call ForGroupBJ(udg_Group,function Trig_TRFunc001Func007Func001Func004A)
call DestroyGroup(udg_Group)
set udg_TR_YES=0
set udg_TR_NO=0
set udg_TR_MID=0
endif
endif
set udg_TR_T=false
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,5.,"|cffff0000上次的投票还没结束。")
endif
endfunction
function InitTrig_TR takes nothing returns nothing
set gg_trg_TR=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"2号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"3号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"4号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"5号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"6号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"7号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"8号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"9号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"10号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"11号滚",true)
call TriggerAddAction(gg_trg_TR,function Trig_TRActions)
endfunction
function Trig_TR_VOTEActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_dialog_TR_yes[bj_forLoopAIndex]))then
set udg_TR_YES=(udg_TR_YES+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 表示要 "+(udg_player_color[udg_TR_P]+(udg_Name[udg_TR_P]+"|r滚！"))))))
else
if((GetClickedButton()==udg_dialog_TR_no[bj_forLoopAIndex]))then
set udg_TR_NO=(udg_TR_NO+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 表示要 "+(udg_player_color[udg_TR_P]+(udg_Name[udg_TR_P]+"|r留下！"))))))
else
if((GetClickedButton()==udg_dialog_TR_mid[bj_forLoopAIndex]))then
set udg_TR_MID=(udg_TR_MID+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 表示要 "+(udg_player_color[1]+(udg_Name[1]+"|r滚粗！"))))))
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_TR_VOTE takes nothing returns nothing
set gg_trg_TR_VOTE=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[1])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[2])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[3])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[4])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[5])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[6])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[7])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[8])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[9])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[$A])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[$B])
call TriggerAddAction(gg_trg_TR_VOTE,function Trig_TR_VOTEActions)
endfunction
function Trig_dashu3Conditions takes nothing returns boolean
return((IsPlayerInForce(GetTriggerPlayer(),udg_Player_Group[3])))
endfunction
function Trig_dashu3Actions takes nothing returns nothing
call SetPlayerStateBJ(GetTriggerPlayer(),PLAYER_STATE_RESOURCE_GOLD,0)
call AdjustPlayerStateBJ(500,GetTriggerPlayer(),PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTextToPlayer(GetTriggerPlayer(),0,0,"已将所有金币换为500木头。")
endfunction
function InitTrig_dashu3 takes nothing returns nothing
set gg_trg_dashu3=CreateTrigger()
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(0),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(1),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(2),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(3),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(4),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(5),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(6),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(7),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(8),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(9),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($A),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($B),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($C),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($D),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($E),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($F),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerAddCondition(gg_trg_dashu3,Condition(function Trig_dashu3Conditions))
call TriggerAddAction(gg_trg_dashu3,function Trig_dashu3Actions)
endfunction
function Trig_zsConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='H01Z')and(GetItemTypeId(GetManipulatedItem())=='I015'))
endfunction
function Trig_zsActions takes nothing returns nothing
call ModifyHeroStat(0,GetTriggerUnit(),0,1)
call ModifyHeroStat(1,GetTriggerUnit(),0,1)
call ModifyHeroStat(2,GetTriggerUnit(),0,1)
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl",GetTriggerUnit(),"origin"))
call CreateTextTagUnitBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+"我有姿势我自豪！"),GetTriggerUnit(),0,$A,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
endfunction
function InitTrig_zs takes nothing returns nothing
set gg_trg_zs=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zs,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zs,Condition(function Trig_zsConditions))
call TriggerAddAction(gg_trg_zs,function Trig_zsActions)
endfunction
function Trig_zs_______uConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='H01Z')and(GetItemTypeId(GetManipulatedItem())=='I016'))
endfunction
function Trig_zs_______uActions takes nothing returns nothing
call ModifyHeroStat(0,GetTriggerUnit(),0,GetRandomInt(-1,2))
call ModifyHeroStat(1,GetTriggerUnit(),0,GetRandomInt(-1,2))
call ModifyHeroStat(2,GetTriggerUnit(),0,GetRandomInt(-1,2))
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Items\\AIlm\\AIlmTarget.mdl",GetTriggerUnit(),"origin"))
call CreateTextTagUnitBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+"赌博真过瘾！"),GetTriggerUnit(),0,$A,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
endfunction
function InitTrig_zs_______u takes nothing returns nothing
set gg_trg_zs_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zs_______u,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zs_______u,Condition(function Trig_zs_______uConditions))
call TriggerAddAction(gg_trg_zs_______u,function Trig_zs_______uActions)
endfunction
function Trig_towerConditions takes nothing returns boolean
return(((GetUnitTypeId(GetTriggerUnit())=='h01M')or(GetUnitTypeId(GetTriggerUnit())=='h01N')or(GetUnitTypeId(GetTriggerUnit())=='h021')or(GetUnitTypeId(GetTriggerUnit())=='h03A')or(GetUnitTypeId(GetTriggerUnit())=='h00Z')or(GetUnitTypeId(GetTriggerUnit())=='h03C')or(GetUnitTypeId(GetTriggerUnit())=='h017')or(GetUnitTypeId(GetTriggerUnit())=='h016')or(GetUnitTypeId(GetTriggerUnit())=='h03D')))
endfunction
function Trig_towerActions takes nothing returns nothing
if((GetUnitTypeId(GetTriggerUnit())=='h01M'))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A01K',(GetPlayerTechCountSimple('R005',GetOwningPlayer(GetTriggerUnit()))+1))
if((udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (天雷滚滚)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
if((GetUnitTypeId(GetTriggerUnit())=='h01N'))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A01Z',(GetPlayerTechCountSimple('R006',GetOwningPlayer(GetTriggerUnit()))+1))
if((udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (光芒万丈)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
if((GetUnitTypeId(GetTriggerUnit())=='h021'))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A021',(GetPlayerTechCountSimple('R007',GetOwningPlayer(GetTriggerUnit()))+1))
if((udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (万箭穿心)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
if((GetUnitTypeId(GetTriggerUnit())=='h03A'))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A03Y',(GetPlayerTechCountSimple('R00D',GetOwningPlayer(GetTriggerUnit()))+1))
if((udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (流翔)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
if((GetUnitTypeId(GetTriggerUnit())=='h03C')and(udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (狗眼望千里)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
if((GetUnitTypeId(GetTriggerUnit())=='h00Z')and(udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (粉碎性骨折)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
if((GetUnitTypeId(GetTriggerUnit())=='h03D'))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A03Z',(GetPlayerTechCountSimple('R00E',GetOwningPlayer(GetTriggerUnit()))+1))
if((udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_N_FT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (清凉好心情)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
if(((GetUnitTypeId(GetTriggerUnit())=='h017')or(GetUnitTypeId(GetTriggerUnit())=='h016')))then
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endfunction
function InitTrig_tower takes nothing returns nothing
set gg_trg_tower=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tower,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_tower,Condition(function Trig_towerConditions))
call TriggerAddAction(gg_trg_tower,function Trig_towerActions)
endfunction
function Trig_FMB01Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03I'))
endfunction
function Trig_FMB01Func008002003 takes nothing returns boolean
return((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))!=null
endfunction
function Trig_FMB01Func009A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(GetUnitState(GetEnumUnit(),UNIT_STATE_MAX_LIFE)/ 2.),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_FMB01Actions takes nothing returns nothing
call YDWEJumpTimer(GetTriggerUnit(),GetUnitFacing(GetTriggerUnit()),.0,4.,.01,5000.)
call PauseUnit(GetTriggerUnit(),true)
call SetUnitInvulnerable(GetTriggerUnit(),true)
call SetUnitAnimation(GetTriggerUnit(),"death")
call YDWEWaitForLocalVariable(4.)
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call DestroyEffect(AddSpecialEffectLoc("war3mapImported\\nuke.mdx",YDWEGetLocalVariableLocation("a")))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(900.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_FMB01Func008002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_FMB01Func009A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call CreateNUnitsAtLoc(1,'n003',GetOwningPlayer(GetTriggerUnit()),YDWEGetLocalVariableLocation("a"),bj_UNIT_FACING)
call SetUnitAbilityLevel(bj_lastCreatedUnit,'A03J',1)
call IssueImmediateOrderById(bj_lastCreatedUnit,$D009F)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call PauseUnit(GetTriggerUnit(),false)
call SetUnitInvulnerable(GetTriggerUnit(),false)
endfunction
function InitTrig_FMB01 takes nothing returns nothing
set gg_trg_FMB01=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_FMB01,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_FMB01,Condition(function Trig_FMB01Conditions))
call TriggerAddAction(gg_trg_FMB01,function Trig_FMB01Actions)
endfunction
function Trig_DSQConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A01U'))
endfunction
function Trig_DSQFunc002Func002002003 takes nothing returns boolean
return(((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitAliveBJ(GetFilterUnit()))))
endfunction
function Trig_DSQFunc002Func003A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(((GetUnitState(GetTriggerUnit(),UNIT_STATE_MAX_LIFE)*1.5)+75.)+(25.*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A01U')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl",GetEnumUnit(),"origin"))
endfunction
function Trig_DSQFunc002Func006Func002002003 takes nothing returns boolean
return(((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitAliveBJ(GetFilterUnit()))))
endfunction
function Trig_DSQFunc002Func006Func003A takes nothing returns nothing
call UnitDamageTarget(GetTriggerUnit(),GetEnumUnit(),(75.+(25.*I2R(GetUnitAbilityLevel(GetTriggerUnit(),'A01U')))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WHOKNOWS)
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Human\\HolyBolt\\HolyBoltSpecialArt.mdl",GetEnumUnit(),"origin"))
endfunction
function Trig_DSQActions takes nothing returns nothing
call YDWESetLocalVariableInteger("i",GetRandomInt(1,'d'))
if((GetUnitLevel(GetTriggerUnit())<50))then
if((YDWEGetLocalVariableInteger("i")<=(GetUnitLevel(GetTriggerUnit())*2)))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetSpellTargetUnit()))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(250.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_DSQFunc002Func006Func002002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_DSQFunc002Func006Func003A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endif
else
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetSpellTargetUnit()))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(250.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_DSQFunc002Func002002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_DSQFunc002Func003A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endif
endfunction
function InitTrig_DSQ takes nothing returns nothing
set gg_trg_DSQ=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_DSQ,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_DSQ,Condition(function Trig_DSQConditions))
call TriggerAddAction(gg_trg_DSQ,function Trig_DSQActions)
endfunction
function Trig_DSSConditions takes nothing returns boolean
return((GetUnitTypeId(GetEventDamageSource())=='H01Z'))
endfunction
function Trig_DSSActions takes nothing returns nothing
call AdjustPlayerStateBJ(4,GetOwningPlayer(GetEventDamageSource()),PLAYER_STATE_RESOURCE_LUMBER)
call AddHeroXP(GetEventDamageSource(),$F,true)
endfunction
function InitTrig_DSS takes nothing returns nothing
set gg_trg_DSS=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_DSS)
call TriggerAddCondition(gg_trg_DSS,Condition(function Trig_DSSConditions))
call TriggerAddAction(gg_trg_DSS,function Trig_DSSActions)
endfunction
function Trig_GoldSConditions takes nothing returns boolean
return((IsUnitAlly(GetAttacker(),udg_Player12))and(IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_GoldSActions takes nothing returns nothing
call StoreInteger(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x9890BA1B",1)
if((GetUnitTypeId(GetAttacker())=='n000'))then
set udg_Real=3.
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x736A3C94",udg_Real)
else
if((GetUnitTypeId(GetAttacker())=='u001'))then
set udg_Real=6.
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x736A3C94",udg_Real)
else
if(((GetUnitTypeId(GetAttacker())=='U000')or(GetUnitTypeId(GetAttacker())=='U002')or(GetUnitTypeId(GetAttacker())=='U004')))then
set udg_Real=(3.+(I2R(GetHeroStatBJ(1,GetAttacker(),true))*1.9))
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x736A3C94",udg_Real)
else
if((GetUnitTypeId(GetAttacker())=='U003'))then
set udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x895FBD1F")
set udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))]=(((3.+I2R(GetHeroAgi(GetAttacker(),true)))*5.)+udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetAttacker())),"0x736A3C94",udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetAttacker())))])
endif
endif
endif
endif
set udg_Real=.1
endfunction
function InitTrig_GoldS takes nothing returns nothing
set gg_trg_GoldS=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_GoldS,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_GoldS,Condition(function Trig_GoldSConditions))
call TriggerAddAction(gg_trg_GoldS,function Trig_GoldSActions)
endfunction
function Trig_GoldS2Conditions takes nothing returns boolean
return((GetStoredInteger(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x9890BA1B")==1)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(GetOwningPlayer(GetEventDamageSource())==udg_Player12))
endfunction
function Trig_GoldS2Func002Func004002002 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit()))and((IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))and(IsUnitAlly(GetEventDamageSource(),GetOwningPlayer(GetFilterUnit())))))!=null
endfunction
function Trig_GoldS2Func002Func005A takes nothing returns nothing
call AddHeroXPSwapped(R2I(udg_Real),GetEnumUnit(),true)
endfunction
function Trig_GoldS2Actions takes nothing returns nothing
call StoreInteger(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x9890BA1B",0)
if((IsUnitAliveBJ(GetEventDamageSource())))then
set udg_Real=GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetEventDamageSource())),"0x736A3C94")
call AdjustPlayerStateBJ(R2I(udg_Real),udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1,udg_Player12,PLAYER_STATE_RESOURCE_LUMBER)
set udg_Group=YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_GoldS2Func002Func004002002))
call ForGroupBJ(udg_Group,function Trig_GoldS2Func002Func005A)
call DestroyGroup(udg_Group)
set udg_Point=GetUnitLoc(GetTriggerUnit())
set udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Real)
set udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+R2I(udg_Real))
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,3,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),I2S(R2I(udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
if((udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=20000.)and(udg_YS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_YS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (养尸专业户)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+I2S(R2I(udg_Real))),udg_Point,0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(udg_Point)
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,5,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),I2S(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$7D0)and(udg_JS[1]==false))then
set udg_JS[1]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (饥饿的僵尸)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=6000)and(udg_JS[2]==false))then
set udg_JS[2]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (愤怒的僵尸)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$2710)and(udg_JS[3]==false))then
set udg_JS[3]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (狂暴的僵尸)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$4E20)and(udg_JS[4]==false))then
set udg_JS[4]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (一大波僵尸)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$88B8)and(udg_JS[5]==false))then
set udg_JS[5]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (僵尸王)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$C350)and(udg_JS[6]==false))then
set udg_JS[6]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (僵尸霸主)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=70000)and(udg_JS[7]==false))then
set udg_JS[7]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (僵尸大帝)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
if((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]==false)and(udg_Board_2[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]>=$186A0)and(udg_JS[8]==false))then
set udg_JS[8]=true
set udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=" (僵尸天朝)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_JS[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call SetPlayerName(GetOwningPlayer(GetEventDamageSource()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]))
endif
endif
endfunction
function InitTrig_GoldS2 takes nothing returns nothing
set gg_trg_GoldS2=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_GoldS2)
call TriggerAddCondition(gg_trg_GoldS2,Condition(function Trig_GoldS2Conditions))
call TriggerAddAction(gg_trg_GoldS2,function Trig_GoldS2Actions)
endfunction
function Trig_GoldS2_______uConditions takes nothing returns boolean
return((GetStoredInteger(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x9890BA1B")==1)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(GetUnitTypeId(GetEventDamageSource())=='U003'))
endfunction
function Trig_GoldS2_______uFunc002Func003002002 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit()))and((IsUnitType(GetFilterUnit(),UNIT_TYPE_HERO))and(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetEventDamageSource()))))!=null
endfunction
function Trig_GoldS2_______uFunc002Func004A takes nothing returns nothing
call AddHeroXPSwapped(R2I(udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]),GetEnumUnit(),true)
endfunction
function Trig_GoldS2_______uActions takes nothing returns nothing
call StoreInteger(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x9890BA1B",0)
if((IsUnitAliveBJ(GetEventDamageSource())))then
set udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]=(GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetEventDamageSource())),"0x736A3C94")*1.)
call AdjustPlayerStateBJ(R2I(udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]),GetOwningPlayer(GetEventDamageSource()),PLAYER_STATE_RESOURCE_GOLD)
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_GoldS2_______uFunc002Func003002002))
call ForGroupBJ(udg_Group,function Trig_GoldS2_______uFunc002Func004A)
call DestroyGroup(udg_Group)
set udg_Point=GetUnitLoc(GetTriggerUnit())
set udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))]
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,3,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),I2S(R2I(udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])))
if((udg_FEED[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>=20000.)and(udg_YS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))then
set udg_YS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (养尸专业户)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))+1),(udg_player_color[(1+GetPlayerId(GetTriggerPlayer()))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
call CreateTextTagLocBJ(I2S(R2I(udg_Real_DOG[(1+GetPlayerId(GetOwningPlayer(GetEventDamageSource())))])),udg_Point,0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(udg_Point)
endif
endfunction
function InitTrig_GoldS2_______u takes nothing returns nothing
set gg_trg_GoldS2_______u=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_GoldS2_______u)
call TriggerAddCondition(gg_trg_GoldS2_______u,Condition(function Trig_GoldS2_______uConditions))
call TriggerAddAction(gg_trg_GoldS2_______u,function Trig_GoldS2_______uActions)
endfunction
function Trig_zombieStartActions takes nothing returns nothing
call StartTimerBJ(udg_Timer,false,udg_real_timer_startTime)
call CreateTimerDialogBJ(bj_lastStartedTimer,"尸体复活:")
set udg_timer_window=bj_lastCreatedTimerDialog
call TriggerExecute(gg_trg_cheat)
endfunction
function InitTrig_zombieStart takes nothing returns nothing
set gg_trg_zombieStart=CreateTrigger()
call TriggerAddAction(gg_trg_zombieStart,function Trig_zombieStartActions)
endfunction
function Trig_zombieStart2Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call SetUnitInvulnerable(udg_unit_hellGate,false)
call DestroyTimerDialog(udg_timer_window)
call PlaySoundBJ(gg_snd_HeroDreadlordReady1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_517")
call SetPlayerTechMaxAllowedSwap('U002',1,udg_Player12)
call SetPlayerTechMaxAllowedSwap('U004',1,udg_Player12)
call SetPlayerTechMaxAllowedSwap('U000',1,udg_Player12)
call EnableTrigger(gg_trg_zombieMake)
call ConditionalTriggerExecute(gg_trg_zombieMake)
call EnableTrigger(gg_trg_ZombieAutoAttack)
call StartTimerBJ(udg_Timer,false,120.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"人类无法复活:")
set udg_timer_window=bj_lastCreatedTimerDialog
set udg_Revive=false
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call YDWESetLocalVariableLocation("a",GetRandomLocInRect(udg_region_playable))
if((IsTerrainPathableBJ(YDWEGetLocalVariableLocation("a"),PATHING_TYPE_WALKABILITY)==false))then
call CreateNUnitsAtLocFacingLocBJ(1,'n002',Player($C),YDWEGetLocalVariableLocation("a"),YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_6434")
call YDWEPolledWaitNull(2)
call EnableTrigger(gg_trg_zombieStart3)
if((udg_GameMode==4))then
set udg_Choose=1
loop
exitwhen udg_Choose>$B
if((IsPlayerInForce(Player(-1+(udg_Choose)),udg_VSGroup[1])))then
set udg_Integer=udg_Choose
call ConditionalTriggerExecute(gg_trg_siteVote1)
else
if((IsPlayerInForce(Player(-1+(udg_Choose)),udg_VSGroup[2])))then
set udg_Integer=udg_Choose
call ConditionalTriggerExecute(gg_trg_siteVote2)
endif
endif
call YDWEPolledWaitNull(1.)
set udg_Choose=udg_Choose+1
endloop
endif
endfunction
function InitTrig_zombieStart2 takes nothing returns nothing
set gg_trg_zombieStart2=CreateTrigger()
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart2,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart2,function Trig_zombieStart2Actions)
endfunction
function Trig_zombieStart3Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(udg_timer_window)
call PlaySoundBJ(gg_snd_HeroDreadlordReady1)
set udg_Revive=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_5724")
call StartTimerBJ(udg_Timer,false,1200.)
call CreateTimerDialogBJ(bj_lastStartedTimer,"僵尸王到达:")
set udg_timer_window=bj_lastCreatedTimerDialog
call YDWEPolledWaitNull(2)
call EnableTrigger(gg_trg_zombieStart4)
endfunction
function InitTrig_zombieStart3 takes nothing returns nothing
set gg_trg_zombieStart3=CreateTrigger()
call DisableTrigger(gg_trg_zombieStart3)
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart3,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart3,function Trig_zombieStart3Actions)
endfunction
function Trig_zombieStart4Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DestroyTimerDialog(udg_timer_window)
call PlaySoundBJ(gg_snd_HeroDreadlordReady1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffffd700僵尸王和6个僵尸城管队长已到达战场！并且给僵尸玩家带来5万金钱和4万木材，并且可以额外召唤一个僵尸英雄！|r")
set udg_Point=GetUnitLoc(udg_unit_hellGate)
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(CreateUnitAtLoc(udg_Player12,'h02H',udg_Point,0))),"0x736A3C94",400.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=5
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(CreateUnitAtLoc(udg_Player12,'h02Q',udg_Point,0))),"0x736A3C94",200.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AdjustPlayerStateBJ($C350,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ($9C40,udg_Player12,PLAYER_STATE_RESOURCE_LUMBER)
call RemoveLocation(udg_Point)
endfunction
function InitTrig_zombieStart4 takes nothing returns nothing
set gg_trg_zombieStart4=CreateTrigger()
call DisableTrigger(gg_trg_zombieStart4)
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart4,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart4,function Trig_zombieStart4Actions)
endfunction
function Trig_zombieMakeFunc001Func003Func006Func002002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and((IsUnitAlly(GetFilterUnit(),udg_Player12)==false)and(GetUnitTypeId(GetFilterUnit())!='H01Z'))))
endfunction
function Trig_zombieMakeActions takes nothing returns nothing
if((CountUnitsInGroup(udg_Zombies)<udg_integer_zombies_max))then
set udg_Integer=24
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_Integer
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Point=GetUnitLoc(udg_unit_hellGate)
if((GetPlayerTechCountSimple('R004',udg_Player12)==1))then
set udg_Real=(4.+udg_EX)
set udg_UnitType='h01V'
else
if((GetPlayerTechCountSimple('R004',udg_Player12)==2))then
set udg_Real=(8.+udg_EX)
set udg_UnitType='h01W'
else
if((GetPlayerTechCountSimple('R004',udg_Player12)==3))then
set udg_Real=(12.+udg_EX)
set udg_UnitType='h01X'
else
if((GetPlayerTechCountSimple('R004',udg_Player12)==4))then
set udg_Real=(17.+udg_EX)
set udg_UnitType='h01Y'
else
set udg_Real=1.
set udg_UnitType='h006'
endif
endif
endif
endif
call CreateNUnitsAtLoc(1,udg_UnitType,udg_Player12,udg_Point,bj_UNIT_FACING)
call GroupAddUnit(udg_Zombies,bj_lastCreatedUnit)
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',240.)
if((udg_search))then
set udg_Unitz=bj_lastCreatedUnit
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_zombieMakeFunc001Func003Func006Func002002002))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
set udg_Point=GetUnitLoc(udg_Unit)
call IssuePointOrderByIdLoc(udg_Unitz,$D000F,udg_Point)
call RemoveLocation(udg_Point)
endif
call RemoveLocation(udg_Point)
if((GetUnitAbilityLevel(udg_unit_hellGate,'A037')>1))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(bj_lastCreatedUnit)),"0x736A3C94",((udg_Real-1)+I2R(GetUnitAbilityLevel(udg_unit_hellGate,'A037'))))
else
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(bj_lastCreatedUnit)),"0x736A3C94",udg_Real)
endif
set udg_Integer=0
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Item=UnitItemInSlotBJ(udg_unit_hellGate,bj_forLoopBIndex)
if((udg_Item!=null))then
set udg_Integer=(udg_Integer+1)
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call UnitRemoveAbility(bj_lastCreatedUnit,'A016')
if((udg_Integer==1))then
call UnitAddAbility(bj_lastCreatedUnit,'A010')
else
if((udg_Integer==2))then
call UnitAddAbility(bj_lastCreatedUnit,'A012')
else
if((udg_Integer==3))then
call UnitAddAbility(bj_lastCreatedUnit,'A013')
else
if((udg_Integer==4))then
call UnitAddAbility(bj_lastCreatedUnit,'A014')
else
if((udg_Integer==5))then
call UnitAddAbility(bj_lastCreatedUnit,'A015')
else
if((udg_Integer==6))then
call UnitAddAbility(bj_lastCreatedUnit,'A016')
endif
endif
endif
endif
endif
endif
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=6
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Item=UnitItemInSlotBJ(udg_unit_hellGate,bj_forLoopBIndex)
if((udg_Item!=null))then
call UnitAddItemByIdSwapped(GetItemTypeId(udg_Item),bj_lastCreatedUnit)
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
if(((GetTimeOfDay()>=18.)or(GetTimeOfDay()<6.)))then
call SetUnitMoveSpeed(bj_lastCreatedUnit,(GetUnitMoveSpeed(bj_lastCreatedUnit)+40.))
call UnitAddAbility(bj_lastCreatedUnit,'A023')
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
if((udg_JS[9]==false))then
set udg_JS[9]=true
set udg_Name_JS[(1+GetPlayerId(udg_Player12))]=" (尸如潮水)"
set udg_Name_______u[(1+GetPlayerId(udg_Player12))]=(udg_Name[(1+GetPlayerId(udg_Player12))]+udg_Name_JS[(1+GetPlayerId(udg_Player12))])
call SetPlayerName(udg_Player12,udg_Name_______u[(1+GetPlayerId(udg_Player12))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(udg_Player12))+1),(udg_player_color[(1+GetPlayerId(udg_Player12))]+udg_Name_______u[(1+GetPlayerId(udg_Player12))]))
endif
endif
endfunction
function InitTrig_zombieMake takes nothing returns nothing
set gg_trg_zombieMake=CreateTrigger()
call DisableTrigger(gg_trg_zombieMake)
call TriggerRegisterTimerEventPeriodic(gg_trg_zombieMake,20.)
call TriggerAddAction(gg_trg_zombieMake,function Trig_zombieMakeActions)
endfunction
function Trig_seachConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A03R'))
endfunction
function Trig_seachFunc002002003 takes nothing returns boolean
return((IsUnitInGroup(GetFilterUnit(),udg_Zombies)))
endfunction
function Trig_seachFunc003Func003002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and((IsUnitAlly(GetFilterUnit(),udg_Player12)==false)and(GetUnitTypeId(GetFilterUnit())!='H01Z'))))
endfunction
function Trig_seachActions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetUnitLoc(udg_unit_hellGate))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(512,YDWEGetLocalVariableLocation("a"),Condition(function Trig_seachFunc002002003)))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=30
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Unitz=GroupPickRandomUnit(YDWEGetLocalVariableGroup("g"))
call GroupRemoveUnit(YDWEGetLocalVariableGroup("g"),udg_Unitz)
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_seachFunc003Func003002002))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
set udg_Point=GetUnitLoc(udg_Unit)
call IssuePointOrderByIdLoc(udg_Unitz,$D000F,udg_Point)
call RemoveLocation(udg_Point)
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_seach takes nothing returns nothing
set gg_trg_seach=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_seach,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_seach,Condition(function Trig_seachConditions))
call TriggerAddAction(gg_trg_seach,function Trig_seachActions)
endfunction
function Trig_zombieGetItemConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())!='h000')and(GetOwningPlayer(GetTriggerUnit())==udg_Player12))
endfunction
function Trig_zombieGetItemActions takes nothing returns nothing
if((GetItemType(GetManipulatedItem())==ITEM_TYPE_CAMPAIGN))then
if((GetItemTypeId(GetManipulatedItem())=='I005'))then
set udg_Real2=2.
endif
if((GetItemTypeId(GetManipulatedItem())=='I004'))then
set udg_Real2=6.
endif
if((GetItemTypeId(GetManipulatedItem())=='I003'))then
set udg_Real2=18.
endif
if((GetItemTypeId(GetManipulatedItem())=='I002'))then
set udg_Real2=54.
endif
if((GetItemTypeId(GetManipulatedItem())=='I000'))then
set udg_Real2=162.
endif
if((GetItemTypeId(GetManipulatedItem())=='I001'))then
set udg_Real2=486.
endif
if((GetItemTypeId(GetManipulatedItem())=='I017'))then
set udg_Real2=1000.
endif
set udg_Real=GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x736A3C94")
set udg_Real=(udg_Real+udg_Real2)
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x736A3C94",udg_Real)
endif
endfunction
function InitTrig_zombieGetItem takes nothing returns nothing
set gg_trg_zombieGetItem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zombieGetItem,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zombieGetItem,Condition(function Trig_zombieGetItemConditions))
call TriggerAddAction(gg_trg_zombieGetItem,function Trig_zombieGetItemActions)
endfunction
function Trig_UndeadMakeConditions takes nothing returns boolean
return((IsUnitAlly(GetTrainedUnit(),udg_Player12)))
endfunction
function Trig_UndeadMakeActions takes nothing returns nothing
if((GetUnitTypeId(GetTrainedUnit())=='h00T'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",10.)
else
if((GetUnitTypeId(GetTrainedUnit())=='h01P'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",7.)
else
if((GetUnitTypeId(GetTrainedUnit())=='h01O'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",100.)
else
if((GetUnitTypeId(GetTrainedUnit())=='h037'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",1.)
else
if((GetUnitTypeId(GetTrainedUnit())=='h005'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",4.)
else
if((GetUnitTypeId(GetTrainedUnit())=='h02V'))then
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTrainedUnit())),"0x736A3C94",6.)
endif
endif
endif
endif
endif
endif
if(((GetTimeOfDay()>=18.)or(GetTimeOfDay()<6.)))then
call SetUnitMoveSpeed(GetTrainedUnit(),(GetUnitMoveSpeed(GetTrainedUnit())+40.))
call UnitAddAbility(GetTrainedUnit(),'A023')
endif
endfunction
function InitTrig_UndeadMake takes nothing returns nothing
set gg_trg_UndeadMake=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_UndeadMake,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_UndeadMake,Condition(function Trig_UndeadMakeConditions))
call TriggerAddAction(gg_trg_UndeadMake,function Trig_UndeadMakeActions)
endfunction
function Trig_MiniLordDamageConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='U003'))
endfunction
function Trig_MiniLordDamageActions takes nothing returns nothing
if((GetItemType(GetManipulatedItem())==ITEM_TYPE_CAMPAIGN))then
if((GetItemTypeId(GetManipulatedItem())=='I005'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2.
endif
if((GetItemTypeId(GetManipulatedItem())=='I004'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=6.
endif
if((GetItemTypeId(GetManipulatedItem())=='I003'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=18.
endif
if((GetItemTypeId(GetManipulatedItem())=='I002'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=54.
endif
if((GetItemTypeId(GetManipulatedItem())=='I000'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=180.
endif
if((GetItemTypeId(GetManipulatedItem())=='I001'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=500.
endif
if((GetItemTypeId(GetManipulatedItem())=='I017'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1000.
endif
set udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x895FBD1F")
set udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x895FBD1F",udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endif
endfunction
function InitTrig_MiniLordDamage takes nothing returns nothing
set gg_trg_MiniLordDamage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordDamage,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordDamage,Condition(function Trig_MiniLordDamageConditions))
call TriggerAddAction(gg_trg_MiniLordDamage,function Trig_MiniLordDamageActions)
endfunction
function Trig_MiniLordDamage2Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='U003'))
endfunction
function Trig_MiniLordDamage2Actions takes nothing returns nothing
if((GetItemType(GetManipulatedItem())==ITEM_TYPE_CAMPAIGN))then
if((GetItemTypeId(GetManipulatedItem())=='I005'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-2.
endif
if((GetItemTypeId(GetManipulatedItem())=='I004'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-6.
endif
if((GetItemTypeId(GetManipulatedItem())=='I003'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-18.
endif
if((GetItemTypeId(GetManipulatedItem())=='I002'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-54.
endif
if((GetItemTypeId(GetManipulatedItem())=='I000'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-180.
endif
if((GetItemTypeId(GetManipulatedItem())=='I001'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-500.
endif
if((GetItemTypeId(GetManipulatedItem())=='I017'))then
set udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=-1000.
endif
set udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=GetStoredReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x895FBD1F")
set udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Real_DOG_2[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(GetTriggerUnit())),"0x895FBD1F",udg_Real_DOG_3[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
endif
endfunction
function InitTrig_MiniLordDamage2 takes nothing returns nothing
set gg_trg_MiniLordDamage2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordDamage2,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordDamage2,Condition(function Trig_MiniLordDamage2Conditions))
call TriggerAddAction(gg_trg_MiniLordDamage2,function Trig_MiniLordDamage2Actions)
endfunction
function Trig_MiniLordItemConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='U003')and((GetItemTypeId(GetManipulatedItem())=='I00Z')or(GetItemTypeId(GetManipulatedItem())=='I00Y')or(GetItemTypeId(GetManipulatedItem())=='I00X')or(GetItemTypeId(GetManipulatedItem())=='I015')or(GetItemTypeId(GetManipulatedItem())=='I013')or(GetItemTypeId(GetManipulatedItem())=='I011')or(GetItemTypeId(GetManipulatedItem())=='I00U')or(GetItemTypeId(GetManipulatedItem())=='I00V')or(GetItemTypeId(GetManipulatedItem())=='I010')or(GetItemTypeId(GetManipulatedItem())=='I00W')or(GetItemTypeId(GetManipulatedItem())=='I012')))
endfunction
function Trig_MiniLordItemActions takes nothing returns nothing
call DisplayTextToPlayer(GetOwningPlayer(GetTriggerUnit()),0,0,"人狗殊途，身为走狗怎能用人类的装备？该装备被没收！")
call RemoveItem(GetManipulatedItem())
endfunction
function InitTrig_MiniLordItem takes nothing returns nothing
set gg_trg_MiniLordItem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordItem,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordItem,Condition(function Trig_MiniLordItemConditions))
call TriggerAddAction(gg_trg_MiniLordItem,function Trig_MiniLordItemActions)
endfunction
function Trig_DayNightSpeedFunc001002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(IsUnitAlly(GetFilterUnit(),udg_Player12))))
endfunction
function Trig_DayNightSpeedFunc002A takes nothing returns nothing
call SetUnitMoveSpeed(GetEnumUnit(),(GetUnitMoveSpeed(GetEnumUnit())+40.))
call UnitAddAbility(GetEnumUnit(),'A023')
endfunction
function Trig_DayNightSpeedActions takes nothing returns nothing
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_DayNightSpeedFunc001002002))
call ForGroupBJ(udg_Group,function Trig_DayNightSpeedFunc002A)
call DestroyGroup(udg_Group)
if((udg_DayNight_ON>udg_DayNight_OFF))then
call SetDayNightModels("","")
endif
endfunction
function InitTrig_DayNightSpeed takes nothing returns nothing
set gg_trg_DayNightSpeed=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_DayNightSpeed,EQUAL,18.)
call TriggerAddAction(gg_trg_DayNightSpeed,function Trig_DayNightSpeedActions)
endfunction
function Trig_DayNightSpeed2Func001002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(IsUnitAlly(GetFilterUnit(),udg_Player12))))
endfunction
function Trig_DayNightSpeed2Func002A takes nothing returns nothing
call SetUnitMoveSpeed(GetEnumUnit(),(GetUnitMoveSpeed(GetEnumUnit())-40.))
call UnitRemoveAbility(GetEnumUnit(),'A023')
endfunction
function Trig_DayNightSpeed2Actions takes nothing returns nothing
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_DayNightSpeed2Func001002002))
call ForGroupBJ(udg_Group,function Trig_DayNightSpeed2Func002A)
call DestroyGroup(udg_Group)
if((udg_DayNight_ON>udg_DayNight_OFF))then
call SetDayNightModels("Environment\\DNC\\DNCDalaran\\DNCDalaranTerrain\\DNCDalaranTerrain.mdx","Environment\\DNC\\DNCDalaran\\DNCDalaranUnit\\DNCDalaranUnit.mdx")
endif
endfunction
function InitTrig_DayNightSpeed2 takes nothing returns nothing
set gg_trg_DayNightSpeed2=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_DayNightSpeed2,EQUAL,6.)
call TriggerAddAction(gg_trg_DayNightSpeed2,function Trig_DayNightSpeed2Actions)
endfunction
function Trig_trade_ZBConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A034')and(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>=$FA0))
endfunction
function Trig_trade_ZBActions takes nothing returns nothing
call AdjustPlayerStateBJ(-$FA0,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ($DAC,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function InitTrig_trade_ZB takes nothing returns nothing
set gg_trg_trade_ZB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_trade_ZB,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_trade_ZB,Condition(function Trig_trade_ZBConditions))
call TriggerAddAction(gg_trg_trade_ZB,function Trig_trade_ZBActions)
endfunction
function Trig_ZombieAutoAttackFunc001002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and((GetUnitTypeId(GetFilterUnit())=='h006')or((GetUnitTypeId(GetFilterUnit())=='h01V')or((GetUnitTypeId(GetFilterUnit())=='h01W')or((GetUnitTypeId(GetFilterUnit())=='h01X')or(GetUnitTypeId(GetFilterUnit())=='h01Y')))))))
endfunction
function Trig_ZombieAutoAttackFunc002Func002002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit()))and((IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE))and(IsUnitEnemy(GetEnumUnit(),GetOwningPlayer(GetFilterUnit())))))!=null
endfunction
function Trig_ZombieAutoAttackFunc002A takes nothing returns nothing
set udg_Point=GetUnitLoc(GetEnumUnit())
set udg_Group2=YDWEGetUnitsInRangeOfLocMatchingNull(100.,udg_Point,Condition(function Trig_ZombieAutoAttackFunc002Func002002003))
call RemoveLocation(udg_Point)
set udg_Unit=GroupPickRandomUnit(udg_Group2)
call DestroyGroup(udg_Group2)
if((udg_Unit!=null))then
call IssueTargetOrderById(GetEnumUnit(),$D000F,udg_Unit)
endif
endfunction
function Trig_ZombieAutoAttackActions takes nothing returns nothing
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_ZombieAutoAttackFunc001002002))
call ForGroupBJ(udg_Group,function Trig_ZombieAutoAttackFunc002A)
call DestroyGroup(udg_Group)
endfunction
function InitTrig_ZombieAutoAttack takes nothing returns nothing
set gg_trg_ZombieAutoAttack=CreateTrigger()
call DisableTrigger(gg_trg_ZombieAutoAttack)
call TriggerRegisterTimerEventPeriodic(gg_trg_ZombieAutoAttack,1.)
call TriggerAddAction(gg_trg_ZombieAutoAttack,function Trig_ZombieAutoAttackActions)
endfunction
function Trig_zzConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02K'))
endfunction
function Trig_zzActions takes nothing returns nothing
call CreateTextTagUnitBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+"老子翻了，哦也！"),GetTriggerUnit(),0,$A,'d','d','d',0)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call KillUnit(GetTriggerUnit())
if((GetUnitTypeId(GetTriggerUnit())=='h006'))then
call AdjustPlayerStateBJ(1,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
else
if((GetUnitTypeId(GetTriggerUnit())=='h01V'))then
call AdjustPlayerStateBJ(2,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
else
if((GetUnitTypeId(GetTriggerUnit())=='h01W'))then
call AdjustPlayerStateBJ(3,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
else
if((GetUnitTypeId(GetTriggerUnit())=='h01X'))then
call AdjustPlayerStateBJ(4,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
else
if((GetUnitTypeId(GetTriggerUnit())=='h01Y'))then
call AdjustPlayerStateBJ(5,udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
endif
endif
endif
endif
endif
endfunction
function InitTrig_zz takes nothing returns nothing
set gg_trg_zz=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz,Condition(function Trig_zzConditions))
call TriggerAddAction(gg_trg_zz,function Trig_zzActions)
endfunction
function Trig_zz_defConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02O'))
endfunction
function Trig_zz_defFunc002Func001A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),$D0012,YDWEGetLocalVariableLocation("a"))
endfunction
function Trig_zz_defActions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
set udg_JSJ=1
loop
exitwhen udg_JSJ>$A
call ForGroupBJ(udg_Zombies,function Trig_zz_defFunc002Func001A)
set udg_JSJ=udg_JSJ+1
endloop
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_zz_def takes nothing returns nothing
set gg_trg_zz_def=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz_def,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz_def,Condition(function Trig_zz_defConditions))
call TriggerAddAction(gg_trg_zz_def,function Trig_zz_defActions)
endfunction
function Trig_zz_atkConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02P')and(IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()),udg_Player12)==false))
endfunction
function Trig_zz_atkFunc003002002 takes nothing returns boolean
return((IsUnitInGroup(GetFilterUnit(),udg_Zombies)))
endfunction
function Trig_zz_atkActions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A02P',udg_Player12)
call YDWESetLocalVariableLocation("a",GetSpellTargetLoc())
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_zz_atkFunc003002002)))
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=30
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Unitz=GroupPickRandomUnit(YDWEGetLocalVariableGroup("g"))
call GroupRemoveUnit(YDWEGetLocalVariableGroup("g"),udg_Unitz)
call IssuePointOrderByIdLoc(udg_Unitz,$D000F,YDWEGetLocalVariableLocation("a"))
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call YDWEWaitForLocalVariable(5.)
call SetPlayerAbilityAvailableBJ(true,'A02P',udg_Player12)
endfunction
function InitTrig_zz_atk takes nothing returns nothing
set gg_trg_zz_atk=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz_atk,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz_atk,Condition(function Trig_zz_atkConditions))
call TriggerAddAction(gg_trg_zz_atk,function Trig_zz_atkActions)
endfunction
function Trig_upActions takes nothing returns nothing
call PauseGame(false)
call YDWEPolledWaitNull(.1)
set udg_escT[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_escT[(1+GetPlayerId(GetTriggerPlayer()))]-1)
if((udg_escT[(1+GetPlayerId(GetTriggerPlayer()))]==0))then
call CustomDefeatBJ(GetTriggerPlayer(),"请下次不要试图作弊")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 试图作弊，被T出了游戏！"))
else
call DialogSetMessage(udg_esc[(1+GetPlayerId(GetTriggerPlayer()))],("请不要按方向键，再按|cffff0000"+(I2S(udg_escT[(1+GetPlayerId(GetTriggerPlayer()))])+"|r次会被T出游戏！")))
call DialogDisplay(GetTriggerPlayer(),udg_esc[(1+GetPlayerId(GetTriggerPlayer()))],true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 按了方向键，已被警告！"))
endif
endfunction
function InitTrig_up takes nothing returns nothing
set gg_trg_up=CreateTrigger()
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,0)
call TriggerAddAction(gg_trg_up,function Trig_upActions)
endfunction
function Trig_up_______uConditions takes nothing returns boolean
return((udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]!="邪魔ご鬼神")and(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]!="菊爆天神")and(GetEventPlayerChatString()!="- -"))
endfunction
function Trig_up_______uActions takes nothing returns nothing
call PauseGame(false)
call YDWEPolledWaitNull(.1)
set udg_textT[(1+GetPlayerId(GetTriggerPlayer()))]=(udg_textT[(1+GetPlayerId(GetTriggerPlayer()))]-1)
if((udg_textT[(1+GetPlayerId(GetTriggerPlayer()))]==0))then
call CustomDefeatBJ(GetTriggerPlayer(),"请下次不要试图作弊")
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 试图作弊，被T出了游戏！"))
else
call DialogSetMessage(udg_text[(1+GetPlayerId(GetTriggerPlayer()))],("请不要输入有作弊嫌疑的字符-，再输入|cffff0000"+(I2S(udg_textT[(1+GetPlayerId(GetTriggerPlayer()))])+"|r次会被T出游戏！")))
call DialogDisplay(GetTriggerPlayer(),udg_text[(1+GetPlayerId(GetTriggerPlayer()))],true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 输入了有作弊嫌疑的字符-，已被警告，大家小心他作弊！"))
endif
endfunction
function InitTrig_up_______u takes nothing returns nothing
set gg_trg_up_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(0),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(1),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(2),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(3),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(4),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(5),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(6),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(7),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(8),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(9),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($A),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($B),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($C),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($D),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($E),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($F),"-",false)
call TriggerAddCondition(gg_trg_up_______u,Condition(function Trig_up_______uConditions))
call TriggerAddAction(gg_trg_up_______u,function Trig_up_______uActions)
endfunction
function Trig_escActions takes nothing returns nothing
call ForceUIKeyBJ(GetTriggerPlayer(),"X")
endfunction
function InitTrig_esc takes nothing returns nothing
set gg_trg_esc=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($F))
call TriggerAddAction(gg_trg_esc,function Trig_escActions)
endfunction
function Trig_tecConditions takes nothing returns boolean
return((udg_build[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false)and((GetUnitTypeId(GetTriggerUnit())==udg_Barracks[1])or(GetUnitTypeId(GetTriggerUnit())==udg_Barracks[2])or(GetUnitTypeId(GetTriggerUnit())==udg_Barracks[3])or(GetUnitTypeId(GetTriggerUnit())==udg_Barracks[4])))
endfunction
function Trig_tecActions takes nothing returns nothing
set udg_build[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
if((GetUnitTypeId(GetTriggerUnit())==udg_Barracks[1]))then
set udg_Army[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1
call SetPlayerTechMaxAllowedSwap('R00B',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R000',30,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R001',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R002',5,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R003',25,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02M',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02N',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02O',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02P',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h00V',2,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h036',7,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h011',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02X',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A031',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02U',false)
else
if((GetUnitTypeId(GetTriggerUnit())==udg_Barracks[2]))then
set udg_Army[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=2
call SetPlayerTechMaxAllowedSwap('R00B',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R000',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R001',30,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R002',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R003',$A,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02M',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02N',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02O',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02P',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02X',2,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02W',5,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02X',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A031',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Z',false)
else
if((GetUnitTypeId(GetTriggerUnit())==udg_Barracks[3]))then
set udg_Army[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=3
call SetPlayerTechMaxAllowedSwap('R00B',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R000',$A,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R001',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R002',30,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R003',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02M',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02N',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02O',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02P',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h00V',8,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h010',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h011',2,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02X',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02U',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Z',false)
else
if((GetUnitTypeId(GetTriggerUnit())==udg_Barracks[4]))then
set udg_Army[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=4
call SetPlayerTechMaxAllowedSwap('R00B',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R000',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R001',20,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R002',30,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R003',30,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',40,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02M',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02N',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02O',0,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h02P',1,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h00V',2,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h010',2,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerTechMaxAllowedSwap('h011',6,GetOwningPlayer(GetTriggerUnit()))
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A031',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02Z',false)
call SetPlayerAbilityAvailable(GetOwningPlayer(GetTriggerUnit()),'A02U',false)
endif
endif
endif
endif
endfunction
function InitTrig_tec takes nothing returns nothing
set gg_trg_tec=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_tec,Condition(function Trig_tecConditions))
call TriggerAddAction(gg_trg_tec,function Trig_tecActions)
endfunction
function Trig_tec_lmtConditions takes nothing returns boolean
return(((GetResearched()=='R000')or(GetResearched()=='R001')or(GetResearched()=='R002')or(GetResearched()=='R003')))
endfunction
function Trig_tec_lmtActions takes nothing returns nothing
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[1])and(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetResearchingUnit()))==30)and(GetPlayerTechCountSimple('R001',GetOwningPlayer(GetResearchingUnit()))==20)and(GetPlayerTechCountSimple('R002',GetOwningPlayer(GetResearchingUnit()))==5)and(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetResearchingUnit()))==25))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+"|r已达到兵营科技上限，可以开始研究【能力突破】！")))
call SetPlayerTechMaxAllowedSwap('R00B',1,GetOwningPlayer(GetResearchingUnit()))
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[2])and(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetResearchingUnit()))==20)and(GetPlayerTechCountSimple('R001',GetOwningPlayer(GetResearchingUnit()))==30)and(GetPlayerTechCountSimple('R002',GetOwningPlayer(GetResearchingUnit()))==20)and(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetResearchingUnit()))==$A))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+"|r已达到兵营科技上限，可以开始研究【能力突破】！")))
call SetPlayerTechMaxAllowedSwap('R00B',1,GetOwningPlayer(GetResearchingUnit()))
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[3])and(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetResearchingUnit()))==$A)and(GetPlayerTechCountSimple('R001',GetOwningPlayer(GetResearchingUnit()))==20)and(GetPlayerTechCountSimple('R002',GetOwningPlayer(GetResearchingUnit()))==30)and(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetResearchingUnit()))==20))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+"|r已达到兵营科技上限，可以开始研究【能力突破】！")))
call SetPlayerTechMaxAllowedSwap('R00B',1,GetOwningPlayer(GetResearchingUnit()))
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[4])and(GetPlayerTechCountSimple('R000',GetOwningPlayer(GetResearchingUnit()))==0)and(GetPlayerTechCountSimple('R001',GetOwningPlayer(GetResearchingUnit()))==20)and(GetPlayerTechCountSimple('R002',GetOwningPlayer(GetResearchingUnit()))==30)and(GetPlayerTechCountSimple('R003',GetOwningPlayer(GetResearchingUnit()))==30))then
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]+"|r已达到兵营科技上限，可以开始研究【能力突破】！")))
call SetPlayerTechMaxAllowedSwap('R00B',1,GetOwningPlayer(GetResearchingUnit()))
endif
endif
endif
endif
endfunction
function InitTrig_tec_lmt takes nothing returns nothing
set gg_trg_tec_lmt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec_lmt,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_tec_lmt,Condition(function Trig_tec_lmtConditions))
call TriggerAddAction(gg_trg_tec_lmt,function Trig_tec_lmtActions)
endfunction
function Trig_tec_______uConditions takes nothing returns boolean
return((udg_tel[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]==false)and(GetResearched()=='R00B'))
endfunction
function Trig_tec_______uFunc002Func001Func002Func002Func008A takes nothing returns nothing
if((IsUnitAliveBJ(GetEnumUnit())))then
call SetUnitAbilityLevel(GetEnumUnit(),'A02T',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A02Y',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A033',2)
endif
endfunction
function Trig_tec_______uFunc002Func001Func002Func008A takes nothing returns nothing
if((IsUnitAliveBJ(GetEnumUnit())))then
call SetUnitAbilityLevel(GetEnumUnit(),'A03O',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A031',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A03F',2)
endif
endfunction
function Trig_tec_______uFunc002Func001Func008A takes nothing returns nothing
if((IsUnitAliveBJ(GetEnumUnit())))then
call SetUnitAbilityLevel(GetEnumUnit(),'A02S',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A030',2)
endif
endfunction
function Trig_tec_______uFunc002Func007A takes nothing returns nothing
if((IsUnitAliveBJ(GetEnumUnit())))then
call SetUnitAbilityLevel(GetEnumUnit(),'A02Q',2)
call SetUnitAbilityLevel(GetEnumUnit(),'A02Z',2)
endif
endfunction
function Trig_tec_______uActions takes nothing returns nothing
set udg_tel[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))]=true
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[1]))then
call SetPlayerTechMaxAllowedSwap('R000',40,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R001',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R002',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R003',30,GetOwningPlayer(GetResearchingUnit()))
set udg_Group=YDWEGetUnitsOfPlayerAndTypeIdNull(GetOwningPlayer(GetResearchingUnit()),'h02M')
call ForGroupBJ(udg_Group,function Trig_tec_______uFunc002Func007A)
call DestroyGroup(udg_Group)
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[2]))then
call SetPlayerTechMaxAllowedSwap('R000',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R001',40,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R002',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R003',30,GetOwningPlayer(GetResearchingUnit()))
set udg_Group=YDWEGetUnitsOfPlayerAndTypeIdNull(GetOwningPlayer(GetResearchingUnit()),'h02O')
call ForGroupBJ(udg_Group,function Trig_tec_______uFunc002Func001Func008A)
call DestroyGroup(udg_Group)
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[3]))then
call SetPlayerTechMaxAllowedSwap('R000',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R001',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R002',40,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R003',30,GetOwningPlayer(GetResearchingUnit()))
set udg_Group=YDWEGetUnitsOfPlayerAndTypeIdNull(GetOwningPlayer(GetResearchingUnit()),'h02N')
call ForGroupBJ(udg_Group,function Trig_tec_______uFunc002Func001Func002Func008A)
call DestroyGroup(udg_Group)
else
if((GetUnitTypeId(GetResearchingUnit())==udg_Barracks[4]))then
call SetPlayerTechMaxAllowedSwap('R000',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R001',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R002',30,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R003',40,GetOwningPlayer(GetResearchingUnit()))
set udg_Group=YDWEGetUnitsOfPlayerAndTypeIdNull(GetOwningPlayer(GetResearchingUnit()),'h02P')
call ForGroupBJ(udg_Group,function Trig_tec_______uFunc002Func001Func002Func002Func008A)
call DestroyGroup(udg_Group)
else
if((GetUnitTypeId(GetResearchingUnit())=='h02T'))then
call SetPlayerTechMaxAllowedSwap('R000',45,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R001',45,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R002',45,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R003',45,GetOwningPlayer(GetResearchingUnit()))
call SetPlayerTechMaxAllowedSwap('R00A',45,GetOwningPlayer(GetResearchingUnit()))
endif
endif
endif
endif
endif
endfunction
function InitTrig_tec_______u takes nothing returns nothing
set gg_trg_tec_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec_______u,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_tec_______u,Condition(function Trig_tec_______uConditions))
call TriggerAddAction(gg_trg_tec_______u,function Trig_tec_______uActions)
endfunction
function Trig_leaderConditions takes nothing returns boolean
return((udg_tel[(1+GetPlayerId(GetOwningPlayer(GetResearchingUnit())))])and((GetUnitTypeId(GetTrainedUnit())=='h02M')or(GetUnitTypeId(GetTrainedUnit())=='h02O')or(GetUnitTypeId(GetTrainedUnit())=='h02N')or(GetUnitTypeId(GetTrainedUnit())=='h02P')))
endfunction
function Trig_leaderActions takes nothing returns nothing
if((GetUnitTypeId(GetTrainedUnit())=='h02M'))then
call SetUnitAbilityLevel(GetTrainedUnit(),'A02Q',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A02Z',2)
else
if((GetUnitTypeId(GetTrainedUnit())=='h02O'))then
call SetUnitAbilityLevel(GetTrainedUnit(),'A02S',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A030',2)
else
if((GetUnitTypeId(GetTrainedUnit())=='h02N'))then
call SetUnitAbilityLevel(GetTrainedUnit(),'A03O',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A031',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A03F',2)
else
if((GetUnitTypeId(GetTrainedUnit())=='h02P'))then
call SetUnitAbilityLevel(GetTrainedUnit(),'A02T',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A02Y',2)
call SetUnitAbilityLevel(GetTrainedUnit(),'A033',2)
endif
endif
endif
endif
endfunction
function InitTrig_leader takes nothing returns nothing
set gg_trg_leader=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_leader,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_leader,Condition(function Trig_leaderConditions))
call TriggerAddAction(gg_trg_leader,function Trig_leaderActions)
endfunction
function Trig_leader_______uConditions takes nothing returns boolean
return((udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]==false)and((GetUnitTypeId(GetTrainedUnit())=='h02M')or(GetUnitTypeId(GetTrainedUnit())=='h02O')or(GetUnitTypeId(GetTrainedUnit())=='h02N')or(GetUnitTypeId(GetTrainedUnit())=='h02P')or(GetUnitTypeId(GetTrainedUnit())=='h02U')or(GetUnitTypeId(GetTrainedUnit())=='h02X')or(GetUnitTypeId(GetTrainedUnit())=='h02W')or(GetUnitTypeId(GetTrainedUnit())=='h036')))
endfunction
function Trig_leader_______uActions takes nothing returns nothing
if((GetUnitTypeId(GetTrainedUnit())=='h02M')and(udg_Leader_Z==false))then
set udg_Leader_Z=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (斯巴达)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02O')and(udg_Leader_F==false))then
set udg_Leader_F=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (德玛西亚)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02N')and(udg_Leader_R==false))then
set udg_Leader_R=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (不挨打不舒服斯基)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02P')and(udg_Leader_S==false))then
set udg_Leader_S=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (圣光偷袭者)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02U'))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (老子翻了)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02X'))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (人间大炮)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h036')and(YDWECountLivingPlayerUnitsOfTypeIdNull('h036',GetOwningPlayer(GetTrainedUnit()))==7)and(YDWECountLivingPlayerUnitsOfTypeIdNull('h02M',GetOwningPlayer(GetTrainedUnit()))==1)and(udg_N_TZ[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]==false))then
set udg_N_TZ[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (特种部队)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
else
if((GetUnitTypeId(GetTrainedUnit())=='h02W')and(YDWECountLivingPlayerUnitsOfTypeIdNull('h02W',GetOwningPlayer(GetTrainedUnit()))==5)and(udg_N_TZ[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]==false))then
set udg_N_TZ[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=true
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=" (苍茫的天涯是我的爱)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call SetPlayerName(GetOwningPlayer(GetTrainedUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTrainedUnit())))]))
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function InitTrig_leader_______u takes nothing returns nothing
set gg_trg_leader_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_leader_______u,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_leader_______u,Condition(function Trig_leader_______uConditions))
call TriggerAddAction(gg_trg_leader_______u,function Trig_leader_______uActions)
endfunction
function Trig_tec2Conditions takes nothing returns boolean
return(((GetUnitTypeId(GetConstructedStructure())=='h00W')or(GetUnitTypeId(GetConstructedStructure())=='h032'))and(udg_build[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]))
endfunction
function Trig_tec2Actions takes nothing returns nothing
if((udg_Army[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]==1))then
call YDWEReplaceUnitBJNull(GetConstructedStructure(),udg_Barracks[1],1)
endif
if((udg_Army[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]==2))then
call YDWEReplaceUnitBJNull(GetConstructedStructure(),udg_Barracks[2],1)
endif
if((udg_Army[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]==3))then
call YDWEReplaceUnitBJNull(GetConstructedStructure(),udg_Barracks[3],1)
endif
if((udg_Army[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]==4))then
call YDWEReplaceUnitBJNull(GetConstructedStructure(),udg_Barracks[4],1)
endif
if((udg_Army[(1+GetPlayerId(GetOwningPlayer(GetConstructedStructure())))]==5))then
call YDWEReplaceUnitBJNull(GetConstructedStructure(),udg_Barracks[5],1)
endif
endfunction
function InitTrig_tec2 takes nothing returns nothing
set gg_trg_tec2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec2,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(gg_trg_tec2,Condition(function Trig_tec2Conditions))
call TriggerAddAction(gg_trg_tec2,function Trig_tec2Actions)
endfunction
function Trig_trainConditions takes nothing returns boolean
return((GetResearched()=='R004')and((udg_GameMode==2)or(udg_GameMode==4)))
endfunction
function Trig_trainActions takes nothing returns nothing
call SetUnitAbilityLevel(GetTriggerUnit(),udg_Effect,(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))+1))
call SetUnitAbilityLevel(GetTriggerUnit(),udg_Effect_2,(GetPlayerTechCountSimple('R004',GetOwningPlayer(GetTriggerUnit()))+1))
endfunction
function InitTrig_train takes nothing returns nothing
set gg_trg_train=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_train,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_train,Condition(function Trig_trainConditions))
call TriggerAddAction(gg_trg_train,function Trig_trainActions)
endfunction
function Trig_train_______uConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h02H')and((udg_GameMode==2)or(udg_GameMode==4)))
endfunction
function Trig_train_______uActions takes nothing returns nothing
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"|cffff0000 僵尸王|r|cffffff00已被消灭，大地被极度污染，对僵尸有利的场地效果达到最大化！|r")
call DisableTrigger(GetTriggeringTrigger())
call SetUnitAbilityLevel(udg_unit_hellGate,udg_Effect,6)
call SetUnitAbilityLevel(udg_unit_hellGate,udg_Effect_2,6)
call DisableTrigger(gg_trg_train)
endfunction
function InitTrig_train_______u takes nothing returns nothing
set gg_trg_train_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_train_______u,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_train_______u,Condition(function Trig_train_______uConditions))
call TriggerAddAction(gg_trg_train_______u,function Trig_train_______uActions)
endfunction
function Trig_ckConditions takes nothing returns boolean
return((GetUnitTypeId(GetKillingUnit())=='h037'))
endfunction
function Trig_ckActions takes nothing returns nothing
call AdjustPlayerStateBJ($C8,udg_Player12,PLAYER_STATE_RESOURCE_LUMBER)
endfunction
function InitTrig_ck takes nothing returns nothing
set gg_trg_ck=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ck,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_ck,Condition(function Trig_ckConditions))
call TriggerAddAction(gg_trg_ck,function Trig_ckActions)
endfunction
function Trig_skillConditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h00R')and(udg_Skill_learn[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))
endfunction
function Trig_skillActions takes nothing returns nothing
set udg_Skill_learn[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
call UnitAddAbility(udg_Farmer[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],udg_Skill_Q[GetRandomInt(1,$B)])
call UnitAddAbility(udg_Farmer[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))],udg_Skill_W[GetRandomInt(1,$B)])
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+(udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+"|r通过升级【基地】，获得了两个随机技能！")))
endfunction
function InitTrig_skill takes nothing returns nothing
set gg_trg_skill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_skill,Condition(function Trig_skillConditions))
call TriggerAddAction(gg_trg_skill,function Trig_skillActions)
endfunction
function Trig_skill01Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A040'))
endfunction
function Trig_skill01Actions takes nothing returns nothing
call YDWEWaitForLocalVariable(.03)
call DestroyEffect(AddSpecialEffectTarget("Units\\Undead\\Abomination\\AbominationExplosion.mdl",GetTriggerUnit(),"origin"))
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableLocation("b",PolarProjectionBJ(YDWEGetLocalVariableLocation("a"),200.,GetUnitFacing(GetTriggerUnit())))
call SetUnitAnimation(GetTriggerUnit(),"attack")
call SetUnitPositionLoc(GetTriggerUnit(),YDWEGetLocalVariableLocation("b"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("b"))
endfunction
function InitTrig_skill01 takes nothing returns nothing
set gg_trg_skill01=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill01,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill01,Condition(function Trig_skill01Conditions))
call TriggerAddAction(gg_trg_skill01,function Trig_skill01Actions)
endfunction
function Trig_skill02Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Afla'))
endfunction
function Trig_skill02Actions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetSpellTargetLoc())
call YDWEWaitForLocalVariable(.5)
call CreateNUnitsAtLoc(1,'h039',GetOwningPlayer(GetTriggerUnit()),YDWEGetLocalVariableLocation("a"),bj_UNIT_FACING)
call UnitApplyTimedLifeBJ(15.,'BHwe',bj_lastCreatedUnit)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_skill02 takes nothing returns nothing
set gg_trg_skill02=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill02,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill02,Condition(function Trig_skill02Conditions))
call TriggerAddAction(gg_trg_skill02,function Trig_skill02Actions)
endfunction
function Trig_skill03Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A041'))
endfunction
function Trig_skill03Actions takes nothing returns nothing
call YDWESetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),GetSpellTargetUnit())
call YDWEWaitForLocalVariable(.5)
call UnitDamageTarget(GetTriggerUnit(),YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),(200.+(.3*GetUnitState(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),UNIT_STATE_MAX_LIFE))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WOOD_HEAVY_BASH)
endfunction
function InitTrig_skill03 takes nothing returns nothing
set gg_trg_skill03=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill03,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill03,Condition(function Trig_skill03Conditions))
call TriggerAddAction(gg_trg_skill03,function Trig_skill03Actions)
endfunction
function Trig_skill04Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A042'))
endfunction
function Trig_skill04Actions takes nothing returns nothing
call YDWESetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit()))),GetSpellTargetUnit())
call YDWEWaitForLocalVariable(.3)
call UnitDamageTarget(GetTriggerUnit(),YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),(50.+(.3*GetUnitState(YDWEGetLocalVariableUnitArray("u",(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))),UNIT_STATE_MAX_LIFE))),true,false,ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC,WEAPON_TYPE_WOOD_HEAVY_BASH)
endfunction
function InitTrig_skill04 takes nothing returns nothing
set gg_trg_skill04=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill04,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill04,Condition(function Trig_skill04Conditions))
call TriggerAddAction(gg_trg_skill04,function Trig_skill04Actions)
endfunction
function Trig_skill05Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A044'))
endfunction
function Trig_skill05Func002002003 takes nothing returns boolean
return((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))!=null
endfunction
function Trig_skill05Func003A takes nothing returns nothing
call UnitDamageTargetBJ(GetTriggerUnit(),GetEnumUnit(),(200.+(GetUnitState(GetEnumUnit(),UNIT_STATE_MAX_LIFE)*.15)),ATTACK_TYPE_NORMAL,DAMAGE_TYPE_MAGIC)
endfunction
function Trig_skill05Actions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(250.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_skill05Func002002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_skill05Func003A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_skill05 takes nothing returns nothing
set gg_trg_skill05=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill05,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill05,Condition(function Trig_skill05Conditions))
call TriggerAddAction(gg_trg_skill05,function Trig_skill05Actions)
endfunction
function Trig_skill06Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A046'))
endfunction
function Trig_skill06Actions takes nothing returns nothing
set udg_FS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=1
loop
exitwhen udg_FS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]>20
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'n003',GetOwningPlayer(GetTriggerUnit()),Location(GetLocationX(YDWEGetLocalVariableLocation("a")),GetLocationY(YDWEGetLocalVariableLocation("a"))),bj_UNIT_FACING)
call IssueTargetOrderById(bj_lastCreatedUnit,$D0132,GetTriggerUnit())
call UnitApplyTimedLife(bj_lastCreatedUnit,'BHwe',1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call YDWEWaitForLocalVariable(.02)
set udg_FS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=udg_FS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1
endloop
endfunction
function InitTrig_skill06 takes nothing returns nothing
set gg_trg_skill06=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill06,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill06,Condition(function Trig_skill06Conditions))
call TriggerAddAction(gg_trg_skill06,function Trig_skill06Actions)
endfunction
function Trig_skill07Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A047'))
endfunction
function Trig_skill07Func005002003 takes nothing returns boolean
return((IsUnitAlly(GetFilterUnit(),GetOwningPlayer(GetTriggerUnit()))==false)and(IsUnitType(GetFilterUnit(),UNIT_TYPE_STRUCTURE)==false))!=null
endfunction
function Trig_skill07Func006A takes nothing returns nothing
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Human\\MassTeleport\\MassTeleportTarget.mdl",GetEnumUnit(),"origin"))
call SetUnitPositionLocFacingBJ(GetEnumUnit(),YDWEGetLocalVariableLocation("b"),bj_UNIT_FACING)
endfunction
function Trig_skill07Actions takes nothing returns nothing
call YDWESetLocalVariableUnit("u",GetSpellTargetUnit())
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+(udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+("|r："+(udg_player_color[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnit("u"))))]+(udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(YDWEGetLocalVariableUnit("u"))))]+"|r你妈喊你回家吃饭！"))))))
call YDWESetLocalVariableLocation("a",GetUnitLoc(YDWEGetLocalVariableUnit("u")))
call YDWESetLocalVariableLocation("b",GetUnitLoc(udg_unit_hellGate))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(300.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_skill07Func005002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_skill07Func006A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("b"))
endfunction
function InitTrig_skill07 takes nothing returns nothing
set gg_trg_skill07=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill07,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill07,Condition(function Trig_skill07Conditions))
call TriggerAddAction(gg_trg_skill07,function Trig_skill07Actions)
endfunction
function Trig_skill08Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A049'))
endfunction
function Trig_skill08Actions takes nothing returns nothing
call DestroyEffect(AddSpecialEffectTarget("Objects\\Spawnmodels\\Naga\\NagaDeath\\NagaDeath.mdl",GetTriggerUnit(),"origin"))
call SetWidgetLife(GetTriggerUnit(),1.)
call SetUnitManaBJ(GetTriggerUnit(),0)
endfunction
function InitTrig_skill08 takes nothing returns nothing
set gg_trg_skill08=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill08,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill08,Condition(function Trig_skill08Conditions))
call TriggerAddAction(gg_trg_skill08,function Trig_skill08Actions)
endfunction
function Trig_skill09Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04A')and(IsUnitInRange(GetTriggerUnit(),udg_unit_hellGate,600.)==false))
endfunction
function Trig_skill09Actions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetSpellTargetLoc())
call CreateDestructableLoc('LTlt',YDWEGetLocalVariableLocation("a"),GetRandomReal(0,360),1.5,0)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
set udg_PT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_PT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+1)
if((udg_PT[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==3))then
call UnitRemoveAbility(GetTriggerUnit(),'A04A')
call UnitAddAbility(GetTriggerUnit(),udg_Skill_W[GetRandomInt(1,$A)])
endif
endfunction
function InitTrig_skill09 takes nothing returns nothing
set gg_trg_skill09=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill09,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill09,Condition(function Trig_skill09Conditions))
call TriggerAddAction(gg_trg_skill09,function Trig_skill09Actions)
endfunction
function Trig_skill10Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04E'))
endfunction
function Trig_skill10Actions takes nothing returns nothing
call SetUnitLifePercentBJ(GetSpellTargetUnit(),'d')
endfunction
function InitTrig_skill10 takes nothing returns nothing
set gg_trg_skill10=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill10,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill10,Condition(function Trig_skill10Conditions))
call TriggerAddAction(gg_trg_skill10,function Trig_skill10Actions)
endfunction
function Trig_skill11Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04G'))
endfunction
function Trig_skill11Func002002003 takes nothing returns boolean
return((IsUnitInGroup(GetFilterUnit(),udg_Zombies)))
endfunction
function Trig_skill11Func003A takes nothing returns nothing
call KillUnit(GetEnumUnit())
endfunction
function Trig_skill11Actions takes nothing returns nothing
call YDWESetLocalVariableLocation("a",GetSpellTargetLoc())
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(500.,YDWEGetLocalVariableLocation("a"),Condition(function Trig_skill11Func002002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_skill11Func003A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endfunction
function InitTrig_skill11 takes nothing returns nothing
set gg_trg_skill11=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill11,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill11,Condition(function Trig_skill11Conditions))
call TriggerAddAction(gg_trg_skill11,function Trig_skill11Actions)
endfunction
function Trig_skill12Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A02N'))
endfunction
function Trig_skill12Actions takes nothing returns nothing
set udg_JSR=1
loop
exitwhen udg_JSR>7
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetTriggerUnit()))
call CreateNUnitsAtLoc(1,'h03E',GetOwningPlayer(GetTriggerUnit()),YDWEGetLocalVariableLocation("a"),GetUnitFacing(GetTriggerUnit()))
call SetUnitScale(bj_lastCreatedUnit,GetRandomReal(.5,2.),GetRandomReal(.5,2.),GetRandomReal(.5,2.))
call SetUnitVertexColor(bj_lastCreatedUnit,GetRandomInt(0,$FF),GetRandomInt(0,$FF),GetRandomInt(0,$FF),$FF)
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(bj_lastCreatedUnit)),"0x736A3C94",2.)
call SetUnitAnimation(GetTriggerUnit(),"attack")
call YDWEJumpTimer(bj_lastCreatedUnit,GetUnitFacing(GetTriggerUnit()),1200.,2,.01,300)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call YDWEWaitForLocalVariable(1.)
set udg_JSR=udg_JSR+1
endloop
endfunction
function InitTrig_skill12 takes nothing returns nothing
set gg_trg_skill12=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill12,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill12,Condition(function Trig_skill12Conditions))
call TriggerAddAction(gg_trg_skill12,function Trig_skill12Actions)
endfunction
function Trig_skill13Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04K')and(IsPlayerEnemy(GetOwningPlayer(GetTriggerUnit()),udg_Player12)==false))
endfunction
function Trig_skill13Func004002003 takes nothing returns boolean
return((IsUnitInGroup(GetFilterUnit(),udg_Zombies)))
endfunction
function Trig_skill13Func005A takes nothing returns nothing
call IssuePointOrderByIdLoc(GetEnumUnit(),$D000F,YDWEGetLocalVariableLocation("b"))
endfunction
function Trig_skill13Actions takes nothing returns nothing
call SetPlayerAbilityAvailableBJ(false,'A04K',udg_Player12)
call YDWESetLocalVariableLocation("a",GetUnitLoc(udg_unit_hellGate))
call YDWESetLocalVariableLocation("b",GetUnitLoc(GetTriggerUnit()))
call YDWESetLocalVariableGroup("g",YDWEGetUnitsInRangeOfLocMatchingNull(512,YDWEGetLocalVariableLocation("a"),Condition(function Trig_skill13Func004002003)))
call ForGroupBJ(YDWEGetLocalVariableGroup("g"),function Trig_skill13Func005A)
call DestroyGroup(YDWEGetLocalVariableGroup("g"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("b"))
call YDWEWaitForLocalVariable(5.)
call SetPlayerAbilityAvailableBJ(true,'A04K',udg_Player12)
endfunction
function InitTrig_skill13 takes nothing returns nothing
set gg_trg_skill13=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill13,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill13,Condition(function Trig_skill13Conditions))
call TriggerAddAction(gg_trg_skill13,function Trig_skill13Actions)
endfunction
function Trig_skill14Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04O'))
endfunction
function Trig_skill14Actions takes nothing returns nothing
call SetUnitLifePercentBJ(GetTriggerUnit(),'d')
set udg_Point=GetUnitLoc(GetTriggerUnit())
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+"德玛西亚！"),udg_Point,0,30.,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(udg_Point)
endfunction
function InitTrig_skill14 takes nothing returns nothing
set gg_trg_skill14=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill14,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill14,Condition(function Trig_skill14Conditions))
call TriggerAddAction(gg_trg_skill14,function Trig_skill14Actions)
endfunction
function Trig_skill15Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04R'))
endfunction
function Trig_skill15Actions takes nothing returns nothing
if((udg_search==false))then
call SetUnitAbilityLevel(GetTriggerUnit(),'A04R',2)
set udg_search=true
else
call SetUnitAbilityLevel(GetTriggerUnit(),'A04R',1)
set udg_search=false
endif
endfunction
function InitTrig_skill15 takes nothing returns nothing
set gg_trg_skill15=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill15,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill15,Condition(function Trig_skill15Conditions))
call TriggerAddAction(gg_trg_skill15,function Trig_skill15Actions)
endfunction
function Trig_skill16Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04J')and(GetUnitTypeId(GetSpellTargetUnit())!='zcso'))
endfunction
function Trig_skill16Actions takes nothing returns nothing
call UnitApplyTimedLife(GetSpellTargetUnit(),'BHwe',60)
endfunction
function InitTrig_skill16 takes nothing returns nothing
set gg_trg_skill16=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill16,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill16,Condition(function Trig_skill16Conditions))
call TriggerAddAction(gg_trg_skill16,function Trig_skill16Actions)
endfunction
function Trig_skill17Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04Q'))
endfunction
function Trig_skill17Actions takes nothing returns nothing
call AdjustPlayerStateBJ(1,GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)
call AddHeroXP(GetTriggerUnit(),30,true)
endfunction
function InitTrig_skill17 takes nothing returns nothing
set gg_trg_skill17=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill17,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill17,Condition(function Trig_skill17Conditions))
call TriggerAddAction(gg_trg_skill17,function Trig_skill17Actions)
endfunction
function Trig_skill18Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04T'))
endfunction
function Trig_skill18Actions takes nothing returns nothing
call YDWESetLocalVariableReal("R",GetUnitState(GetSpellTargetUnit(),UNIT_STATE_MAX_LIFE))
if((GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)>R2I(YDWEGetLocalVariableReal("R"))))then
call AdjustPlayerStateBJ((0-R2I(YDWEGetLocalVariableReal("R"))),udg_Player12,PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(R2I(YDWEGetLocalVariableReal("R")),GetOwningPlayer(GetSpellTargetUnit()),PLAYER_STATE_RESOURCE_GOLD)
call SetUnitOwner(GetSpellTargetUnit(),udg_Player12,true)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetSpellTargetUnit())))]+(udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetSpellTargetUnit())))]+("|r的"+(GetUnitName(GetTriggerUnit())+"被僵尸收买了！")))))
else
call DisplayTextToPlayer(udg_Player12,0,0,"金钱不够，无法收买")
endif
endfunction
function InitTrig_skill18 takes nothing returns nothing
set gg_trg_skill18=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill18,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill18,Condition(function Trig_skill18Conditions))
call TriggerAddAction(gg_trg_skill18,function Trig_skill18Actions)
endfunction
function Trig_skill19Conditions takes nothing returns boolean
return((GetSpellAbilityId()=='Ahrp'))
endfunction
function Trig_skill19Actions takes nothing returns nothing
call SetUnitAnimation(GetTriggerUnit(),"spell")
endfunction
function InitTrig_skill19 takes nothing returns nothing
set gg_trg_skill19=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill19,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill19,Condition(function Trig_skill19Conditions))
call TriggerAddAction(gg_trg_skill19,function Trig_skill19Actions)
endfunction
function Trig_objectConditions takes nothing returns boolean
return((GetSpellAbilityId()=='A04P')and((GetUnitTypeId(GetSpellTargetUnit())=='h002')or(GetUnitTypeId(GetSpellTargetUnit())=='h003')or(GetUnitTypeId(GetSpellTargetUnit())=='h001')))
endfunction
function Trig_objectActions takes nothing returns nothing
call IssueTargetOrderById(GetSpellTargetUnit(),$D0256,GetTriggerUnit())
call SelectUnitForPlayerSingle(GetSpellTargetUnit(),GetOwningPlayer(GetTriggerUnit()))
endfunction
function InitTrig_object takes nothing returns nothing
set gg_trg_object=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_object,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_object,Condition(function Trig_objectConditions))
call TriggerAddAction(gg_trg_object,function Trig_objectActions)
endfunction
function Trig_attackActions takes nothing returns nothing
if((IsUnitEnemy(GetAttacker(),GetOwningPlayer(GetTriggerUnit()))))then
else
call IssueImmediateOrderById(GetAttacker(),$D0004)
endif
endfunction
function InitTrig_attack takes nothing returns nothing
set gg_trg_attack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_attack,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(gg_trg_attack,function Trig_attackActions)
endfunction
function Trig_terrainFunc002Func003Func003002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func003002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func003002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func001Func001Func001Func003002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func001Func004002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func004002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func008Func001Func004002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainFunc002Func003Func008Func008Func008Func004002003 takes nothing returns boolean
return((IsUnitAliveBJ(GetFilterUnit())))
endfunction
function Trig_terrainActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=3
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Point=GetRandomLocInRect(udg_region_playable)
call CreateNUnitsAtLoc(1,'zcso',Player($F),udg_Point,bj_UNIT_FACING)
call RemoveLocation(udg_Point)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$514
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Point=GetRandomLocInRect(udg_region_playable)
set udg_Point2=PolarProjectionBJ(udg_Point,GetRandomReal(0,300.),GetRandomReal(0,360))
if((udg_Integer==1))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func003002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('LTlt',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Ldrt',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Ldro',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Ldrg',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Frok',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==2))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func003002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('BTtw',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Bdrt',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Bdrg',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Bdsr',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Bgrr',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==3))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func003002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('WTst',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Iice',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Wsnw',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Iice',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Wsng',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==4))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func008Func004002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('BTtc',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Bdsr',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Bflr',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Bdsd',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Bdsr',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==5))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func008Func001Func004002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('KTtw',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Kdtr',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Kdkt',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Kfst',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Ksmb',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==6))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func004002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('ZTtc',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,3))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Vgrs',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Vcrp',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Vgrt',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Vrck',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==7))then
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func001Func004002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('ZTtc',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,3))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Zdtr',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Xhdg',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Zsan',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Jbtl',-1,udg_Integer3,0)
endif
endif
endif
endif
else
if((udg_Integer==8))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=2
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
set udg_Integer2=GetRandomInt(1,4)
set udg_Integer3=GetRandomInt(1,4)
set udg_Group=YDWEGetUnitsInRangeOfLocMatchingNull(500.,udg_Point,Condition(function Trig_terrainFunc002Func003Func008Func008Func008Func001Func001Func001Func001Func001Func003002003))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call CreateDestructableLoc('CTtc',udg_Point,GetRandomReal(0,360),GetRandomReal(.8,1.2),GetRandomInt(1,$A))
endif
if((udg_Integer2==1))then
call SetTerrainTypeBJ(udg_Point2,'Qgrt',-1,udg_Integer3,0)
else
if((udg_Integer2==2))then
call SetTerrainTypeBJ(udg_Point2,'Cpos',-1,udg_Integer3,0)
else
if((udg_Integer2==3))then
call SetTerrainTypeBJ(udg_Point2,'Clvg',-1,udg_Integer3,0)
else
if((udg_Integer2==4))then
call SetTerrainTypeBJ(udg_Point2,'Cvin',-1,udg_Integer3,0)
endif
endif
endif
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endif
endif
endif
endif
endif
endif
endif
endif
call RemoveLocation(udg_Point)
call RemoveLocation(udg_Point2)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_terrain takes nothing returns nothing
set gg_trg_terrain=CreateTrigger()
call TriggerAddAction(gg_trg_terrain,function Trig_terrainActions)
endfunction
function Trig_UnitDieFunc001Func002Func001002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and((GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))and(GetUnitTypeId(GetFilterUnit())=='h007'))))
endfunction
function Trig_UnitDieActions takes nothing returns nothing
if((GetUnitTypeId(GetTriggerUnit())=='U003'))then
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,"|cffffcc0025秒后又是一条好狗！|r")
call TriggerSleepAction(25.)
set udg_Point=GetRandomLocInRect(udg_region_mainSpawn)
call ReviveHeroLoc(GetDyingUnit(),udg_Point,true)
call UnitRemoveBuffsBJ(2,GetDyingUnit())
call RemoveLocation(udg_Point)
else
if((GetUnitTypeId(GetTriggerUnit())=='H01Z'))then
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_UnitDieFunc001Func002Func001002002))
set udg_Unit=GroupPickRandomUnit(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Unit==null))then
call DisplayTimedTextToForce(YDWEGetForceOfPlayerNull(GetOwningPlayer(GetTriggerUnit())),10.,"|cffffcc0025秒后又是一条好汉！|r")
call TriggerSleepAction(25.)
set udg_Point=GetUnitLoc(udg_unit_altar)
call ReviveHeroLoc(GetDyingUnit(),udg_Point,true)
call UnitRemoveBuffsBJ(2,GetDyingUnit())
call RemoveLocation(udg_Point)
endif
else
if((GetUnitTypeId(GetTriggerUnit())=='n001'))then
call RemoveUnit(GetTriggerUnit())
set udg_Point=GetUnitLoc(GetTriggerUnit())
call AddSpecialEffectLocBJ(udg_Point,"Units\\Undead\\Abomination\\AbominationExplosion.mdl")
call AddSpecialEffectLocBJ(udg_Point,"Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
call RemoveLocation(udg_Point)
endif
endif
endif
endfunction
function InitTrig_UnitDie takes nothing returns nothing
set gg_trg_UnitDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_UnitDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_UnitDie,function Trig_UnitDieActions)
endfunction
function Trig_treesFunc001A takes nothing returns nothing
if((IsDestructableAliveBJ(GetEnumDestructable())))then
call SetDestructableLifePercentBJ(GetEnumDestructable(),'d')
endif
endfunction
function Trig_treesActions takes nothing returns nothing
call EnumDestructablesInRectAll(bj_mapInitialPlayableArea,function Trig_treesFunc001A)
endfunction
function InitTrig_trees takes nothing returns nothing
set gg_trg_trees=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_trees,30.)
call TriggerAddAction(gg_trg_trees,function Trig_treesActions)
endfunction
function Trig_itemsFunc001A takes nothing returns nothing
call RemoveItem(GetEnumItem())
endfunction
function Trig_itemsActions takes nothing returns nothing
call EnumItemsInRectBJ(bj_mapInitialPlayableArea,function Trig_itemsFunc001A)
endfunction
function InitTrig_items takes nothing returns nothing
set gg_trg_items=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_items,10.)
call TriggerAddAction(gg_trg_items,function Trig_itemsActions)
endfunction
function Trig_ResourceAddActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
if((IsPlayerEnemy(Player(-1+(bj_forLoopAIndex)),udg_Player12)))then
call AdjustPlayerStateBJ(1,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER)
else
if((Player(-1+(bj_forLoopAIndex))==udg_Player12))then
call AdjustPlayerStateBJ(2,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
call AdjustPlayerStateBJ(1,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER)
else
call AdjustPlayerStateBJ(2,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_ResourceAdd takes nothing returns nothing
set gg_trg_ResourceAdd=CreateTrigger()
call DisableTrigger(gg_trg_ResourceAdd)
call TriggerRegisterTimerEventPeriodic(gg_trg_ResourceAdd,1.)
call TriggerAddAction(gg_trg_ResourceAdd,function Trig_ResourceAddActions)
endfunction
function Trig_cheatActions takes nothing returns nothing
call IssueNeutralTargetOrder(Player($F),gg_unit_h001_0049,"neutralinteract",gg_unit_hpea_0048)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I005')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=9000))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I004')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=6100))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$4E20)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I003')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=8300))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$9C40)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I002')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=4900))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$1D4C0)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I000')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$BB8))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$61A80)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I001')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=75000))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$4E20)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00O')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$6E8))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$9C40)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00P')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=5200))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00Q')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$E38CB))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00R')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$D35CF))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00S')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$B2FD7))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h001_0049,'I00T')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$7A120))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralTargetOrder(Player($F),gg_unit_h003_0051,"neutralinteract",gg_unit_hpea_0048)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00I')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F3688))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00K')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F30AC))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00J')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F1B30))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00L')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F0C17))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00M')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$EF808))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I00N')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$EE098))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call YDWEPolledWaitNull(2)
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h003_0051,'I017')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=0))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call YDWEPolledWaitNull(2)
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call IssueNeutralTargetOrder(Player($F),gg_unit_h002_0050,"neutralinteract",gg_unit_hpea_0048)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I006')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F4114))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I007')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F3E58))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I008')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F30AC))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I009')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F0F46))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00A')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$EA5CE))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00B')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$D67A4))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00C')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F404C))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00D')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F3F20))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00E')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F3494))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00F')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$F1B30))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00G')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$EE354))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h002_0050,'I00H')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_GOLD)!=$DBBA0))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call IssueNeutralTargetOrder(Player($F),gg_unit_h023_0052,"neutralinteract",gg_unit_hpea_0048)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I011')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9700))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I013')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=8000))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00U')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9200))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00W')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9500))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I015')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9700))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00V')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9500))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I010')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9400))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00Z')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9500))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I012')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9350))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00Y')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9500))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I00X')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9680))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_LUMBER,$2710)
call YDWEPolledWaitNull(2)
call IssueNeutralImmediateOrderById(Player($F),gg_unit_h023_0052,'I016')
if((GetPlayerState(Player($F),PLAYER_STATE_RESOURCE_LUMBER)!=9700))then
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
else
call RemoveItem(UnitItemInSlotBJ(gg_unit_hpea_0048,1))
call RemoveUnit(gg_unit_h003_0051)
call RemoveUnit(gg_unit_h001_0049)
call RemoveUnit(gg_unit_h002_0050)
call RemoveUnit(gg_unit_hpea_0048)
call RemoveUnit(gg_unit_h023_0052)
call DisableTrigger(GetTriggeringTrigger())
call SetPlayerStateBJ(Player($F),PLAYER_STATE_RESOURCE_GOLD,$F4240)
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function InitTrig_cheat takes nothing returns nothing
set gg_trg_cheat=CreateTrigger()
call TriggerAddAction(gg_trg_cheat,function Trig_cheatActions)
endfunction
function Trig_LeftFunc003Func004002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())==GetTriggerPlayer())))
endfunction
function Trig_LeftFunc003Func005A takes nothing returns nothing
if((GetUnitTypeId(GetEnumUnit())==udg_Human))then
call RemoveUnit(GetEnumUnit())
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_LeftFunc003Func007002002 takes nothing returns boolean
return(((GetUnitTypeId(GetFilterUnit())==udg_Human)and(IsUnitAliveBJ(GetFilterUnit()))))
endfunction
function Trig_LeftActions takes nothing returns nothing
call YDWEMultiboardSetItemIconBJNull(udg_Multiboard,1,((1+GetPlayerId(GetTriggerPlayer()))+1),"ReplaceableTextures\\WorldEditUI\\Editor-Ally-NoPriority.blp")
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetTriggerPlayer()))+1),(udg_Name[(1+GetPlayerId(GetTriggerPlayer()))]+" (已滚)"))
if((GetTriggerPlayer()!=udg_Player12))then
set udg_Group=YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_LeftFunc003Func004002002))
call ForGroupBJ(udg_Group,function Trig_LeftFunc003Func005A)
call DestroyGroup(udg_Group)
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_LeftFunc003Func007002002))
set udg_Integer=CountUnitsInGroup(udg_Group)
call DestroyGroup(udg_Group)
if((udg_Integer<=0))then
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(2.)
call ConditionalTriggerExecute(gg_trg_HumanDefeat)
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 背叛了社会主义！"))
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,.0,(udg_Name_______u[(1+GetPlayerId(GetTriggerPlayer()))]+" 背叛了社会主义！"))
call TriggerSleepAction(2.)
call ConditionalTriggerExecute(gg_trg_ZombiesDefeat)
endif
endfunction
function InitTrig_Left takes nothing returns nothing
set gg_trg_Left=CreateTrigger()
call DisableTrigger(gg_trg_Left)
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(0))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(1))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(2))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(3))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(4))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(5))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(6))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(7))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(8))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(9))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player($A))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player($B))
call TriggerAddAction(gg_trg_Left,function Trig_LeftActions)
endfunction
function Trig_HellGateDieConditions takes nothing returns boolean
return((GetTriggerUnit()==udg_unit_hellGate))
endfunction
function Trig_HellGateDieActions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call TriggerSleepAction(2.)
call ConditionalTriggerExecute(gg_trg_ZombiesDefeat)
endfunction
function InitTrig_HellGateDie takes nothing returns nothing
set gg_trg_HellGateDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_HellGateDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_HellGateDie,Condition(function Trig_HellGateDieConditions))
call TriggerAddAction(gg_trg_HellGateDie,function Trig_HellGateDieActions)
endfunction
function Trig_HumanDieConditions takes nothing returns boolean
return(((GetUnitTypeId(GetTriggerUnit())==udg_Human)or(GetUnitTypeId(GetTriggerUnit())==udg_Human_Sp))and(IsUnitIllusion(GetTriggerUnit())==false)and(udg_DEATH[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]==false))
endfunction
function Trig_HumanDieFunc003002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_HumanDieFunc004A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))then
call RemoveUnit(GetEnumUnit())
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_HumanDieFunc006002002 takes nothing returns boolean
return((((GetUnitTypeId(GetFilterUnit())==udg_Human)or(GetUnitTypeId(GetFilterUnit())==udg_Human_Sp))and(IsUnitAliveBJ(GetFilterUnit()))))
endfunction
function Trig_HumanDieFunc008002002 takes nothing returns boolean
return((GetUnitTypeId(GetFilterUnit())=='U003'))
endfunction
function Trig_HumanDieFunc018002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetOwningPlayer(GetFilterUnit())==GetOwningPlayer(GetTriggerUnit()))))
endfunction
function Trig_HumanDieFunc019A takes nothing returns nothing
if((IsUnitType(GetEnumUnit(),UNIT_TYPE_HERO)))then
call RemoveUnit(GetEnumUnit())
else
call KillUnit(GetEnumUnit())
endif
endfunction
function Trig_HumanDieActions takes nothing returns nothing
set udg_DEATH[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=true
set udg_Group=YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_HumanDieFunc003002002))
call ForGroupBJ(udg_Group,function Trig_HumanDieFunc004A)
call DestroyGroup(udg_Group)
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_HumanDieFunc006002002))
set udg_Integer=CountUnitsInGroup(udg_Group)
set udg_Group3=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_HumanDieFunc008002002))
set udg_Integer4=(CountUnitsInGroup(udg_Group3)+1)
set udg_P_G=(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_GOLD)/ udg_Integer4)
set udg_P_W=(GetPlayerState(GetOwningPlayer(GetTriggerUnit()),PLAYER_STATE_RESOURCE_LUMBER)/ udg_Integer4)
if(((udg_P_G+udg_P_W)>$4E20)and(GetPlayerSlotState(GetOwningPlayer(GetTriggerUnit()))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (送钱大户)"
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (送钱大户)"
endif
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"|r挂Ｂ了！")))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerEnemy(Player(-1+(bj_forLoopAIndex)),GetOwningPlayer(GetTriggerUnit())))and(udg_GameMode==2))then
call AdjustPlayerStateBJ((udg_P_G+udg_P_W),Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+(GetPlayerName(GetOwningPlayer(GetTriggerUnit()))+"|r的资源被僵尸和走狗们变为黄金瓜分了！")))
else
if((IsPlayerEnemy(Player(-1+(bj_forLoopAIndex)),GetOwningPlayer(GetTriggerUnit())))and(udg_GameMode==4))then
call AdjustPlayerStateBJ($BB8,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ($BB8,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(Player(-1+(bj_forLoopAIndex))))]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r获得3000金钱和木材！")))
else
if((IsPlayerEnemy(Player(-1+(bj_forLoopAIndex)),GetOwningPlayer(GetTriggerUnit())))and(udg_GameMode==1))then
call AdjustPlayerStateBJ(($3E8*udg_game_time_bonuses),Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER)
call AdjustPlayerStateBJ(($3E8*udg_game_time_bonuses),Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(Player(-1+(bj_forLoopAIndex))))]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r获得"+(I2S(($3E8*udg_game_time_bonuses))+"金钱和木材！")))))
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DestroyGroup(udg_Group)
if((udg_Integer<=0))then
call DisableTrigger(GetTriggeringTrigger())
call PlaySoundBJ(gg_snd_PH1)
call TriggerSleepAction(2.)
call ConditionalTriggerExecute(gg_trg_HumanDefeat)
else
set udg_Player=GetOwningPlayer(GetTriggerUnit())
call RemoveUnit(GetTriggerUnit())
if((udg_Revive))then
call ConditionalTriggerExecute(gg_trg_siteVoteA)
else
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=" (打酱油的)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call SetPlayerName(GetOwningPlayer(GetTriggerUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetTriggerPlayer()))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetTriggerUnit())))]))
endif
endif
call TriggerSleepAction(2.)
set udg_Group=YDWEGetUnitsInRectMatchingNull(bj_mapInitialPlayableArea,Condition(function Trig_HumanDieFunc018002002))
call ForGroupBJ(udg_Group,function Trig_HumanDieFunc019A)
call DestroyGroup(udg_Group)
endfunction
function InitTrig_HumanDie takes nothing returns nothing
set gg_trg_HumanDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_HumanDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_HumanDie,Condition(function Trig_HumanDieConditions))
call TriggerAddAction(gg_trg_HumanDie,function Trig_HumanDieActions)
endfunction
function Trig_ZombiesDefeatFunc010002002 takes nothing returns boolean
return(((GetOwningPlayer(GetFilterUnit())==udg_Player12)or(GetUnitTypeId(GetFilterUnit())=='U003')))
endfunction
function Trig_ZombiesDefeatFunc011A takes nothing returns nothing
call KillUnit(GetEnumUnit())
set udg_Point=GetUnitLoc(GetEnumUnit())
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Undead\\DeathCoil\\DeathCoilSpecialArt.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call RemoveLocation(udg_Point)
endfunction
function Trig_ZombiesDefeatActions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(gg_trg_zombieMake)
call DisableTrigger(gg_trg_Left)
call DisableTrigger(gg_trg_ResourceAdd)
call DisableTrigger(gg_trg_UnitDie)
call DisableTrigger(gg_trg_GameTimer)
call SetMusicVolumeBJ(.0)
call PlaySoundBJ(gg_snd_PH1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,.0,"|c0000AEAE世界从此充满了和谐与爱！|r")
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_ZombiesDefeatFunc010002002))
call ForGroupBJ(udg_Group,function Trig_ZombiesDefeatFunc011A)
call DestroyGroup(udg_Group)
call TriggerSleepAction(15.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((Player(-1+(bj_forLoopAIndex))==udg_Player12))then
call CustomDefeatBJ(Player(-1+(bj_forLoopAIndex)),"你挂Ｂ了！")
else
call CustomVictoryBJ(Player(-1+(bj_forLoopAIndex)),true,true)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_ZombiesDefeat takes nothing returns nothing
set gg_trg_ZombiesDefeat=CreateTrigger()
call TriggerAddAction(gg_trg_ZombiesDefeat,function Trig_ZombiesDefeatActions)
endfunction
function Trig_HumanDefeatActions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
call DisableTrigger(gg_trg_zombieMake)
call DisableTrigger(gg_trg_Left)
call DisableTrigger(gg_trg_ResourceAdd)
call DisableTrigger(gg_trg_UnitDie)
call DisableTrigger(gg_trg_GameTimer)
call SetMusicVolumeBJ(.0)
call PlaySoundBJ(gg_snd_PH1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,.0,"|ccfff0000这个世界崩坏了！|r")
call YDWEPauseAllUnitsBJNull(true)
call TriggerSleepAction(15.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((Player(-1+(bj_forLoopAIndex))==udg_Player12))then
call CustomVictoryBJ(Player(-1+(bj_forLoopAIndex)),true,true)
else
call CustomDefeatBJ(Player(-1+(bj_forLoopAIndex)),"你还不够和谐！")
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_HumanDefeat takes nothing returns nothing
set gg_trg_HumanDefeat=CreateTrigger()
call TriggerAddAction(gg_trg_HumanDefeat,function Trig_HumanDefeatActions)
endfunction
function Trig_optimization1Actions takes nothing returns nothing
if(((GetUnitTypeId(GetTriggerUnit())=='h01V')or(GetUnitTypeId(GetTriggerUnit())=='h01X')or(GetUnitTypeId(GetTriggerUnit())=='h01W')or(GetUnitTypeId(GetTriggerUnit())=='h006')or(GetUnitTypeId(GetTriggerUnit())=='h01Y')))then
call GroupRemoveUnit(udg_Zombies,GetTriggerUnit())
call DestroyEffect(AddSpecialEffectTarget("Abilities\\Spells\\Items\\AIvi\\AIviTarget.mdl",GetTriggerUnit(),"origin"))
call YDWEPolledWaitNull(.5)
call RemoveUnit(GetTriggerUnit())
endif
endfunction
function InitTrig_optimization1 takes nothing returns nothing
set gg_trg_optimization1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_optimization1,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_optimization1,function Trig_optimization1Actions)
endfunction
function Trig_U9Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='n002'))
endfunction
function Trig_U9Actions takes nothing returns nothing
if((GetUnitTypeId(GetKillingUnit())=='U003'))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetKillingUnit()))
call YDWESetLocalVariableInteger("i",GetRandomInt(1,$C8))
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Human\\Flare\\FlareTarget.mdl",YDWEGetLocalVariableLocation("a")))
call AdjustPlayerStateBJ(YDWEGetLocalVariableInteger("i"),GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("获得金钱："+(I2S(YDWEGetLocalVariableInteger("i"))+"！"))),YDWEGetLocalVariableLocation("a"),0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
else
if((IsUnitIdType(GetUnitTypeId(GetKillingUnit()),UNIT_TYPE_UNDEAD)==false))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetKillingUnit()))
call YDWESetLocalVariableInteger("i",GetRandomInt(1,$C8))
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Human\\Flare\\FlareTarget.mdl",YDWEGetLocalVariableLocation("a")))
call AdjustPlayerStateBJ(YDWEGetLocalVariableInteger("i"),GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("获得木材："+(I2S(YDWEGetLocalVariableInteger("i"))+"！"))),YDWEGetLocalVariableLocation("a"),0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
else
if((YDWEGetLocalVariableInteger("int")>=50))then
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetKillingUnit()))
call YDWESetLocalVariableInteger("i",GetRandomInt(1,$C8))
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Human\\Flare\\FlareTarget.mdl",YDWEGetLocalVariableLocation("a")))
call AdjustPlayerStateBJ(YDWEGetLocalVariableInteger("i"),GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_GOLD)
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("获得金钱："+(I2S(YDWEGetLocalVariableInteger("i"))+"！"))),YDWEGetLocalVariableLocation("a"),0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
else
call YDWESetLocalVariableLocation("a",GetUnitLoc(GetKillingUnit()))
call YDWESetLocalVariableInteger("i",GetRandomInt(1,$C8))
call DestroyEffect(AddSpecialEffectLoc("Abilities\\Spells\\Human\\Flare\\FlareTarget.mdl",YDWEGetLocalVariableLocation("a")))
call AdjustPlayerStateBJ(YDWEGetLocalVariableInteger("i"),GetOwningPlayer(GetKillingUnit()),PLAYER_STATE_RESOURCE_LUMBER)
call CreateTextTagLocBJ((udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+("获得木材："+(I2S(YDWEGetLocalVariableInteger("i"))+"！"))),YDWEGetLocalVariableLocation("a"),0,$A,'d',100.,100.,20.)
call SetTextTagVelocityBJ(bj_lastCreatedTextTag,80.,90)
call SetTextTagPermanent(bj_lastCreatedTextTag,false)
call SetTextTagLifespan(bj_lastCreatedTextTag,3.)
call SetTextTagFadepoint(bj_lastCreatedTextTag,1.)
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endif
endif
endif
endfunction
function InitTrig_U9 takes nothing returns nothing
set gg_trg_U9=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_U9,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_U9,Condition(function Trig_U9Conditions))
call TriggerAddAction(gg_trg_U9,function Trig_U9Actions)
endfunction
function Trig_setup_______uActions takes nothing returns nothing
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"TRIGSTR_8765")
call DisplayTextToForce(bj_FORCE_ALL_PLAYERS,"|cffffff00新|r|cfffdfb02增|r|cfffbf704战|r|cfff9f306队|r|cfff7ef08系|r|cfff5eb0a统|r|cfff3e70c，|r|cfff1e30e欢|r|cffefdf10迎|r|cffeddb12大|r|cffebd714家|r|cffe9d316寻|r|cffe7cf18找|r|cffe5cb1a战|r|cffe3c71c队|r|cffe1c31e加|r|cffdfbf20入|r|cffddbb22，|r|cffdbb724战|r|cffd9b326队|r|cffd7af28信|r|cffd5ab2a息|r|cffd3a72c详|r|cffd1a32e见|r|cffcf9f30F|r|cffcd9b329|r|cffcb9734，|r|cffc99336如|r|cffc78f38果|r|cffc58b3a对|r|cffc3873c这|r|cffc1833e些|r|cffbf7f40战|r|cffbd7b42队|r|cffbb7744不|r|cffb97346满|r|cffb76f48意|r|cffb56b4a，|r|cffb3674c可|r|cffb1634e以|r|cffaf5f50到|r|cffad5b52s|r|cffab5754c|r|cffa95356b|r|cffa74f58b|r|cffa54b5as|r|cffa3475c.|r|cffa1435eu|r|cff9f3f60u|r|cff9d3b62u|r|cff9b37649|r|cff993366.|r|cff972f68c|r|cff952b6ao|r|cff93276cm|r|cff91236e申|r|cff8f1f70请|r|cff8d1b72新|r|cff8b1774的|r|cff891376战|r|cff870f78队|r|cff850b7a！|r")
call RemoveUnit(gg_unit_U002_0154)
call RemoveUnit(gg_unit_H01Z_0153)
call RemoveUnit(gg_unit_U000_0156)
call RemoveUnit(gg_unit_U004_0155)
call RemoveUnit(gg_unit_U003_0157)
call TransmissionFromUnitWithNameBJ(bj_FORCE_ALL_PLAYERS,null,"游戏提示",null,"为了使后面的游戏更加顺畅，下面进行游戏预载，估计会在几秒中之内很卡。",1,5.,true)
call CinematicModeBJ(false,bj_FORCE_ALL_PLAYERS)
call TriggerExecute(gg_trg_ModeVoteA)
endfunction
function InitTrig_setup_______u takes nothing returns nothing
set gg_trg_setup_______u=CreateTrigger()
call TriggerAddAction(gg_trg_setup_______u,function Trig_setup_______uActions)
endfunction
function Trig_ModeVoteAActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_modeVote[bj_forLoopAIndex],"你想玩哪种模式?")
call DialogAddButtonBJ(udg_dialog_modeVote[bj_forLoopAIndex],"|cff008000简单模式|r")
set udg_dialog_modeVote_button_3[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_modeVote[bj_forLoopAIndex],"|cffdaa520经典模式|r")
set udg_dialog_modeVote_button_1[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_modeVote[bj_forLoopAIndex],"|cff8b0000困难模式|r")
set udg_dialog_modeVote_button_2[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_modeVote[bj_forLoopAIndex],"|cff993366比赛模式|r")
set udg_dialog_modeVote_button_4[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_modeVote[bj_forLoopAIndex],"容我三思！")
call DialogDisplayBJ(true,udg_dialog_modeVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogClear(udg_dialog_modeVote[bj_forLoopAIndex])
call DialogDisplayBJ(false,udg_dialog_modeVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_ModeChoose_1>=udg_ModeChoose_2)and(udg_ModeChoose_1>=udg_ModeChoose_3)and(udg_ModeChoose_1>=udg_ModeChoose_4))then
set udg_GameMode=1
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"经过社会主义民主投票，游戏模式定为：|cffdaa520经典模式|r！")
set udg_Human='H033'
set udg_Barracks[1]='h030'
set udg_Barracks[2]='h02Z'
set udg_Barracks[3]='h02Y'
set udg_Barracks[4]='h031'
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_MODE_VOTE[bj_forLoopAIndex]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_DayNightA)
else
if((udg_ModeChoose_2>udg_ModeChoose_1)and(udg_ModeChoose_2>=udg_ModeChoose_3)and(udg_ModeChoose_2>=udg_ModeChoose_4))then
set udg_GameMode=2
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_6847")
set udg_Human='H02R'
set udg_Barracks[1]='h02I'
set udg_Barracks[2]='h02J'
set udg_Barracks[3]='h02K'
set udg_Barracks[4]='h02L'
set udg_Barracks[5]='h02T'
set udg_EX=1.
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_MODE_VOTE[bj_forLoopAIndex]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.)
set udg_Integer=GetRandomInt(1,8)
call ConditionalTriggerExecute(gg_trg_DayNightA)
else
if((udg_ModeChoose_3>udg_ModeChoose_1)and(udg_ModeChoose_3>udg_ModeChoose_2)and(udg_ModeChoose_3>=udg_ModeChoose_4))then
set udg_GameMode=3
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_7611")
set udg_Human='H034'
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call SetPlayerTechMaxAllowedSwap('R000',40,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('R001',40,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('R002',40,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('R003',40,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h00V',5,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h010',5,Player(-1+(bj_forLoopAIndex)))
call SetPlayerTechMaxAllowedSwap('h011',2,Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_MODE_VOTE[bj_forLoopAIndex]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_DayNightA)
else
if((udg_ModeChoose_4>udg_ModeChoose_1)and(udg_ModeChoose_4>udg_ModeChoose_2)and(udg_ModeChoose_4>udg_ModeChoose_3))then
set udg_GameMode=4
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_7714")
set udg_Human='H02R'
set udg_Barracks[1]='h02I'
set udg_Barracks[2]='h02J'
set udg_Barracks[3]='h02K'
set udg_Barracks[4]='h02L'
set udg_Barracks[5]='h02T'
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_MODE_VOTE[bj_forLoopAIndex]=false
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(2.)
set udg_Integer=GetRandomInt(1,8)
call ConditionalTriggerExecute(gg_trg_DayNightA)
endif
endif
endif
endif
endfunction
function InitTrig_ModeVoteA takes nothing returns nothing
set gg_trg_ModeVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_ModeVoteA,function Trig_ModeVoteAActions)
endfunction
function Trig_ModeVoteBActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_dialog_modeVote_button_1[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_ModeChoose_1=(udg_ModeChoose_1+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+("|cffdaa520经典模式|r"+("！  票数："+I2S(udg_ModeChoose_1)))))))
else
if((GetClickedButton()==udg_dialog_modeVote_button_2[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_ModeChoose_2=(udg_ModeChoose_2+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+("|cff8b0000困难模式|r"+("！  票数："+I2S(udg_ModeChoose_2)))))))
else
if((GetClickedButton()==udg_dialog_modeVote_button_3[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_ModeChoose_3=(udg_ModeChoose_3+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+("|cff008000简单模式|r"+("！  票数："+I2S(udg_ModeChoose_3)))))))
else
if((GetClickedButton()==udg_dialog_modeVote_button_4[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_ModeChoose_4=(udg_ModeChoose_4+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+("|cff993366比赛模式|r"+("！  票数："+I2S(udg_ModeChoose_4)))))))
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_ModeVoteB takes nothing returns nothing
set gg_trg_ModeVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[1])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[2])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[3])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[4])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[5])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[6])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[7])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[8])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[9])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[$A])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[$B])
call TriggerAddAction(gg_trg_ModeVoteB,function Trig_ModeVoteBActions)
endfunction
function Trig_DayNightAActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
set udg_DayNight[bj_forLoopAIndex]=DialogCreate()
call DialogSetMessage(udg_DayNight[bj_forLoopAIndex],"是否开启黑夜模式?")
set udg_DayNight_button_1[bj_forLoopAIndex]=DialogAddButton(udg_DayNight[bj_forLoopAIndex],"|cffdaa520开启|r（晚上需要火把照亮）",0)
set udg_DayNight_button_2[bj_forLoopAIndex]=DialogAddButton(udg_DayNight[bj_forLoopAIndex],"不开启",0)
call DialogDisplayBJ(true,udg_DayNight[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
call TriggerRegisterDialogButtonEvent(gg_trg_DayNightB,udg_DayNight_button_1[bj_forLoopAIndex])
call TriggerRegisterDialogButtonEvent(gg_trg_DayNightC,udg_DayNight_button_2[bj_forLoopAIndex])
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogClear(udg_DayNight[bj_forLoopAIndex])
call DialogDisplayBJ(false,udg_DayNight[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_DayNight_ON>udg_DayNight_OFF))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"经过社会主义民主投票，|cffff99cc黑夜模式|r|cff00ccff已开启|r，晚上需要点亮火把照路。")
else
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"经过社会主义民主投票，|cffff99cc黑夜模式|r|cff00ccff未开启|r。")
endif
if((udg_GameMode==2))then
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("困难模式下随机抽选地图："+udg_region_name_color[udg_Integer]))
else
call ConditionalTriggerExecute(gg_trg_RegionVoteA)
endif
endfunction
function InitTrig_DayNightA takes nothing returns nothing
set gg_trg_DayNightA=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightA,function Trig_DayNightAActions)
endfunction
function Trig_DayNightBActions takes nothing returns nothing
set udg_DayNight_ON=(udg_DayNight_ON+2)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetTriggerPlayer()))]+(GetPlayerName(GetTriggerPlayer())+("|r 选择了|cff00ccff开启|r"+("|cffff99cc黑夜模式|r"+("！  票数："+I2S(udg_DayNight_ON)))))))
endfunction
function InitTrig_DayNightB takes nothing returns nothing
set gg_trg_DayNightB=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightB,function Trig_DayNightBActions)
endfunction
function Trig_DayNightCActions takes nothing returns nothing
set udg_DayNight_OFF=(udg_DayNight_OFF+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[(1+GetPlayerId(GetTriggerPlayer()))]+(GetPlayerName(GetTriggerPlayer())+("|r 选择了|cff00ccff不开启|r"+("|cffff99cc黑夜模式|r"+("！  票数："+I2S(udg_DayNight_OFF)))))))
endfunction
function InitTrig_DayNightC takes nothing returns nothing
set gg_trg_DayNightC=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightC,function Trig_DayNightCActions)
endfunction
function Trig_RegionVoteAActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_regionVote[bj_forLoopAIndex],"你想玩哪个地图?")
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[1])
set udg_dialog_regionVote_button_1[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[2])
set udg_dialog_regionVote_button_2[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[3])
set udg_dialog_regionVote_button_3[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[4])
set udg_dialog_regionVote_button_4[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[5])
set udg_dialog_regionVote_button_5[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[6])
set udg_dialog_regionVote_button_6[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[7])
set udg_dialog_regionVote_button_7[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],udg_region_name_color[8])
set udg_dialog_regionVote_button_8[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_regionVote[bj_forLoopAIndex],"容我三思！")
call DialogDisplayBJ(true,udg_dialog_regionVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogClear(udg_dialog_regionVote[bj_forLoopAIndex])
call DialogDisplayBJ(false,udg_dialog_regionVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if(((udg_CHOOSE_1>udg_CHOOSE_2)and(udg_CHOOSE_1>udg_CHOOSE_3)and(udg_CHOOSE_1>udg_CHOOSE_4)and(udg_CHOOSE_1>udg_CHOOSE_5)and(udg_CHOOSE_1>udg_CHOOSE_6)and(udg_CHOOSE_1>udg_CHOOSE_7)and(udg_CHOOSE_1>udg_CHOOSE_8)))then
set udg_Integer=1
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_2>udg_CHOOSE_1)and(udg_CHOOSE_2>udg_CHOOSE_3)and(udg_CHOOSE_2>udg_CHOOSE_4)and(udg_CHOOSE_2>udg_CHOOSE_5)and(udg_CHOOSE_2>udg_CHOOSE_6)and(udg_CHOOSE_2>udg_CHOOSE_7)and(udg_CHOOSE_2>udg_CHOOSE_8)))then
set udg_Integer=2
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_3>udg_CHOOSE_1)and(udg_CHOOSE_3>udg_CHOOSE_2)and(udg_CHOOSE_3>udg_CHOOSE_4)and(udg_CHOOSE_3>udg_CHOOSE_5)and(udg_CHOOSE_3>udg_CHOOSE_6)and(udg_CHOOSE_3>udg_CHOOSE_7)and(udg_CHOOSE_3>udg_CHOOSE_8)))then
set udg_Integer=3
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_4>udg_CHOOSE_1)and(udg_CHOOSE_4>udg_CHOOSE_2)and(udg_CHOOSE_4>udg_CHOOSE_3)and(udg_CHOOSE_4>udg_CHOOSE_5)and(udg_CHOOSE_4>udg_CHOOSE_6)and(udg_CHOOSE_4>udg_CHOOSE_7)and(udg_CHOOSE_4>udg_CHOOSE_8)))then
set udg_Integer=4
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_5>udg_CHOOSE_1)and(udg_CHOOSE_5>udg_CHOOSE_2)and(udg_CHOOSE_5>udg_CHOOSE_3)and(udg_CHOOSE_5>udg_CHOOSE_4)and(udg_CHOOSE_5>udg_CHOOSE_6)and(udg_CHOOSE_5>udg_CHOOSE_7)and(udg_CHOOSE_5>udg_CHOOSE_8)))then
set udg_Integer=5
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_6>udg_CHOOSE_1)and(udg_CHOOSE_6>udg_CHOOSE_2)and(udg_CHOOSE_6>udg_CHOOSE_3)and(udg_CHOOSE_6>udg_CHOOSE_4)and(udg_CHOOSE_6>udg_CHOOSE_5)and(udg_CHOOSE_6>udg_CHOOSE_7)and(udg_CHOOSE_6>udg_CHOOSE_8)))then
set udg_Integer=6
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+(udg_region_name_color[udg_Integer]+"")))
else
if(((udg_CHOOSE_7>udg_CHOOSE_1)and(udg_CHOOSE_7>udg_CHOOSE_2)and(udg_CHOOSE_7>udg_CHOOSE_3)and(udg_CHOOSE_7>udg_CHOOSE_4)and(udg_CHOOSE_7>udg_CHOOSE_5)and(udg_CHOOSE_7>udg_CHOOSE_6)and(udg_CHOOSE_7>udg_CHOOSE_8)))then
set udg_Integer=7
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
if(((udg_CHOOSE_8>udg_CHOOSE_1)and(udg_CHOOSE_8>udg_CHOOSE_2)and(udg_CHOOSE_8>udg_CHOOSE_3)and(udg_CHOOSE_8>udg_CHOOSE_4)and(udg_CHOOSE_8>udg_CHOOSE_5)and(udg_CHOOSE_8>udg_CHOOSE_6)and(udg_CHOOSE_8>udg_CHOOSE_7)))then
set udg_Integer=8
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("经过社会主义民主投票，地图定为："+udg_region_name_color[udg_Integer]))
else
set udg_Integer=GetRandomInt(1,8)
call ConditionalTriggerExecute(gg_trg_RegionVote1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("因投票存在票数相同情况，进行社会主义随机抽选："+udg_region_name_color[udg_Integer]))
endif
endif
endif
endif
endif
endif
endif
endif
endfunction
function InitTrig_RegionVoteA takes nothing returns nothing
set gg_trg_RegionVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_RegionVoteA,function Trig_RegionVoteAActions)
endfunction
function Trig_RegionVoteBActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_dialog_regionVote_button_1[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_1=(udg_CHOOSE_1+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[1]+("！  票数："+I2S(udg_CHOOSE_1)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_2[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_2=(udg_CHOOSE_2+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[2]+("！  票数："+I2S(udg_CHOOSE_2)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_3[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_3=(udg_CHOOSE_3+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[3]+("！  票数："+I2S(udg_CHOOSE_3)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_4[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_4=(udg_CHOOSE_4+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[4]+("！  票数："+I2S(udg_CHOOSE_4)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_5[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_5=(udg_CHOOSE_5+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[5]+("！  票数："+I2S(udg_CHOOSE_5)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_6[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_6=(udg_CHOOSE_6+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[6]+("！  票数："+I2S(udg_CHOOSE_6)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_7[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_7=(udg_CHOOSE_7+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[7]+("！  票数："+I2S(udg_CHOOSE_7)))))))
else
if((GetClickedButton()==udg_dialog_regionVote_button_8[bj_forLoopAIndex])and(udg_MODE_VOTE[bj_forLoopAIndex]==false))then
set udg_MODE_VOTE[bj_forLoopAIndex]=true
set udg_CHOOSE_8=(udg_CHOOSE_8+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+("|r 选择了 "+(udg_region_name_color[8]+("！  票数："+I2S(udg_CHOOSE_8)))))))
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_RegionVoteB takes nothing returns nothing
set gg_trg_RegionVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[1])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[2])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[3])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[4])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[5])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[6])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[7])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[8])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[9])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[$A])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[$B])
call TriggerAddAction(gg_trg_RegionVoteB,function Trig_RegionVoteBActions)
endfunction
function Trig_RegionVote1Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
if((udg_Integer==1))then
set udg_map=1
set udg_unit_hellGate=gg_unit_h000_0001
set udg_unit_altar=gg_unit_h023_0012
set udg_region_altar=gg_rct_altar1
set udg_region_cameraBounce=gg_rct_Rcamera1
set udg_region_mainSpawn=gg_rct_start1
set udg_region_playable=gg_rct_playable1
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A02M')
set udg_Effect='A02M'
endif
else
if((udg_Integer==2))then
set udg_map=2
set udg_unit_hellGate=gg_unit_h000_0034
set udg_unit_altar=gg_unit_h023_0022
set udg_region_altar=gg_rct_altar2
set udg_region_cameraBounce=gg_rct_Rcamera2
set udg_region_mainSpawn=gg_rct_start2
set udg_region_playable=gg_rct_playable2
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A03A')
call UnitAddAbility(udg_unit_hellGate,'A03B')
set udg_Effect='A03A'
set udg_Effect_2='A03B'
endif
else
if((udg_Integer==3))then
set udg_map=3
set udg_unit_hellGate=gg_unit_h000_0021
set udg_unit_altar=gg_unit_h023_0026
set udg_region_altar=gg_rct_altar3
set udg_region_cameraBounce=gg_rct_Rcamera3
set udg_region_mainSpawn=gg_rct_start3
set udg_region_playable=gg_rct_playable3
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A03C')
call UnitAddAbility(udg_unit_hellGate,'A03D')
set udg_Effect='A03C'
set udg_Effect_2='A03D'
endif
else
if((udg_Integer==4))then
set udg_map=4
set udg_unit_hellGate=gg_unit_h000_0028
set udg_unit_altar=gg_unit_h023_0029
set udg_region_altar=gg_rct_altar4
set udg_region_cameraBounce=gg_rct_Rcamera4
set udg_region_mainSpawn=gg_rct_start4
set udg_region_playable=gg_rct_playable4
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A039')
set udg_Effect='A039'
endif
else
if((udg_Integer==5))then
set udg_map=5
set udg_unit_hellGate=gg_unit_h000_0037
set udg_unit_altar=gg_unit_h023_0035
set udg_region_altar=gg_rct_altar5
set udg_region_cameraBounce=gg_rct_Rcamera5
set udg_region_mainSpawn=gg_rct_start5
set udg_region_playable=gg_rct_playable5
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A037')
set udg_Effect='A037'
endif
else
if((udg_Integer==6))then
set udg_map=6
set udg_unit_hellGate=gg_unit_h000_0046
set udg_unit_altar=gg_unit_h023_0047
set udg_region_altar=gg_rct_altar6
set udg_region_cameraBounce=gg_rct_Rcamera6
set udg_region_mainSpawn=gg_rct_start6
set udg_region_playable=gg_rct_playable6
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A036')
set udg_Effect='A036'
endif
else
if((udg_Integer==7))then
set udg_map=7
set udg_unit_hellGate=gg_unit_h000_0053
set udg_unit_altar=gg_unit_h023_0058
set udg_region_altar=gg_rct_altar7
set udg_region_cameraBounce=gg_rct_Rcamera7
set udg_region_mainSpawn=gg_rct_start7
set udg_region_playable=gg_rct_playable7
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A038')
set udg_Effect='A038'
endif
else
if((udg_Integer==8))then
set udg_map=8
set udg_unit_hellGate=gg_unit_h000_0080
set udg_unit_altar=gg_unit_h023_0082
set udg_region_altar=gg_rct_altar8
set udg_region_cameraBounce=gg_rct_Rcamera8
set udg_region_mainSpawn=gg_rct_start8
set udg_region_playable=gg_rct_playable8
call SetUnitInvulnerable(udg_unit_hellGate,true)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call UnitAddAbility(udg_unit_hellGate,'A02P')
call UnitAddAbility(udg_unit_hellGate,'A02L')
set udg_Effect='A02L'
endif
endif
endif
endif
endif
endif
endif
endif
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$C
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call SetCameraBoundsToRectForPlayerBJ(Player(-1+(bj_forLoopAIndex)),udg_region_cameraBounce)
call PanCameraToTimedLocForPlayer(Player(-1+(bj_forLoopAIndex)),GetUnitLoc(udg_unit_hellGate),0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_terrain)
if((udg_GameMode==4))then
call ConditionalTriggerExecute(gg_trg_UndeadVoteV1)
else
call ConditionalTriggerExecute(gg_trg_UndeadVoteA)
endif
endfunction
function InitTrig_RegionVote1 takes nothing returns nothing
set gg_trg_RegionVote1=CreateTrigger()
call TriggerAddAction(gg_trg_RegionVote1,function Trig_RegionVote1Actions)
endfunction
function Trig_UndeadVoteAActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call DialogSetMessage(udg_dialog_undeadVote[bj_forLoopAIndex],"你想当尸体吗?")
call DialogAddButtonBJ(udg_dialog_undeadVote[bj_forLoopAIndex],"老子想！")
set udg_dialog_undeadVote_button_yes[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_undeadVote[bj_forLoopAIndex],"滚，老子还没活够！")
set udg_dialog_undeadVote_button_no[bj_forLoopAIndex]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_undeadVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call TriggerSleepAction(10.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call DialogClear(udg_dialog_undeadVote[bj_forLoopAIndex])
call DialogDisplayBJ(false,udg_dialog_undeadVote[bj_forLoopAIndex],Player(-1+(bj_forLoopAIndex)))
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_UndeadVoteC)
endfunction
function InitTrig_UndeadVoteA takes nothing returns nothing
set gg_trg_UndeadVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteA,function Trig_UndeadVoteAActions)
endfunction
function Trig_UndeadVoteBActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_dialog_undeadVote_button_yes[bj_forLoopAIndex]))then
set udg_ZC=true
set udg_ZC_______u=(udg_ZC_______u+1)
set udg_ZC_______u_______u=(1+GetPlayerId(Player(-1+(bj_forLoopAIndex))))
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 想当尸体！")))
call ForceAddPlayer(udg_ZaB,Player(-1+(bj_forLoopAIndex)))
else
if((GetClickedButton()==udg_dialog_undeadVote_button_no[bj_forLoopAIndex]))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 不想当尸体。")))
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_UndeadVoteB takes nothing returns nothing
set gg_trg_UndeadVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[1])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[2])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[3])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[4])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[5])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[6])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[7])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[8])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[9])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[$A])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[$B])
call TriggerAddAction(gg_trg_UndeadVoteB,function Trig_UndeadVoteBActions)
endfunction
function Trig_UndeadVoteCActions takes nothing returns nothing
set udg_Integer=0
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((udg_Bolean))then
set udg_Integer=(udg_Integer+1)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
if((udg_ZC_______u==1)and(udg_ZC))then
call ConditionalTriggerExecute(gg_trg_UndeadVote1)
else
call ConditionalTriggerExecute(gg_trg_UndeadVote2)
endif
endfunction
function InitTrig_UndeadVoteC takes nothing returns nothing
set gg_trg_UndeadVoteC=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteC,function Trig_UndeadVoteCActions)
endfunction
function Trig_UndeadVote1Func004002002 takes nothing returns boolean
return(((GetUnitTypeId(GetFilterUnit())=='h000')or(GetUnitTypeId(GetFilterUnit())=='h004')))
endfunction
function Trig_UndeadVote1Func005A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),udg_Player12,true)
endfunction
function Trig_UndeadVote1Actions takes nothing returns nothing
set udg_Player12=Player(-1+(udg_ZC_______u_______u))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,udg_Player12)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_player_color[(1+GetPlayerId(udg_Player12))]+(GetPlayerName(udg_Player12)+"|r 最终背叛了人类，成为了尸体！")))
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_UndeadVote1Func004002002))
call ForGroupBJ(udg_Group,function Trig_UndeadVote1Func005A)
call DestroyGroup(udg_Group)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerAlly(udg_Player12,Player(-1+(bj_forLoopAIndex)))))then
call SetPlayerAllianceStateBJ(udg_Player12,Player(-1+(bj_forLoopAIndex)),0)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),udg_Player12,0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_players)
call ConditionalTriggerExecute(gg_trg_zombieStart)
call ConditionalTriggerExecute(gg_trg_SetUp)
call EnableTrigger(gg_trg_ResourceAdd)
call EnableTrigger(gg_trg_GameTimer)
call EnableTrigger(gg_trg_Left)
endfunction
function InitTrig_UndeadVote1 takes nothing returns nothing
set gg_trg_UndeadVote1=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVote1,function Trig_UndeadVote1Actions)
endfunction
function Trig_UndeadVote2Func001Func002Func005002002 takes nothing returns boolean
return(((GetUnitTypeId(GetFilterUnit())=='h000')or(GetUnitTypeId(GetFilterUnit())=='h004')))
endfunction
function Trig_UndeadVote2Func001Func002Func006A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),udg_Player12,true)
endfunction
function Trig_UndeadVote2Func001Func004Func005002002 takes nothing returns boolean
return(((GetUnitTypeId(GetFilterUnit())=='h000')or(GetUnitTypeId(GetFilterUnit())=='h004')))
endfunction
function Trig_UndeadVote2Func001Func004Func006A takes nothing returns nothing
call SetUnitOwner(GetEnumUnit(),udg_Player12,true)
endfunction
function Trig_UndeadVote2Actions takes nothing returns nothing
if((CountPlayersInForceBJ(udg_ZaB)>0))then
set udg_Integer=GetRandomInt(1,$B)
if((GetPlayerSlotState(Player(-1+(udg_Integer)))==PLAYER_SLOT_STATE_PLAYING)and(IsPlayerInForce(Player(-1+(udg_Integer)),udg_ZaB)))then
set udg_Player12=Player(-1+(udg_Integer))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,udg_Player12)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_player_color[(1+GetPlayerId(udg_Player12))]+(GetPlayerName(udg_Player12)+"|r 被人类抛弃，成为了尸体！")))
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_UndeadVote2Func001Func004Func005002002))
call ForGroupBJ(udg_Group,function Trig_UndeadVote2Func001Func004Func006A)
call DestroyGroup(udg_Group)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerAlly(udg_Player12,Player(-1+(bj_forLoopAIndex)))))then
call SetPlayerAllianceStateBJ(udg_Player12,Player(-1+(bj_forLoopAIndex)),0)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),udg_Player12,0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_players)
call ConditionalTriggerExecute(gg_trg_zombieStart)
call ConditionalTriggerExecute(gg_trg_SetUp)
call EnableTrigger(gg_trg_ResourceAdd)
call EnableTrigger(gg_trg_GameTimer)
call EnableTrigger(gg_trg_Left)
else
call ConditionalTriggerExecute(GetTriggeringTrigger())
endif
else
set udg_Integer=GetRandomInt(1,$B)
if((GetPlayerSlotState(Player(-1+(udg_Integer)))==PLAYER_SLOT_STATE_PLAYING))then
set udg_Player12=Player(-1+(udg_Integer))
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,udg_Player12)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,(udg_player_color[(1+GetPlayerId(udg_Player12))]+(GetPlayerName(udg_Player12)+"|r 被人类抛弃，成为了尸体！")))
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_UndeadVote2Func001Func002Func005002002))
call ForGroupBJ(udg_Group,function Trig_UndeadVote2Func001Func002Func006A)
call DestroyGroup(udg_Group)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerAlly(udg_Player12,Player(-1+(bj_forLoopAIndex)))))then
call SetPlayerAllianceStateBJ(udg_Player12,Player(-1+(bj_forLoopAIndex)),0)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),udg_Player12,0)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call ConditionalTriggerExecute(gg_trg_players)
call ConditionalTriggerExecute(gg_trg_zombieStart)
call ConditionalTriggerExecute(gg_trg_SetUp)
call EnableTrigger(gg_trg_ResourceAdd)
call EnableTrigger(gg_trg_GameTimer)
call EnableTrigger(gg_trg_Left)
else
call ConditionalTriggerExecute(GetTriggeringTrigger())
endif
endif
endfunction
function InitTrig_UndeadVote2 takes nothing returns nothing
set gg_trg_UndeadVote2=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVote2,function Trig_UndeadVote2Actions)
endfunction
function Trig_siteVoteAActions takes nothing returns nothing
if((udg_GameMode!=4))then
call DialogSetMessage(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"你想做什么?")
call DialogAddButtonBJ(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"|c0000AEAE帮助人类，创建和谐美好新生活！|r")
set udg_dialog_siteVote_human[(1+GetPlayerId(udg_Player))]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"|c00C84F06报复社会，将一切人类斩尽杀绝！|r")
set udg_dialog_siteVote_undead[(1+GetPlayerId(udg_Player))]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"老子就是来打酱油的！")
set udg_dialog_siteVote_watch[(1+GetPlayerId(udg_Player))]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],udg_Player)
else
call DialogSetMessage(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"比赛模式死了只能选择大叔或者观战")
call DialogAddButtonBJ(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"|c0000AEAE帮助人类，创建和谐美好新生活！|r")
set udg_dialog_siteVote_human[(1+GetPlayerId(udg_Player))]=bj_lastCreatedButton
call DialogAddButtonBJ(udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],"开启全图观战")
set udg_dialog_siteVote_watch[(1+GetPlayerId(udg_Player))]=bj_lastCreatedButton
call DialogDisplayBJ(true,udg_dialog_siteVote[(1+GetPlayerId(udg_Player))],udg_Player)
endif
endfunction
function InitTrig_siteVoteA takes nothing returns nothing
set gg_trg_siteVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_siteVoteA,function Trig_siteVoteAActions)
endfunction
function Trig_siteVoteBActions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_dialog_siteVote_human[bj_forLoopAIndex])and(udg_VOTE_DEATH[bj_forLoopAIndex]==false))then
set udg_VOTE_DEATH[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(udg_Name[bj_forLoopAIndex]+("|r 选择帮助人类。获得"+(I2S((500+(udg_game_time_minutes*'d')))+"木材支援！")))))
set udg_Integer=bj_forLoopAIndex
call ConditionalTriggerExecute(gg_trg_siteVote1)
else
if((GetClickedButton()==udg_dialog_siteVote_undead[bj_forLoopAIndex])and(udg_VOTE_DEATH[bj_forLoopAIndex]==false))then
set udg_VOTE_DEATH[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(udg_Name[bj_forLoopAIndex]+"|r 选择报复社会。退回所损失的金钱！")))
set udg_Integer=bj_forLoopAIndex
call ConditionalTriggerExecute(gg_trg_siteVote2)
else
if((GetClickedButton()==udg_dialog_siteVote_watch[bj_forLoopAIndex])and(udg_VOTE_DEATH[bj_forLoopAIndex]==false))then
set udg_VOTE_DEATH[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(udg_Name[bj_forLoopAIndex]+"|r 成为观察者，开启全图！")))
call CreateFogModifierRectBJ(true,Player(-1+(bj_forLoopAIndex)),FOG_OF_WAR_VISIBLE,bj_mapInitialPlayableArea)
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
if((bj_forLoopAIndex!=bj_forLoopBIndex))then
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(-1+(bj_forLoopBIndex)),2)
endif
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_siteVoteB takes nothing returns nothing
set gg_trg_siteVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[1])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[2])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[3])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[4])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[5])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[6])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[7])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[8])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[9])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[$A])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[$B])
call TriggerAddAction(gg_trg_siteVoteB,function Trig_siteVoteBActions)
endfunction
function Trig_siteVote1Conditions takes nothing returns boolean
return((YDWECountLivingPlayerUnitsOfTypeIdNull('H01Z',Player(-1+(udg_Integer)))==0))
endfunction
function Trig_siteVote1Actions takes nothing returns nothing
call SetPlayerStateBJ(Player(-1+(udg_Integer)),PLAYER_STATE_RESOURCE_GOLD,0)
if((IsPlayerInForce(Player(-1+(udg_Integer)),udg_VSGroup[1])))then
call SetPlayerStateBJ(Player(-1+(udg_Integer)),PLAYER_STATE_RESOURCE_LUMBER,$3E8)
else
call SetPlayerStateBJ(Player(-1+(udg_Integer)),PLAYER_STATE_RESOURCE_LUMBER,(500+(udg_game_time_minutes*'d')))
endif
if((udg_Name_Change[udg_Integer]==false))then
set udg_Name_______u[udg_Integer]=(udg_Name[udg_Integer]+udg_Name_DS[udg_Integer])
call SetPlayerName(Player(-1+(udg_Integer)),udg_Name_______u[udg_Integer])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,(udg_Integer+1),(udg_player_color[udg_Integer]+udg_Name_______u[udg_Integer]))
endif
set udg_Point=GetUnitLoc(udg_unit_altar)
call CreateNUnitsAtLoc(1,'H01Z',Player(-1+(udg_Integer)),udg_Point,bj_UNIT_FACING)
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="杰出青年"))then
call UnitAddAbility(bj_lastCreatedUnit,'A059')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="邪魔殿"))then
call UnitAddAbility(bj_lastCreatedUnit,'A056')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="雅典娜"))then
call UnitAddAbility(bj_lastCreatedUnit,'A057')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="导播组"))then
call UnitAddAbility(bj_lastCreatedUnit,'A050')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="蛋氏"))then
call UnitAddAbility(bj_lastCreatedUnit,'A052')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="CaT"))then
call UnitAddAbility(bj_lastCreatedUnit,'A04Z')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="Vip"))then
call UnitAddAbility(bj_lastCreatedUnit,'A055')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="6"))then
call UnitAddAbility(bj_lastCreatedUnit,'A051')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="路人"))then
call UnitAddAbility(bj_lastCreatedUnit,'A053')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="Ace"))then
call UnitAddAbility(bj_lastCreatedUnit,'A058')
else
if((udg_VIP[udg_Integer]))then
call UnitAddAbility(bj_lastCreatedUnit,'A03N')
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if((udg_TRUE_C)and(udg_Integer==1))then
call SetUnitVertexColor(bj_lastCreatedUnit,$96,80,20,$FF)
if((udg_DayNight_ON>udg_DayNight_OFF))then
call UnitAddAbility(bj_lastCreatedUnit,'A03V')
call UnitAddAbility(bj_lastCreatedUnit,'A03U')
endif
else
if((udg_DayNight_ON>udg_DayNight_OFF))then
call UnitAddAbility(bj_lastCreatedUnit,'A03U')
endif
endif
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Human\\ReviveHuman\\ReviveHuman.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForceRemovePlayer(udg_Player_Group[1],Player(-1+(udg_Integer)))
call ForceAddPlayer(udg_Player_Group[3],Player(-1+(udg_Integer)))
call PanCameraToTimedLocForPlayer(Player(-1+(udg_Integer)),udg_Point,2.)
call RemoveLocation(udg_Point)
call YDWEMultiboardSetItemIconBJNull(udg_Multiboard,1,(udg_Integer+1),"ReplaceableTextures\\CommandButtons\\BTNHeroPaladin.blp")
set udg_Integer=(udg_game_time_minutes/ 2)
if((IsPlayerInForce(Player(-1+(udg_Integer)),udg_VSGroup[1])))then
call SetHeroLevelBJ(bj_lastCreatedUnit,1,false)
else
call SetHeroLevelBJ(bj_lastCreatedUnit,udg_Integer,false)
endif
endfunction
function InitTrig_siteVote1 takes nothing returns nothing
set gg_trg_siteVote1=CreateTrigger()
call TriggerAddCondition(gg_trg_siteVote1,Condition(function Trig_siteVote1Conditions))
call TriggerAddAction(gg_trg_siteVote1,function Trig_siteVote1Actions)
endfunction
function Trig_siteVote2Conditions takes nothing returns boolean
return((YDWECountLivingPlayerUnitsOfTypeIdNull('U003',Player(-1+(udg_Integer)))==0))
endfunction
function Trig_siteVote2Actions takes nothing returns nothing
call SetPlayerFlagBJ(PLAYER_STATE_GIVES_BOUNTY,true,Player(-1+(udg_Integer)))
call SetPlayerStateBJ(Player(-1+(udg_Integer)),PLAYER_STATE_RESOURCE_LUMBER,0)
if((udg_Name_Change[udg_Integer]==false))then
set udg_Name_______u[udg_Integer]=(udg_Name[udg_Integer]+udg_Name_ZG[udg_Integer])
call SetPlayerName(Player(-1+(udg_Integer)),udg_Name_______u[udg_Integer])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,(udg_Integer+1),(udg_player_color[udg_Integer]+udg_Name_______u[udg_Integer]))
endif
set udg_Point=GetRandomLocInRect(udg_region_mainSpawn)
call CreateNUnitsAtLoc(1,'U003',Player(-1+(udg_Integer)),udg_Point,bj_UNIT_FACING)
set udg_Real_DOG_3[udg_Integer]=.0
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(bj_lastCreatedUnit)),"0x895FBD1F",udg_Real_DOG_3[udg_Integer])
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="杰出青年"))then
call UnitAddAbility(bj_lastCreatedUnit,'A059')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="邪魔殿"))then
call UnitAddAbility(bj_lastCreatedUnit,'A056')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="雅典娜"))then
call UnitAddAbility(bj_lastCreatedUnit,'A057')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="导播组"))then
call UnitAddAbility(bj_lastCreatedUnit,'A050')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="蛋氏"))then
call UnitAddAbility(bj_lastCreatedUnit,'A052')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="CaT"))then
call UnitAddAbility(bj_lastCreatedUnit,'A04Z')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="Vip"))then
call UnitAddAbility(bj_lastCreatedUnit,'A055')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="6"))then
call UnitAddAbility(bj_lastCreatedUnit,'A051')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="路人"))then
call UnitAddAbility(bj_lastCreatedUnit,'A053')
else
if((GetStoredString(YDGC,I2S(YDTRIGGER_H2I(Player(-1+(udg_Integer)))),"0x64B285EC")=="Ace"))then
call UnitAddAbility(bj_lastCreatedUnit,'A058')
else
if((udg_VIP[udg_Integer]))then
call UnitAddAbility(bj_lastCreatedUnit,'A03N')
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
endif
if((udg_TRUE_C)and(udg_Integer==1))then
call SetUnitVertexColor(bj_lastCreatedUnit,$96,80,20,$FF)
if((udg_DayNight_ON>udg_DayNight_OFF))then
call UnitAddAbility(bj_lastCreatedUnit,'A03V')
call UnitAddAbility(bj_lastCreatedUnit,'A03U')
endif
else
if((udg_DayNight_ON>udg_DayNight_OFF))then
call UnitAddAbility(bj_lastCreatedUnit,'A03U')
endif
endif
call AddSpecialEffectLocBJ(udg_Point,"Abilities\\Spells\\Orc\\FeralSpirit\\feralspiritdone.mdl")
call DestroyEffect(bj_lastCreatedEffect)
call ForceRemovePlayer(udg_Player_Group[1],Player(-1+(udg_Integer)))
call ForceAddPlayer(udg_Player_Group[4],Player(-1+(udg_Integer)))
call PanCameraToTimedLocForPlayer(Player(-1+(udg_Integer)),udg_Point,2.)
call RemoveLocation(udg_Point)
if((udg_GameMode!=4))then
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerAlly(Player(-1+(udg_Integer)),Player(-1+(bj_forLoopAIndex)))))then
call SetPlayerAllianceStateBJ(Player(-1+(udg_Integer)),Player(-1+(bj_forLoopAIndex)),0)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(-1+(udg_Integer)),0)
else
call SetPlayerAllianceStateBJ(Player(-1+(udg_Integer)),Player(-1+(bj_forLoopAIndex)),3)
call SetPlayerAllianceStateBJ(Player(-1+(bj_forLoopAIndex)),Player(-1+(udg_Integer)),3)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
else
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_Player_Group[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_VSGroup[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_Player_Group[2],3)
call SetForceAllianceStateBJ(udg_Player_Group[2],udg_VSGroup[2],3)
endif
call YDWEMultiboardSetItemIconBJNull(udg_Multiboard,1,(udg_Integer+1),"ReplaceableTextures\\CommandButtons\\BTNTichondrius.blp")
set udg_Integer=(udg_game_time_minutes/ 2)
call SetHeroLevelBJ(bj_lastCreatedUnit,udg_Integer,false)
endfunction
function InitTrig_siteVote2 takes nothing returns nothing
set gg_trg_siteVote2=CreateTrigger()
call TriggerAddCondition(gg_trg_siteVote2,Condition(function Trig_siteVote2Conditions))
call TriggerAddAction(gg_trg_siteVote2,function Trig_siteVote2Actions)
endfunction
function Trig_UndeadVoteV1Actions takes nothing returns nothing
set udg_Choose=1
loop
exitwhen udg_Choose>$C
set udg_Choose=GetRandomInt(1,$B)
if((udg_VOTE[udg_Choose]==false))then
set udg_VOTE[udg_Choose]=true
set udg_SFVote[bj_forLoopAIndex]=DialogCreate()
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[udg_Choose]+(GetPlayerName(Player(-1+(udg_Choose)))+"|r 正在选择身份。。。")))
call DialogSetMessage(udg_SFVote[udg_Choose],"身份选择（1僵尸、6人类、2大叔、2走狗，选满的将不会出现选项）")
if((udg_Zombie==false))then
call DialogAddButtonBJ(udg_SFVote[udg_Choose],"|cffff0000僵尸|r")
set udg_SFbutton_1[udg_Choose]=bj_lastCreatedButton
endif
if((udg_Humans<6))then
call DialogAddButtonBJ(udg_SFVote[udg_Choose],"|cffffff00人类|r")
set udg_SFbutton_2[udg_Choose]=bj_lastCreatedButton
endif
if((udg_Harmonius<2))then
call DialogAddButtonBJ(udg_SFVote[udg_Choose],"|cff00ffff大叔|r")
set udg_SFbutton_3[udg_Choose]=bj_lastCreatedButton
endif
if((udg_Dog<2))then
call DialogAddButtonBJ(udg_SFVote[udg_Choose],"|cff993300走狗|r")
set udg_SFbutton_4[udg_Choose]=bj_lastCreatedButton
endif
call DialogDisplayBJ(true,udg_SFVote[udg_Choose],Player(-1+(udg_Choose)))
call TriggerSleepAction(6.)
call DialogClear(udg_SFVote[udg_Choose])
call DialogDisplayBJ(false,udg_SFVote[udg_Choose],Player(-1+(udg_Choose)))
if((udg_Press[udg_Choose]==false))then
if((udg_Humans<6))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[udg_Choose]+(GetPlayerName(Player(-1+(udg_Choose)))+"|r 超时不选，自动成为|cffffff00人类|r！")))
set udg_Humans=(udg_Humans+1)
else
if((udg_Harmonius<2))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[udg_Choose]+(GetPlayerName(Player(-1+(udg_Choose)))+"|r 超时不选，自动成为|cff00ffff大叔|r！")))
set udg_Harmonius=(udg_Harmonius+1)
call ForceAddPlayer(udg_VSGroup[1],Player(-1+(udg_Choose)))
else
if((udg_Dog<2))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[udg_Choose]+(GetPlayerName(Player(-1+(udg_Choose)))+"|r 超时不选，自动成为|cff993300走狗|r！")))
set udg_Dog=(udg_Dog+1)
call ForceAddPlayer(udg_VSGroup[2],Player(-1+(udg_Choose)))
else
if((udg_Zombie==false))then
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[udg_Choose]+(GetPlayerName(Player(-1+(udg_Choose)))+"|r 超时不选，自动成为|cffff0000僵尸|r！")))
set udg_Zombie=true
set udg_ZC_______u_______u=(1+GetPlayerId(Player(-1+(udg_Choose))))
call ForceAddPlayer(udg_ZaB,Player(-1+(udg_Choose)))
endif
endif
endif
endif
endif
call TriggerSleepAction(1.)
set udg_VOTE_P=(udg_VOTE_P+1)
if((udg_VOTE_P==$B))then
exitwhen true
endif
else
set udg_Choose=1
endif
set udg_Choose=udg_Choose+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"正在统计身份分配情况。。。大叔将在3分钟之后出现，走狗将在6分钟之后出现。。。")
call TriggerSleepAction(5.)
call ConditionalTriggerExecute(gg_trg_UndeadVote1)
endfunction
function InitTrig_UndeadVoteV1 takes nothing returns nothing
set gg_trg_UndeadVoteV1=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteV1,function Trig_UndeadVoteV1Actions)
endfunction
function Trig_UndeadVoteV2Actions takes nothing returns nothing
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((GetClickedButton()==udg_SFbutton_1[bj_forLoopAIndex])and(udg_Press[bj_forLoopAIndex]==false))then
set udg_Press[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 成为|cffff0000僵尸|r！")))
set udg_Zombie=true
set udg_ZC_______u_______u=(1+GetPlayerId(Player(-1+(bj_forLoopAIndex))))
call ForceAddPlayer(udg_ZaB,Player(-1+(bj_forLoopAIndex)))
else
if((GetClickedButton()==udg_SFbutton_2[bj_forLoopAIndex])and(udg_Press[bj_forLoopAIndex]==false))then
set udg_Press[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 成为|cffffff00人类|r！")))
set udg_Humans=(udg_Humans+1)
else
if((GetClickedButton()==udg_SFbutton_3[bj_forLoopAIndex])and(udg_Press[bj_forLoopAIndex]==false))then
set udg_Press[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 成为|cff00ffff大叔|r！")))
set udg_Harmonius=(udg_Harmonius+1)
call ForceAddPlayer(udg_VSGroup[1],Player(-1+(bj_forLoopAIndex)))
else
if((GetClickedButton()==udg_SFbutton_4[bj_forLoopAIndex])and(udg_Press[bj_forLoopAIndex]==false))then
set udg_Press[bj_forLoopAIndex]=true
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,7.,(udg_player_color[bj_forLoopAIndex]+(GetPlayerName(Player(-1+(bj_forLoopAIndex)))+"|r 成为|cff993300走狗|r！")))
set udg_Dog=(udg_Dog+1)
call ForceAddPlayer(udg_VSGroup[2],Player(-1+(bj_forLoopAIndex)))
endif
endif
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_UndeadVoteV2 takes nothing returns nothing
set gg_trg_UndeadVoteV2=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[1])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[2])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[3])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[4])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[5])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[6])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[7])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[8])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[9])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[$A])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[$B])
call TriggerAddAction(gg_trg_UndeadVoteV2,function Trig_UndeadVoteV2Actions)
endfunction
function Trig_unionActions takes nothing returns nothing
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_Player_Group[1],3)
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_Player_Group[3],3)
call SetForceAllianceStateBJ(udg_Player_Group[3],udg_Player_Group[1],3)
call SetForceAllianceStateBJ(udg_Player_Group[4],udg_Player_Group[2],3)
call SetForceAllianceStateBJ(udg_Player_Group[4],udg_Player_Group[4],3)
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_Player_Group[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[2],udg_VSGroup[1],0)
call SetForceAllianceStateBJ(udg_VSGroup[1],udg_VSGroup[2],0)
call SetForceAllianceStateBJ(udg_VSGroup[1],udg_Player_Group[1],3)
call SetForceAllianceStateBJ(udg_Player_Group[1],udg_VSGroup[1],3)
call SetForceAllianceStateBJ(udg_VSGroup[1],udg_VSGroup[1],3)
endfunction
function InitTrig_union takes nothing returns nothing
set gg_trg_union=CreateTrigger()
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(0),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(1),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(2),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(3),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(4),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(5),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(6),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(7),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(8),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(9),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player($A),ALLIANCE_SHARED_CONTROL)
call TriggerAddAction(gg_trg_union,function Trig_unionActions)
endfunction
function Trig_ZBActions takes nothing returns nothing
set bj_forLoopBIndex=1
set bj_forLoopBIndexEnd=$B
loop
exitwhen bj_forLoopBIndex>bj_forLoopBIndexEnd
call CustomDefeatBJ(Player(-1+(bj_forLoopBIndex)),"该图被检测为盗版图，请去U9网下载正版！")
set bj_forLoopBIndex=bj_forLoopBIndex+1
endloop
endfunction
function InitTrig_ZB takes nothing returns nothing
set gg_trg_ZB=CreateTrigger()
call TriggerAddAction(gg_trg_ZB,function Trig_ZBActions)
endfunction
function Trig_ZB_testConditions takes nothing returns boolean
return((GetUnitTypeId(GetTrainedUnit())!='h024')and(GetUnitTypeId(GetTrainedUnit())!='h01R')and(GetUnitTypeId(GetTrainedUnit())!='h018')and(GetUnitTypeId(GetTrainedUnit())!='h01Q')and(GetUnitTypeId(GetTrainedUnit())!='h01L'))
endfunction
function Trig_ZB_testActions takes nothing returns nothing
if((GetUnitFoodMade(GetTrainedUnit())!=0))then
call TriggerExecute(gg_trg_ZB)
endif
endfunction
function InitTrig_ZB_test takes nothing returns nothing
set gg_trg_ZB_test=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test,Condition(function Trig_ZB_testConditions))
call TriggerAddAction(gg_trg_ZB_test,function Trig_ZB_testActions)
endfunction
function Trig_ZB_test2Conditions takes nothing returns boolean
return((GetUnitFoodMade(GetConstructedStructure())!=0))
endfunction
function Trig_ZB_test2Actions takes nothing returns nothing
call TriggerExecute(gg_trg_ZB)
endfunction
function InitTrig_ZB_test2 takes nothing returns nothing
set gg_trg_ZB_test2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test2,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(gg_trg_ZB_test2,Condition(function Trig_ZB_test2Conditions))
call TriggerAddAction(gg_trg_ZB_test2,function Trig_ZB_test2Actions)
endfunction
function Trig_ZB_test3Conditions takes nothing returns boolean
return(((GetUnitTypeId(GetTrainedUnit())=='h024')or(GetUnitTypeId(GetTrainedUnit())=='h01R')or(GetUnitTypeId(GetTrainedUnit())=='h018')or(GetUnitTypeId(GetTrainedUnit())=='h01Q')or(GetUnitTypeId(GetTrainedUnit())=='h01L')))
endfunction
function Trig_ZB_test3Actions takes nothing returns nothing
if((GetUnitTypeId(GetTrainedUnit())=='h024')and(GetUnitFoodMade(GetTrainedUnit())!=32))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h01R')and(GetUnitFoodMade(GetTrainedUnit())!=2))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h018')and(GetUnitFoodMade(GetTrainedUnit())!=4))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h01Q')and(GetUnitFoodMade(GetTrainedUnit())!=16))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h01L')and(GetUnitFoodMade(GetTrainedUnit())!=8))then
call TriggerExecute(gg_trg_ZB)
endif
endif
endif
endif
endif
endfunction
function InitTrig_ZB_test3 takes nothing returns nothing
set gg_trg_ZB_test3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test3,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test3,Condition(function Trig_ZB_test3Conditions))
call TriggerAddAction(gg_trg_ZB_test3,function Trig_ZB_test3Actions)
endfunction
function Trig_ZB_test4Conditions takes nothing returns boolean
return(((GetUnitTypeId(GetTrainedUnit())=='h009')or(GetUnitTypeId(GetTrainedUnit())=='h00N')or(GetUnitTypeId(GetTrainedUnit())=='h00O')or(GetUnitTypeId(GetTrainedUnit())=='h00P')or(GetUnitTypeId(GetTrainedUnit())=='h00Q')))
endfunction
function Trig_ZB_test4Actions takes nothing returns nothing
if((GetUnitTypeId(GetTrainedUnit())=='h009')and(GetUnitFoodUsed(GetTrainedUnit())!=1))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h00N')and(GetUnitFoodUsed(GetTrainedUnit())!=1))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h00O')and(GetUnitFoodUsed(GetTrainedUnit())!=4))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h00P')and(GetUnitFoodUsed(GetTrainedUnit())!=16))then
call TriggerExecute(gg_trg_ZB)
else
if((GetUnitTypeId(GetTrainedUnit())=='h00Q')and(GetUnitFoodUsed(GetTrainedUnit())!='d'))then
call TriggerExecute(gg_trg_ZB)
endif
endif
endif
endif
endif
endfunction
function InitTrig_ZB_test4 takes nothing returns nothing
set gg_trg_ZB_test4=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test4,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test4,Condition(function Trig_ZB_test4Conditions))
call TriggerAddAction(gg_trg_ZB_test4,function Trig_ZB_test4Actions)
endfunction
function Trig_ZB_test5Conditions takes nothing returns boolean
return((GetUnitFoodMade(GetTriggerUnit())!=0))
endfunction
function Trig_ZB_test5Actions takes nothing returns nothing
call TriggerExecute(gg_trg_ZB)
endfunction
function InitTrig_ZB_test5 takes nothing returns nothing
set gg_trg_ZB_test5=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test5,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_ZB_test5,Condition(function Trig_ZB_test5Conditions))
call TriggerAddAction(gg_trg_ZB_test5,function Trig_ZB_test5Actions)
endfunction
function Trig_SetUpActions takes nothing returns nothing
call CreateMultiboardBJ(7,$C,"|c00C84F06尸如潮水v_3.3|r: 战绩榜:")
set udg_Multiboard=bj_lastCreatedMultiboard
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,1,1,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,2,1,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,3,1,true,true)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,4,1,true,true)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,5,1,true,true)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,6,1,true,true)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,7,1,true,true)
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,3,1,"ReplaceableTextures\\CommandButtons\\BTNCannibalize.blp")
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,4,1,"ReplaceableTextures\\CommandButtons\\BTNPeasant.blp")
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,5,1,"ReplaceableTextures\\CommandButtons\\BTNZombie.blp")
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,6,1,"ReplaceableTextures\\CommandButtons\\BTNHeroPaladin.blp")
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,7,1,"ReplaceableTextures\\CommandButtons\\BTNTichondrius.blp")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,2,1,"名字")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,3,1,"喂养僵尸")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,4,1,"人类分数")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,5,1,"僵尸分数")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,6,1,"大叔分数")
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,7,1,"走狗分数")
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,1,1,3.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,2,1,8.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,3,1,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,4,1,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,5,1,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,6,1,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,7,1,4.)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
set udg_Integer=(bj_forLoopAIndex+1)
if((GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,1,udg_Integer,false,true)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,2,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,3,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,4,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,5,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,6,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,7,udg_Integer,true,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,8,udg_Integer,true,false)
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,2,udg_Integer,(udg_player_color[bj_forLoopAIndex]+udg_Name_______u[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,4,udg_Integer,I2S(udg_Board_1[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,5,udg_Integer,I2S(udg_Board_2[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,6,udg_Integer,I2S(udg_Board_3[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,7,udg_Integer,I2S(udg_Board_4[bj_forLoopAIndex]))
call YDWEMultiboardSetItemValueBJNull(bj_lastCreatedMultiboard,3,udg_Integer,"0")
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,1,udg_Integer,3.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,2,udg_Integer,8.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,3,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,4,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,5,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,6,udg_Integer,4.)
call YDWEMultiboardSetItemWidthBJNull(bj_lastCreatedMultiboard,7,udg_Integer,4.)
if((Player(-1+(bj_forLoopAIndex))!=udg_Player12))then
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,1,udg_Integer,"ReplaceableTextures\\CommandButtons\\BTNPeasant.blp")
else
call YDWEMultiboardSetItemIconBJNull(bj_lastCreatedMultiboard,1,udg_Integer,"ReplaceableTextures\\CommandButtons\\BTNHeroDeathKnight.blp")
endif
else
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,1,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,2,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,3,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,4,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,5,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,6,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,7,udg_Integer,false,false)
call YDWEMultiboardSetItemStyleBJNull(bj_lastCreatedMultiboard,8,udg_Integer,false,false)
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_SetUp takes nothing returns nothing
set gg_trg_SetUp=CreateTrigger()
call TriggerAddAction(gg_trg_SetUp,function Trig_SetUpActions)
endfunction
function Trig_GameTimerFunc003Func005002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetUnitTypeId(GetFilterUnit())=='H01Z')))
endfunction
function Trig_GameTimerFunc003Func006A takes nothing returns nothing
call SetHeroLevelBJ(GetEnumUnit(),(GetHeroLevel(GetEnumUnit())+1),true)
call DisplayTextToPlayer(GetOwningPlayer(GetEnumUnit()),0,0,"本次签到已结束，请务必每分钟回祭坛签到升级！")
endfunction
function Trig_GameTimerFunc006002002 takes nothing returns boolean
return(((IsUnitAliveBJ(GetFilterUnit()))and(GetUnitTypeId(GetFilterUnit())=='H01Z')))
endfunction
function Trig_GameTimerFunc007A takes nothing returns nothing
if((RectContainsUnit(udg_region_altar,GetEnumUnit())))then
call SetUnitInvulnerable(GetEnumUnit(),true)
else
call SetUnitInvulnerable(GetEnumUnit(),false)
endif
endfunction
function Trig_GameTimerActions takes nothing returns nothing
if(((udg_GameMode==2)or(udg_GameMode==4)))then
call AdjustPlayerStateBJ(2,udg_Player12,PLAYER_STATE_RESOURCE_LUMBER)
endif
set udg_game_time_seconds=(udg_game_time_seconds+1)
if((udg_game_time_seconds>=60))then
set udg_game_time_seconds=0
set udg_game_time_minutes=(udg_game_time_minutes+1)
set udg_game_time_minutes2=(udg_game_time_minutes2+1)
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,("|cffffff00游戏提示：|r"+udg_Tip[GetRandomInt(0,27)]))
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_altar,Condition(function Trig_GameTimerFunc003Func005002002))
call ForGroupBJ(udg_Group,function Trig_GameTimerFunc003Func006A)
call DestroyGroup(udg_Group)
endif
call MultiboardSetTitleText(udg_Multiboard,(("|c00C84F06─≡★尸如潮水|r|cffff00003.6正式版|r|c00C84F06战绩榜★≡─|r"+(udg_HOST+" 游戏时间: "))+(I2S(udg_game_time_minutes)+(":"+I2S(udg_game_time_seconds)))))
if((udg_game_time_minutes2==$A))then
set udg_game_time_minutes2=0
set udg_game_time_bonuses=(udg_game_time_bonuses+1)
set udg_Integer=(udg_game_time_bonuses*$3E8)
if(((udg_GameMode==2)or(udg_GameMode==4)))then
set udg_EX=(udg_EX+1.)
set udg_Integer2=(udg_game_time_bonuses*$FA0)
set udg_LJCG=(udg_LJCG+3)
set udg_Point=GetUnitLoc(udg_unit_hellGate)
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=udg_LJCG
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call StoreReal(YDGC,I2S(YDTRIGGER_H2I(CreateUnitAtLoc(udg_Player12,'h02S',udg_Point,0))),"0x736A3C94",20.)
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call RemoveLocation(udg_Point)
else
set udg_Integer2=(udg_game_time_bonuses*$7D0)
endif
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerAlly(Player(-1+(bj_forLoopAIndex)),udg_Player12)))then
call AdjustPlayerStateBJ(udg_Integer2,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_GOLD)
else
if((IsPlayerEnemy(Player(-1+(bj_forLoopAIndex)),udg_Player12))and(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING))then
call AdjustPlayerStateBJ(udg_Integer,Player(-1+(bj_forLoopAIndex)),PLAYER_STATE_RESOURCE_LUMBER)
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call AdjustPlayerStateBJ((udg_Integer2/ 2),udg_Player12,PLAYER_STATE_RESOURCE_LUMBER)
call DisplayTimedTextToForce(YDWEGetPlayersEnemiesNull(udg_Player12),7.,("坚持了 |c00FEBA0E"+(I2S(udg_game_time_minutes)+("|r 分钟，所有人类获得 |c0020C000+"+(I2S(udg_Integer)+" 木材!")))))
call DisplayTimedTextToForce(YDWEGetPlayersAlliesNull(udg_Player12),7.,("坚持了 |c00FEBA0E"+(I2S(udg_game_time_minutes)+("|r 分钟，所有僵尸获得 |cffffcc00+"+(I2S(udg_Integer2)+" 黄金! 僵尸玩家额外获得一半的木头! ")))))
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=50
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
call YDWESetLocalVariableLocation("a",GetRandomLocInRect(udg_region_playable))
if((IsTerrainPathableBJ(YDWEGetLocalVariableLocation("a"),PATHING_TYPE_WALKABILITY)==false))then
call CreateNUnitsAtLocFacingLocBJ(1,'n002',Player($C),YDWEGetLocalVariableLocation("a"),YDWEGetLocalVariableLocation("a"))
call RemoveLocation(YDWEGetLocalVariableLocation("a"))
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
call DisplayTimedTextToForce(bj_FORCE_ALL_PLAYERS,10.,"TRIGSTR_6435")
endif
set udg_Group=YDWEGetUnitsInRectMatchingNull(udg_region_playable,Condition(function Trig_GameTimerFunc006002002))
call ForGroupBJ(udg_Group,function Trig_GameTimerFunc007A)
call DestroyGroup(udg_Group)
endfunction
function InitTrig_GameTimer takes nothing returns nothing
set gg_trg_GameTimer=CreateTrigger()
call DisableTrigger(gg_trg_GameTimer)
call TriggerRegisterTimerEventPeriodic(gg_trg_GameTimer,1.)
call TriggerAddAction(gg_trg_GameTimer,function Trig_GameTimerActions)
endfunction
function Trig_BoardConditions takes nothing returns boolean
return((IsPlayerInForce(GetOwningPlayer(GetKillingUnit()),udg_Player_Group[1])))
endfunction
function Trig_BoardActions takes nothing returns nothing
set udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,4,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),I2S(udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$A)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (勇敢的青年)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==50)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (会射的青年)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=='d')and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (射僵尸一脸)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$C8)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (僵尸猎人)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==400)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (虐尸狂人)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$3E8)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (千尸斩)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
if((udg_Board_1[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$5DC)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (僵尸绝对是傻逼)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_RL[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
endfunction
function InitTrig_Board takes nothing returns nothing
set gg_trg_Board=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board,Condition(function Trig_BoardConditions))
call TriggerAddAction(gg_trg_Board,function Trig_BoardActions)
endfunction
function Trig_Board_2Conditions takes nothing returns boolean
return((IsPlayerInForce(GetOwningPlayer(GetKillingUnit()),udg_Player_Group[3])))
endfunction
function Trig_Board_2Actions takes nothing returns nothing
set udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,6,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),I2S(udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
if((udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$A)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (崛起中的大叔)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
if((udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==20)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (开杀戒的大叔)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
if((udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==40)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (复仇者)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
if((udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==70)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (拯救者)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
if((udg_Board_3[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=='d')and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (和谐守护神)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
endfunction
function InitTrig_Board_2 takes nothing returns nothing
set gg_trg_Board_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board_2,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board_2,Condition(function Trig_Board_2Conditions))
call TriggerAddAction(gg_trg_Board_2,function Trig_Board_2Actions)
endfunction
function Trig_Board_3Conditions takes nothing returns boolean
return((IsPlayerInForce(GetOwningPlayer(GetKillingUnit()),udg_Player_Group[4])))
endfunction
function Trig_Board_3Actions takes nothing returns nothing
set udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,7,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),I2S(udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
if((udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==5)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (小旺财)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
if((udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==$F)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (疯狗)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
if((udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==30)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (狗王)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
if((udg_Board_4[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==50)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (本狗藐视一切)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_ZG[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
endif
endif
endif
endif
endfunction
function InitTrig_Board_3 takes nothing returns nothing
set gg_trg_Board_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board_3,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board_3,Condition(function Trig_Board_3Conditions))
call TriggerAddAction(gg_trg_Board_3,function Trig_Board_3Actions)
endfunction
function Trig_Board_4Actions takes nothing returns nothing
call DisableTrigger(GetTriggeringTrigger())
set bj_forLoopAIndex=1
set bj_forLoopAIndexEnd=$B
loop
exitwhen bj_forLoopAIndex>bj_forLoopAIndexEnd
if((IsPlayerInForce(Player(-1+(bj_forLoopAIndex)),udg_Player_Group[1]))and(GetPlayerStructureCount(Player(-1+(bj_forLoopAIndex)),false)>$A)and(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[bj_forLoopAIndex]==false))then
set udg_Name_RL[bj_forLoopAIndex]=" (文艺青年)"
set udg_Name_______u[bj_forLoopAIndex]=(udg_Name[bj_forLoopAIndex]+udg_Name_RL[bj_forLoopAIndex])
call SetPlayerName(Player(-1+(bj_forLoopAIndex)),udg_Name_______u[bj_forLoopAIndex])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,(bj_forLoopAIndex+1),(udg_player_color[bj_forLoopAIndex]+udg_Name_______u[(1+GetPlayerId(Player(0)))]))
else
if((IsPlayerInForce(Player(-1+(bj_forLoopAIndex)),udg_Player_Group[1]))and(GetPlayerScore(Player(-1+(bj_forLoopAIndex)),PLAYER_SCORE_FOOD_MAXPROD)<4)and(GetPlayerSlotState(Player(-1+(bj_forLoopAIndex)))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[bj_forLoopAIndex]==false))then
set udg_Name_RL[bj_forLoopAIndex]=" (二逼青年)"
set udg_Name_______u[bj_forLoopAIndex]=(udg_Name[bj_forLoopAIndex]+udg_Name_RL[bj_forLoopAIndex])
call SetPlayerName(Player(-1+(bj_forLoopAIndex)),udg_Name_______u[bj_forLoopAIndex])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,(bj_forLoopAIndex+1),(udg_player_color[bj_forLoopAIndex]+udg_Name_______u[(1+GetPlayerId(Player(0)))]))
else
return
endif
endif
set bj_forLoopAIndex=bj_forLoopAIndex+1
endloop
endfunction
function InitTrig_Board_4 takes nothing returns nothing
set gg_trg_Board_4=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_Board_4,600.)
call TriggerAddAction(gg_trg_Board_4,function Trig_Board_4Actions)
endfunction
function Trig_Borar_5Conditions takes nothing returns boolean
return((GetUnitTypeId(GetTriggerUnit())=='h005')and(GetUnitTypeId(GetKillingUnit())=='H01Z'))
endfunction
function Trig_Borar_5Actions takes nothing returns nothing
set udg_ATM[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_ATM[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+1)
if((udg_ATM[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==5)and(GetPlayerSlotState(GetOwningPlayer(GetKillingUnit()))==PLAYER_SLOT_STATE_PLAYING)and(udg_Name_Change[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]==false))then
set udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=" (奥特曼)"
set udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]=(udg_Name[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_DS[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call SetPlayerName(GetOwningPlayer(GetKillingUnit()),udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))])
call YDWEMultiboardSetItemValueBJNull(udg_Multiboard,2,((1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))+1),(udg_player_color[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]+udg_Name_______u[(1+GetPlayerId(GetOwningPlayer(GetKillingUnit())))]))
else
return
endif
endfunction
function InitTrig_Borar_5 takes nothing returns nothing
set gg_trg_Borar_5=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Borar_5,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Borar_5,Condition(function Trig_Borar_5Conditions))
call TriggerAddAction(gg_trg_Borar_5,function Trig_Borar_5Actions)
endfunction
function InitCustomTriggers takes nothing returns nothing
call InitTrig_init()
call InitTrig_tips()
call InitTrig_trans()
call InitTrig_team()
call InitTrig_players()
call InitTrig_heroTrain()
call InitTrig_demolish()
call InitTrig_OpenCloseGate()
call InitTrig_b()
call InitTrig_b_______u()
call InitTrig_b_2()
call InitTrig_Trade()
call InitTrig_TowerAttack()
call InitTrig_Flag()
call InitTrig_FlagAllow()
call InitTrig_spikes()
call InitTrig_sonicTower()
call InitTrig_sonictower()
call InitTrig_dashu()
call InitTrig_dashu2()
call InitTrig_dashu2_______u()
call InitTrig_a()
call InitTrig_VIP_00()
call InitTrig_VIP_01()
call InitTrig_VIP_01_______u()
call InitTrig_VIP_02()
call InitTrig_VIP_03()
call InitTrig_VIP_04()
call InitTrig_VIP_05()
call InitTrig_VIP_06()
call InitTrig_VIP_07()
call InitTrig_VIP_08()
call InitTrig_VIP_09()
call InitTrig_VIP_10()
call InitTrig_VIP_11()
call InitTrig_VIP_12()
call InitTrig_VIP_13()
call InitTrig_VIP_14()
call InitTrig_VIP_15()
call InitTrig_VIP_16()
call InitTrig_VIP_17()
call InitTrig_VIP_18()
call InitTrig_VIP_19()
call InitTrig_VIP_20()
call InitTrig_VIP_21()
call InitTrig_VIP_22()
call InitTrig_VIP_23()
call InitTrig_VIP_24()
call InitTrig_VIP_25()
call InitTrig_VIP_26()
call InitTrig_VIP_27()
call InitTrig_VIP_28()
call InitTrig_VIP_29()
call InitTrig_VIP_30()
call InitTrig_VIP_31()
call InitTrig_VIP_32()
call InitTrig_VIP_33()
call InitTrig_VIP_34()
call InitTrig_VIP_35()
call InitTrig_VIP_36()
call InitTrig_VIP_38()
call InitTrig_VIP_37()
call InitTrig_VIP_39()
call InitTrig_VIP_40()
call InitTrig_VIP_41()
call InitTrig_VIP_42()
call InitTrig_VIP_43()
call InitTrig_VIP_44()
call InitTrig_VIP_45()
call InitTrig_VIP_46()
call InitTrig_VIP_47()
call InitTrig_VIP_48()
call InitTrig_VIP_49()
call InitTrig_VIP_50()
call InitTrig_VIP_51()
call InitTrig_VIP_52()
call InitTrig_VIP_53()
call InitTrig_VIP_54()
call InitTrig_VIP_55()
call InitTrig_VIP_56()
call InitTrig_VIP_57()
call InitTrig_VIP_58()
call InitTrig_VIP_59()
call InitTrig_a________2()
call InitTrig_a________3()
call InitTrig_a_3()
call InitTrig_a_______u()
call InitTrig_TR()
call InitTrig_TR_VOTE()
call InitTrig_dashu3()
call InitTrig_zs()
call InitTrig_zs_______u()
call InitTrig_tower()
call InitTrig_FMB01()
call InitTrig_DSQ()
call InitTrig_DSS()
call InitTrig_GoldS()
call InitTrig_GoldS2()
call InitTrig_GoldS2_______u()
call InitTrig_zombieStart()
call InitTrig_zombieStart2()
call InitTrig_zombieStart3()
call InitTrig_zombieStart4()
call InitTrig_zombieMake()
call InitTrig_seach()
call InitTrig_zombieGetItem()
call InitTrig_UndeadMake()
call InitTrig_MiniLordDamage()
call InitTrig_MiniLordDamage2()
call InitTrig_MiniLordItem()
call InitTrig_DayNightSpeed()
call InitTrig_DayNightSpeed2()
call InitTrig_trade_ZB()
call InitTrig_ZombieAutoAttack()
call InitTrig_zz()
call InitTrig_zz_def()
call InitTrig_zz_atk()
call InitTrig_up()
call InitTrig_up_______u()
call InitTrig_esc()
call InitTrig_tec()
call InitTrig_tec_lmt()
call InitTrig_tec_______u()
call InitTrig_leader()
call InitTrig_leader_______u()
call InitTrig_tec2()
call InitTrig_train()
call InitTrig_train_______u()
call InitTrig_ck()
call InitTrig_skill()
call InitTrig_skill01()
call InitTrig_skill02()
call InitTrig_skill03()
call InitTrig_skill04()
call InitTrig_skill05()
call InitTrig_skill06()
call InitTrig_skill07()
call InitTrig_skill08()
call InitTrig_skill09()
call InitTrig_skill10()
call InitTrig_skill11()
call InitTrig_skill12()
call InitTrig_skill13()
call InitTrig_skill14()
call InitTrig_skill15()
call InitTrig_skill16()
call InitTrig_skill17()
call InitTrig_skill18()
call InitTrig_skill19()
call InitTrig_object()
call InitTrig_attack()
call InitTrig_terrain()
call InitTrig_UnitDie()
call InitTrig_trees()
call InitTrig_items()
call InitTrig_ResourceAdd()
call InitTrig_cheat()
call InitTrig_Left()
call InitTrig_HellGateDie()
call InitTrig_HumanDie()
call InitTrig_ZombiesDefeat()
call InitTrig_HumanDefeat()
call InitTrig_optimization1()
call InitTrig_U9()
call InitTrig_setup_______u()
call InitTrig_ModeVoteA()
call InitTrig_ModeVoteB()
call InitTrig_DayNightA()
call InitTrig_DayNightB()
call InitTrig_DayNightC()
call InitTrig_RegionVoteA()
call InitTrig_RegionVoteB()
call InitTrig_RegionVote1()
call InitTrig_UndeadVoteA()
call InitTrig_UndeadVoteB()
call InitTrig_UndeadVoteC()
call InitTrig_UndeadVote1()
call InitTrig_UndeadVote2()
call InitTrig_siteVoteA()
call InitTrig_siteVoteB()
call InitTrig_siteVote1()
call InitTrig_siteVote2()
call InitTrig_UndeadVoteV1()
call InitTrig_UndeadVoteV2()
call InitTrig_union()
call InitTrig_ZB()
call InitTrig_ZB_test()
call InitTrig_ZB_test2()
call InitTrig_ZB_test3()
call InitTrig_ZB_test4()
call InitTrig_ZB_test5()
call InitTrig_SetUp()
call InitTrig_GameTimer()
call InitTrig_Board()
call InitTrig_Board_2()
call InitTrig_Board_3()
call InitTrig_Board_4()
call InitTrig_Borar_5()
endfunction
function RunInitializationTriggers takes nothing returns nothing
call ConditionalTriggerExecute(gg_trg_init)
call ConditionalTriggerExecute(gg_trg_tips)
call ConditionalTriggerExecute(gg_trg_team)
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_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(1),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(2),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(3),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(5),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(6),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(7),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(8),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player($A),$A)
call ForcePlayerStartLocation(Player($A),$A)
call SetPlayerColor(Player($A),ConvertPlayerColor($A))
call SetPlayerRacePreference(Player($A),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player($A),false)
call SetPlayerController(Player($A),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player($B),$B)
call ForcePlayerStartLocation(Player($B),$B)
call SetPlayerColor(Player($B),ConvertPlayerColor($B))
call SetPlayerRacePreference(Player($B),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player($B),false)
call SetPlayerController(Player($B),MAP_CONTROL_USER)
endfunction
function InitCustomTeams takes nothing returns nothing
call SetPlayerTeam(Player(0),0)
call SetPlayerTeam(Player(1),0)
call SetPlayerTeam(Player(2),0)
call SetPlayerTeam(Player(3),0)
call SetPlayerTeam(Player(4),0)
call SetPlayerTeam(Player(5),0)
call SetPlayerTeam(Player(6),0)
call SetPlayerTeam(Player(7),0)
call SetPlayerTeam(Player(8),0)
call SetPlayerTeam(Player(9),0)
call SetPlayerTeam(Player($A),0)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(0),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(1),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(2),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(3),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(4),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(5),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(6),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(7),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateAllyBJ(Player(8),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player(9),Player($A),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(0),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(1),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(2),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(3),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(4),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(5),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(6),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(7),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(8),true)
call SetPlayerAllianceStateAllyBJ(Player($A),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(0),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(1),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(2),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(3),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(4),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(5),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(6),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(7),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player(9),true)
call SetPlayerAllianceStateVisionBJ(Player(8),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player(9),Player($A),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(0),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(1),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(2),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(3),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(4),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(5),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(6),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(7),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(8),true)
call SetPlayerAllianceStateVisionBJ(Player($A),Player(9),true)
call SetPlayerTeam(Player($B),1)
endfunction
function InitAllyPriorities takes nothing returns nothing
call SetStartLocPrioCount(0,$B)
call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(1,$B)
call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,$B)
call SetStartLocPrio(2,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,$B)
call SetStartLocPrio(3,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,$B)
call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,$B)
call SetStartLocPrio(5,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,$B)
call SetStartLocPrio(6,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,$B)
call SetStartLocPrio(7,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,$B)
call SetStartLocPrio(8,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,$B)
call SetStartLocPrio(9,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount($A,$B)
call SetStartLocPrio($A,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,9,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount($B,$B)
call SetStartLocPrio($B,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,9,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,$A,$A,MAP_LOC_PRIO_HIGH)
endfunction
function main takes nothing returns nothing
local weathereffect we
local destructable d
local trigger t
local real life
local integer itemID
local integer i
call SetCameraBounds(-24448.+GetCameraMargin(CAMERA_MARGIN_LEFT),-24448.+GetCameraMargin(CAMERA_MARGIN_BOTTOM),24448.-GetCameraMargin(CAMERA_MARGIN_RIGHT),24448.-GetCameraMargin(CAMERA_MARGIN_TOP),-24448.+GetCameraMargin(CAMERA_MARGIN_LEFT),24448.-GetCameraMargin(CAMERA_MARGIN_TOP),24448.-GetCameraMargin(CAMERA_MARGIN_RIGHT),-24448.+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)
set gg_snd_QuestNew=CreateSound("Sound\\Interface\\QuestNew.wav",false,false,false,$A,$A,"")
call SetSoundParamsFromLabel(gg_snd_QuestNew,"QuestNew")
call SetSoundDuration(gg_snd_QuestNew,$EA6)
set gg_snd_PH1=CreateSound("Sound\\Music\\mp3Music\\PH1.mp3",false,false,false,$A,$A,"")
call SetSoundParamsFromLabel(gg_snd_PH1,"PHMusic")
call SetSoundDuration(gg_snd_PH1,$44BEE)
set gg_snd_HeroDreadlordReady1=CreateSound("Units\\Undead\\HeroDreadLord\\HeroDreadlordReady1.wav",false,false,false,$A,$A,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_HeroDreadlordReady1,"HeroDreadLordReady")
call SetSoundDuration(gg_snd_HeroDreadlordReady1,$868)
call SetSoundVolume(gg_snd_HeroDreadlordReady1,'d')
set gg_snd_VarimathrasReady1=CreateSound("Units\\Undead\\Varimathras\\VarimathrasReady1.wav",false,false,false,$A,$A,"HeroAcksEAX")
call SetSoundParamsFromLabel(gg_snd_VarimathrasReady1,"VarimathrasReady")
call SetSoundDuration(gg_snd_VarimathrasReady1,$84A)
call SetSoundVolume(gg_snd_VarimathrasReady1,'d')
set gg_snd_QuestFailed=CreateSound("Sound\\Interface\\QuestFailed.wav",false,false,false,$A,$A,"DefaultEAXON")
call SetSoundParamsFromLabel(gg_snd_QuestFailed,"QuestFailed")
call SetSoundDuration(gg_snd_QuestFailed,4690)
call SetSoundVolume(gg_snd_QuestFailed,'d')
set gg_rct_start1=Rect(-288.,-576.,-64.,-352.)
set gg_rct_altar1=Rect(-544.,-7328.,160.,-6624.)
set gg_rct_altar3=Rect(-544.,-23840.,160.,-23136.)
set gg_rct_altar2=Rect(15840.,-7328.,16544.,-6624.)
set gg_rct_altar4=Rect(15840.,-23840.,16544.,-23136.)
set gg_rct_start2=Rect(16096.,-576.,16320.,-352.)
set gg_rct_start3=Rect(-288.,-16960.,-64.,-16736.)
set gg_rct_start4=Rect(16096.,-16960.,16320.,-16736.)
set gg_rct_Rcamera1=Rect(-8192.,-7584.,7584.,8160.)
set gg_rct_playable1=Rect(-8064.,-7680.,7680.,8064.)
set we=AddWeatherEffect(gg_rct_playable1,'RAlr')
call EnableWeatherEffect(we,true)
set gg_rct_playable2=Rect(8704.,-7680.,24448.,8064.)
set we=AddWeatherEffect(gg_rct_playable2,'WOlw')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera2=Rect(8800.,-7552.,24576.,8192.)
set gg_rct_playable3=Rect(-8064.,-24448.,7680.,-8704.)
set we=AddWeatherEffect(gg_rct_playable3,'SNls')
call EnableWeatherEffect(we,true)
set gg_rct_playable4=Rect(8704.,-24448.,24448.,-8704.)
set we=AddWeatherEffect(gg_rct_playable4,'LRma')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera3=Rect(-8192.,-24576.,7584.,-8832.)
set gg_rct_Rcamera4=Rect(8800.,-24576.,24576.,-8832.)
set gg_rct_start5=Rect(-17344.,1472.,-17120.,1696.)
set gg_rct_altar5=Rect(-17568.,-7488.,-16864.,-6784.)
set gg_rct_Rcamera5=Rect(-24576.,-7712.,-8800.,8032.)
set gg_rct_playable5=Rect(-24576.,-7776.,-8832.,7968.)
set we=AddWeatherEffect(gg_rct_playable5,'FDrl')
call EnableWeatherEffect(we,true)
set gg_rct_playable6=Rect(-24416.,-24416.,-9216.,-8832.)
set we=AddWeatherEffect(gg_rct_playable6,'LRaa')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera6=Rect(-24576.,-24512.,-9184.,-8832.)
set gg_rct_start6=Rect(-16672.,-17184.,-16448.,-16960.)
set gg_rct_altar6=Rect(-16896.,-23520.,-16192.,-22816.)
set gg_rct_playable7=Rect(-8160.,8768.,7712.,24512.)
set we=AddWeatherEffect(gg_rct_playable7,'LRma')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera7=Rect(-8160.,8896.,7680.,24576.)
set gg_rct_altar7=Rect(-1216.,9312.,-512.,10016.)
set gg_rct_start7=Rect(-1856.,16000.,-1632.,16224.)
set gg_rct_playable8=Rect(-24576.,9120.,-9216.,24544.)
set we=AddWeatherEffect(gg_rct_playable8,'FDwl')
call EnableWeatherEffect(we,true)
set gg_rct_Rcamera8=Rect(-24448.,9152.,-9248.,24416.)
set gg_rct_altar8=Rect(-17568.,9536.,-16864.,10240.)
set gg_rct_start8=Rect(-17312.,16288.,-17088.,16512.)
set gg_rct______________032=Rect(-576.,-8256.,96.,-7840.)
set d=CreateDestructable('LTba',-9216.,12928.,80.,.904,0)
set t=CreateTrigger()
call TriggerRegisterDeathEvent(t,d)
call TriggerAddAction(t,function SaveDyingWidget)
call TriggerAddAction(t,function Doodad002680_DropItems)
call CreateItem('lmbr',-9361.5,17656.4)
call CreateItem('lmbr',-9282.8,15919.1)
call CreateItem('lmbr',-11018.,14550.4)
call CreateItem('lmbr',-9484.7,13836.4)
call CreateItem('lmbr',-11573.1,12870.3)
call CreateItem('lmbr',-11332.7,17249.)
call CreateNeutralPassiveBuildings()
call CreateNeutralPassive()
call InitBlizzard()
call ExecuteFunc("YDTriggerSaveLoadSystem__Init")
call ExecuteFunc("InitializeYD")
set i=0
set udg_Group_gold=CreateGroup()
set udg_Group=CreateGroup()
set udg_Timer=CreateTimer()
set udg_Group2=CreateGroup()
set i=0
loop
exitwhen(i>$B)
set udg_dialog_undeadVote[i]=DialogCreate()
set udg_player_color_code[i]=""
set udg_player_color[i]=""
set udg_dialog_siteVote[i]=DialogCreate()
set udg_dialog_regionVote[i]=DialogCreate()
set udg_dialog_regionVote_Integer[i]=0
set udg_region_name_color[i]=""
set udg_esc[i]=DialogCreate()
set udg_escT[i]=0
set udg_textT[i]=0
set udg_text[i]=DialogCreate()
set udg_dialog_TR[i]=DialogCreate()
set udg_dialog_modeVote[i]=DialogCreate()
set udg_SFVote[i]=DialogCreate()
set udg_Name_Change[i]=false
set udg_Press[i]=false
set udg_VOTE[i]=false
set udg_N_TZ[i]=false
set udg_N_FT[i]=false
set udg_DayNight[i]=DialogCreate()
set udg_Real_DOG[i]=0
set udg_Real_DOG_2[i]=0
set udg_Real_DOG_3[i]=0
set udg_FS[i]=0
set udg_Skill_learn[i]=false
set udg_PT[i]=0
set udg_VOTE_DEATH[i]=false
set udg_MODE_VOTE[i]=false
set i=i+1
endloop
set udg_Group3=CreateGroup()
set i=0
loop
exitwhen(i>$C)
set udg_integer_base_gold_trade_______u[i]=0
set udg_integer_base_wood_trade_______u[i]=0
set udg_LOAD[i]=false
set udg_Board_2[i]=0
set udg_Board_5[i]=0
set udg_Board_1[i]=0
set udg_Board_3[i]=0
set udg_Board_4[i]=0
set udg_Board_6[i]=0
set udg_Name[i]=""
set udg_Name_______u[i]=""
set udg_Name_RL[i]=""
set udg_Name_JS[i]=""
set udg_Name_DS[i]=""
set udg_Name_ZG[i]=""
set udg_SAVE[i]=false
set udg_FEED[i]=0
set udg_YS[i]=false
set udg_RG[i]=0
set udg_RG_______u[i]=0
set udg_ZB[i]=0
set udg_build[i]=false
set udg_Army[i]=0
set udg_ATM[i]=0
set udg_DEATH[i]=false
set udg_tel[i]=false
set udg_VIP[i]=false
set i=i+1
endloop
set i=0
loop
exitwhen(i>4)
set udg_Player_Group[i]=CreateForce()
set i=i+1
endloop
set i=0
loop
exitwhen(i>20)
set udg_JS[i]=false
set i=i+1
endloop
set udg_ZaB=CreateForce()
set udg_LJCG=-2
set i=0
loop
exitwhen(i>2)
set udg_F_Group[i]=CreateGroup()
set udg_VSGroup[i]=CreateForce()
set i=i+1
endloop
set i=0
loop
exitwhen(i>50)
set udg_Tip[i]=""
set i=i+1
endloop
set udg_Choose=1
set udg_Zombies=CreateGroup()
set gg_trg_init=CreateTrigger()
call TriggerAddAction(gg_trg_init,function Trig_initActions)
set gg_trg_tips=CreateTrigger()
call TriggerAddAction(gg_trg_tips,function Trig_tipsActions)
set gg_trg_trans=CreateTrigger()
call YDWETriggerRegisterEnterRectSimpleNull(gg_trg_trans,gg_rct______________032)
call TriggerAddCondition(gg_trg_trans,Condition(function Trig_transConditions))
call TriggerAddAction(gg_trg_trans,function Trig_transActions)
set gg_trg_team=CreateTrigger()
call TriggerAddAction(gg_trg_team,function Trig_teamActions)
set gg_trg_players=CreateTrigger()
call TriggerAddAction(gg_trg_players,function Trig_playersActions)
set gg_trg_heroTrain=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_heroTrain,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_heroTrain,Condition(function Trig_heroTrainConditions))
call TriggerAddAction(gg_trg_heroTrain,function Trig_heroTrainActions)
set gg_trg_demolish=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_demolish,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_demolish,Condition(function Trig_demolishConditions))
call TriggerAddAction(gg_trg_demolish,function Trig_demolishActions)
set gg_trg_OpenCloseGate=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_OpenCloseGate,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_OpenCloseGate,Condition(function Trig_OpenCloseGateConditions))
call TriggerAddAction(gg_trg_OpenCloseGate,function Trig_OpenCloseGateActions)
set gg_trg_b=CreateTrigger()
call DisableTrigger(gg_trg_b)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b,Player($F))
call TriggerAddCondition(gg_trg_b,Condition(function Trig_bConditions))
call TriggerAddAction(gg_trg_b,function Trig_bActions)
set gg_trg_b_______u=CreateTrigger()
call DisableTrigger(gg_trg_b_______u)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_______u,Player($F))
call TriggerAddCondition(gg_trg_b_______u,Condition(function Trig_b_______uConditions))
call TriggerAddAction(gg_trg_b_______u,function Trig_b_______uActions)
set gg_trg_b_2=CreateTrigger()
call DisableTrigger(gg_trg_b_2)
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_b_2,Player($F))
call TriggerAddCondition(gg_trg_b_2,Condition(function Trig_b_2Conditions))
call TriggerAddAction(gg_trg_b_2,function Trig_b_2Actions)
set gg_trg_Trade=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Trade,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddAction(gg_trg_Trade,function Trig_TradeActions)
set gg_trg_TowerAttack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_TowerAttack,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(gg_trg_TowerAttack,function Trig_TowerAttackActions)
set gg_trg_Flag=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Flag,EVENT_PLAYER_UNIT_CONSTRUCT_START)
call TriggerAddCondition(gg_trg_Flag,Condition(function Trig_FlagConditions))
call TriggerAddAction(gg_trg_Flag,function Trig_FlagActions)
set gg_trg_FlagAllow=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(0),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(1),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(2),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(3),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(4),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(5),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(6),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(7),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(8),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player(9),"",false)
call TriggerRegisterPlayerChatEvent(gg_trg_FlagAllow,Player($A),"",false)
call TriggerAddAction(gg_trg_FlagAllow,function Trig_FlagAllowActions)
set gg_trg_spikes=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_spikes,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_spikes,Condition(function Trig_spikesConditions))
call TriggerAddAction(gg_trg_spikes,function Trig_spikesActions)
set gg_trg_sonicTower=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_sonicTower,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_sonicTower,Condition(function Trig_sonicTowerConditions))
call TriggerAddAction(gg_trg_sonicTower,function Trig_sonicTowerActions)
set gg_trg_sonictower=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_sonictower)
call TriggerAddCondition(gg_trg_sonictower,Condition(function Trig_sonictowerConditions))
call TriggerAddAction(gg_trg_sonictower,function Trig_sonictowerActions)
set gg_trg_dashu=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_dashu,Condition(function Trig_dashuConditions))
call TriggerAddAction(gg_trg_dashu,function Trig_dashuActions)
set gg_trg_dashu2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu2,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_dashu2,Condition(function Trig_dashu2Conditions))
call TriggerAddAction(gg_trg_dashu2,function Trig_dashu2Actions)
set gg_trg_dashu2_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_dashu2_______u,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_dashu2_______u,Condition(function Trig_dashu2_______uConditions))
call TriggerAddAction(gg_trg_dashu2_______u,function Trig_dashu2_______uActions)
set gg_trg_a=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(0),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(1),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(2),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(3),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(4),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(5),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(6),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(7),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(8),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player(9),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($A),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($B),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($C),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($D),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($E),"    ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a,Player($F),"    ",true)
call TriggerAddCondition(gg_trg_a,Condition(function Trig_aConditions))
call TriggerAddAction(gg_trg_a,function Trig_aActions)
set gg_trg_VIP_00=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_VIP_00,Player($F))
call TriggerAddCondition(gg_trg_VIP_00,Condition(function Trig_VIP_00Conditions))
call TriggerAddAction(gg_trg_VIP_00,function Trig_VIP_00Actions)
set gg_trg_VIP_01=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(0),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(1),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(2),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(3),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(4),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(5),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(6),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(7),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(8),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player(9),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($A),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($B),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($C),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($D),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($E),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01,Player($F),"205   ",true)
call TriggerAddCondition(gg_trg_VIP_01,Condition(function Trig_VIP_01Conditions))
call TriggerAddAction(gg_trg_VIP_01,function Trig_VIP_01Actions)
set gg_trg_VIP_01_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(0),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(1),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(2),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(3),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(4),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(5),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(6),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(7),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(8),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player(9),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($A),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($B),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($C),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($D),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($E),"205   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_01_______u,Player($F),"205   ",true)
call TriggerAddCondition(gg_trg_VIP_01_______u,Condition(function Trig_VIP_01_______uConditions))
call TriggerAddAction(gg_trg_VIP_01_______u,function Trig_VIP_01_______uActions)
set gg_trg_VIP_02=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(0),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(1),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(2),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(3),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(4),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(5),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(6),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(7),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(8),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player(9),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($A),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($B),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($C),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($D),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($E),"423   ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_02,Player($F),"423   ",true)
call TriggerAddCondition(gg_trg_VIP_02,Condition(function Trig_VIP_02Conditions))
call TriggerAddAction(gg_trg_VIP_02,function Trig_VIP_02Actions)
set gg_trg_VIP_03=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(0),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(1),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(2),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(3),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(4),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(5),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(6),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(7),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(8),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player(9),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($A),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($B),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($C),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($D),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($E),"a123456",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_03,Player($F),"a123456",true)
call TriggerAddCondition(gg_trg_VIP_03,Condition(function Trig_VIP_03Conditions))
call TriggerAddAction(gg_trg_VIP_03,function Trig_VIP_03Actions)
set gg_trg_VIP_04=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(0),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(1),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(2),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(3),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(4),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(5),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(6),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(7),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(8),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player(9),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($A),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($B),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($C),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($D),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($E),"qwe123",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_04,Player($F),"qwe123",true)
call TriggerAddCondition(gg_trg_VIP_04,Condition(function Trig_VIP_04Conditions))
call TriggerAddAction(gg_trg_VIP_04,function Trig_VIP_04Actions)
set gg_trg_VIP_05=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(0),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(1),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(2),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(3),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(4),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(5),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(6),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(7),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(8),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player(9),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($A),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($B),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($C),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($D),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($E),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_05,Player($F),"9527",true)
call TriggerAddCondition(gg_trg_VIP_05,Condition(function Trig_VIP_05Conditions))
call TriggerAddAction(gg_trg_VIP_05,function Trig_VIP_05Actions)
set gg_trg_VIP_06=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(0),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(1),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(2),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(3),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(4),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(5),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(6),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(7),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(8),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player(9),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($A),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($B),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($C),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($D),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($E),"520408",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_06,Player($F),"520408",true)
call TriggerAddCondition(gg_trg_VIP_06,Condition(function Trig_VIP_06Conditions))
call TriggerAddAction(gg_trg_VIP_06,function Trig_VIP_06Actions)
set gg_trg_VIP_07=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(0),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(1),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(2),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(3),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(4),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(5),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(6),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(7),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(8),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player(9),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($A),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($B),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($C),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($D),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($E),"9528",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_07,Player($F),"9528",true)
call TriggerAddCondition(gg_trg_VIP_07,Condition(function Trig_VIP_07Conditions))
call TriggerAddAction(gg_trg_VIP_07,function Trig_VIP_07Actions)
set gg_trg_VIP_08=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(0),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(1),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(2),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(3),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(4),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(5),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(6),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(7),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(8),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player(9),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($A),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($B),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($C),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($D),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($E),"00",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_08,Player($F),"00",true)
call TriggerAddCondition(gg_trg_VIP_08,Condition(function Trig_VIP_08Conditions))
call TriggerAddAction(gg_trg_VIP_08,function Trig_VIP_08Actions)
set gg_trg_VIP_09=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(0),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(1),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(2),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(3),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(4),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(5),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(6),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(7),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(8),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player(9),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($A),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($B),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($C),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($D),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($E),"1",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_09,Player($F),"1",true)
call TriggerAddCondition(gg_trg_VIP_09,Condition(function Trig_VIP_09Conditions))
call TriggerAddAction(gg_trg_VIP_09,function Trig_VIP_09Actions)
set gg_trg_VIP_10=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(0),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(1),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(2),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(3),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(4),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(5),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(6),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(7),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(8),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player(9),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($A),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($B),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($C),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($D),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($E),"2682465",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_10,Player($F),"2682465",true)
call TriggerAddCondition(gg_trg_VIP_10,Condition(function Trig_VIP_10Conditions))
call TriggerAddAction(gg_trg_VIP_10,function Trig_VIP_10Actions)
set gg_trg_VIP_11=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(0),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(1),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(2),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(3),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(4),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(5),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(6),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(7),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(8),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player(9),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($A),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($B),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($C),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($D),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($E),"56399222",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_11,Player($F),"56399222",true)
call TriggerAddCondition(gg_trg_VIP_11,Condition(function Trig_VIP_11Conditions))
call TriggerAddAction(gg_trg_VIP_11,function Trig_VIP_11Actions)
set gg_trg_VIP_12=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(0),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(1),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(2),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(3),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(4),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(5),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(6),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(7),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(8),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player(9),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($A),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($B),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($C),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($D),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($E),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_12,Player($F),"520",true)
call TriggerAddCondition(gg_trg_VIP_12,Condition(function Trig_VIP_12Conditions))
call TriggerAddAction(gg_trg_VIP_12,function Trig_VIP_12Actions)
set gg_trg_VIP_13=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(0),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(1),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(2),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(3),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(4),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(5),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(6),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(7),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(8),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player(9),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($A),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($B),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($C),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($D),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($E),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_13,Player($F),"  ",true)
call TriggerAddCondition(gg_trg_VIP_13,Condition(function Trig_VIP_13Conditions))
call TriggerAddAction(gg_trg_VIP_13,function Trig_VIP_13Actions)
set gg_trg_VIP_14=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(0),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(1),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(2),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(3),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(4),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(5),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(6),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(7),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(8),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player(9),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($A),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($B),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($C),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($D),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($E),"455",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_14,Player($F),"455",true)
call TriggerAddCondition(gg_trg_VIP_14,Condition(function Trig_VIP_14Conditions))
call TriggerAddAction(gg_trg_VIP_14,function Trig_VIP_14Actions)
set gg_trg_VIP_15=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(0),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(1),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(2),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(3),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(4),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(5),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(6),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(7),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(8),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player(9),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($A),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($B),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($C),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($D),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($E),"86486765",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_15,Player($F),"86486765",true)
call TriggerAddCondition(gg_trg_VIP_15,Condition(function Trig_VIP_15Conditions))
call TriggerAddAction(gg_trg_VIP_15,function Trig_VIP_15Actions)
set gg_trg_VIP_16=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(0),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(1),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(2),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(3),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(4),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(5),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(6),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(7),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(8),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player(9),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($A),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($B),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($C),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($D),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($E),"860925",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_16,Player($F),"860925",true)
call TriggerAddCondition(gg_trg_VIP_16,Condition(function Trig_VIP_16Conditions))
call TriggerAddAction(gg_trg_VIP_16,function Trig_VIP_16Actions)
set gg_trg_VIP_17=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(0),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(1),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(2),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(3),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(4),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(5),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(6),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(7),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(8),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player(9),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($A),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($B),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($C),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($D),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($E),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_17,Player($F),"1314",true)
call TriggerAddCondition(gg_trg_VIP_17,Condition(function Trig_VIP_17Conditions))
call TriggerAddAction(gg_trg_VIP_17,function Trig_VIP_17Actions)
set gg_trg_VIP_18=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(0),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(1),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(2),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(3),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(4),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(5),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(6),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(7),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(8),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player(9),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($A),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($B),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($C),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($D),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($E),"1234567q",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_18,Player($F),"1234567q",true)
call TriggerAddCondition(gg_trg_VIP_18,Condition(function Trig_VIP_18Conditions))
call TriggerAddAction(gg_trg_VIP_18,function Trig_VIP_18Actions)
set gg_trg_VIP_19=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(0),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(1),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(2),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(3),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(4),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(5),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(6),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(7),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(8),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player(9),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($A),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($B),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($C),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($D),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($E),"???",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_19,Player($F),"???",true)
call TriggerAddCondition(gg_trg_VIP_19,Condition(function Trig_VIP_19Conditions))
call TriggerAddAction(gg_trg_VIP_19,function Trig_VIP_19Actions)
set gg_trg_VIP_20=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(0),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(1),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(2),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(3),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(4),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(5),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(6),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(7),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(8),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player(9),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($A),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($B),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($C),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($D),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($E),"048",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_20,Player($F),"048",true)
call TriggerAddCondition(gg_trg_VIP_20,Condition(function Trig_VIP_20Conditions))
call TriggerAddAction(gg_trg_VIP_20,function Trig_VIP_20Actions)
set gg_trg_VIP_21=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(0),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(1),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(2),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(3),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(4),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(5),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(6),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(7),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(8),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player(9),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($A),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($B),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($C),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($D),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($E),"59425",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_21,Player($F),"59425",true)
call TriggerAddCondition(gg_trg_VIP_21,Condition(function Trig_VIP_21Conditions))
call TriggerAddAction(gg_trg_VIP_21,function Trig_VIP_21Actions)
set gg_trg_VIP_22=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(0),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(1),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(2),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(3),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(4),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(5),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(6),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(7),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(8),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player(9),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($A),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($B),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($C),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($D),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($E),"s8",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_22,Player($F),"s8",true)
call TriggerAddCondition(gg_trg_VIP_22,Condition(function Trig_VIP_22Conditions))
call TriggerAddAction(gg_trg_VIP_22,function Trig_VIP_22Actions)
set gg_trg_VIP_23=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(0),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(1),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(2),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(3),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(4),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(5),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(6),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(7),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(8),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player(9),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($A),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($B),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($C),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($D),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($E),"7387",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_23,Player($F),"7387",true)
call TriggerAddCondition(gg_trg_VIP_23,Condition(function Trig_VIP_23Conditions))
call TriggerAddAction(gg_trg_VIP_23,function Trig_VIP_23Actions)
set gg_trg_VIP_24=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(0),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(1),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(2),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(3),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(4),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(5),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(6),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(7),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(8),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player(9),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($A),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($B),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($C),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($D),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($E),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_24,Player($F),"521",true)
call TriggerAddCondition(gg_trg_VIP_24,Condition(function Trig_VIP_24Conditions))
call TriggerAddAction(gg_trg_VIP_24,function Trig_VIP_24Actions)
set gg_trg_VIP_25=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(0),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(1),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(2),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(3),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(4),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(5),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(6),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(7),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(8),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player(9),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($A),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($B),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($C),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($D),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($E),"358627",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_25,Player($F),"358627",true)
call TriggerAddCondition(gg_trg_VIP_25,Condition(function Trig_VIP_25Conditions))
call TriggerAddAction(gg_trg_VIP_25,function Trig_VIP_25Actions)
set gg_trg_VIP_26=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(0),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(1),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(2),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(3),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(4),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(5),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(6),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(7),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(8),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player(9),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($A),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($B),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($C),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($D),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($E),"315731",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_26,Player($F),"315731",true)
call TriggerAddCondition(gg_trg_VIP_26,Condition(function Trig_VIP_26Conditions))
call TriggerAddAction(gg_trg_VIP_26,function Trig_VIP_26Actions)
set gg_trg_VIP_27=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(0),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(1),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(2),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(3),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(4),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(5),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(6),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(7),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(8),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player(9),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($A),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($B),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($C),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($D),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($E),"3556",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_27,Player($F),"3556",true)
call TriggerAddCondition(gg_trg_VIP_27,Condition(function Trig_VIP_27Conditions))
call TriggerAddAction(gg_trg_VIP_27,function Trig_VIP_27Actions)
set gg_trg_VIP_28=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(0),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(1),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(2),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(3),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(4),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(5),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(6),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(7),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(8),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player(9),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($A),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($B),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($C),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($D),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($E),"smile2013",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_28,Player($F),"smile2013",true)
call TriggerAddCondition(gg_trg_VIP_28,Condition(function Trig_VIP_28Conditions))
call TriggerAddAction(gg_trg_VIP_28,function Trig_VIP_28Actions)
set gg_trg_VIP_29=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(0),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(1),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(2),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(3),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(4),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(5),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(6),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(7),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(8),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player(9),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($A),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($B),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($C),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($D),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($E),"alpysys",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_29,Player($F),"alpysys",true)
call TriggerAddCondition(gg_trg_VIP_29,Condition(function Trig_VIP_29Conditions))
call TriggerAddAction(gg_trg_VIP_29,function Trig_VIP_29Actions)
set gg_trg_VIP_30=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(0),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(1),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(2),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(3),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(4),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(5),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(6),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(7),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(8),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player(9),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($A),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($B),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($C),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($D),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($E),"520",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_30,Player($F),"520",true)
call TriggerAddCondition(gg_trg_VIP_30,Condition(function Trig_VIP_30Conditions))
call TriggerAddAction(gg_trg_VIP_30,function Trig_VIP_30Actions)
set gg_trg_VIP_31=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(0),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(1),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(2),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(3),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(4),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(5),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(6),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(7),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(8),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player(9),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($A),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($B),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($C),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($D),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($E),"5201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_31,Player($F),"5201314",true)
call TriggerAddCondition(gg_trg_VIP_31,Condition(function Trig_VIP_31Conditions))
call TriggerAddAction(gg_trg_VIP_31,function Trig_VIP_31Actions)
set gg_trg_VIP_32=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(0),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(1),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(2),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(3),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(4),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(5),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(6),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(7),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(8),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player(9),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($A),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($B),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($C),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($D),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($E),"0601",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_32,Player($F),"0601",true)
call TriggerAddCondition(gg_trg_VIP_32,Condition(function Trig_VIP_32Conditions))
call TriggerAddAction(gg_trg_VIP_32,function Trig_VIP_32Actions)
set gg_trg_VIP_33=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(0),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(1),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(2),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(3),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(4),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(5),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(6),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(7),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(8),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player(9),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($A),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($B),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($C),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($D),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($E),"7890",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_33,Player($F),"7890",true)
call TriggerAddCondition(gg_trg_VIP_33,Condition(function Trig_VIP_33Conditions))
call TriggerAddAction(gg_trg_VIP_33,function Trig_VIP_33Actions)
set gg_trg_VIP_34=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(0),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(1),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(2),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(3),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(4),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(5),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(6),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(7),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(8),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player(9),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($A),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($B),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($C),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($D),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($E),"521",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_34,Player($F),"521",true)
call TriggerAddCondition(gg_trg_VIP_34,Condition(function Trig_VIP_34Conditions))
call TriggerAddAction(gg_trg_VIP_34,function Trig_VIP_34Actions)
set gg_trg_VIP_35=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(0),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(1),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(2),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(3),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(4),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(5),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(6),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(7),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(8),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player(9),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($A),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($B),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($C),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($D),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($E),"1314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_35,Player($F),"1314",true)
call TriggerAddCondition(gg_trg_VIP_35,Condition(function Trig_VIP_35Conditions))
call TriggerAddAction(gg_trg_VIP_35,function Trig_VIP_35Actions)
set gg_trg_VIP_36=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(0),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(1),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(2),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(3),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(4),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(5),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(6),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(7),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(8),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player(9),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($A),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($B),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($C),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($D),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($E),"1413",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_36,Player($F),"1413",true)
call TriggerAddCondition(gg_trg_VIP_36,Condition(function Trig_VIP_36Conditions))
call TriggerAddAction(gg_trg_VIP_36,function Trig_VIP_36Actions)
set gg_trg_VIP_38=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(0),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(1),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(2),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(3),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(4),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(5),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(6),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(7),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(8),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player(9),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($A),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($B),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($C),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($D),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($E),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_38,Player($F),"0043",true)
call TriggerAddCondition(gg_trg_VIP_38,Condition(function Trig_VIP_38Conditions))
call TriggerAddAction(gg_trg_VIP_38,function Trig_VIP_38Actions)
set gg_trg_VIP_37=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(0),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(1),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(2),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(3),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(4),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(5),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(6),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(7),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(8),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player(9),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($A),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($B),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($C),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($D),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($E),"9527",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_37,Player($F),"9527",true)
call TriggerAddCondition(gg_trg_VIP_37,Condition(function Trig_VIP_37Conditions))
call TriggerAddAction(gg_trg_VIP_37,function Trig_VIP_37Actions)
set gg_trg_VIP_39=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(0),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(1),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(2),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(3),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(4),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(5),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(6),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(7),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(8),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player(9),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($A),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($B),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($C),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($D),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($E),"0043",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_39,Player($F),"0043",true)
call TriggerAddCondition(gg_trg_VIP_39,Condition(function Trig_VIP_39Conditions))
call TriggerAddAction(gg_trg_VIP_39,function Trig_VIP_39Actions)
set gg_trg_VIP_40=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(0),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(1),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(2),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(3),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(4),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(5),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(6),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(7),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(8),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player(9),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($A),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($B),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($C),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($D),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($E),"lostseed",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_40,Player($F),"lostseed",true)
call TriggerAddCondition(gg_trg_VIP_40,Condition(function Trig_VIP_40Conditions))
call TriggerAddAction(gg_trg_VIP_40,function Trig_VIP_40Actions)
set gg_trg_VIP_41=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(0),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(1),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(2),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(3),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(4),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(5),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(6),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(7),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(8),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player(9),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($A),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($B),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($C),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($D),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($E),"  ",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_41,Player($F),"  ",true)
call TriggerAddCondition(gg_trg_VIP_41,Condition(function Trig_VIP_41Conditions))
call TriggerAddAction(gg_trg_VIP_41,function Trig_VIP_41Actions)
set gg_trg_VIP_42=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(0),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(1),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(2),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(3),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(4),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(5),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(6),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(7),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(8),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player(9),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($A),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($B),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($C),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($D),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($E),"13145200",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_42,Player($F),"13145200",true)
call TriggerAddCondition(gg_trg_VIP_42,Condition(function Trig_VIP_42Conditions))
call TriggerAddAction(gg_trg_VIP_42,function Trig_VIP_42Actions)
set gg_trg_VIP_43=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(0),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(1),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(2),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(3),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(4),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(5),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(6),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(7),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(8),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player(9),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($A),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($B),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($C),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($D),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($E),"a135325",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_43,Player($F),"a135325",true)
call TriggerAddCondition(gg_trg_VIP_43,Condition(function Trig_VIP_43Conditions))
call TriggerAddAction(gg_trg_VIP_43,function Trig_VIP_43Actions)
set gg_trg_VIP_44=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(0),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(1),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(2),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(3),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(4),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(5),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(6),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(7),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(8),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player(9),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($A),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($B),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($C),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($D),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($E),"ws1067401131",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_44,Player($F),"ws1067401131",true)
call TriggerAddCondition(gg_trg_VIP_44,Condition(function Trig_VIP_44Conditions))
call TriggerAddAction(gg_trg_VIP_44,function Trig_VIP_44Actions)
set gg_trg_VIP_45=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(0),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(1),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(2),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(3),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(4),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(5),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(6),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(7),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(8),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player(9),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($A),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($B),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($C),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($D),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($E),"28580364",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_45,Player($F),"28580364",true)
call TriggerAddCondition(gg_trg_VIP_45,Condition(function Trig_VIP_45Conditions))
call TriggerAddAction(gg_trg_VIP_45,function Trig_VIP_45Actions)
set gg_trg_VIP_46=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(0),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(1),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(2),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(3),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(4),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(5),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(6),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(7),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(8),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player(9),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($A),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($B),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($C),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($D),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($E),"3900739",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_46,Player($F),"3900739",true)
call TriggerAddCondition(gg_trg_VIP_46,Condition(function Trig_VIP_46Conditions))
call TriggerAddAction(gg_trg_VIP_46,function Trig_VIP_46Actions)
set gg_trg_VIP_47=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(0),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(1),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(2),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(3),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(4),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(5),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(6),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(7),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(8),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player(9),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($A),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($B),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($C),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($D),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($E),"NI478",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_47,Player($F),"NI478",true)
call TriggerAddCondition(gg_trg_VIP_47,Condition(function Trig_VIP_47Conditions))
call TriggerAddAction(gg_trg_VIP_47,function Trig_VIP_47Actions)
set gg_trg_VIP_48=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(0),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(1),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(2),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(3),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(4),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(5),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(6),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(7),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(8),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player(9),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($A),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($B),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($C),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($D),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($E),"holl201314",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_48,Player($F),"holl201314",true)
call TriggerAddCondition(gg_trg_VIP_48,Condition(function Trig_VIP_48Conditions))
call TriggerAddAction(gg_trg_VIP_48,function Trig_VIP_48Actions)
set gg_trg_VIP_49=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(0),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(1),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(2),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(3),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(4),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(5),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(6),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(7),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(8),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player(9),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($A),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($B),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($C),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($D),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($E),"136136",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_49,Player($F),"136136",true)
call TriggerAddCondition(gg_trg_VIP_49,Condition(function Trig_VIP_49Conditions))
call TriggerAddAction(gg_trg_VIP_49,function Trig_VIP_49Actions)
set gg_trg_VIP_50=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(0),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(1),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(2),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(3),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(4),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(5),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(6),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(7),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(8),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player(9),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($A),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($B),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($C),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($D),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($E),"1029384756",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_50,Player($F),"1029384756",true)
call TriggerAddCondition(gg_trg_VIP_50,Condition(function Trig_VIP_50Conditions))
call TriggerAddAction(gg_trg_VIP_50,function Trig_VIP_50Actions)
set gg_trg_VIP_51=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(0),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(1),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(2),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(3),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(4),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(5),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(6),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(7),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(8),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player(9),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($A),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($B),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($C),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($D),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($E),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_51,Player($F),"aa4290644",true)
call TriggerAddCondition(gg_trg_VIP_51,Condition(function Trig_VIP_51Conditions))
call TriggerAddAction(gg_trg_VIP_51,function Trig_VIP_51Actions)
set gg_trg_VIP_52=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(0),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(1),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(2),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(3),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(4),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(5),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(6),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(7),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(8),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player(9),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($A),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($B),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($C),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($D),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($E),"wocaonima",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_52,Player($F),"wocaonima",true)
call TriggerAddCondition(gg_trg_VIP_52,Condition(function Trig_VIP_52Conditions))
call TriggerAddAction(gg_trg_VIP_52,function Trig_VIP_52Actions)
set gg_trg_VIP_53=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(0),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(1),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(2),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(3),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(4),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(5),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(6),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(7),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(8),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player(9),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($A),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($B),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($C),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($D),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($E),"867672616",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_53,Player($F),"867672616",true)
call TriggerAddCondition(gg_trg_VIP_53,Condition(function Trig_VIP_53Conditions))
call TriggerAddAction(gg_trg_VIP_53,function Trig_VIP_53Actions)
set gg_trg_VIP_54=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(0),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(1),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(2),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(3),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(4),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(5),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(6),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(7),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(8),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player(9),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($A),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($B),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($C),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($D),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($E),"5664",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_54,Player($F),"5664",true)
call TriggerAddCondition(gg_trg_VIP_54,Condition(function Trig_VIP_54Conditions))
call TriggerAddAction(gg_trg_VIP_54,function Trig_VIP_54Actions)
set gg_trg_VIP_55=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(0),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(1),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(2),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(3),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(4),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(5),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(6),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(7),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(8),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player(9),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($A),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($B),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($C),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($D),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($E),"881225",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_55,Player($F),"881225",true)
call TriggerAddCondition(gg_trg_VIP_55,Condition(function Trig_VIP_55Conditions))
call TriggerAddAction(gg_trg_VIP_55,function Trig_VIP_55Actions)
set gg_trg_VIP_56=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(0),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(1),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(2),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(3),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(4),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(5),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(6),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(7),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(8),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player(9),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($A),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($B),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($C),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($D),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($E),"tgy1314520/*-+.`",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_56,Player($F),"tgy1314520/*-+.`",true)
call TriggerAddCondition(gg_trg_VIP_56,Condition(function Trig_VIP_56Conditions))
call TriggerAddAction(gg_trg_VIP_56,function Trig_VIP_56Actions)
set gg_trg_VIP_57=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(0),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(1),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(2),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(3),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(4),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(5),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(6),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(7),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(8),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player(9),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($A),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($B),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($C),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($D),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($E),"11223344",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_57,Player($F),"11223344",true)
call TriggerAddCondition(gg_trg_VIP_57,Condition(function Trig_VIP_57Conditions))
call TriggerAddAction(gg_trg_VIP_57,function Trig_VIP_57Actions)
set gg_trg_VIP_58=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(0),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(1),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(2),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(3),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(4),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(5),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(6),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(7),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(8),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player(9),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($A),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($B),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($C),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($D),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($E),"58",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_58,Player($F),"58",true)
call TriggerAddCondition(gg_trg_VIP_58,Condition(function Trig_VIP_58Conditions))
call TriggerAddAction(gg_trg_VIP_58,function Trig_VIP_58Actions)
set gg_trg_VIP_59=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(0),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(1),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(2),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(3),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(4),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(5),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(6),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(7),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(8),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player(9),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($A),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($B),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($C),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($D),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($E),"aa4290644",true)
call TriggerRegisterPlayerChatEvent(gg_trg_VIP_59,Player($F),"aa4290644",true)
call TriggerAddCondition(gg_trg_VIP_59,Condition(function Trig_VIP_59Conditions))
call TriggerAddAction(gg_trg_VIP_59,function Trig_VIP_59Actions)
set gg_trg_a________2=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________2,Player($F),"",true)
call TriggerAddCondition(gg_trg_a________2,Condition(function Trig_a________2Conditions))
call TriggerAddAction(gg_trg_a________2,function Trig_a________2Actions)
set gg_trg_a________3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a________3,Player($F),"",true)
call TriggerAddCondition(gg_trg_a________3,Condition(function Trig_a________3Conditions))
call TriggerAddAction(gg_trg_a________3,function Trig_a________3Actions)
set gg_trg_a_3=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(0),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(1),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(2),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(3),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(4),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(5),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(6),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(7),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(8),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player(9),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($A),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($B),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($C),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($D),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($E),"",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_3,Player($F),"",true)
call TriggerAddCondition(gg_trg_a_3,Condition(function Trig_a_3Conditions))
call TriggerAddAction(gg_trg_a_3,function Trig_a_3Actions)
set gg_trg_a_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(0),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(1),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(2),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(3),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(4),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(5),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(6),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(7),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(8),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player(9),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($A),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($B),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($C),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($D),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($E),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerRegisterPlayerChatEvent(gg_trg_a_______u,Player($F),"Chrysanthemum burst God to ask you to keep a low profile.",true)
call TriggerAddCondition(gg_trg_a_______u,Condition(function Trig_a_______uConditions))
call TriggerAddAction(gg_trg_a_______u,function Trig_a_______uActions)
set gg_trg_TR=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"2号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"3号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"4号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"5号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"6号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"7号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"8号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"9号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"10号滚",true)
call TriggerRegisterPlayerChatEvent(gg_trg_TR,Player(0),"11号滚",true)
call TriggerAddAction(gg_trg_TR,function Trig_TRActions)
set gg_trg_TR_VOTE=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[1])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[2])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[3])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[4])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[5])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[6])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[7])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[8])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[9])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[$A])
call TriggerRegisterDialogEvent(gg_trg_TR_VOTE,udg_dialog_TR[$B])
call TriggerAddAction(gg_trg_TR_VOTE,function Trig_TR_VOTEActions)
set gg_trg_dashu3=CreateTrigger()
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(0),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(1),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(2),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(3),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(4),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(5),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(6),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(7),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(8),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player(9),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($A),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($B),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($C),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($D),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($E),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerRegisterPlayerStateEvent(gg_trg_dashu3,Player($F),PLAYER_STATE_RESOURCE_GOLD,GREATER_THAN_OR_EQUAL,10.)
call TriggerAddCondition(gg_trg_dashu3,Condition(function Trig_dashu3Conditions))
call TriggerAddAction(gg_trg_dashu3,function Trig_dashu3Actions)
set gg_trg_zs=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zs,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zs,Condition(function Trig_zsConditions))
call TriggerAddAction(gg_trg_zs,function Trig_zsActions)
set gg_trg_zs_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zs_______u,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zs_______u,Condition(function Trig_zs_______uConditions))
call TriggerAddAction(gg_trg_zs_______u,function Trig_zs_______uActions)
set gg_trg_tower=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tower,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_tower,Condition(function Trig_towerConditions))
call TriggerAddAction(gg_trg_tower,function Trig_towerActions)
set gg_trg_FMB01=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_FMB01,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_FMB01,Condition(function Trig_FMB01Conditions))
call TriggerAddAction(gg_trg_FMB01,function Trig_FMB01Actions)
set gg_trg_DSQ=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_DSQ,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_DSQ,Condition(function Trig_DSQConditions))
call TriggerAddAction(gg_trg_DSQ,function Trig_DSQActions)
set gg_trg_DSS=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_DSS)
call TriggerAddCondition(gg_trg_DSS,Condition(function Trig_DSSConditions))
call TriggerAddAction(gg_trg_DSS,function Trig_DSSActions)
set gg_trg_GoldS=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_GoldS,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddCondition(gg_trg_GoldS,Condition(function Trig_GoldSConditions))
call TriggerAddAction(gg_trg_GoldS,function Trig_GoldSActions)
set gg_trg_GoldS2=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_GoldS2)
call TriggerAddCondition(gg_trg_GoldS2,Condition(function Trig_GoldS2Conditions))
call TriggerAddAction(gg_trg_GoldS2,function Trig_GoldS2Actions)
set gg_trg_GoldS2_______u=CreateTrigger()
call YDWESyStemAnyUnitDamagedRegistTrigger(gg_trg_GoldS2_______u)
call TriggerAddCondition(gg_trg_GoldS2_______u,Condition(function Trig_GoldS2_______uConditions))
call TriggerAddAction(gg_trg_GoldS2_______u,function Trig_GoldS2_______uActions)
set gg_trg_zombieStart=CreateTrigger()
call TriggerAddAction(gg_trg_zombieStart,function Trig_zombieStartActions)
set gg_trg_zombieStart2=CreateTrigger()
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart2,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart2,function Trig_zombieStart2Actions)
set gg_trg_zombieStart3=CreateTrigger()
call DisableTrigger(gg_trg_zombieStart3)
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart3,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart3,function Trig_zombieStart3Actions)
set gg_trg_zombieStart4=CreateTrigger()
call DisableTrigger(gg_trg_zombieStart4)
call TriggerRegisterTimerExpireEvent(gg_trg_zombieStart4,udg_Timer)
call TriggerAddAction(gg_trg_zombieStart4,function Trig_zombieStart4Actions)
set gg_trg_zombieMake=CreateTrigger()
call DisableTrigger(gg_trg_zombieMake)
call TriggerRegisterTimerEventPeriodic(gg_trg_zombieMake,20.)
call TriggerAddAction(gg_trg_zombieMake,function Trig_zombieMakeActions)
set gg_trg_seach=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_seach,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_seach,Condition(function Trig_seachConditions))
call TriggerAddAction(gg_trg_seach,function Trig_seachActions)
set gg_trg_zombieGetItem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zombieGetItem,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_zombieGetItem,Condition(function Trig_zombieGetItemConditions))
call TriggerAddAction(gg_trg_zombieGetItem,function Trig_zombieGetItemActions)
set gg_trg_UndeadMake=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_UndeadMake,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_UndeadMake,Condition(function Trig_UndeadMakeConditions))
call TriggerAddAction(gg_trg_UndeadMake,function Trig_UndeadMakeActions)
set gg_trg_MiniLordDamage=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordDamage,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordDamage,Condition(function Trig_MiniLordDamageConditions))
call TriggerAddAction(gg_trg_MiniLordDamage,function Trig_MiniLordDamageActions)
set gg_trg_MiniLordDamage2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordDamage2,EVENT_PLAYER_UNIT_DROP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordDamage2,Condition(function Trig_MiniLordDamage2Conditions))
call TriggerAddAction(gg_trg_MiniLordDamage2,function Trig_MiniLordDamage2Actions)
set gg_trg_MiniLordItem=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_MiniLordItem,EVENT_PLAYER_UNIT_PICKUP_ITEM)
call TriggerAddCondition(gg_trg_MiniLordItem,Condition(function Trig_MiniLordItemConditions))
call TriggerAddAction(gg_trg_MiniLordItem,function Trig_MiniLordItemActions)
set gg_trg_DayNightSpeed=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_DayNightSpeed,EQUAL,18.)
call TriggerAddAction(gg_trg_DayNightSpeed,function Trig_DayNightSpeedActions)
set gg_trg_DayNightSpeed2=CreateTrigger()
call TriggerRegisterGameStateEventTimeOfDay(gg_trg_DayNightSpeed2,EQUAL,6.)
call TriggerAddAction(gg_trg_DayNightSpeed2,function Trig_DayNightSpeed2Actions)
set gg_trg_trade_ZB=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_trade_ZB,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_trade_ZB,Condition(function Trig_trade_ZBConditions))
call TriggerAddAction(gg_trg_trade_ZB,function Trig_trade_ZBActions)
set gg_trg_ZombieAutoAttack=CreateTrigger()
call DisableTrigger(gg_trg_ZombieAutoAttack)
call TriggerRegisterTimerEventPeriodic(gg_trg_ZombieAutoAttack,1.)
call TriggerAddAction(gg_trg_ZombieAutoAttack,function Trig_ZombieAutoAttackActions)
set gg_trg_zz=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz,Condition(function Trig_zzConditions))
call TriggerAddAction(gg_trg_zz,function Trig_zzActions)
set gg_trg_zz_def=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz_def,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz_def,Condition(function Trig_zz_defConditions))
call TriggerAddAction(gg_trg_zz_def,function Trig_zz_defActions)
set gg_trg_zz_atk=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_zz_atk,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_zz_atk,Condition(function Trig_zz_atkConditions))
call TriggerAddAction(gg_trg_zz_atk,function Trig_zz_atkActions)
set gg_trg_up=CreateTrigger()
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,3)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,2)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,1)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(0),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(1),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(2),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(3),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(4),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(5),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(6),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(7),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(8),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player(9),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($A),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($B),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($C),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($D),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($E),0,0)
call TriggerRegisterPlayerKeyEventBJ(gg_trg_up,Player($F),0,0)
call TriggerAddAction(gg_trg_up,function Trig_upActions)
set gg_trg_up_______u=CreateTrigger()
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(0),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(1),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(2),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(3),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(4),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(5),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(6),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(7),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(8),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player(9),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($A),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($B),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($C),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($D),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($E),"-",false)
call TriggerRegisterPlayerChatEvent(gg_trg_up_______u,Player($F),"-",false)
call TriggerAddCondition(gg_trg_up_______u,Condition(function Trig_up_______uConditions))
call TriggerAddAction(gg_trg_up_______u,function Trig_up_______uActions)
set gg_trg_esc=CreateTrigger()
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(0))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(1))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(2))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(3))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(4))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(5))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(6))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(7))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(8))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player(9))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($A))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($B))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($C))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($D))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($E))
call TriggerRegisterPlayerEventEndCinematic(gg_trg_esc,Player($F))
call TriggerAddAction(gg_trg_esc,function Trig_escActions)
set gg_trg_tec=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_tec,Condition(function Trig_tecConditions))
call TriggerAddAction(gg_trg_tec,function Trig_tecActions)
set gg_trg_tec_lmt=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec_lmt,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_tec_lmt,Condition(function Trig_tec_lmtConditions))
call TriggerAddAction(gg_trg_tec_lmt,function Trig_tec_lmtActions)
set gg_trg_tec_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec_______u,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_tec_______u,Condition(function Trig_tec_______uConditions))
call TriggerAddAction(gg_trg_tec_______u,function Trig_tec_______uActions)
set gg_trg_leader=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_leader,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_leader,Condition(function Trig_leaderConditions))
call TriggerAddAction(gg_trg_leader,function Trig_leaderActions)
set gg_trg_leader_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_leader_______u,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_leader_______u,Condition(function Trig_leader_______uConditions))
call TriggerAddAction(gg_trg_leader_______u,function Trig_leader_______uActions)
set gg_trg_tec2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_tec2,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(gg_trg_tec2,Condition(function Trig_tec2Conditions))
call TriggerAddAction(gg_trg_tec2,function Trig_tec2Actions)
set gg_trg_train=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_train,EVENT_PLAYER_UNIT_RESEARCH_FINISH)
call TriggerAddCondition(gg_trg_train,Condition(function Trig_trainConditions))
call TriggerAddAction(gg_trg_train,function Trig_trainActions)
set gg_trg_train_______u=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_train_______u,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_train_______u,Condition(function Trig_train_______uConditions))
call TriggerAddAction(gg_trg_train_______u,function Trig_train_______uActions)
set gg_trg_ck=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ck,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_ck,Condition(function Trig_ckConditions))
call TriggerAddAction(gg_trg_ck,function Trig_ckActions)
set gg_trg_skill=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_skill,Condition(function Trig_skillConditions))
call TriggerAddAction(gg_trg_skill,function Trig_skillActions)
set gg_trg_skill01=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill01,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill01,Condition(function Trig_skill01Conditions))
call TriggerAddAction(gg_trg_skill01,function Trig_skill01Actions)
set gg_trg_skill02=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill02,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill02,Condition(function Trig_skill02Conditions))
call TriggerAddAction(gg_trg_skill02,function Trig_skill02Actions)
set gg_trg_skill03=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill03,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill03,Condition(function Trig_skill03Conditions))
call TriggerAddAction(gg_trg_skill03,function Trig_skill03Actions)
set gg_trg_skill04=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill04,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill04,Condition(function Trig_skill04Conditions))
call TriggerAddAction(gg_trg_skill04,function Trig_skill04Actions)
set gg_trg_skill05=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill05,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill05,Condition(function Trig_skill05Conditions))
call TriggerAddAction(gg_trg_skill05,function Trig_skill05Actions)
set gg_trg_skill06=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill06,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill06,Condition(function Trig_skill06Conditions))
call TriggerAddAction(gg_trg_skill06,function Trig_skill06Actions)
set gg_trg_skill07=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill07,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill07,Condition(function Trig_skill07Conditions))
call TriggerAddAction(gg_trg_skill07,function Trig_skill07Actions)
set gg_trg_skill08=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill08,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill08,Condition(function Trig_skill08Conditions))
call TriggerAddAction(gg_trg_skill08,function Trig_skill08Actions)
set gg_trg_skill09=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill09,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill09,Condition(function Trig_skill09Conditions))
call TriggerAddAction(gg_trg_skill09,function Trig_skill09Actions)
set gg_trg_skill10=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill10,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill10,Condition(function Trig_skill10Conditions))
call TriggerAddAction(gg_trg_skill10,function Trig_skill10Actions)
set gg_trg_skill11=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill11,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill11,Condition(function Trig_skill11Conditions))
call TriggerAddAction(gg_trg_skill11,function Trig_skill11Actions)
set gg_trg_skill12=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill12,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill12,Condition(function Trig_skill12Conditions))
call TriggerAddAction(gg_trg_skill12,function Trig_skill12Actions)
set gg_trg_skill13=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill13,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill13,Condition(function Trig_skill13Conditions))
call TriggerAddAction(gg_trg_skill13,function Trig_skill13Actions)
set gg_trg_skill14=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill14,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill14,Condition(function Trig_skill14Conditions))
call TriggerAddAction(gg_trg_skill14,function Trig_skill14Actions)
set gg_trg_skill15=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill15,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill15,Condition(function Trig_skill15Conditions))
call TriggerAddAction(gg_trg_skill15,function Trig_skill15Actions)
set gg_trg_skill16=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill16,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill16,Condition(function Trig_skill16Conditions))
call TriggerAddAction(gg_trg_skill16,function Trig_skill16Actions)
set gg_trg_skill17=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill17,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill17,Condition(function Trig_skill17Conditions))
call TriggerAddAction(gg_trg_skill17,function Trig_skill17Actions)
set gg_trg_skill18=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill18,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill18,Condition(function Trig_skill18Conditions))
call TriggerAddAction(gg_trg_skill18,function Trig_skill18Actions)
set gg_trg_skill19=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_skill19,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_skill19,Condition(function Trig_skill19Conditions))
call TriggerAddAction(gg_trg_skill19,function Trig_skill19Actions)
set gg_trg_object=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_object,EVENT_PLAYER_UNIT_SPELL_EFFECT)
call TriggerAddCondition(gg_trg_object,Condition(function Trig_objectConditions))
call TriggerAddAction(gg_trg_object,function Trig_objectActions)
set gg_trg_attack=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_attack,EVENT_PLAYER_UNIT_ATTACKED)
call TriggerAddAction(gg_trg_attack,function Trig_attackActions)
set gg_trg_terrain=CreateTrigger()
call TriggerAddAction(gg_trg_terrain,function Trig_terrainActions)
set gg_trg_UnitDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_UnitDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_UnitDie,function Trig_UnitDieActions)
set gg_trg_trees=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_trees,30.)
call TriggerAddAction(gg_trg_trees,function Trig_treesActions)
set gg_trg_items=CreateTrigger()
call TriggerRegisterTimerEventPeriodic(gg_trg_items,10.)
call TriggerAddAction(gg_trg_items,function Trig_itemsActions)
set gg_trg_ResourceAdd=CreateTrigger()
call DisableTrigger(gg_trg_ResourceAdd)
call TriggerRegisterTimerEventPeriodic(gg_trg_ResourceAdd,1.)
call TriggerAddAction(gg_trg_ResourceAdd,function Trig_ResourceAddActions)
set gg_trg_cheat=CreateTrigger()
call TriggerAddAction(gg_trg_cheat,function Trig_cheatActions)
set gg_trg_Left=CreateTrigger()
call DisableTrigger(gg_trg_Left)
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(0))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(1))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(2))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(3))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(4))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(5))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(6))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(7))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(8))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player(9))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player($A))
call TriggerRegisterPlayerEventLeave(gg_trg_Left,Player($B))
call TriggerAddAction(gg_trg_Left,function Trig_LeftActions)
set gg_trg_HellGateDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_HellGateDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_HellGateDie,Condition(function Trig_HellGateDieConditions))
call TriggerAddAction(gg_trg_HellGateDie,function Trig_HellGateDieActions)
set gg_trg_HumanDie=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_HumanDie,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_HumanDie,Condition(function Trig_HumanDieConditions))
call TriggerAddAction(gg_trg_HumanDie,function Trig_HumanDieActions)
set gg_trg_ZombiesDefeat=CreateTrigger()
call TriggerAddAction(gg_trg_ZombiesDefeat,function Trig_ZombiesDefeatActions)
set gg_trg_HumanDefeat=CreateTrigger()
call TriggerAddAction(gg_trg_HumanDefeat,function Trig_HumanDefeatActions)
set gg_trg_optimization1=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_optimization1,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddAction(gg_trg_optimization1,function Trig_optimization1Actions)
set gg_trg_U9=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_U9,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_U9,Condition(function Trig_U9Conditions))
call TriggerAddAction(gg_trg_U9,function Trig_U9Actions)
set gg_trg_setup_______u=CreateTrigger()
call TriggerAddAction(gg_trg_setup_______u,function Trig_setup_______uActions)
set gg_trg_ModeVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_ModeVoteA,function Trig_ModeVoteAActions)
set gg_trg_ModeVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[1])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[2])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[3])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[4])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[5])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[6])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[7])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[8])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[9])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[$A])
call TriggerRegisterDialogEvent(gg_trg_ModeVoteB,udg_dialog_modeVote[$B])
call TriggerAddAction(gg_trg_ModeVoteB,function Trig_ModeVoteBActions)
set gg_trg_DayNightA=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightA,function Trig_DayNightAActions)
set gg_trg_DayNightB=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightB,function Trig_DayNightBActions)
set gg_trg_DayNightC=CreateTrigger()
call TriggerAddAction(gg_trg_DayNightC,function Trig_DayNightCActions)
set gg_trg_RegionVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_RegionVoteA,function Trig_RegionVoteAActions)
set gg_trg_RegionVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[1])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[2])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[3])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[4])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[5])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[6])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[7])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[8])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[9])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[$A])
call TriggerRegisterDialogEvent(gg_trg_RegionVoteB,udg_dialog_regionVote[$B])
call TriggerAddAction(gg_trg_RegionVoteB,function Trig_RegionVoteBActions)
set gg_trg_RegionVote1=CreateTrigger()
call TriggerAddAction(gg_trg_RegionVote1,function Trig_RegionVote1Actions)
set gg_trg_UndeadVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteA,function Trig_UndeadVoteAActions)
set gg_trg_UndeadVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[1])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[2])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[3])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[4])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[5])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[6])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[7])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[8])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[9])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[$A])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteB,udg_dialog_undeadVote[$B])
call TriggerAddAction(gg_trg_UndeadVoteB,function Trig_UndeadVoteBActions)
set gg_trg_UndeadVoteC=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteC,function Trig_UndeadVoteCActions)
set gg_trg_UndeadVote1=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVote1,function Trig_UndeadVote1Actions)
set gg_trg_UndeadVote2=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVote2,function Trig_UndeadVote2Actions)
set gg_trg_siteVoteA=CreateTrigger()
call TriggerAddAction(gg_trg_siteVoteA,function Trig_siteVoteAActions)
set gg_trg_siteVoteB=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[1])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[2])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[3])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[4])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[5])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[6])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[7])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[8])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[9])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[$A])
call TriggerRegisterDialogEvent(gg_trg_siteVoteB,udg_dialog_siteVote[$B])
call TriggerAddAction(gg_trg_siteVoteB,function Trig_siteVoteBActions)
set gg_trg_siteVote1=CreateTrigger()
call TriggerAddCondition(gg_trg_siteVote1,Condition(function Trig_siteVote1Conditions))
call TriggerAddAction(gg_trg_siteVote1,function Trig_siteVote1Actions)
set gg_trg_siteVote2=CreateTrigger()
call TriggerAddCondition(gg_trg_siteVote2,Condition(function Trig_siteVote2Conditions))
call TriggerAddAction(gg_trg_siteVote2,function Trig_siteVote2Actions)
set gg_trg_UndeadVoteV1=CreateTrigger()
call TriggerAddAction(gg_trg_UndeadVoteV1,function Trig_UndeadVoteV1Actions)
set gg_trg_UndeadVoteV2=CreateTrigger()
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[1])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[2])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[3])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[4])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[5])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[6])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[7])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[8])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[9])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[$A])
call TriggerRegisterDialogEvent(gg_trg_UndeadVoteV2,udg_SFVote[$B])
call TriggerAddAction(gg_trg_UndeadVoteV2,function Trig_UndeadVoteV2Actions)
set gg_trg_union=CreateTrigger()
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(0),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(1),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(2),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(3),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(4),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(5),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(6),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(7),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(8),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player(9),ALLIANCE_SHARED_CONTROL)
call TriggerRegisterPlayerAllianceChange(gg_trg_union,Player($A),ALLIANCE_SHARED_CONTROL)
call TriggerAddAction(gg_trg_union,function Trig_unionActions)
set gg_trg_ZB=CreateTrigger()
call TriggerAddAction(gg_trg_ZB,function Trig_ZBActions)
set gg_trg_ZB_test=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test,Condition(function Trig_ZB_testConditions))
call TriggerAddAction(gg_trg_ZB_test,function Trig_ZB_testActions)
set gg_trg_ZB_test2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test2,EVENT_PLAYER_UNIT_CONSTRUCT_FINISH)
call TriggerAddCondition(gg_trg_ZB_test2,Condition(function Trig_ZB_test2Conditions))
call TriggerAddAction(gg_trg_ZB_test2,function Trig_ZB_test2Actions)
set gg_trg_ZB_test3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test3,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test3,Condition(function Trig_ZB_test3Conditions))
call TriggerAddAction(gg_trg_ZB_test3,function Trig_ZB_test3Actions)
set gg_trg_ZB_test4=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test4,EVENT_PLAYER_UNIT_TRAIN_FINISH)
call TriggerAddCondition(gg_trg_ZB_test4,Condition(function Trig_ZB_test4Conditions))
call TriggerAddAction(gg_trg_ZB_test4,function Trig_ZB_test4Actions)
set gg_trg_ZB_test5=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_ZB_test5,EVENT_PLAYER_UNIT_UPGRADE_FINISH)
call TriggerAddCondition(gg_trg_ZB_test5,Condition(function Trig_ZB_test5Conditions))
call TriggerAddAction(gg_trg_ZB_test5,function Trig_ZB_test5Actions)
set gg_trg_SetUp=CreateTrigger()
call TriggerAddAction(gg_trg_SetUp,function Trig_SetUpActions)
set gg_trg_GameTimer=CreateTrigger()
call DisableTrigger(gg_trg_GameTimer)
call TriggerRegisterTimerEventPeriodic(gg_trg_GameTimer,1.)
call TriggerAddAction(gg_trg_GameTimer,function Trig_GameTimerActions)
set gg_trg_Board=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board,Condition(function Trig_BoardConditions))
call TriggerAddAction(gg_trg_Board,function Trig_BoardActions)
set gg_trg_Board_2=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board_2,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board_2,Condition(function Trig_Board_2Conditions))
call TriggerAddAction(gg_trg_Board_2,function Trig_Board_2Actions)
set gg_trg_Board_3=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Board_3,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Board_3,Condition(function Trig_Board_3Conditions))
call TriggerAddAction(gg_trg_Board_3,function Trig_Board_3Actions)
set gg_trg_Board_4=CreateTrigger()
call TriggerRegisterTimerEventSingle(gg_trg_Board_4,600.)
call TriggerAddAction(gg_trg_Board_4,function Trig_Board_4Actions)
set gg_trg_Borar_5=CreateTrigger()
call TriggerRegisterAnyUnitEventBJ(gg_trg_Borar_5,EVENT_PLAYER_UNIT_DEATH)
call TriggerAddCondition(gg_trg_Borar_5,Condition(function Trig_Borar_5Conditions))
call TriggerAddAction(gg_trg_Borar_5,function Trig_Borar_5Actions)
call ConditionalTriggerExecute(gg_trg_init)
call ConditionalTriggerExecute(gg_trg_tips)
call ConditionalTriggerExecute(gg_trg_team)
call hke_z09Z()
endfunction
function config takes nothing returns nothing
call SetMapName("TRIGSTR_003")
call SetMapDescription("TRIGSTR_3503")
call SetPlayers($C)
call SetTeams($C)
call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)
call DefineStartLocation(0,8192.,-8192.)
call DefineStartLocation(1,8192.,-8192.)
call DefineStartLocation(2,8192.,-8192.)
call DefineStartLocation(3,8192.,-8192.)
call DefineStartLocation(4,8192.,-8192.)
call DefineStartLocation(5,8192.,-8192.)
call DefineStartLocation(6,8192.,-8192.)
call DefineStartLocation(7,8192.,-8192.)
call DefineStartLocation(8,8192.,-8192.)
call DefineStartLocation(9,8192.,-8192.)
call DefineStartLocation($A,8192.,-8192.)
call DefineStartLocation($B,8192.,-8192.)
call SetPlayerStartLocation(Player(0),0)
call ForcePlayerStartLocation(Player(0),0)
call SetPlayerColor(Player(0),ConvertPlayerColor(0))
call SetPlayerRacePreference(Player(0),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player(0),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(1),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(2),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(3),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(4),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(5),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(6),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(7),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(8),false)
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_HUMAN)
call SetPlayerRaceSelectable(Player(9),false)
call SetPlayerController(Player(9),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player($A),$A)
call ForcePlayerStartLocation(Player($A),$A)
call SetPlayerColor(Player($A),ConvertPlayerColor($A))
call SetPlayerRacePreference(Player($A),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player($A),false)
call SetPlayerController(Player($A),MAP_CONTROL_USER)
call SetPlayerStartLocation(Player($B),$B)
call ForcePlayerStartLocation(Player($B),$B)
call SetPlayerColor(Player($B),ConvertPlayerColor($B))
call SetPlayerRacePreference(Player($B),RACE_PREF_HUMAN)
call SetPlayerRaceSelectable(Player($B),false)
call SetPlayerController(Player($B),MAP_CONTROL_USER)
call InitCustomTeams()
call SetStartLocPrioCount(0,$B)
call SetStartLocPrio(0,0,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(0,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(1,$B)
call SetStartLocPrio(1,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,1,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(1,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(2,$B)
call SetStartLocPrio(2,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,2,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(2,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(3,$B)
call SetStartLocPrio(3,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,3,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(3,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(4,$B)
call SetStartLocPrio(4,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,4,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(4,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(5,$B)
call SetStartLocPrio(5,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,5,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(5,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(6,$B)
call SetStartLocPrio(6,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,6,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(6,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(7,$B)
call SetStartLocPrio(7,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,7,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(7,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(8,$B)
call SetStartLocPrio(8,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,8,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(8,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount(9,$B)
call SetStartLocPrio(9,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,9,$A,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio(9,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount($A,$B)
call SetStartLocPrio($A,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,9,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($A,$A,$B,MAP_LOC_PRIO_HIGH)
call SetStartLocPrioCount($B,$B)
call SetStartLocPrio($B,0,0,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,1,1,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,2,2,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,3,3,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,4,4,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,5,5,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,6,6,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,7,7,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,8,8,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,9,9,MAP_LOC_PRIO_HIGH)
call SetStartLocPrio($B,$A,$A,MAP_LOC_PRIO_HIGH)
endfunction
