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: Please help: H4 map editor, the combat event
Thread: Please help: H4 map editor, the combat event
cohen
cohen

Tavern Dweller
posted February 24, 2004 07:23 PM

Please help: H4 map editor, the combat event

I have some problems with the combat event. I want the hero to be ambushed, and depending on the result of the battle, I want different things to happen. The problem is that it doesn't matter if the hero win or lose the battle. The same branch alternative always follows...

For example. If I put one message in the "if defeated" branch and one message in the other, the same message is always shown after the battle. It doesn't matter if you win or lose. I don't know if this is a bug in the editor or if it's me not understanding it. I would be extremely grateful for any help.

Cohen

____________

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


Adventuring Hero
posted February 24, 2004 07:53 PM
Edited By: Pitsu on 24 Feb 2004

The branches in combat script do not work. Well, at least if you do not have Equilibris 3.4 add-on that was released a few days ago. Eq 3.4 is the first that claims to have fixed this bug.

Otherwise, make a script that determines if the number of creatures and heroes in this army after combat is greater than 0. If it is true, obviously the army won, if it is false, the army must have lost.
____________

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

Tavern Dweller
posted February 24, 2004 08:06 PM

Thanx!

That solved the problem...
____________

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


Adventuring Hero
EtherLight
posted February 24, 2004 08:11 PM

Whoops, you posted the same question in the H4 forum and I answered you there.  But Pitsu is right, just add in a PLUS total number of heroes, in case only heroes are left after the battle.
____________
~Celestial Heavens~

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