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: ERM help and discussion
Thread: ERM help and discussion This Popular Thread is 407 pages long: 1 50 100 150 200 250 ... 273 274 275 276 277 ... 300 350 400 407 · «PREV / NEXT»
Hero_Of_Light
Hero_Of_Light


Responsible
Supreme Hero
posted November 08, 2015 06:27 PM

Is there a way to edit a hero's gender (male female) and starting troops through text editing?

The reason I'm asking is that there is a bug in Heroes III regarding that matter. When you change the gender of a hero in a single scenario, the battle def remains unchanged. Even If you use the ERM command the gender is considered to be the original one (hero's battle def doesn't change in this way either).

As for starting troops I know the erm commands but If a hero is given different troops in a single scenario then the changing of starting troops can be a problem.

So I was wondering If I can edit these through txt files and make it a permanent change.
____________
Not idly do the leaves of Lorien fall.

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


Known Hero
Editing Heroes Without Limits
posted November 09, 2015 11:38 AM

Salamandre said:
You can't. That check is about valid and in-game mechanics, will look for how many towns, mines, estates heroes and so. All erm codes occur after that check.


Thanks Sal

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


Admirable
Omnipresent Hero
Wog refugee
posted November 09, 2015 05:57 PM
Edited by Salamandre at 17:58, 09 Nov 2015.

Hero_Of_Light said:
Is there a way to edit a hero's gender (male female) and starting troops through text editing?


