Oh hell... You just need ([PLAYERNUMBER]-1)*[EVERY HERO]
Something like this to make the heroes compatible And every player should have a "copy" (dummy without sight range/model and etc-jsut icons and values) and that's it.
- LOL
- Events
- Time - Every 0.03 seconds of game time
- Conditions
- Actions
- For each (Integer A) from 1 to 8, do (Actions)
- Unit Group - Pick every unit in (Units in (Playable map area) matching (((Unit-type of (Matching unit)) Equal to Blood Mage) and ((Owner of (Matching unit)) Not equal to OriginPlayer(Integer A)))) and do (Actions)
- Loop - Actions
- Unit - Set life of (Picked unit) to (Percentage life of (Random unit from (Units owned by Player 1 (Red) matching ((Unit-type of (Matching unit)) Equal to Blood Mage))))%
function PartyInterface takes nothing returns nothing
local integer i = 0
local integer c = 0
loop
exitwhen i > 12
set c=0
loop
exitwhen c > 12
call SetPlayerAlliance(Player(i), Player(c), ALLIANCE_SHARED_ADVANCED_CONTROL, true)
set c=c+1
endloop
set i=i+1
endloop
call SetReservedLocalHeroButtons(1)
endfunction
SetReservedLocalHeroButtons(1)
makes the hero icons appear right beneath your heroes thus removing the distance.SetReservedLocalHeroButtons(-1)