Kronos1000
Promising
Supreme Hero
Fryslân Boppe
|
posted December 24, 2006 06:08 AM |
|
|
Replacing Haven for Renegades
I have a script that replaces all of the troops in your army for Renegades:
function NewDay()
peasant = GetHeroCreatures("RedHeavenHero01", 1);
militia = GetHeroCreatures("RedHeavenHero01", 2);
archer = GetHeroCreatures("RedHeavenHero01", 3);
marksman = GetHeroCreatures("RedHeavenHero01", 4);
footman = GetHeroCreatures("RedHeavenHero01", 5);
squire = GetHeroCreatures("RedHeavenHero01", 6);
griffin = GetHeroCreatures("RedHeavenHero01", 7);
impgriffin = GetHeroCreatures("RedHeavenHero01", 8);
priest = GetHeroCreatures("RedHeavenHero01", 9);
inquisistor = GetHeroCreatures("RedHeavenHero01", 10);
cavelier = GetHeroCreatures("RedHeavenHero01", 11);
paladin = GetHeroCreatures("RedHeavenHero01", 12);
angel = GetHeroCreatures("RedHeavenHero01", 13);
archangel = GetHeroCreatures("RedHeavenHero01", 14);
if peasant => 1 then
AddHeroCreatures("RedHeavenHero01", 106, peasant);
RemoveHeroCreatures("RedHeavenHero01", 1, peasant);
end;
if militia => 1 then
AddHeroCreatures("RedHeavenHero01", 106, militia);
RemoveHeroCreatures("RedHeavenHero01", 2, militia);
end;
if archer => 1 then
AddHeroCreatures("RedHeavenHero01", 107, archer);
RemoveHeroCreatures("RedHeavenHero01", 3, archer);
end;
if marksman => 1 then
AddHeroCreatures("RedHeavenHero01", 107, marksman);
RemoveHeroCreatures("RedHeavenHero01", 4, marksman);
end;
if footman => 1 then
AddHeroCreatures("RedHeavenHero01", 108, footman);
RemoveHeroCreatures("RedHeavenHero01", 5, footman);
end;
if squire => 1 then
AddHeroCreatures("RedHeavenHero01", 108, squire);
RemoveHeroCreatures("RedHeavenHero01", 6, squire);
end;
if griffin => 1 then
AddHeroCreatures("RedHeavenHero01", 109, griffin);
RemoveHeroCreatures("RedHeavenHero01", 7, griffin);
end;
if impgriffin => 1 then
AddHeroCreatures("RedHeavenHero01", 109, impgriffin);
RemoveHeroCreatures("RedHeavenHero01", 8, impgriffin);
end;
if priest => 1 then
AddHeroCreatures("RedHeavenHero01", 110, priest);
RemoveHeroCreatures("RedHeavenHero01", 9, priest);
end;
if inquisistor => 1 then
AddHeroCreatures("RedHeavenHero01", 110, inquisistor);
RemoveHeroCreatures("RedHeavenHero01", 10, inquisistor);
end;
if cavelier => 1 then
AddHeroCreatures("RedHeavenHero01", 111, cavelier);
RemoveHeroCreatures("RedHeavenHero01", 11, cavelier);
end;
if paladin => 1 then
AddHeroCreatures("RedHeavenHero01", 111, paladin);
RemoveHeroCreatures("RedHeavenHero01", 12, paladin);
end;
if angel => 1 then
AddHeroCreatures("RedHeavenHero01", 112, angel);
RemoveHeroCreatures("RedHeavenHero01", 13, angel);
end;
if archangel => 1 then
AddHeroCreatures("RedHeavenHero01", 112, archangel);
RemoveHeroCreatures("RedHeavenHero01", 14, archangel);
end;
end;
Trigger(NEW_DAY_TRIGGER, "NewDay")
I've been trying lots of things now BUT IT DOESN'T WORK!
Can someone help me this is freaking me out, thanks!
|
|