Нужна помощь мультиборд
Эта функция вызывает десинхрон я не понимаю в чем причина.
function BigRefreshBoard takes nothing returns nothing
	local integer VT8
	local integer VU8
	local string Time
	local real YO8
	local string s1=" "
	local integer r
	local integer i
	local integer array time_1a
	local string array color_1a
	local integer index_1a=0
	local integer array time_1b
	local string array color_1b
	local integer index_1b=0
	local integer x=0
	local integer id
	local string OOD
	local string OPD
	local string OQD
	local string ORD
	local string OSD
	local string s2=" "
	local string s
	local string sbis
	local real OTD
	local real OTDbis
	local string spacer
	local integer OUD=0
	local string OVD=""
	local string OWD=""
	local integer OXD=0
	local integer OYD=0
	local string OZD=""
	local integer pid
	local string charges=""
    local integer array kills
	if MainMB==null then
		return
	endif
	set i=0
	loop
		exitwhen i>5
		set pid=GetPlayerId(Sentinels[i])
		set r=R2I(TimerGetRemaining(HeroRespawnTimer[pid]))
		if r>0 then
			set OUD=OUD+OJD(r)
			if OXD==0 then
				if r<10 then
					set OVD=udg_Colors[pid]+"0"+I2S(r)+" |r"
				else
					set OVD=udg_Colors[pid]+I2S(r)+" |r"
				endif
			else
				if r<10 then
					set OVD=OVD+WHITE+"| |r"+udg_Colors[pid]+"0"+I2S(r)+" |r"
				else
					set OVD=OVD+WHITE+"| |r"+udg_Colors[pid]+I2S(r)+" |r"
				endif
			endif
			set OXD=OXD+1
		endif
		set i=i+1
	endloop
	if OXD>0 then
		if IsPlayerAlly(GetLocalPlayer(),Sentinels[0]) then
			set OVD=WHITE+"["+Allied+" |r"+OVD+WHITE+"]|r"
		else
			set OVD=RED2+"["+Enemy+" |r"+OVD+RED2+"]|r"
		endif
	endif
	set i=0
	loop
		exitwhen i>5
		set pid=GetPlayerId(Scourges[i])
		set r=R2I(TimerGetRemaining(HeroRespawnTimer[pid]))
		if r>0 then
			set OUD=OUD+OJD(r)
			if OYD==0 then
				if r<10 then
					set OWD=udg_Colors[pid]+"0"+I2S(r)+" |r"
				else
					set OWD=udg_Colors[pid]+I2S(r)+" |r"
				endif
			else
				if r<10 then
					set OWD=OWD+WHITE+"| |r"+udg_Colors[pid]+"0"+I2S(r)+" |r"
				else
					set OWD=OWD+WHITE+"| |r"+udg_Colors[pid]+I2S(r)+" |r"
				endif
			endif
			set OYD=OYD+1
		endif
		set i=i+1
	endloop
	if OYD>0 then
		if IsPlayerAlly(GetLocalPlayer(),Scourges[0]) then
			set OWD=WHITE+"["+" |r"+OWD+WHITE+"]|r"
		else
			set OWD=RED2+"["+" |r"+OWD+RED2+"]|r"
		endif
	endif
	if MainMB!=null then
		set id=GetPlayerId(GetLocalPlayer())
		if id>=0 and id<16 then
			if CSONStatus1[x]then
				set OOD=I2S(Kills[id])
				set OPD=I2S(Deaths[id])
				set OQD=I2S(Assists[id])
				set ORD=I2S(PlayerCS[id])
				set OSD=I2S(CSDenies[id])
				set s2=" |c00838B8B("+OOD+"/"+OPD+"/"+OQD+" - "+ORD+"/"+OSD+" - |r|c00FFDC00"+I2S(ReliableGold[id])+"|r |c00838B8B)|r"
			endif
		endif
	endif
    if OYD==0 and OXD==0 then
        call MultiboardSetTitleText(MainMB,s2)
    else
        if IsPlayerAlly(GetLocalPlayer(),Sentinels[0]) then
			call MultiboardSetTitleText(MainMB,OWD+" "+OVD+" "+s2)
		else
			call MultiboardSetTitleText(MainMB,OVD+" "+OWD+" "+s2)
		endif
    endif
	set VT8=1
	set VU8=SentinelsIngame
	loop
		exitwhen VT8>VU8
		set pid=GetPlayerId(Sents[VT8])
		call MBSetIcon(MainMB,1,VT8+2,US8(udg_Hero[pid]))
		call MBSetText(MainMB,3,VT8+2,"|c00838B8B"+I2S(GetHeroLevel(udg_Hero[pid]))+"|r")
			call MBSetWidth(MainMB,8,1,2)
			call MBSetWidth(MainMB,9,1,.1)
			call MBSetWidth(MainMB,10,1,.1)
			call MBSetWidth(MainMB,11,1,.1)
			call MBSetWidth(MainMB,12,1,.1)
			call MBSetWidth(MainMB,13,1,.1)
			call MBSetWidth(MainMB,14,1,.1)
			call MBSetWidth(MainMB,8,VT8+2,2.5)
			call MBSetWidth(MainMB,9,VT8+2,.1)
			call MBSetWidth(MainMB,10,VT8+2,.1)
			call MBSetWidth(MainMB,11,VT8+2,.1)
			call MBSetWidth(MainMB,12,VT8+2,.1)
			call MBSetWidth(MainMB,13,VT8+2,.1)
			call MBSetWidth(MainMB,14,VT8+2,.1)
			call MBSetStyle(MainMB,9,VT8+2,false,false)
			call MBSetStyle(MainMB,10,VT8+2,false,false)
			call MBSetStyle(MainMB,11,VT8+2,false,false)
			call MBSetStyle(MainMB,12,VT8+2,false,false)
			call MBSetStyle(MainMB,13,VT8+2,false,false)
			call MBSetStyle(MainMB,14,VT8+2,false,false)
			call MBSetText(MainMB,9,1," ")
		call MBSetIcon(MainMB,9,VT8+2,OKD(Sents[VT8],1))
		call MBSetIcon(MainMB,10,VT8+2,OKD(Sents[VT8],2))
		call MBSetIcon(MainMB,11,VT8+2,OKD(Sents[VT8],3))
		call MBSetIcon(MainMB,12,VT8+2,OKD(Sents[VT8],4))
		call MBSetIcon(MainMB,13,VT8+2,OKD(Sents[VT8],5))
		call MBSetIcon(MainMB,14,VT8+2,OKD(Sents[VT8],6))
		set pid=GetPlayerId(Sents[VT8])
		if(UA8(udg_Hero[pid])and udg_Hero[pid]!=null and TimerGetRemaining(HeroRespawnTimer[pid])>0)then
			if IsPlayerAlly(GetLocalPlayer(),Sents[VT8])then
				set OZD=WHITE+" ("+I2S(R2I(TimerGetRemaining(HeroRespawnTimer[pid])))+")|r"
			else
				set OZD=RED2+" ("+I2S(R2I(TimerGetRemaining(HeroRespawnTimer[pid])))+")|r"
			endif
		else
			set OZD="  "
		endif
		if IsPlayerLeftGame[pid]then
			call MBSetText(MainMB,1,VT8+2,TabTab+"|c00333333"+(PlayerNames[pid])+"|r"+OZD)
		else
			call MBSetText(MainMB,1,VT8+2,TabTab+(PlayerNames[pid])+OZD)
		endif
		set OTD=(TimerGetRemaining(PrimUltiTimer[pid]))
		if OTD>0 then
			set s=I2S(R2I(OTD))
		else
			set s=""
		endif
		if IsPlayerAlly(GetLocalPlayer(),Sents[VT8])==false then
			call MBSetText(MainMB,8,VT8+2," ")
			set s=" "
			set sbis=" "
		else
			call MBSetText(MainMB,8,VT8+2,"|cffffcc00"+I2S(R2I(GetPlayerState(Sents[VT8],PLAYER_STATE_RESOU​RCE_GOLD)))+"|r")
		endif
		call MBSetText(MainMB,2,VT8+2,s)
		call MBSetText(MainMB,3,VT8+2,sbis)
		set VT8=VT8+1
	endloop
	set VT8=1
	set VU8=ScourgesIngame
	loop
		exitwhen VT8>VU8
		set pid=GetPlayerId(Scrgs[VT8])
		call MBSetIcon(MainMB,1,VT8+3+SentinelsIngame,US8(udg_Hero[pid]))
		call MBSetText(MainMB,3,VT8+3+SentinelsIngame,"|c00838B8B"+I2S(GetHeroLevel(udg_Hero[pid]))+&qu​ot;|r")
			call MBSetWidth(MainMB,8,1,2)
			call MBSetWidth(MainMB,9,1,.1)
			call MBSetWidth(MainMB,10,1,.1)
			call MBSetWidth(MainMB,11,1,.1)
			call MBSetWidth(MainMB,12,1,.1)
			call MBSetWidth(MainMB,13,1,.1)
			call MBSetWidth(MainMB,14,1,.1)
			call MBSetWidth(MainMB,8,VT8+3+SentinelsIngame,2.5)
			call MBSetWidth(MainMB,9,VT8+3+SentinelsIngame,.1)
			call MBSetWidth(MainMB,10,VT8+3+SentinelsIngame,.1)
			call MBSetWidth(MainMB,11,VT8+3+SentinelsIngame,.1)
			call MBSetWidth(MainMB,12,VT8+3+SentinelsIngame,.1)
			call MBSetWidth(MainMB,13,VT8+3+SentinelsIngame,.1)
			call MBSetWidth(MainMB,14,VT8+3+SentinelsIngame,.1)
			call MBSetStyle(MainMB,9,VT8+3+SentinelsIngame,false,false)
			call MBSetStyle(MainMB,10,VT8+3+SentinelsIngame,false,false)
			call MBSetStyle(MainMB,11,VT8+3+SentinelsIngame,false,false)
			call MBSetStyle(MainMB,12,VT8+3+SentinelsIngame,false,false)
			call MBSetStyle(MainMB,13,VT8+3+SentinelsIngame,false,false)
			call MBSetStyle(MainMB,14,VT8+3+SentinelsIngame,false,false)
			call MBSetText(MainMB,9,1," ")
		call MBSetIcon(MainMB,9,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],1))
		call MBSetIcon(MainMB,10,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],2))
		call MBSetIcon(MainMB,11,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],3))
		call MBSetIcon(MainMB,12,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],4))
		call MBSetIcon(MainMB,13,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],5))
		call MBSetIcon(MainMB,14,VT8+3+SentinelsIngame,OKD(Scrgs[VT8],6))
		set pid=GetPlayerId(Scrgs[VT8])
		if(UA8(udg_Hero[pid])and udg_Hero[pid]!=null and TimerGetRemaining(HeroRespawnTimer[pid])>0)then
			if IsPlayerAlly(GetLocalPlayer(),Scrgs[VT8])then
				set OZD=WHITE+" ("+I2S(R2I(TimerGetRemaining(HeroRespawnTimer[pid])))+")|r"
			else
				set OZD=RED2+" ("+I2S(R2I(TimerGetRemaining(HeroRespawnTimer[pid])))+")|r"
			endif
		else
			set OZD="  "
		endif
		if IsPlayerLeftGame[pid]then
			call MBSetText(MainMB,1,VT8+3+SentinelsIngame,TabTab+"|c00333333"+(PlayerNames[pid])+"|r&q​uot;+OZD)
		else
			call MBSetText(MainMB,1,VT8+3+SentinelsIngame,TabTab+(PlayerNames[pid])+OZD)
		endif
		set OTD=TimerGetRemaining(PrimUltiTimer[pid])
		if OTD>0 then
			set s=I2S(R2I(OTD))
		else
			set s=""
		endif
		if IsPlayerAlly(GetLocalPlayer(),Scrgs[VT8])==false then
			call MBSetText(MainMB,8,VT8+3+SentinelsIngame," ")
			set s=" "
			set sbis=" "
		else
			call MBSetText(MainMB,8,VT8+3+SentinelsIngame,"|cffffcc00"+I2S(R2I(GetPlayerState(Scrgs[VT8],PL​AYER_STATE_RESOURCE_GOLD)))+"|r")
		endif
		call MBSetText(MainMB,2,VT8+3+SentinelsIngame,s)
		call MBSetText(MainMB,3,VT8+3+SentinelsIngame,sbis)
		set VT8=VT8+1
	endloop
endfunction

Лучший ответ:


Views: 206

XGM Bot #1 - 3 months ago 0
Голосов: +0 / -0
Похожие вопросы:

» ответ
Melissa, Короче я разобрался - все проблемы были из-за переменной Total_Num_Players, она была подбита под живых игроков, а так как я был единственным живым игроком, то давала строку равную 1 (то есть 0+1 я). В общем спасибо, не додумал бы без твоей помощи до своей ошибки(у тебя ведь создаётся по заданому числу количество строк).
» ответ

dondonchakka #2 - 3 months ago 0
Голосов: +0 / -0

Radioactive #3 - 3 months ago 0
Голосов: +0 / -0
Ну это ясно дело но вот я не понимаю где ошибка
dondonchakka #4 - 3 months ago 0
Голосов: +0 / -0
зайди в карт близзардов там есть функции на getlocalplayer кастомные беру оттуда если что они не десинхают я так делаю)

