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: How to change heroes specialty
Thread: How to change heroes specialty
VikingII
VikingII


Adventuring Hero
posted February 09, 2018 01:52 AM

How to change heroes specialty

I'm trying to change some heroes specialty, for example, Ivor instead buff only elves, to buff the Archery skill (as the Knight Orrin).

I've opened HeroSpec.txt changing the entire "Elves" line for the entire "Archery" line, all 3 columns but apparently it is not working because still buffing elves (attack, defense and speed, only for elves).

Is there a way to change the heroes specialty?

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


Legendary Hero
posted February 09, 2018 12:25 PM

Era scripts or switch portraits and names between these 2 heroes. Hardest is exe editing.

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


Adventuring Hero
posted February 09, 2018 01:59 PM

Baronus said:
Era scripts or switch portraits and names between these 2 heroes. Hardest is exe editing.

Switch portraits and names is the first thing I've done since long ago, but they are from different factions and need to be placed it in the garrison instead select from the start menu.

Which era script I should use? Is there a script already made, or a map modded to copy the script to mine?

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


Legendary Hero
posted February 09, 2018 03:21 PM
Edited by Baronus at 15:24, 09 Feb 2018.

Baronus

ZVSE
!#HEn1:Xn2/n3

n1 hero number
n2 kind of ability
n3 ability details

see ERM help and mods. Which n2 is Orrin. I dont know.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 09, 2018 07:47 PM

The problem is that such questions should be in the ERM help thread, not out of it, as this concerns erm commands. If you ask them outside, potential scripters visiting erm thread will miss them.
____________
Era II mods and utilities

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


Adventuring Hero
posted February 09, 2018 08:32 PM
Edited by VikingII at 20:33, 09 Feb 2018.

Baronus said:
ZVSE
!#HEn1:Xn2/n3

n1 hero number
n2 kind of ability
n3 ability details

see ERM help and mods. Which n2 is Orrin. I dont know.


I have found this:

ZVSE
!#HE21:X1/Archery

which 21 is Ivor, 1 is Archery, and... instead n3 I copied Archery (I don't know if this is the "ability details" you've said).

But having this, how to put it into the game? should I make a mod with the mod manager or other application? Thank you

Salamandre said:
The problem is that such questions should be in the ERM help thread, not out of it, as this concerns erm commands. If you ask them outside, potential scripters visiting erm thread will miss them.

I'm very sorry, I didn't know, can you move this thread to that section? maybe that would be the best.

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

Hero of Order
Part of the furniture
posted February 09, 2018 10:55 PM

VikingII said:
I'm very sorry, I didn't know, can you move this thread to that section? maybe that would be the best.


I can move threads to other forum sections, but I can't move a thread into another thread. I recommend that you post your original question in the ERM thread instead.
____________
The last Reasonable Steward of Good Game Design and a Responsible Hero of HC. - Verriker

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


Adventuring Hero
posted February 09, 2018 11:13 PM

Maurice said:
VikingII said:
I'm very sorry, I didn't know, can you move this thread to that section? maybe that would be the best.


I can move threads to other forum sections, but I can't move a thread into another thread. I recommend that you post your original question in the ERM thread instead.

I'm doing this now, forget this tread so. Thank you.

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


Legendary Hero
posted February 10, 2018 09:58 AM

For Archery secondary skill:
ZVSE
!#HE21:X0/1

X0 is secondary skills - kind of ability
1 is archery - ability details

Put in mods/myscripts/data/s
Add word - myscripts to mod list. Then it works.

Better is to have single topic for it because searching in near 350 number topic is hard.

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


Adventuring Hero
posted February 10, 2018 03:29 PM
Edited by VikingII at 15:43, 10 Feb 2018.

Baronus said:
For Archery secondary skill:
ZVSE
!#HE21:X0/1

X0 is secondary skills - kind of ability
1 is archery - ability details

Put in mods/myscripts/data/s
Add word - myscripts to mod list. Then it works.

Better is to have single topic for it because searching in near 350 number topic is hard.


After many attempts I've managed to make the mod but it is not working, since I'm starting I will describe all steps I've done:

1. Write in plain text with the notepad:
ZVSE
!#HE21:X0/1
Save as txt in the folder created as you've described.

2. Change the .txt extension to .erm (manually, just edit on Windows, but then Opened with ERM scripter and save it again to be sure)

3. In the mod manager verify the the new mod to create list.txt

4. When start new game this message appears:

ERM has wrong syntax.
Disabled
21:X0

(I have a custom map with Ivor in the garrison with some elves to test and the elves still having +1 in speed, as the vanilla Ivor, so I verify that the specialty still not changing to archery as Orrin).

