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 ... 83 84 85 86 87 ... 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Aleee
Aleee


Known Hero
posted August 10, 2011 02:08 PM

It works fine for me. Make sure you use executable from the TE or ERA. I'm not sure but the addresses may be different.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 10, 2011 02:17 PM

When you ask scripts that can not work in 3.58, don't use 3.58. There is no way those scripts don't work if you use the right executable...
____________
Era II mods and utilities

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


Known Hero
posted August 11, 2011 03:10 AM

Quote:
When you ask scripts that can not work in 3.58, don't use 3.58. There is no way those scripts don't work if you use the right executable...


yes, you' re right, i hadn't used in wog/era... thanks

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 08:18 AM

So far, when a script is exclusively for ERA, it is specified. This answers also to HoL question about water creatures speed script. If nothing specified, the script works for both 3.58 and ERA.
____________
Era II mods and utilities

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


Promising
Famous Hero
feanor on DF2.ru
posted August 11, 2011 09:35 AM

Quote:
I'm not sure but the addresses may be different.

No, addresses the same.

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


Responsible
Supreme Hero
posted August 11, 2011 04:44 PM

@Salamandre and OxFEA

I used this hero rank changing script (for Edric) and it works.

;v666

!?FU77004;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2:;
!!UN:C6806764/4/?y2;
!!VRy3:S4 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1:S^Captain^;
!!el:;
!!en:;

!?FU77005;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2:;
!!UN:C6806764/4/?y2;
!!VRy3:S4 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;

However, is there a way to make it work for other heroes as well? I would like to make Aeris (hero id: 31) to be a Forest Guard instead of a Ranger and so copied this script and pasted it two times but only Edric was renamed to Captain and Aeris remained Ranger. Can anyone help?
____________
Not idly do the leaves of Lorien fall.

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


Known Hero
posted August 11, 2011 05:18 PM

Use
!!VRy3:S64 *y4 +4 +y2;
instead of
!!VRy3:S4 *y4 +4 +y2;

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 05:35 PM
Edited by Salamandre at 17:41, 11 Aug 2011.

Not only that, I am afraid the condition is here:

!!if&y1=2:;

Maybe that?:

!?FU77004;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1:S^Captain^;
!!el:;
!!en:;

!!if&y1=31:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1:S^Forest Guard^;
!!el:;
!!en:;

!?FU77005;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;

!!if&y1=31:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;

Why I can't add ID 31 to the first !!if?
Also not sure about !!en, this command I never used.
____________
Era II mods and utilities

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


Promising
Famous Hero
feanor on DF2.ru
posted August 11, 2011 05:42 PM

Quote:

Also not sure about !!en, this command I never used.

It is a part of !!if-!!el-!!en block.

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


Responsible
Supreme Hero
posted August 11, 2011 05:43 PM
Edited by Hero_of_Light at 17:49, 11 Aug 2011.

EDIT:

Yes it worked. So i only need to copy as many times i want (for other Heroes) this part on the first section:

!!if&y1=31:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1:S^Forest Guard^;
!!el:;
!!en:;

And this part on the second one right?

!!if&y1=31:;
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;

____________
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 August 11, 2011 05:46 PM
Edited by Salamandre at 17:52, 11 Aug 2011.

No, FU 77004 and 77005 are specific ERA functions. Another function will not work. The code I wrote works, but I wanted to make it shorter by adding Aeris condition in main !!if, any help?

@Edit, my answer was for your first post, HoL. As you changed it is ok. But it must be a way to add Aeris in same code as Edric, by only changing z1 and condition, I could not do that.
____________
Era II mods and utilities

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


Known Hero
posted August 11, 2011 05:52 PM

Well, it goes without saying that you have to modify the condition.

And you're right, some strange things happen there. It works for two heroes in their hero screens, but it does not work with two or more heroes when:
1) you choose the next hero without leaving a hero screen
2) when heroes meet each other
3) when you just point a cursor to a hero (hints shown are usually wrong)

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 05:59 PM

So the best option is still to modify text files and remove that faction heros, keeping only the ones you need renamed, it seems.
____________
Era II mods and utilities

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


Promising
Famous Hero
feanor on DF2.ru
posted August 11, 2011 06:02 PM
Edited by OxFEA at 18:09, 11 Aug 2011.

Quote:
Well, it goes without saying that you have to modify the condition.

And you're right, some strange things happen there. It works for two heroes in their hero screens, but it does not work with two or more heroes when:
1) you choose the next hero without leaving a hero screen
2) when heroes meet each other
3) when you just point a cursor to a hero (hints shown are usually wrong)

I said about it.


Also, from era.chm

Quote:
77004 - Enter Hero Screen

Event occurs when player tries to view hero screen. You can change hero's stats, arts etc. before the screen will be shown.
..
77005 - Exit Hero Screen

The same as 77004, only for exiting.


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


Known Hero
posted August 11, 2011 06:08 PM

It was clear from the beginning (as FU77004 is a hero screen function), but we still hoped.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 06:09 PM

It should be added in ERM help, as well as !!SS correction. Not everyone knows what file to open to see specific ERA functions. (not a blame, just an idea)
____________
Era II mods and utilities

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


Promising
Famous Hero
feanor on DF2.ru
posted August 11, 2011 06:17 PM

Quote:
The code I wrote works, but I wanted to make it shorter by adding Aeris condition in main !!if, any help?


I think:

!?FU77004;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2/y1=31:;              //specify hero ID's here
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1&y1=2:S^Captain^;       //and here
!!VRz1&y1=31:S^Forest Guard^;
!!el:;
!!en:;

!?FU77005;
!!HE-1:N?y1 B2/?y4;
!!if&y1=2/y1=31:;        //and here
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 06:18 PM
Edited by Salamandre at 18:27, 11 Aug 2011.

No, this does not work. I already tried it. Seems we have to paste again the whole code for next hero. Anyway, should be !!if|y1=2/y1=31. It works but only when selecting one hero at once.
____________
Era II mods and utilities

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


Promising
Famous Hero
feanor on DF2.ru
posted August 11, 2011 06:29 PM
Edited by OxFEA at 18:29, 11 Aug 2011.

Maybe replace !!if-!!el-!!en with !!FU:E on y1 not 2 and not 31?

Also, there are some bug:
- hire Edric
- hire another Knight (e.g. Orrin)
- open Edric window
- see "Edric ** level, Captain"
- click on Orrin portrait at the right side of hero window
- see "Orrin ** level, Captain"
- ???
- think about adding additional checks at !?CM2;

It must be expected, but I forgot about this aspect.

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


Admirable
Omnipresent Hero
Wog refugee
posted August 11, 2011 06:30 PM
Edited by Salamandre at 18:34, 11 Aug 2011.

I tried also by exiting the function, same result. Oh well...

This one works, but only when selecting one hero. After messing with more than one, z1 gets confused but only with knights.

!?FU77004;
!!HE-1:N?y1 B2/?y4;
!!if|y1=2/y1=31:;            
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/?v666;
!!UN:Cy3/4/9597928;
!!VRz1&y1=2:S^Captain^;      
!!VRz1&y1=31:S^Forest Guard^;
!!el:;
!!en:;

!?FU77005;
!!HE-1:N?y1 B2/?y4;
!!if|y1=2/y1=31:;      
!!UN:C6806764/4/?y2;
!!VRy3:S64 *y4 +4 +y2;
!!UN:Cy3/4/v666;
!!el:;
!!en:;
____________
Era II mods and utilities

 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 ... 83 84 85 86 87 ... 100 150 200 250 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.6957 seconds