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 ... 182 183 184 185 186 ... 200 250 300 350 400 407 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted January 27, 2013 10:59 AM

UN:U is usually used to get all objects in a loop, but will not work with heroes.

For a specific hero, use !!HE$:P?y1/?y2/?y3;

For specific coordinates use loop through all heroes 0-1xx, exit if no owner, then !!HEx16:P?y1/?y2/?y3;

Check "Find me!" mod for era, all codes are inside.
____________
Era II mods and utilities

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

Tavern Dweller
posted January 28, 2013 01:01 PM

Hero modify

Hi
Iīm working with my brother to make own heroes. Sorry for the first post in wrong thread.

Iīm trying to made armageddon hero for the tower. I made following ERM code search from tutorials I found:

43$ =43 daremyth (N$ Check or get the hero's number).
B0/$ =Set/get the name of a hero.
B1/$ =Set/get the bios of a hero.
3/$ =hero specialize in spell
26 =armageddon spell
M#26/$1 =Set/check/get spell #1 at level $1 (0 = remove spell, 1 = give
        spell)armageddon is number 26 -> #26/$1
S#7/$1 =Set/check/get secondary skill (wisdom level 1)
S#14/$1 (Fire Magic level 1)

Can you tell me how to use it? This is my first time with ERM.
PS. Sorry for my lack in english

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


Promising
Undefeatable Hero
My BS sensor is tingling again
posted January 28, 2013 01:45 PM
Edited by artu at 13:47, 28 Jan 2013.

You must select a tower hero and replace his specialty, for example Daremyth:

!#HE43:X3/26;
!#HE43:M26/1;   Get Armageddon          
!#HE43:M51/0;   Delete Fortune
!#VRz643:S^Starts with the spell Armageddon.^;
!#UN:G2/43/1/330;  Set Specialty Picture
!#UN:G2/43/2/z643; Set Text


The setting of specialty pictures changes if you also edit un32 and un44 files, but don't go there yet.


Check the erm help section HE for Heroes and scroll down to HE:X for specialties. You will pick heroes and spells by their numbers and for that you need to check the right column of index/formats.Click the # and then format H is hero numbers, format SP is spell numbers etc.

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


Famous Hero
posted January 28, 2013 03:02 PM

May I ask that does morale and luck's effects has the same cap with the pics in the hero screen (which is 3)?! If not then is it possible to raise the cap, like having 6 Morale bonus for example.


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


Responsible
Supreme Hero
posted January 28, 2013 04:13 PM
Edited by JimV at 16:20, 28 Jan 2013.

Total morale can be seen by right-clicking the Morale icon:


Morale effects are explained the Heroes 3 manual (H3Manual.pdf):



So it appears that only Morale values up to 3 (or down to -3) affect battles, but extra Morale points guard against Morale penalties (such as visiting an empty Crypt).

To drag ERM into the discussion, see HE:R0 and HE:R1 in ERM Help to add or subtract from a Hero's Morale and Luck.

(OxFEA probably knows UN:C addresses to change the Morale effect probabilities.)

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

Tavern Dweller
posted January 29, 2013 10:02 AM

Thank you Artu.
I canīt believe I got it working

Does anybody happen to have script for scouting specialize?
+2 scouting radius...


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


Promising
Undefeatable Hero
My BS sensor is tingling again
posted January 29, 2013 12:49 PM

Quote:
Thank you Artu.
I canīt believe I got it working

Does anybody happen to have script for scouting specialize?
+2 scouting radius...




Keep checking HE section of ERM help, it's all in there, Damacon is my Scouting Specialist for example:

!#HE84:X0/3;                     [Damacon Scouting]
!#HE84:S22/0; Delete Offence
!#HE84:S3/2;  Get Advanced Scouting
!#HE84:S26/1;
!#VRz942:S^Receives a 5% per level bonus to Scouting skill.^;
!#UN:G2/84/1/302;
!#UN:G2/84/2/z942;

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 04:35 PM

There is no need to use a different z var for each hero description:

!#HE84:X0/3;                     [Damacon Scouting]
!#HE84:S22/0; Delete Offence
!#HE84:S3/2;  Get Advanced Scouting
!#HE84:S26/1;
!#UN:G2/84/1/302;

Specialties descriptions are triggered when clicking on specialty icon:

!?CM2; Hero Screen,
!!HE-1:N?y1; hero ID
!!CM:I?y2; location of click
!!FU&y2<>118:E; exit if not specialty clicked
!!VRz2&y1=84:S^Receives a 5% per level bonus to Scouting skill.^;
!!IF&y1=84:Q1/20/14/4:M^%Z2^; display
!!CM&y1=84:R0; disable regular

z2 can be used to trigger a different text for every hero.

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


Promising
Undefeatable Hero
My BS sensor is tingling again
posted January 29, 2013 04:56 PM

Quote:
There is no need to use a different z var for each hero description:

!#HE84:X0/3;                     [Damacon Scouting]
!#HE84:S22/0; Delete Offence
!#HE84:S3/2;  Get Advanced Scouting
!#HE84:S26/1;
!#UN:G2/84/1/302;