Radioactive:
Ну это ясно дело но вот я не понимаю где ошибка
ну это ясно дело я тоже не понимаю но гетлокал плеер это десинх)
Radioactive #5 - 3 months ago 0
Голосов: +0 / -0
это функция из доты которая не десинхронит я заменил GetObjectName на тексты в этом причина?
dondonchakka #6 - 3 months ago 0
Голосов: +0 / -0
у меня она например так менят оже выкидывало я не понимавл в чем дело методом тык и проба мкое как удалось сделать
» смотреть сюда
// Trigger: Multiboard
//
// 
//===========================================================================
function CountPlayersInForceEnum1 takes nothing returns nothing
    set udg_Allplayers=udg_Allplayers + 1
endfunction
function CountPlayersInForceEnum2 takes nothing returns nothing
    set udg_Ally0players=udg_Ally0players + 1
endfunction
function CountPlayersInForceEnum3 takes nothing returns nothing
    set udg_Ally6players=udg_Ally6players + 1
endfunction
function CountUnitsInGroupEnum47 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits47 = udg_bj_groupCountUnits47 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum48 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p1 then
set u = udg_Hero1
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits48 = udg_bj_groupCountUnits48 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum49 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p1 then
set u = udg_Hero1
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits49 = udg_bj_groupCountUnits49 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum50 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p1 then
set u = udg_Hero1
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits50 = udg_bj_groupCountUnits50 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum51 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p1 then
set u = udg_Hero1
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits51 = udg_bj_groupCountUnits51 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum52 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p1 then
set u = udg_Hero1
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits52 = udg_bj_groupCountUnits52 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum53 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p1 then
set u = udg_Hero1
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits53 = udg_bj_groupCountUnits53 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum54 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p1 then
set u = udg_Hero1
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits54 = udg_bj_groupCountUnits54 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum55 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p1 then
set u = udg_Hero1
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits55 = udg_bj_groupCountUnits55 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum56 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p1 then
set u = udg_Hero1
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits56 = udg_bj_groupCountUnits56 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum57 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits57 = udg_bj_groupCountUnits57 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum58 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p1 then
set u = udg_Hero1
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits58 = udg_bj_groupCountUnits58 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum59 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p1 then
set u = udg_Hero1
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits59 = udg_bj_groupCountUnits59 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum60 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p1 then
set u = udg_Hero1
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits60 = udg_bj_groupCountUnits60 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum61 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p1 then
set u = udg_Hero1
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits61 = udg_bj_groupCountUnits61 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum62 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p1 then
set u = udg_Hero1
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits62 = udg_bj_groupCountUnits62 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum63 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p1 then
set u = udg_Hero1
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits63 = udg_bj_groupCountUnits63 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum64 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p1 then
set u = udg_Hero1
elseif p == p10 then
set u = udg_Hero10
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits64 = udg_bj_groupCountUnits64 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum65 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p1 then
set u = udg_Hero1
elseif p == p11 then
set u = udg_Hero11
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits65 = udg_bj_groupCountUnits65 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function CountUnitsInGroupEnum66 takes nothing returns nothing
local unit u = null
local unitstate life = UNIT_STATE_LIFE
local player p = GetEnumPlayer()
local player p1 = Player(1)
local player p2 = Player(2)
local player p3 = Player(3)
local player p4 = Player(4)
local player p5 = Player(5)
local player p7 = Player(7)
local player p8 = Player(8)
local player p9 = Player(9)
local player p10 = Player(10)
local player p11 = Player(11)
if p == p2 then
set u = udg_Hero2
elseif p == p3 then
set u = udg_Hero3
elseif p == p4 then
set u = udg_Hero4
elseif p == p5 then
set u = udg_Hero5
elseif p == p7 then
set u = udg_Hero7
elseif p == p8 then
set u = udg_Hero8
elseif p == p9 then
set u = udg_Hero9
elseif p == p10 then
set u = udg_Hero10
elseif p == p1 then
set u = udg_Hero1
endif
if GetUnitState(u,life) <= 0 and u != null then
    set udg_bj_groupCountUnits66 = udg_bj_groupCountUnits66 + 1