Text editing, no (or I don't know how). Erm, yes. You can change hero def just before battle the restore after. Give me an example of hero gender replacement and I will give you code.

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


Responsible
Supreme Hero
posted November 10, 2015 01:11 PM

OK, here's what I want and the script I use:

I want Boragus (male Barbarian) to be transformed into an Elementalist (that's already done) and female. I have the command but battle def doesn't change. It's not that big a deal though. What troubles me is that even If I change it on map editor still the battle hero is unchanged (which would mean that this is a bug of the original game).

***Boragus (#154)
!!HE154:B2/17; ***Elementalist
!!CO154:T8;  ***Commander
!!HE154:R2/1; [Set Female]

I also would like to give her default starting troops. I have these commands:

!!HE154:C0/0/127/3 C0/1/127/3 C0/2/127/2; **change troops when starting hero
!!HE154:H0/127/2/3 H1/127/1/2 H2/127/0/2; **change troops in tavern

The command that changes the tavern troops works OK (although I think it doesn't work if hero is available in day one).

The other command however, changes starting troops of hero when placed in map, which works OK but it won't work if you want to give the hero alternative starting troops in a scenario. Suppose you want to give hero 10 Titans, they will be replaced with 3 Storm Elementals. That would be really a downgrade. That's why I was wondering If starting troops can be altered with txt editing.
____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 10, 2015 02:37 PM

ZVSE

!?BA0&1000;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^CH013.def^/^CH17.def^; Change barbar male to elementalist female

!?BA1&1000;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^CH17.def^/^CH013.def^; reverse after battle.

The rest of codes are okay as you did.

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


Responsible
Supreme Hero
posted November 10, 2015 03:48 PM

Wait, does this change all barbarians to Elementalists? I don't want that, just for Boragus.

Anyway as I said, it's no big deal, I don't want to add new triggers in game where it is not entirely necessary. The hero starting troops was more of a pressing matter, but still no big deal.

Anyway, thanks for your effort. I may use it and see how it goes. It's good to have it available even If I don't decide to use it. I would really prefer to permanently edit it through txt but since it can't be done it's ok.
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
feanor on DF2.ru
posted November 10, 2015 08:20 PM

Try this

https://dl.dropboxusercontent.com/u/61759222/HoMM/boragus_for_hol.bin

erapluginsbeforewog

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


Responsible
Supreme Hero
posted November 10, 2015 09:35 PM
Edited by Hero_Of_Light at 21:44, 10 Nov 2015.

Thanks, but it doesn't work entirely.

I'll tell you what did work (permanent transformation and not because of ERM commands)

Boragus is an Elementalist
Has Conflux commander
Has Elementalist starting stats
Starting troops are all Storm Elementals
In map editor Boragus' default gender is female

What didn't work was:
In battle Boragus has the Planeswalker def
In map editor Boragus is still placed as Barbarian (not that it matters much but I am just saying in case you tried to change that).

I don't know If it's too much to ask, but here goes:

Can you also make Catherine's troops be replaced with war Zealots (I'll change the numbers accordingly later). I am asking because in my new mod I gave her the ability to upgrade creatures to War Zealots (like Gelu and Dracon) and so I want her to start with the creature she upgrades to (like the other two).

And also, can you make Boragus start with normal Elementalist creatures as well? Meaning Pixies and Air or Water Elementals. I asked for Storm Elementals because I needed it for a campaign, but now that they can be changed in the map editor (without ERM scripts) there's no need for it. I would prefer for Boragus to have the plain Conflux starting troops.

If it's not too much trouble that is
____________
Not idly do the leaves of Lorien fall.

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


Known Hero
Editing Heroes Without Limits
posted November 10, 2015 11:43 PM

Hi guys,

I am using !!UNy1/y2/y3; to destroy a boat, but it's not working. I used the same script to destroy garrisons and it worked. Boats are indestructible?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 11, 2015 03:05 AM

tested and I can't delete it neither. The erm help says indeed to consider the lowest right hex, so you must add +1 to x coordinates, but that didn't work neither with boat. No idea.

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


Promising
Famous Hero
feanor on DF2.ru
posted November 11, 2015 01:24 PM
Edited by OxFEA at 13:25, 11 Nov 2015.

Hero_Of_Light said:

Can you also make Catherine's troops be replaced with war Zealots (I'll change the numbers accordingly later). I am asking because in my new mod I gave her the ability to upgrade creatures to War Zealots (like Gelu and Dracon) and so I want her to start with the creature she upgrades to (like the other two).

And also, can you make Boragus start with normal Elementalist creatures as well? Meaning Pixies and Air or Water Elementals. I asked for Storm Elementals because I needed it for a campaign, but now that they can be changed in the map editor (without ERM scripts) there's no need for it. I would prefer for Boragus to have the plain Conflux starting troops.

If it's not too much trouble that is

Reload
https://dl.dropboxusercontent.com/u/61759222/HoMM/boragus_for_hol.bin

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


Responsible
Supreme Hero
posted November 11, 2015 02:58 PM

Great, thanks!

The problems I related above:
In battle Boragus has the Planeswalker def
In map editor Boragus is still placed as Barbarian

Are still there, but it's no big deal in any case. Thanks again!
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
feanor on DF2.ru
posted November 11, 2015 03:38 PM

Replacement of hero def in battle

!?BF;
...
!!UN:C6919200/4/?y10;
!!VRy51:S0 *4 +y10 +21508; (0 - left, 1 - right)
!!UN:Cy51/4/?y52;

!!SN:E5622208/2/^ch17.def^; (def name)
!!UN:Cy51/4/v1;

!!UN:Cy52/4/?y53;
!!VRy53:+4;
!!UN:Cy53/4/?y54;
!!SN:Ey54/2/y52;

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


Known Hero
Editing Heroes Without Limits
posted November 11, 2015 06:46 PM

Salamandre said:
tested and I can't delete it neither. The erm help says indeed to consider the lowest right hex, so you must add +1 to x coordinates, but that didn't work neither with boat. No idea.


Thanks for the feedback Salamandre. I used !!OBy1/y2/y3:T0; and it worked

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


Responsible
Supreme Hero
posted November 15, 2015 01:53 PM

I don't know if anyone has ever had the same problem before but I noticed something strange concerning the First Aid tent. When you control the tent through first aid skill, you are able to heal any creature you like. I noticed that when it is the tent's turn, If you try to cast any spell, then the spell isn't cast and you loose the tent's turn altogether.

Is this an original Heroes III bug? Is this ERA related? Or is there something wrong with my scripts?
____________
Not idly do the leaves of Lorien fall.

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2015 04:01 PM

Its a bug and probably related to wog. Just don't cast when tent is active.

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


Known Hero
Editing Heroes Without Limits
posted November 15, 2015 04:28 PM

NEW damage

Hello!

I am making a script to differentiate types of damage and resistance.
For example: Fire attacks give more damage to dedroind and mummy.

The script is ready. Maybe a little bit unbalanced,but ok.

The problem is that I wan't to change the description of the damage when you put your mouse over an enemy stack.

For instance, It's my black dragon turn and I put the mouse over a dedroid the damage displayed is the normal one something like:
"5 (30-90)"
not my new damage which is 100% bigger that would be:
"10 (60-180"

I noted that z1 over the battlefield displays this information.

With IF:M^%Z1^; I can see the messange "5 (30-90)"

I just need a trigger to change that number always the mouse is over one creature. Which trigger I should use?  

PS: If someone have a better idea I accept

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2015 05:04 PM
Edited by Salamandre at 17:05, 15 Nov 2015.

it depends on how you script your fire damage. if you include it in creature stats (ie dragons get +10 damage, which will be fire) then it will display. If you script it post attack, then it won't. Usually, in any game, elemental attacks occur after physical damage, so I would let the normal attack display, then add in battle log "%Z1 (creature name) does 10 additional fire damage".

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


Known Hero
Editing Heroes Without Limits
posted November 15, 2015 06:21 PM

Salamandre said:
it depends on how you script your fire damage. if you include it in creature stats (ie dragons get +10 damage, which will be fire) then it will display. If you script it post attack, then it won't. Usually, in any game, elemental attacks occur after physical damage, so I would let the normal attack display, then add in battle log "%Z1 (creature name) does 10 additional fire damage".



I am using MF. y-9 is the damage bonus or the damage penalty:

!!MF:F?y-6;              final damage?

!!VRy-6&y-9>0:Sy-6*y-9;
!!VRy-6&y-9<0:Sy-6:y-9*-1;
!!MF:Fy-6;

In your example which trigger would be used?

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


Admirable
Omnipresent Hero
Wog refugee
posted November 15, 2015 06:36 PM

If you use MF then simply add modification in log:

!!VRz2:S^Does %Y-6 additional fire damage^;
!!MM:Sz2; (or MM:Mz2)

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 100 150 200 250 ... 273 274 275 276 277 ... 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.4985 seconds