Specialties descriptions are triggered when clicking on specialty icon:

!?CM2; Hero Screen,
!!HE-1:N?y1; hero ID
!!CM:I?y2; location of click
!!FU&y2<>118:E; exit if not specialty clicked
!!VRz2&y1=84:S^Receives a 5% per level bonus to Scouting skill.^;
!!IF&y1=84:Q1/20/14/4:M^%Z2^; display
!!CM&y1=84:R0; disable regular

z2 can be used to trigger a different text for every hero.


So you use this script over and over and only change 84 (hero number)accordingly and you have many more zNumbers free for use and your mod conflicts with less mods. Anything I skipped?

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


Honorable
Supreme Hero
posted January 29, 2013 05:04 PM

For non hero screen other text will probably be displayed, but who cares?

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


Responsible
Supreme Hero
posted January 29, 2013 05:04 PM

Alternate method of arranging the conditions, to illustrate that there are many different ways of doing things in ERM (mais a' chacun son gout):
...
!!FU|y2<>118/y1<>84:E; exit if specialty not clicked or not HE84
!!IF:Q1/20/14/4:M^Receives a 5% per level bonus to Scouting skill.^; display
!!CM:R0; disable regular

(There have been a lot of good, topical comments here lately, I think.)

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 05:08 PM
Edited by Salamandre at 17:14, 29 Jan 2013.

Example of set descriptions for Orrin, Valeska and Edric (ID 0-2)

!?CM2; Hero Screen,
!!HE-1:N?y1; hero ID
!!CM:I?y2; location of click
!!FU&y2<>118:E; exit if not specialty clicked

!!VRz2&y1=0:S^Orrin specialty^;
!!VRz2&y1=1:S^Valeska specialty^;
!!VRz2&y1=2:S^Edric specialty^;
!!IF&y1<3:Q1/-1/-1/4^%Z2^; display
!!CM&y1<3:R0; disable regular

Script can have several variants, depending if you want to add pictures, if heroes ID's are following or not etc.

(JimV's one is another good example)

Quote:
For non hero screen other text will probably be displayed, but who cares?


I see, kingdom overview.
____________
Era II mods and utilities

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 05:58 PM
Edited by Salamandre at 18:01, 29 Jan 2013.

Quote:
So it appears that only Morale values up to 3 (or down to -3) affect battles,


Is there any way to check this in Heroes code? I modified sorrow in tew4 to growth until -9 (!!SS50:E3/9;) and from my tests, 7 slowed pikemen stacks affected with -9 morale get between 9-11 frozen turns until they reach the other bf side, while with regular -2 only ~3, sometimes even none.
____________
Era II mods and utilities

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


Honorable
Supreme Hero
posted January 29, 2013 06:11 PM

Quote:
I see, kingdom overview.

Hero meeting screen.

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 06:14 PM

How did you solved that for Phoenix?
____________
Era II mods and utilities

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


Honorable
Supreme Hero
posted January 29, 2013 06:34 PM

"Who cares?"

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 06:39 PM

Mortals are bowing to see at least once a proof of God. They ask for a divine sign. They care.
____________
Era II mods and utilities

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


Honorable
Supreme Hero
posted January 29, 2013 06:57 PM
Edited by Bersy at 18:58, 29 Jan 2013.

I don't care, because lots of signs were seen in my personal life. Enough to make conclusions.

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


Responsible
Supreme Hero
posted January 29, 2013 07:45 PM

Quote:
Quote:
So it appears that only Morale values up to 3 (or down to -3) affect battles...

Is there any way to check this in Heroes code?


Testing is a good way to check. I did some tests about a year ago on positive morale (which I have notes on somewhere but don't know where) and could not conclude that high values did anything. Sometimes I got a lot of morale bursts, and sometimes few, with very high morale. It takes several long tests to get data which is statistically significant. (I fought slowed pikemen and moved away from them, around an obstacle, for many rounds.)

I expect OxFEA or someone will give a better answer, but in the meantime I might do some memory searching.

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


Admirable
Omnipresent Hero
Wog refugee
posted January 29, 2013 08:23 PM
Edited by Salamandre at 20:25, 29 Jan 2013.

In fact I checked my notes and tests were not correctly done: fight was done against 7 pikemen stacks (speed modified to 2) with sorrow set to -9 then regular sorrow + ghost dragon, which meant they had -2 morale only (spell -2, creature -1, all same type +1), not -3(noticed there is BIG difference between -2 and -3).

I redid the test again making sure that now they have exactly -3 morale vs -9 and results are not so definitive as first time:

#   -9  -3

1   11  11
2   11   6
3    6   6
4    6   5
5    6   7
6    7   9
7   11   8
8    8   8
9    6   9
10  11   6

#  fight number, tested 10 times in a row
-9 how many time they froze until one of them reaches other side with -9 morale
-3 how many time they froze until one of them reaches other side with -3 morale

On average they froze 83 times with -9 vs 75 times with -3. Slight.

 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 ... 182 183 184 185 186 ... 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.4770 seconds