Apparently the mod is created (big step for me!), but still missing something in the syntax.

NOTE: In the tutorial I've found this command "!!HE" to do that thing, I've tested that way and still not working, the error at load the game is similar but longer: "21:X0/1"

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


Admirable
Omnipresent Hero
Wog refugee
posted February 10, 2018 03:34 PM

Because erm scripts from Baronus are like his english, incomplete

ZVSE
!#HE21:X0/1;

(this will change specialty but NOT the previous text of old specialty)

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


Promising
Supreme Hero
Researching Magic
posted February 10, 2018 04:39 PM
Edited by RerryR at 16:44, 10 Feb 2018.

You could for example disable the standart text when rightclicking Ivors speciality icon and replace with your text:

!?CM2;
!!CM:F?v3 I?v4 S?v5; where we click and click subtype
!!HE-1:N?y6; [Get current hero #]
!!FU&y6<>21:E; [Exit if not Ivor]
!!if&v3=512/v4=118:; if right click and specialty icon are clicked
!!IF:Q1/21/60/4^"Ivor likes big bows"^; show description for Hero Speciality when right click
!!CM:R0; disable standard reaction
!!en:;

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


Legendary Hero
posted February 10, 2018 06:11 PM

I know that text is needed but give new in ERM person time to learn step by step.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 10, 2018 07:05 PM

is not about text, you forgot the syntax:

!!HE21:X0/1 will give error and will not work

!!HE21:X0/1; is correct

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


Adventuring Hero
posted February 10, 2018 07:29 PM

Salamandre said:
Because erm scripts from Baronus are like his english, incomplete

ZVSE
!#HE21:X0/1;

(this will change specialty but NOT the previous text of old specialty)



Now it works, thank you! (My English would also be as bad but I don't know because it is not my first language, hehe)

RerryR said:
You could for example disable the standart text when rightclicking Ivors speciality icon and replace with your text:

!?CM2;
!!CM:F?v3 I?v4 S?v5; where we click and click subtype
!!HE-1:N?y6; [Get current hero #]
!!FU&y6<>21:E; [Exit if not Ivor]
!!if&v3=512/v4=118:; if right click and specialty icon are clicked
!!IF:Q1/21/60/4^"Ivor likes big bows"^; show description for Hero Speciality when right click
!!CM:R0; disable standard reaction
!!en:;

Perfect, but... since I will do the same with many other heroes, maybe 10 heroes, should I do what I've done in my first post? (just change the table where specialties are described), it sounds simpler in therms of processing...



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


Legendary Hero
posted February 10, 2018 08:33 PM

Era is not my language. Im only one who help him.  We have as I see a lot of ERA specialists who dont want help only to find mistakes if someone help.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 10, 2018 08:45 PM

Giving free codes, especially wrong ones isn't helping, it is doing the job he should do. If you do so without explaining how is done, he will ask again, then again and then again, because this is what you created, a dependent user, instead of a smart one. Real help is difficult and requires a lot of time, thats why you should let experienced people manage it, instead of moralizing while giving clumsy codes that we must fix afterwards.

Moreover, such requests should be in the appropriate thread, not because we like order, but because for new users it will be much easier when browsing erm help to find previous similar requests.
____________
Era II mods and utilities

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


Legendary Hero
posted February 10, 2018 08:47 PM

So help him! My help was good because he got it. He read something he knows now better. I only give him road to learn. Rest give him nothing. I tell about help him you about me.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 10, 2018 09:05 PM

yes, this is what I did

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


Adventuring Hero
posted February 10, 2018 09:56 PM
Edited by VikingII at 21:57, 10 Feb 2018.

mmm boys, if it helps to the improvement to this community, I would say that I'm modder since Baldur's Gate till Skyrim, modding is not like other computing specialty, you need to know about everything, and worse, each game is different, starting from scratch. It is hard when you were able to do amazing things in another game and need to start form the basics in a new game...

In my experience, I've learned a lot from more experienced modders' examples, I appreciate Salamandre's tips but for a starter (who knows nothing) was more like "aha... so, I will need to spend (again) weeks learning how to mod my current game to only change 1 thing... maybe I will play replacing the hero in the map editor as always and that's all for now, maybe in the future I will became a real modder with more time"... I were about to quit when Baronus's example (after Salamander's correction xD), showed me that, what I wanted, were more easy I thought, encouraging me to continue learning, slowly, at my time because this is a hobby for me, not a job.

What I'm wanting to say is examples does not generates "dummy-copy-paste-semi-moders", at least in my experience, examples gives hope.

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