|
Thread: Neutral hero defending neutral town? | |
|
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
|
|
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
|
|
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.
|
|
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.
|
|
pdesbois
Adventuring Hero
|
posted August 17, 2011 09:13 AM |
|
|
Wow - good to know JimV . thx for sharing this.
|
|
|