Statistics: Posted by CookieNoob — 31 May 2017, 00:21
Statistics: Posted by CookieNoob — 30 May 2017, 14:55
Statistics: Posted by nine2 — 30 May 2017, 14:53
SetArmyColor(1,128,128,38)
SetArmyColor(3,191,158,57)
SetArmyColor(5,128,83,38)
SetArmyColor(7,191,91,57)
SetArmyColor(9,128,38,38)
SetArmyColor(2,128,38,128)
SetArmyColor(4,158,57,191)
SetArmyColor(6,83,38,128)
SetArmyColor(8,91,57,191)
SetArmyColor(10,38,38,128)
Statistics: Posted by nine2 — 30 May 2017, 14:47
Statistics: Posted by nine2 — 30 May 2017, 14:45
pickcolor = function(army, i, totalnumber)
local red = math.sin(math.pi*i/totalnumber) * 127 + 128
local green = math.sin(math.pi*i/totalnumber+2*math.pi/3) * 127 + 128
local blue = math.sin(math.pi*i/totalnumber+4*math.pi/3) * 127 + 128
SetArmyColor(army,red,green,blue)
end
local sortedArmyList
local totalnumber = table.getn(ListArmies()) + 2 * NumberOfTeams
for i, army in sortedArmyList do
pickcolor(army, i, totalnumber)
end
Statistics: Posted by CookieNoob — 30 May 2017, 13:40
Statistics: Posted by Sheeo — 15 Sep 2014, 09:56
Statistics: Posted by nine2 — 12 Sep 2014, 17:37
Statistics: Posted by Sheeo — 12 Sep 2014, 15:36
Statistics: Posted by nine2 — 10 Sep 2014, 13:18
partytime wrote:
- is there any way to change army colours without going through this SetArmyColor?
partytime wrote:
- is there any way to make it so my simcallback and setarmycolor calls are not recorded into the replay?
partytime wrote:
- is there anything else I can do to get this to work?Thanks!
Statistics: Posted by Sheeo — 10 Sep 2014, 09:37