Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 5 - Modders Workshop > Thread: Replacing Haven for Renegades
Thread: Replacing Haven for Renegades
Kronos1000
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!

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
SS
SS


Known Hero
Strike first, Strike Hard
posted December 24, 2006 08:57 AM

hey visit here:

http://heroescommunity.com/viewthread.php3?TID=20628

just follow the steps and you will be fine. I a playing with these changes and they work.

____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Kronos1000
Kronos1000


Promising
Supreme Hero
Fryslân Boppe
posted December 24, 2006 05:39 PM

This isn't really what I wanted I wanted to crerate a script that works just in this map that replaces your normal troops and upgraded ones for Renegaes evry day.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
SS
SS


Known Hero
Strike first, Strike Hard
posted December 26, 2006 11:14 AM

oh I see you mean like a trigger thing in the game or a speacial ability for a knight. for that I think you need to look at mapobjects section.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
sfidanza
sfidanza


Promising
Supreme Hero
posted December 28, 2006 12:49 PM

Kronos1000, I replied in the other thread. Tell me if it works.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0193 seconds