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 > MapHaven Guild > Thread: h4 - hero script
Thread: h4 - hero script
overlord
overlord

Tavern Dweller
posted September 06, 2004 01:23 PM

h4 - hero script

hello.

you can in the mapeditor click on any army and put some script, you can even click on the hero inside the army window and write any events just for him.
now my question.
I want to do a global event that will affect any heroes in play.

the event is time based so it will be trigged for every hero in play X times, once or repetely.
the script checks the heroes skills/artifacts and grant them additional bonuses like power ups/creatures/resoureces and more.

i have no problem doing the script inside a specific hero but i don't know how to do it global.

any suggestions?

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


Honorable
Legendary Hero
Back from the Dead
posted September 07, 2004 03:32 AM

Apply it to all the heroes

EG:  hero does this
other hero does it at the same time

yes, this will take a while, but if you use the copy paste thing it will be faster.  I think.  i dont have ERM.  Good luck!
____________
How exactly is luck a skill?

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

Tavern Dweller
posted November 10, 2004 01:54 AM

I'm not sure exactly what you want to do, but if you want all placed heroes to get certain bonuses when certain criteria are met you can do it as follows:

Place a neutral (no alignment) hero icon on the map.  Add your script to it.  Now, drag it back into your hero palette (this will remove it from the map).  Now you can add as many instances of that non-alignment hero to your map as you want (and after you place it on the map you can select a class, a sex, and even a portrait).  Of course, this will limit your script only to starting heroes.  I can't think of a way to make a global event that would effect heroes hired from an Inn during gameplay (other than using a placed event or a town event).
____________

 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.0131 seconds