endif
set u = null
set life = null
set p = null
set p1 = null
set p2 = null
set p3 = null
set p4 = null
set p5 = null
set p7 = null
set p8 = null
set p9 = null
set p10 = null
set p11 = null
endfunction
function addfoodgold takes nothing returns nothing
local player p= GetEnumPlayer()
local playerstate food= PLAYER_STATE_RESOURCE_FOOD_USED
local playerstate gold= PLAYER_STATE_RESOURCE_GOLD
local player p0 = Player(0)
local player p6 = Player(6)
call SetPlayerState(p, food, GetPlayerState(p, food) + 1)
if IsPlayerAlly(p,p0) == true then
call SetPlayerState(p, gold, GetPlayerState(p, gold) + 1*5/udg_Ally0players)
elseif IsPlayerAlly(p,p6) == true then
call SetPlayerState(p, gold, GetPlayerState(p, gold) + 1*5/udg_Ally6players)
endif
set food=null
set gold=null
set p0 = null
set p6 = null
set p=null
endfunction
function seconds takes nothing returns nothing
local timer t= GetExpiredTimer()
local force msg= CreateForce()
local force msg1= null
local force msg2= null
local force msg3 = null
local force msg4 = null
local force msg5 = null
local force msg7 = null
local force msg8 = null
local force msg9 = null
local force msg10 = null
local force msg11 = null
local player p0= Player(0)
local player p1= Player(1)
local player p2= Player(2)
local player p3= Player(3)
local player p4= Player(4)
local player p5= Player(5)
local player p6= Player(6)
local player p7= Player(7)
local player p8= Player(8)
local player p9= Player(9)
local player p10= Player(10)
local player p11= Player(11)
local player p15= GetLocalPlayer()
local mapcontrol user= MAP_CONTROL_USER
local code cot= function addfoodgold
local playerstate gold= PLAYER_STATE_RESOURCE_GOLD
local multiboarditem mbitem0= null
local multiboarditem mbitem1= null
local multiboarditem mbitem2= null
local multiboarditem mbitem3= null
local multiboarditem mbitem4= null
local multiboarditem mbitem5= null
local multiboarditem mbitem6= null
local multiboarditem mbitem7= null
local multiboarditem mbitem8= null
local multiboarditem mbitem9= null
local multiboarditem mbitem10= null
local multiboarditem mbitem11= null
local multiboarditem mbitem12= null
local multiboarditem mbitem13= null
local multiboarditem mbitem14= null
local multiboarditem mbitem15= null
local multiboarditem mbitem16= null
local multiboarditem mbitem17= null
local multiboarditem mbitem18= null
local multiboarditem mbitem19= null
local unit u = gg_unit_nbfl_0014
local unit u1 = gg_unit_h015_0001
local unitstate life = UNIT_STATE_LIFE
local sound gg_snd_cunadedeloimeewssanin = null
local code cot1 = null
local unit u2 = gg_unit_h01P_0000
local sound gg_snd_orochimaru2000hp = null
local integer deathgold1 = udg_Deathgold1
local integer deathgold2 = udg_Deathgold2
local integer deathgold3 = udg_Deathgold3
local integer deathgold4 = udg_Deathgold4
local integer deathgold5 = udg_Deathgold5
local integer deathgold7 = udg_Deathgold7
local integer deathgold8 = udg_Deathgold8
local integer deathgold9 = udg_Deathgold9
local integer deathgold10 = udg_Deathgold10
local integer deathgold11 = udg_Deathgold11
local string ri1 = null
local string ri2 = null
local string ri3 = null
local string ri4 = null
local string ri5 = null
local string ri7 = null
local string ri8 = null
local string ri9 = null
local string ri10 = null
local string ri11 = null
local string ri111 = null
local string ri222 = null
local string ri333 = null
local string ri444 = null
local string ri555 = null
local string ri777 = null
local string ri888 = null
local string ri999 = null
local string ri1000 = null
local string ri1111 = null
local string rif1 = null
local string rif2 = null
local string rif3 = null
local string rif4 = null
local string rif5 = null
local string rif7 = null
local string rif8 = null
local string rif9 = null
local string rif10 = null
local string rif11 = null
local string enemy1 = null
local string enemy2 = null
local string enemy3 = null
local string enemy4 = null
local string enemy5 = null
local string enemy7 = null
local string enemy8 = null
local string enemy9 = null
local string enemy10 = null
local string enemy11 = null
local string ally1 = null
local string ally2 = null
local string ally3 = null
local string ally4 = null
local string ally5 = null
local string ally7 = null
local string ally8 = null
local string ally9 = null
local string ally10 = null
local string ally11 = null
local string ally1team1 = null
local string ally1team2 = null
local string ally1team3 = null
local string ally1team4 = null
local string ally1team5 = null
local string ally2team7 = null
local string ally2team8 = null
local string ally2team9 = null
local string ally2team10 = null
local string ally2team11 = null
local integer killhero0 = udg_Killhero0
local integer killhero1 = udg_Killhero1
local integer killhero2 = udg_Killhero2
local integer killhero3 = udg_Killhero3
local integer killhero4 = udg_Killhero4
local integer killhero5 = udg_Killhero5
local integer killhero7 = udg_Killhero7
local integer killhero8 = udg_Killhero8
local integer killhero9 = udg_Killhero9
local integer killhero10 = udg_Killhero10
local integer killhero11 = udg_Killhero11
local integer deathhero0 = udg_Deathhero0
local integer deathhero1 = udg_Deathhero1
local integer deathhero2 = udg_Deathhero2
local integer deathhero3 = udg_Deathhero3
local integer deathhero4 = udg_Deathhero4
local integer deathhero5 = udg_Deathhero5
local integer deathhero7 = udg_Deathhero7
local integer deathhero8 = udg_Deathhero8
local integer deathhero9 = udg_Deathhero9
local integer deathhero10 = udg_Deathhero10
local integer deathhero11 = udg_Deathhero11
local integer killhero6 = udg_Killhero6
local integer deathhero6 = udg_Deathhero6
local integer assist1 = udg_Assist1
local integer assist2 = udg_Assist2
local integer assist3 = udg_Assist3
local integer assist4 = udg_Assist4
local integer assist5 = udg_Assist5
local integer assist7 = udg_Assist7
local integer assist8 = udg_Assist8
local integer assist9 = udg_Assist9
local integer assist10 = udg_Assist10
local integer assist11 = udg_Assist11
local integer killcreeps1 = udg_Killcreeps1
local integer killcreeps2 = udg_Killcreeps2
local integer killcreeps3 = udg_Killcreeps3
local integer killcreeps4 = udg_Killcreeps4
local integer killcreeps5 = udg_Killcreeps5
local integer killcreeps7 = udg_Killcreeps7
local integer killcreeps8 = udg_Killcreeps8
local integer killcreeps9 = udg_Killcreeps9
local integer killcreeps10 = udg_Killcreeps10
local integer killcreeps11 = udg_Killcreeps11
local integer denaycreeps1 = udg_Denaycreeps1
local integer denaycreeps2 = udg_Denaycreeps2
local integer denaycreeps3 = udg_Denaycreeps3
local integer denaycreeps4 = udg_Denaycreeps4
local integer denaycreeps5 = udg_Denaycreeps5
local integer denaycreeps7 = udg_Denaycreeps7
local integer denaycreeps8 = udg_Denaycreeps8
local integer denaycreeps9 = udg_Denaycreeps9
local integer denaycreeps10 = udg_Denaycreeps10
local integer denaycreeps11 = udg_Denaycreeps11
local multiboard mb = udg_Mb
local integer spots1 = udg_MB_Spots1
local integer spots2 = udg_MB_Spots2
local integer spots3 = udg_MB_Spots3
local integer spots4 = udg_MB_Spots4
local integer spots5 = udg_MB_Spots5
local integer spots7 = udg_MB_Spots7
local integer spots8 = udg_MB_Spots8
local integer spots9 = udg_MB_Spots9
local integer spots10 = udg_MB_Spots10
local integer spots11 = udg_MB_Spots11
local integer cd1 = udg_CD1
local integer cd2 = udg_CD2
local integer cd3 = udg_CD3
local integer cd4 = udg_CD4
local integer cd5 = udg_CD5
local integer cd7 = udg_CD7
local integer cd8 = udg_CD8
local integer cd9 = udg_CD9
local integer cd10 = udg_CD10
local integer cd11 = udg_CD11
local string shinobi1 = null
local string shinobi2 = null
local string shinobi3 = null
local string shinobi4 = null
local string shinobi5 = null
local string shinobi7 = null
local string shinobi8 = null
local string shinobi9 = null
local string shinobi10 = null
local string shinobi11 = null
local string nukenin1 = null
local string nukenin2 = null
local string nukenin3 = null
local string nukenin4 = null
local string nukenin5 = null
local string nukenin7 = null
local string nukenin8 = null
local string nukenin9 = null
local string nukenin10 = null
local string nukenin11 = null
local boolean game = udg_EndGame
local integer spotsalli111 = 0
local integer spotsalli222 = 0
local integer spotsalli333 = 0
local integer spotsalli444 = 0
local integer spotsalli555 = 0
local integer spotsalli777 = 0
local integer spotsalli888 = 0
local integer spotsalli999 = 0
local integer spotsalli1000 = 0
local integer spotsalli1111 = 0
local code cot2 = null
local trigger trg = null
local integer integera = 1
local player pn = null
local integer goldlocal1 = 0
local integer goldlocal2 = 0
local integer goldlocal3 = 0
local integer goldlocal4 = 0
local integer goldlocal5 = 0
local integer goldlocal7 = 0
local integer goldlocal8 = 0
local integer goldlocal9 = 0
local integer goldlocal10 = 0
local integer goldlocal11 = 0
if game == false then
if udg_RectTeam1 == 0 then
call GroupRemoveUnit(udg_G1,u)
elseif udg_RectTeam1 > 0 then
call GroupAddUnit(udg_G1,u)
endif
if udg_TsunadeInteger == 2 then
set cot1 = function winnersanimation
call ForGroup(udg_G1,cot1)
endif
if GetUnitState(u1,life) <= 2500 and IsUnitInGroup(u1,udg_G1) == false and udg_TsunadeInteger == 0 then
set gg_snd_cunadedeloimeewssanin = CreateSound( "war3mapImported\\cunadedeloimeewssanin.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_cunadedeloimeewssanin, 3151 )
    call SetSoundChannel( gg_snd_cunadedeloimeewssanin, 0 )
    call SetSoundVolume( gg_snd_cunadedeloimeewssanin, 127 )
    call SetSoundPitch( gg_snd_cunadedeloimeewssanin, 1.0 )
call StartSound(gg_snd_cunadedeloimeewssanin)
call GroupAddUnit(udg_G1,u1)
set udg_TsunadeInteger = 1
call KillSoundWhenDone(gg_snd_cunadedeloimeewssanin)
set gg_snd_cunadedeloimeewssanin = null
endif
if IsUnitInGroup(u,udg_G1) == true then
call SetUnitAnimation( u, "Spell Channel" )
elseif IsUnitInGroup(u,udg_G1) == false then
call SetUnitAnimation(u,"Stand Alternate")
endif
if GetUnitState(u2,life) <= 2500 and IsUnitInGroup(u2,udg_G1) == false and udg_OrochimaruInteger == 0 then
set gg_snd_orochimaru2000hp = CreateSound( "war3mapImported\\orochimaru2000hp.mp3", false, false, false, 10, 10, "" )
    call SetSoundDuration( gg_snd_orochimaru2000hp, 956 )
    call SetSoundChannel( gg_snd_orochimaru2000hp, 0 )
    call SetSoundVolume( gg_snd_orochimaru2000hp, 127 )
    call SetSoundPitch( gg_snd_orochimaru2000hp, 1.0 )
call StartSound(gg_snd_orochimaru2000hp)
call GroupAddUnit(udg_G1,u2)
set udg_OrochimaruInteger = 1
call KillSoundWhenDone(gg_snd_orochimaru2000hp)
set gg_snd_orochimaru2000hp = null
endif
if game == false then
if cd1 > 0 then
set udg_CD1 = cd1 - 1
set cd1=udg_CD1
set rif1="|cffffffff" + I2S(cd1) + "|r"
set mbitem10=MultiboardGetItem(mb, spots1 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem10, rif1)
call MultiboardReleaseItem(mbitem10)
elseif cd1 == 0 then
set rif1=null
endif
if cd2 > 0 then
set udg_CD2 = cd2 - 1
set cd2=udg_CD2
set rif2="|cffffffff" + I2S(cd2) + "|r"
set mbitem11=MultiboardGetItem(mb, spots2 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem11, rif2)
call MultiboardReleaseItem(mbitem11)
elseif cd2 == 0 then
set rif2=null
endif
if cd3 > 0 then
set udg_CD3 = cd3 - 1
set cd3=udg_CD3
set rif3="|cffffffff" + I2S(cd3) + "|r"
set mbitem12=MultiboardGetItem(mb, spots3 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem12, rif3)
call MultiboardReleaseItem(mbitem12)
elseif cd3 == 0 then
set rif3=null
endif
if cd4 > 0 then
set udg_CD4 = cd4 - 1
set cd4=udg_CD4
set rif4="|cffffffff" + I2S(cd4) + "|r"
set mbitem13=MultiboardGetItem(mb, spots4 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem13, rif4)
call MultiboardReleaseItem(mbitem13)
elseif cd4 == 0 then
set rif4=null
endif
if cd5 > 0 then
set udg_CD5 = cd5 - 1
set cd5=udg_CD5
set rif5="|cffffffff" + I2S(cd5) + "|r"
set mbitem14=MultiboardGetItem(mb, spots5 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem14, rif5)
call MultiboardReleaseItem(mbitem14)
elseif cd5 == 0 then
set rif5=null
endif
if cd7 > 0 then
set udg_CD7 = cd7 - 1
set cd7=udg_CD7
set rif7="|cffffffff" + I2S(cd7) + "|r"
set mbitem15=MultiboardGetItem(mb, spots7 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem15, rif7)
call MultiboardReleaseItem(mbitem15)
elseif cd7 == 0 then
set rif7=null
endif
if cd8 > 0 then
set udg_CD8 = cd8 - 1
set cd8=udg_CD8
set rif8="|cffffffff" + I2S(cd8) + "|r"
set mbitem16=MultiboardGetItem(mb, spots8 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem16, rif8)
call MultiboardReleaseItem(mbitem16)
elseif cd8 == 0 then
set rif8=null
endif
if cd9 > 0 then
set udg_CD9 = cd9 - 1
set cd9=udg_CD9
set rif9="|cffffffff" + I2S(cd9) + "|r"
set mbitem17=MultiboardGetItem(mb, spots9 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem17, rif9)
call MultiboardReleaseItem(mbitem17)
elseif cd9 == 0 then
set rif9=null
endif
if cd10 > 0 then
set udg_CD10 = cd10 - 1
set cd10=udg_CD10
set rif10="|cffffffff" + I2S(cd10) + "|r"
set mbitem18=MultiboardGetItem(mb, spots10 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem18, rif10)
call MultiboardReleaseItem(mbitem18)
elseif cd10 == 0 then
set rif10=null
endif
if cd11 > 0 then
set udg_CD11 = cd11 - 1
set cd11=udg_CD11
set rif11="|cffffffff" + I2S(cd11) + "|r"
set mbitem19=MultiboardGetItem(mb, spots11 - 1, 3 - 1)
call MultiboardSetItemValue(mbitem19, rif11)
call MultiboardReleaseItem(mbitem19)
elseif cd11 == 0 then
set rif11=null
endif
if deathgold1 > 0 then
set udg_Deathgold1=deathgold1 - 1
set deathgold1 = udg_Deathgold1
if IsPlayerAlly(p15,p1) == true then
set ri1="|cff0000ff" + I2S(deathgold1) + "|r "
elseif IsPlayerEnemy(p1,p15) == true then
set ri111="|cff0000ff" + I2S(deathgold1) + "|r "
endif
elseif deathgold1 == 0 then
set deathgold1 = 0
set ri1 = null
set ri111 = null
endif
if deathgold2 > 0 then
set udg_Deathgold2=deathgold2 - 1
set deathgold2 = udg_Deathgold2
if IsPlayerAlly(p15,p2) == true then
set ri2="|cff00ffff" + I2S(deathgold2) + "|r " 
elseif IsPlayerEnemy(p15,p2) == true then
set ri222="|cff00ffff" + I2S(deathgold2) + "|r " 
endif
elseif deathgold2 == 0 then
set deathgold2 = 0
set ri2=null
set ri222 = null
endif
if deathgold3 > 0 then
set udg_Deathgold3=deathgold3 - 1
set deathgold3 = udg_Deathgold3
if IsPlayerAlly(p15,p3) == true then
set ri3="|cff6f2583" + I2S(deathgold3) + "|r " 
elseif IsPlayerEnemy(p15,p3) == true then
set ri333="|cff6f2583" + I2S(deathgold3) + "|r " 
endif
elseif deathgold3 == 0 then
set deathgold3 = 0
set ri3=null
set ri333 = null
endif
if deathgold4 > 0 then
set udg_Deathgold4=deathgold4 - 1
set deathgold4 = udg_Deathgold4
if IsPlayerAlly(p15,p4) == true then
set ri4="|cffffff00" + I2S(deathgold4) + "|r " 
elseif IsPlayerEnemy(p15,p4) == true then
set ri444 = "|cffffff00" + I2S(deathgold4) + "|r " 
endif
elseif deathgold4 == 0 then
set deathgold4 = 0
set ri4=null
set ri444 = null
endif
if deathgold5 > 0 then
set udg_Deathgold5=deathgold5 - 1
set deathgold5 = udg_Deathgold5
if IsPlayerAlly(p15,p5) == true then
set ri5="|cffd45e19" + I2S(deathgold5) + "|r "
elseif IsPlayerEnemy(p15,p5) == true then
set ri555="|cffd45e19" + I2S(deathgold5) + "|r "
endif
elseif deathgold5 == 0 then
set deathgold5 = 0
set ri5=null
set ri555 = null
endif
if deathgold7 > 0 then
set udg_Deathgold7=deathgold7 - 1
set deathgold7 = udg_Deathgold7
if IsPlayerAlly(p15,p7) == true then
set ri7="|cffff8080" + I2S(deathgold7) + "|r "
elseif IsPlayerEnemy(p15,p7) == true then
set ri777="|cffff8080" + I2S(deathgold7) + "|r "
endif 
elseif deathgold7 == 0 then
set deathgold7 = 0
set ri7=null
set ri777 = null
endif
if deathgold8 > 0 then
set udg_Deathgold8=deathgold8 - 1
set deathgold8 = udg_Deathgold8
if IsPlayerAlly(p15,p8) == true then
set ri8="|cff808080" + I2S(deathgold8) + "|r " 
elseif IsPlayerEnemy(p15,p8) == true then
set ri888="|cff808080" + I2S(deathgold8) + "|r "
endif
elseif deathgold8 == 0 then
set deathgold8 = 0
set ri8=null
set ri888 = null
endif
if deathgold9 > 0 then
set udg_Deathgold9=deathgold9 - 1
set deathgold9 = udg_Deathgold9
if IsPlayerAlly(p15,p9) == true then
set ri9="|cff8080ff" + I2S(deathgold9) + "|r " 
elseif IsPlayerEnemy(p15,p9) == true then
set ri999="|cff8080ff" + I2S(deathgold9) + "|r " 
endif
elseif deathgold9 == 0 then
set deathgold9 = 0
set ri9=null
set ri999 = null
endif
if deathgold10 > 0 then
set udg_Deathgold10=deathgold10 - 1
set deathgold10 = udg_Deathgold10
if IsPlayerAlly(p15,p10) == true then
set ri10="|cff008000" + I2S(deathgold10) + "|r " 
elseif IsPlayerEnemy(p15,p10) == true then
set ri1000="|cff008000" + I2S(deathgold10) + "|r " 
endif
elseif deathgold10 == 0 then
set deathgold10 = 0
set ri10=null
set ri1000 = null
endif
if deathgold11 > 0 then
set udg_Deathgold11=deathgold11 - 1
set deathgold11 = udg_Deathgold11
if IsPlayerAlly(p15,p11) == true then
set ri11="|cff808000" + I2S(deathgold11) + "|r "
elseif IsPlayerEnemy(p15,p11) == true then
set ri1111="|cff808000" + I2S(deathgold11) + "|r "
endif
elseif deathgold11 == 0 then
set deathgold11 = 0
set ri11=null
set ri1111 = null
endif
set msg1 = CreateForce()
call ForceEnumAllies(msg1,p1,null)
set cot1 = function CountUnitsInGroupEnum47
set udg_bj_groupCountUnits47 = 0
call ForForce(msg1,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg1) then
set goldlocal1 = GetPlayerState(p1,gold)
endif
set msg2 = CreateForce()
call ForceEnumAllies(msg2,p2,null)
set cot1 = function CountUnitsInGroupEnum48
set udg_bj_groupCountUnits48 = 0
call ForForce(msg2,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg2) then
set goldlocal2 = GetPlayerState(p2,gold)
endif
set msg3 = CreateForce()
call ForceEnumAllies(msg3,p3,null)
set cot1 = function CountUnitsInGroupEnum49
set udg_bj_groupCountUnits49 = 0
call ForForce(msg3,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg3) then
set goldlocal3 = GetPlayerState(p3,gold)
endif
set msg4 = CreateForce()
call ForceEnumAllies(msg4,p4,null)
set cot1 = function CountUnitsInGroupEnum50
set udg_bj_groupCountUnits50 = 0
call ForForce(msg4,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg4) then
set goldlocal4 = GetPlayerState(p4,gold)
endif
set msg5 = CreateForce()
call ForceEnumAllies(msg5,p5,null)
set cot1 = function CountUnitsInGroupEnum51
set udg_bj_groupCountUnits51 = 0
call ForForce(msg5,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg5) then
set goldlocal5 = GetPlayerState(p5,gold)
endif
set msg7 = CreateForce()
call ForceEnumAllies(msg7,p7,null)
set cot1 = function CountUnitsInGroupEnum52
set udg_bj_groupCountUnits52 = 0
call ForForce(msg7,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg7) then
set goldlocal7 = GetPlayerState(p7,gold)
endif
set msg8 = CreateForce()
call ForceEnumAllies(msg8,p8,null)
set cot1 = function CountUnitsInGroupEnum53
set udg_bj_groupCountUnits53 = 0
call ForForce(msg8,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg8) then
set goldlocal8 = GetPlayerState(p8,gold)
endif
set msg9 = CreateForce()
call ForceEnumAllies(msg9,p9,null)
set cot1 = function CountUnitsInGroupEnum54
set udg_bj_groupCountUnits54 = 0
call ForForce(msg9,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg9) then
set goldlocal9 = GetPlayerState(p9,gold)
endif
set msg10 = CreateForce()
call ForceEnumAllies(msg10,p10,null)
set cot1 = function CountUnitsInGroupEnum55
set udg_bj_groupCountUnits55 = 0
call ForForce(msg10,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg10) then
set goldlocal10 = GetPlayerState(p10,gold)
endif
set msg11 = CreateForce()
call ForceEnumAllies(msg11,p11,null)
set cot1 = function CountUnitsInGroupEnum56
set udg_bj_groupCountUnits56 = 0
call ForForce(msg11,cot1)
set cot1 = null
if IsPlayerInForce(p15,msg11) then
set goldlocal11 = GetPlayerState(p11,gold)
endif
call ForceClear(msg1)
call DestroyForce(msg1)
set msg1=null
call ForceClear(msg2)
call DestroyForce(msg2)
set msg2=null
call ForceClear(msg3)
call DestroyForce(msg3)
set msg3=null
call ForceClear(msg4)
call DestroyForce(msg4)
set msg4=null
call ForceClear(msg5)
call DestroyForce(msg5)
set msg5=null
call ForceClear(msg7)
call DestroyForce(msg7)
set msg7=null
call ForceClear(msg8)
call DestroyForce(msg8)
set msg8=null
call ForceClear(msg9)
call DestroyForce(msg9)
set msg9=null
call ForceClear(msg10)
call DestroyForce(msg10)
set msg10=null
call ForceClear(msg11)
call DestroyForce(msg11)
set msg11=null
set msg1 = CreateForce()
call ForceEnumEnemies(msg1,p1,null)
set cot1 = function CountUnitsInGroupEnum57
set udg_bj_groupCountUnits57 = 0
call ForForce(msg1,cot1)
set cot1 = null
set msg2 = CreateForce()
call ForceEnumEnemies(msg2,p2,null)
set cot1 = function CountUnitsInGroupEnum58
set udg_bj_groupCountUnits58 = 0
call ForForce(msg2,cot1)
set cot1 = null
set msg3 = CreateForce()
call ForceEnumEnemies(msg3,p3,null)
set cot1 = function CountUnitsInGroupEnum59
set udg_bj_groupCountUnits59 = 0
call ForForce(msg3,cot1)
set cot1 = null
set msg4 = CreateForce()
call ForceEnumEnemies(msg4,p4,null)
set cot1 = function CountUnitsInGroupEnum60
set udg_bj_groupCountUnits60 = 0
call ForForce(msg4,cot1)
set cot1 = null
set msg5 = CreateForce()
call ForceEnumEnemies(msg5,p5,null)
set cot1 = function CountUnitsInGroupEnum61
set udg_bj_groupCountUnits61 = 0
call ForForce(msg5,cot1)
set cot1 = null
set msg7 = CreateForce()
call ForceEnumEnemies(msg7,p7,null)
set cot1 = function CountUnitsInGroupEnum62
set udg_bj_groupCountUnits62 = 0
call ForForce(msg7,cot1)
set cot1 = null
set msg8 = CreateForce()
call ForceEnumEnemies(msg8,p8,null)
set cot1 = function CountUnitsInGroupEnum63
set udg_bj_groupCountUnits63 = 0
call ForForce(msg8,cot1)
set cot1 = null
set msg9 = CreateForce()
call ForceEnumEnemies(msg9,p9,null)
set cot1 = function CountUnitsInGroupEnum64
set udg_bj_groupCountUnits64 = 0
call ForForce(msg9,cot1)
set cot1 = null
set msg10 = CreateForce()
call ForceEnumEnemies(msg10,p10,null)
set cot1 = function CountUnitsInGroupEnum65
set udg_bj_groupCountUnits65 = 0
call ForForce(msg10,cot1)
set cot1 = null
set msg11 = CreateForce()
call ForceEnumEnemies(msg11,p11,null)
set cot1 = function CountUnitsInGroupEnum66
set udg_bj_groupCountUnits66 = 0
call ForForce(msg11,cot1)
set cot1 = null
call ForceClear(msg1)
call DestroyForce(msg1)
set msg1=null
call ForceClear(msg2)
call DestroyForce(msg2)
set msg2=null
call ForceClear(msg3)
call DestroyForce(msg3)
set msg3=null
call ForceClear(msg4)
call DestroyForce(msg4)
set msg4=null
call ForceClear(msg5)
call DestroyForce(msg5)
set msg5=null
call ForceClear(msg7)
call DestroyForce(msg7)
set msg7=null
call ForceClear(msg8)
call DestroyForce(msg8)
set msg8=null
call ForceClear(msg9)
call DestroyForce(msg9)
set msg9=null
call ForceClear(msg10)
call DestroyForce(msg10)
set msg10=null
call ForceClear(msg11)
call DestroyForce(msg11)
set msg11=null
if udg_bj_groupCountUnits47 > 0 then
set ally1 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits48 > 0 then
set ally2 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits49 > 0 then
set ally3 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits50 > 0 then
set ally4 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits51 > 0 then
set ally5 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits52 > 0 then
set ally7 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits53 > 0 then
set ally8 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits54 > 0 then
set ally9 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits55 > 0 then
set ally10 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits56 > 0 then
set ally11 = "|cffffffff"+" Ally:"+"|r"
endif
if udg_bj_groupCountUnits57 > 0 then
set enemy1 = "Enemy:"
endif
if udg_bj_groupCountUnits58 > 0 then
set enemy2 = "Enemy:"
endif
if udg_bj_groupCountUnits59 > 0 then
set enemy3 = "Enemy:"
endif
if udg_bj_groupCountUnits60 > 0 then
set enemy4 = "Enemy:"
endif
if udg_bj_groupCountUnits61 > 0 then
set enemy5 = "Enemy:"
endif
if udg_bj_groupCountUnits62 > 0 then
set enemy7 = "Enemy:"
endif
if udg_bj_groupCountUnits63 > 0 then
set enemy8 = "Enemy:"
endif
if udg_bj_groupCountUnits64 > 0 then
set enemy9 = "Enemy:"
endif
if udg_bj_groupCountUnits65 > 0 then
set enemy10 = "Enemy:"
endif
if udg_bj_groupCountUnits66 > 0 then
set enemy11 = "Enemy:"
endif
set ally1team1 = ri1+ally1+ri2 + ri3 + ri4 + ri5 +ri7 + ri8+ ri9 + ri10 + ri11+ enemy1 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally1team2 = ri2+ally2+ri1 + ri3 + ri4 + ri5 +ri7 + ri8+ ri9 + ri10 + ri11+ enemy2 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally1team3 = ri3+ally3+ri1 + ri2 + ri4 + ri5 +ri7 + ri8+ ri9 + ri10 + ri11+ enemy3 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally1team4 = ri4+ally4+ri1 + ri2 + ri3 + ri5 +ri7 + ri8+ ri9 + ri10 + ri11+ enemy4 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally1team5 = ri5+ally5+ri1 + ri2 + ri3 + ri4 +ri7 + ri8+ ri9 + ri10 + ri11+ enemy5 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally2team7 = ri7+ally7+ri1 + ri2 + ri3 + ri4 +ri5 + ri8+ ri9 + ri10 + ri11+ enemy7 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally2team8 = ri8+ally8+ri1 + ri2 + ri3 + ri4 +ri5 + ri7+ ri9 + ri10 + ri11+ enemy8 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally2team9 = ri9+ally9+ri1 + ri2 + ri3 + ri4 +ri5 + ri7+ ri8 + ri10 + ri11+ enemy9 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally2team10 = ri10+ally10+ri1 + ri2 + ri3 + ri4 +ri5 + ri7+ ri8 + ri9 + ri11+ enemy10 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
set ally2team11 = ri11+ally11+ri1 + ri2 + ri3 + ri4 +ri5 + ri7+ ri8 + ri9 + ri10+ enemy11 +ri111+ri222 + ri333 +ri444+ri555+ri777+ri888 +ri999 +ri1000 +ri1111
if IsPlayerAlly(p1,p0) == true then
set shinobi1 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p1,p6) == true then
set shinobi1 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p2,p0) == true then
set shinobi2 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p2,p6) == true then
set shinobi2 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p3,p0) == true then
set shinobi3 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p3,p6) == true then
set shinobi3 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p4,p0) == true then
set shinobi4 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p4,p6) == true then
set shinobi4 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p5,p0) == true then
set shinobi5 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p5,p6) == true then
set shinobi5 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p7,p0) == true then
set shinobi7 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p7,p6) == true then
set shinobi7 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p8,p0) == true then
set shinobi8 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p8,p6) == true then
set shinobi8 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p9,p0) == true then
set shinobi9 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p9,p6) == true then
set shinobi9 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p10,p0) == true then
set shinobi10 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p10,p6) == true then
set shinobi10 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if IsPlayerAlly(p11,p0) == true then
set shinobi11 = " - |cffff0000Shinobi|r: |cffff0000"
elseif IsPlayerAlly(p11,p6) == true then
set shinobi11 = " - |cff00ff00Nukenin|r: |cffff0000"
endif
if killhero0 + deathhero6 == deathhero0 + killhero6 then
if p15 == p1 then
call MultiboardSetTitleText(mb, ally1team1 + "(" + I2S(killhero1) + "/" + I2S(deathhero1) + "/" + I2S(assist1) + " - " + I2S(killcreeps1) + "/" + I2S(denaycreeps1) + shinobi1 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p2 then
call MultiboardSetTitleText(mb, ally1team2 + "(" + I2S(killhero2) + "/" + I2S(deathhero2) + "/" + I2S(assist2) + " - " + I2S(killcreeps2) + "/" + I2S(denaycreeps2) + shinobi2 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p3 then
call MultiboardSetTitleText(mb, ally1team3 + "(" + I2S(killhero3) + "/" + I2S(deathhero3) + "/" + I2S(assist3) + " - " + I2S(killcreeps3) + "/" + I2S(denaycreeps3) + shinobi3 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p4 then
call MultiboardSetTitleText(mb, ally1team4 + "(" + I2S(killhero4) + "/" + I2S(deathhero4) + "/" + I2S(assist4) + " - " + I2S(killcreeps4) + "/" + I2S(denaycreeps4) + shinobi4 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p5 then
call MultiboardSetTitleText(mb, ally1team5 + "(" + I2S(killhero5) + "/" + I2S(deathhero5) + "/" + I2S(assist5) + " - " + I2S(killcreeps5) + "/" + I2S(denaycreeps5) + shinobi5 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p7 then
call MultiboardSetTitleText(mb, ally2team7 + "(" + I2S(killhero7) + "/" + I2S(deathhero7) + "/" + I2S(assist7) + " - " + I2S(killcreeps7) + "/" + I2S(denaycreeps7) + shinobi7 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p8 then
call MultiboardSetTitleText(mb, ally2team8 + "(" + I2S(killhero8) + "/" + I2S(deathhero8) + "/" + I2S(assist8) + " - " + I2S(killcreeps8) + "/" + I2S(denaycreeps8) + shinobi8 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p9 then
call MultiboardSetTitleText(mb, ally2team9 + "(" + I2S(killhero9) + "/" + I2S(deathhero9) + "/" + I2S(assist9) + " - " + I2S(killcreeps9) + "/" + I2S(denaycreeps9) + shinobi9 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p10 then
call MultiboardSetTitleText(mb, ally2team10 + "(" + I2S(killhero10) + "/" + I2S(deathhero10) + "/" + I2S(assist10) + " - " + I2S(killcreeps10) + "/" + I2S(denaycreeps10) + shinobi10 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p11 then
call MultiboardSetTitleText(mb, ally2team11 + "(" + I2S(killhero11) + "/" + I2S(deathhero11) + "/" + I2S(assist11) + " - " + I2S(killcreeps11) + "/" + I2S(denaycreeps11) + shinobi11 + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
elseif killhero0 + deathhero6 > killhero6 + deathhero0 then
if p15 == p1 then
call MultiboardSetTitleText(mb, ally1team1 + "(" + I2S(killhero1) + "/" + I2S(deathhero1) + "/" + I2S(assist1) + " - " + I2S(killcreeps1) + "/" + I2S(denaycreeps1) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p2 then
call MultiboardSetTitleText(mb, ally1team2 + "(" + I2S(killhero2) + "/" + I2S(deathhero2) + "/" + I2S(assist2) + " - " + I2S(killcreeps2) + "/" + I2S(denaycreeps2) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p3 then
call MultiboardSetTitleText(mb, ally1team3 + "(" + I2S(killhero3) + "/" + I2S(deathhero3) + "/" + I2S(assist3) + " - " + I2S(killcreeps3) + "/" + I2S(denaycreeps3) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p4 then
call MultiboardSetTitleText(mb, ally1team4 + "(" + I2S(killhero4) + "/" + I2S(deathhero4) + "/" + I2S(assist4) + " - " + I2S(killcreeps4) + "/" + I2S(denaycreeps4) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p5 then
call MultiboardSetTitleText(mb, ally1team5 + "(" + I2S(killhero5) + "/" + I2S(deathhero5) + "/" + I2S(assist5) + " - " + I2S(killcreeps5) + "/" + I2S(denaycreeps5) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p7 then
call MultiboardSetTitleText(mb, ally2team7 + "(" + I2S(killhero7) + "/" + I2S(deathhero7) + "/" + I2S(assist7) + " - " + I2S(killcreeps7) + "/" + I2S(denaycreeps7) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p8 then
call MultiboardSetTitleText(mb, ally2team8 + "(" + I2S(killhero8) + "/" + I2S(deathhero8) + "/" + I2S(assist8) + " - " + I2S(killcreeps8) + "/" + I2S(denaycreeps8) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p9 then
call MultiboardSetTitleText(mb, ally2team9 + "(" + I2S(killhero9) + "/" + I2S(deathhero9) + "/" + I2S(assist9) + " - " + I2S(killcreeps9) + "/" + I2S(denaycreeps9) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p10 then
call MultiboardSetTitleText(mb, ally2team10 + "(" + I2S(killhero10) + "/" + I2S(deathhero10) + "/" + I2S(assist10) + " - " + I2S(killcreeps10) + "/" + I2S(denaycreeps10) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
if p15 == p11 then
call MultiboardSetTitleText(mb, ally2team11 + "(" + I2S(killhero11) + "/" + I2S(deathhero11) + "/" + I2S(assist11) + " - " + I2S(killcreeps11) + "/" + I2S(denaycreeps11) + " - |cffff0000Shinobi|r: |cffff0000" + I2S(killhero0) + "|r/|cff0000ff" + I2S(deathhero0) + "|r)")
endif
elseif killhero6 + deathhero0 > killhero0 + deathhero6 then
if p15 == p1 then
call MultiboardSetTitleText(mb, ally1team1 + "(" + I2S(killhero1) + "/" + I2S(deathhero1) + "/" + I2S(assist1) + " - " + I2S(killcreeps1) + "/" + I2S(denaycreeps1) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p2 then
call MultiboardSetTitleText(mb, ally1team2 + "(" + I2S(killhero2) + "/" + I2S(deathhero2) + "/" + I2S(assist2) + " - " + I2S(killcreeps2) + "/" + I2S(denaycreeps2) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p3 then
call MultiboardSetTitleText(mb, ally1team3 + "(" + I2S(killhero3) + "/" + I2S(deathhero3) + "/" + I2S(assist3) + " - " + I2S(killcreeps3) + "/" + I2S(denaycreeps3) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p4 then
call MultiboardSetTitleText(mb, ally1team4 + "(" + I2S(killhero4) + "/" + I2S(deathhero4) + "/" + I2S(assist4) + " - " + I2S(killcreeps4) + "/" + I2S(denaycreeps4) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p5 then
call MultiboardSetTitleText(mb, ally1team5 + "(" + I2S(killhero5) + "/" + I2S(deathhero5) + "/" + I2S(assist5) + " - " + I2S(killcreeps5) + "/" + I2S(denaycreeps5) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p7 then
call MultiboardSetTitleText(mb, ally2team7 + "(" + I2S(killhero7) + "/" + I2S(deathhero7) + "/" + I2S(assist7) + " - " + I2S(killcreeps7) + "/" + I2S(denaycreeps7) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p8 then
call MultiboardSetTitleText(mb, ally2team8 + "(" + I2S(killhero8) + "/" + I2S(deathhero8) + "/" + I2S(assist8) + " - " + I2S(killcreeps8) + "/" + I2S(denaycreeps8) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p9 then
call MultiboardSetTitleText(mb, ally2team9 + "(" + I2S(killhero9) + "/" + I2S(deathhero9) + "/" + I2S(assist9) + " - " + I2S(killcreeps9) + "/" + I2S(denaycreeps9) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p10 then
call MultiboardSetTitleText(mb, ally2team10 + "(" + I2S(killhero10) + "/" + I2S(deathhero10) + "/" + I2S(assist10) + " - " + I2S(killcreeps10) + "/" + I2S(denaycreeps10) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
if p15 == p11 then
call MultiboardSetTitleText(mb, ally2team11 + "(" + I2S(killhero11) + "/" + I2S(deathhero11) + "/" + I2S(assist11) + " - " + I2S(killcreeps11) + "/" + I2S(denaycreeps11) + " - |cff00ff00Nukenin|r: |cffff0000" + I2S(killhero6) + "|r/|cff0000ff" + I2S(deathhero6) + "|r)")
endif
endif
call ForceAddPlayer(msg, p0)
call ForceAddPlayer(msg, p1)
call ForceAddPlayer(msg, p2)
call ForceAddPlayer(msg, p3)
call ForceAddPlayer(msg, p4)
call ForceAddPlayer(msg, p5)
call ForceAddPlayer(msg, p6)
call ForceAddPlayer(msg, p7)
call ForceAddPlayer(msg, p8)
call ForceAddPlayer(msg, p9)
call ForceAddPlayer(msg, p10)
call ForceAddPlayer(msg, p11)
call ForForce(msg,cot)
set mbitem1 = MultiboardGetItem(mb, spots1 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem1, I2S(goldlocal1))
call MultiboardReleaseItem(mbitem1)
set mbitem1 = null
set mbitem2 = MultiboardGetItem(mb, spots2 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem2, I2S(goldlocal2))
call MultiboardReleaseItem(mbitem2)
set mbitem2 = null
set mbitem3 = MultiboardGetItem(mb, spots3 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem3, I2S(goldlocal3))
call MultiboardReleaseItem(mbitem3)
set mbitem3 = null
set mbitem4 = MultiboardGetItem(mb, spots4 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem4, I2S(goldlocal4))
call MultiboardReleaseItem(mbitem4)
set mbitem4 = null
set mbitem5 = MultiboardGetItem(mb, spots5 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem5, I2S(goldlocal5))
call MultiboardReleaseItem(mbitem5)
set mbitem5 = null
set mbitem7 = MultiboardGetItem(mb, spots7 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem7, I2S(goldlocal7))
call MultiboardReleaseItem(mbitem7)
set mbitem7 = null
set mbitem8 = MultiboardGetItem(mb, spots8 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem8, I2S(goldlocal8))
call MultiboardReleaseItem(mbitem8)
set mbitem8 = null
set mbitem9 = MultiboardGetItem(mb, spots9 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem9, I2S(goldlocal9))
call MultiboardReleaseItem(mbitem9)
set mbitem9 = null
set mbitem10 = MultiboardGetItem(mb, spots10 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem10, I2S(goldlocal10))
call MultiboardReleaseItem(mbitem10)
set mbitem10 = null
set mbitem11 = MultiboardGetItem(mb, spots11 - 1, 8 - 1)
call MultiboardSetItemValue(mbitem11, I2S(goldlocal11))
call MultiboardReleaseItem(mbitem11)
set mbitem11 = null
endif
set cot1 = null
set cot=null
set life = null
set gold=null
set u = null
set u1 = null
set u2 = null
set p0=null
set p1=null
set p2=null
set p3=null
set p4=null
set p5=null
set p6=null
set p7=null
set p8=null
set p9=null
set p10=null
set p11=null
set p15 = null
set mbitem0=null
set mbitem1=null
set mbitem2=null
set mbitem3=null
set mbitem4=null
set mbitem5=null
set mbitem6=null
set mbitem7=null
set mbitem8=null
set mbitem9=null
set mbitem10 = null
set mbitem11 = null
set mbitem12 = null
set mbitem13 = null
set mbitem14 = null
set mbitem15 = null
set mbitem16 = null
set mbitem17 = null
set mbitem18 = null
set mbitem19 = null
set mb = null
call ForceClear(msg)
call DestroyForce(msg)
set msg=null
call ForceClear(msg1)
call DestroyForce(msg1)
set msg1=null
call ForceClear(msg2)
call DestroyForce(msg2)
set msg2=null
call ForceClear(msg3)
call DestroyForce(msg3)
set msg3=null
call ForceClear(msg4)
call DestroyForce(msg4)
set msg4=null
call ForceClear(msg5)
call DestroyForce(msg5)
set msg5=null
call ForceClear(msg7)
call DestroyForce(msg7)
set msg7=null
call ForceClear(msg8)
call DestroyForce(msg8)
set msg8=null
call ForceClear(msg9)
call DestroyForce(msg9)
set msg9=null
call ForceClear(msg10)
call DestroyForce(msg10)
set msg10=null
call ForceClear(msg11)
call DestroyForce(msg11)
set msg11=null
elseif game == true then
if mb != null then
set udg_Mb = null
set mb = null
call PauseTimer(t)
call DestroyTimer(t)
set t = null
endif
endif
set t=null
endfunction
Radioactive #7 - 3 months ago 0
Голосов: +0 / -0
извини конечно но сжатый код доты легче читается чем твой
dondonchakka #8 - 3 months ago 0
Голосов: +0 / -0
Radioactive:
извини конечно но сжатый код доты легче читается чем твой
там не инициализцированы переменны а это будте где то что то непраивльно работать поставь local integer VT8 = 0
quq_CCCP #9 - 3 months ago 0
Голосов: +0 / -0
Карту в студию, мб еше что упустил, но я бы локально текст не менял в мультиборде, лишь менял строку текста.

Кстати а зачем менял GetObjectname? Оно там не просто так, оно нужно для локализации и хостботов.
Radioactive #10 - 3 months ago 0
Голосов: +0 / -0
это как смена текста локально?
Прикрепленные файлы
quq_CCCP #11 - 3 months ago 0
Голосов: +0 / -0
У тебя идут локально вызовы функции MbSetText, где создается обьект multiborditem. нужно не локально менять ячейку, а глобально, но текст ячейки задавать локально.

Дота так себе для копирования в свою карту.