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 3.5 - WoG and Beyond > Thread: Neutral hero defending neutral town?
Thread: Neutral hero defending neutral town?
pdesbois
pdesbois


Adventuring Hero
posted August 16, 2011 05:22 AM

Neutral hero defending neutral town?

I believe this was possible in H4, but not in H3... Lets say I have a map with all 8 factions with their respective towns, and one 'bonus' town that belongs to none of them. Is it possible to assign a defending Hero in that town *without* him belonging to any of the other 8 factions?

Thanx - pdesbois

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


Known Hero
posted August 16, 2011 09:47 AM
Edited by Aleee at 09:47, 16 Aug 2011.

You can set the hero's owner to -1 and he or she will appear with a black flag. So you can try to use standard script #72 with !!HEx:O-1. However, this solution has not been included in the script by his author, and it's possible there were some reasons for it. But ERM help doesn't have a line with such a warning and I remember that I used it long ago.

You can try this for the first time in order to check whether it works:

ZVSE
!?BA0;
!!BA:H1/?y-1;
!!FU&y-1<>-2:E;
!!HE75:O-1 F10/10/10/10 A4/0 M17/1 I100;
!!BA:H1/75; //75 is just an example. Here special search function is required

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


Adventuring Hero
posted August 16, 2011 08:05 PM

Quote:
You can set the hero's owner to -1 and he or she will appear with a black flag. So you can try to use standard script #72 with !!HEx:O-1. However, this solution has not been included in the script by his author, and it's possible there were some reasons for it. But ERM help doesn't have a line with such a warning and I remember that I used it long ago.

You can try this for the first time in order to check whether it works:

ZVSE
!?BA0;
!!BA:H1/?y-1;
!!FU&y-1<>-2:E;
!!HE75:O-1 F10/10/10/10 A4/0 M17/1 I100;
!!BA:H1/75; //75 is just an example. Here special search function is required



thx for this , Aleee, i'll report any progress.

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


Responsible
Supreme Hero
posted August 16, 2011 11:29 PM

I have never tried HE:O-1, so I don't know what will happen if that Hero tries to run away (as a Town defender this would be possible in a Fortress with an Escape Tunnel), but if a neutral Hero is used as a battle defender without assigning it to a color, and that Hero retreats, usually the result is a crash.  (I suppose the program tries to put the Hero in a Tavern.)

ERM Help explains (see HE:O#/1 command) that you can assign a "dummy owner" to prevent this by adding the /1 at the end of the command.  Example:

!?BA0; (under some conditions, e.g., v998-v1000 = town location)
!!HE75:O0/1; assign HE75 to Red - but not really
!!BA:H75/1; make HE75 the defender

In battle, HE75 will still have a black flag (not Red), but will not run away, so there will not be a crash due to this.

This is done, for example, in the map "The Dragon Slaughter"; also in "Ice Arrow" and probably lots of other maps.

Maybe HE:O-1/1 would also work, but so far I have always seen it done the other way.

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


Adventuring Hero
posted August 17, 2011 09:13 AM

Wow - good to know JimV . thx for sharing this.

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