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 ... 258 259 260 261 262 ... 300 350 400 407 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted April 15, 2015 10:03 PM
Edited by Salamandre at 22:08, 15 Apr 2015.

The proper way is BM:M of course. EA is too restrictive of experience stack and eats a slot for nothing. Of course, studying some of the maps already done would save some time, as 99% of what is asked is already scripted but anyway, here is my script from Tew 3, if hero has shield 163, a spell is added every 100 victorious battles. You take from it what need.

!?BR&1000/v7238<>1/v997>-1; every battle round
;shield 163 gives up to 6 spells
!!BA:H0/?y1 H1/?y2; check hero attacker:defender
!!HEy1:O?y3; !!HEy2&y2>-1:O?y4; check their color
!!HEy1:A2/163/?y5/?y6; check if they have the shield equipped
!!HEy2&y2>-1:A2/163/?y7/?y8;
!!DO15378421/0/20/1&y3=0/y6>0:Py1; do a loop through both heroes stacks
!!DO15378421/21/41/1&y2>-1/y4=0/y8>0:Py2;


!?FU15378421;
;x1 hero id
!!BMx16:T?y1; check battle stack type
!!if|y1<145/y1>149:; here it skips war machines
!!IF:Wx1; check hero w vars (129 hold number of battles won)
!!BMx16:M43/999/3; bloodlust  add spells
!!BMx16&w129>99:M41/999/3; bless
!!BMx16&w129>199:M48/999/3; prayer
!!BMx16&w129>299:M27/999/3; shield
!!BMx16&w129>399:M58/999/3; counterstrike
!!BMx16&w129>499:M53/999/3; haste
!!en:;

And this is how it looks when click on shield (hero already won 400+ battles, need 57 more for the last spell:


And as you see, the spells are added for 999 battles turns (indefinitely) and every battle turn, so dispel doesn't remove.

____________
Era II mods and utilities

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


Famous Hero
Yes
posted April 15, 2015 10:31 PM

I like the roman soldier

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


Hired Hero
posted April 15, 2015 11:06 PM
Edited by CrazzieGamerPL at 23:14, 15 Apr 2015.

Thank you Salamandre for those scripts, they surely will help me a lot since i always have huge problem with the !BM:XXXX. I will try those scripts when i will have time . Still i have 2 question

Can you change the Gender of the Hero on the battlefield? (I know that there is script for example this script : !!HE#:R2/$; Where # is the number of hero and $ is : 0 - Male 1 - Female i believe. But these scripts don't change the gender of the hero on the battlefield. Do you know the script for that?)

Do you know the limit of Expierience skill slots?

Edit : Ok fixed my bad ^^".

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


Admirable
Omnipresent Hero
Wog refugee
posted April 15, 2015 11:08 PM
Edited by Salamandre at 07:38, 16 Apr 2015.

For changing battle hero graphics, you need redirect commands:

!?BA0&1000;
!!SN:L^era.dll^/?y1 Ay1/^RedirectFile^/?y2 Ey2/1/^CH01.def^/^CH00.def^; this will change cleric graphics (female) to knight graphics (male), look in H3sprite.lod, tag combat heroes for respective defs names.

Note that this command will change ALL clerics graphics to knights so if you want it only for one particular hero, you must do the battle checks before (who is hero etc) then reset the graphics in !?BA1 trigger (post battle)

I don't understand what you mean by experience limits.


____________
Era II mods and utilities

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


Hired Hero
posted April 16, 2015 09:30 AM

Thanks about script, i meant those slots which you were talking about in your previous post, but still this will help me a lot thanks

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


Hired Hero
posted April 16, 2015 03:48 PM
Edited by CrazzieGamerPL at 15:50, 16 Apr 2015.

Can somebody explain me what i'm doing wrong with these scripts?

Quote:
ZVSE
!?FU11111;
!!VRx10:Sx4;
!!VRv1:C8/7/2;
!!VRx4&x10>0:Sx10+7960963;
!!VRx5&x10>0:Sx10+7960775;
!!VRx6&x10>0:Sx10+7960587;
!!UN&x10>0:Cx4/1/?y1 Cx5/1/?y2 Cx6/1/?y3;
!!Cx7/1/?y4 Cx8/1/?y5 Cx9/1/?y6;
!!VRv1&x10>0:Cy1/y2/y3/y4/y5/y6;

!!VRx4:Sx1+7960963;
!!VRx5:Sx1+7960775;
!!VRx6:Sx1+7960587;

!!UN:Cx4/1/v1 Cx5/1/v2 Cx6/1/v3;
!!UN&x10>0:Cx7/1/y4 Cx8/1/y5 Cx9/1/y6;
!!MA:Bx1/3;
!!VRy1:S8700+x1;
!!VRvy1:Sx2*10000+x3;

!#FU11111: P16/37/3;


!?FU11112;
!!BMx16:T?y1 N?y2 H?y3;
!!FU&y1<0|y1>196/y2<1/y3<1:E;
!!VRy4:S8700+y1;
!!FU&vy4<1:E;
!!VRy5:Svy4:10000;
!!BMx16:U4/y5;

!?BR&1000;
!!DO11112/0/41/1: P;

!?BG0;
!!VRv9215:C-1/-1/-1/-1/-1;
!!BG:A?y10 N?y11;

!!FU&y10<>10|y11<0/y11>41:E;
!!BMy11:T?y3;
!!FU|y3<0/y3>196:E;

!!VRy4:Sy3+8700;
!!FU&vy4<1:E;
!!BG:E?v9215;
!!VRv9216:Sy3;

!!VRy5:Svy4:10000;
!!BMy11:Gy5/?v9217/?v9218;


!?BG1&v9215<>-1;

!!BM21: P?y1;
!!VRy7: Sv9216+8700;
!!FU&vy7<1:E;
!!VRy5:Svy7:10000;
!!VRy6:Sy5*10000;
!!VRy8:Svy7-y6;

!!FU&y8<1:E;
!!BMv9215:Gy5/?y1/?y3;
!!BMv9215&v9217>0:Gy5/v9217/v9218;
!!BMv9215&y3=>v9218/y8>v9217/y1>0:Gy5/y8/y3;
!!VRv9215:S-1;
!!BU:R;


I checked like 10 times in a row and i don't see any error. This script should allow creature with nr. 17 (i believe these were dwarves) to cast cure spell. But whenever i'm trying to lunch game i'm getting huge error about that script. Can somebody help me please ? I did space betwen : P so there will be no emoticons xD

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


Admirable
Omnipresent Hero
Wog refugee
posted April 16, 2015 03:59 PM
Edited by Salamandre at 16:08, 16 Apr 2015.

CrazzieGamerPL said:
!!Cx7/1/?y4 Cx8/1/?y5 Cx9/1/?y6;
<<--UN:

Where did you find this script? There are invalid parameters, instructions in FU11111 have only x1-x3 but the function iktself uses up to x10.
Also use the red cross icon on left to prohibit emoticons.




____________
Era II mods and utilities

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


Famous Hero
Yes
posted April 16, 2015 04:05 PM
Edited by husham123 at 16:07, 16 Apr 2015.

LOL, Sala, how could you script things like this ?
I didn't even imagine to try this, I guess it's pretty hard

@CrazzyGamingPL
Why don't you use the [ /smileys ] ?
This think disables emoticons.
Remember not to leave space between
[ and /
and
s and ]



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


Admirable
Omnipresent Hero
Wog refugee
posted April 16, 2015 04:09 PM
Edited by Salamandre at 16:10, 16 Apr 2015.

Husham, if you don't stop posting when you have nothing to say, the moderator will take care. So please, this is NOT a chat room.
____________
Era II mods and utilities

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


Hired Hero
posted April 16, 2015 04:12 PM

@Salamandre

I found script in this [url=http://www.forum.acidcave.net/topic.php?TID=1163]thread on acid cave[/url] i have used almost all scripts from this thread and every script worked fine for me. Right now i had a problem with those 2 (dunno why). still thanks for help

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


Admirable
Omnipresent Hero
Wog refugee
posted April 16, 2015 04:14 PM
Edited by Salamandre at 16:17, 16 Apr 2015.

The problem is here:

!#FU11111:Pnr_stworzenia/zakl&#281;cie/liczba_tur_lub_moc;**t&#261; linijk&#281; mo&#380;na kopiowa&#263;

There must be 10 parameters there and I think each word between the _ explains what to input, but I don't understand polish.
____________
Era II mods and utilities

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


Hired Hero
posted April 16, 2015 04:22 PM
Edited by CrazzieGamerPL at 16:22, 16 Apr 2015.

I can translate for you :) :

Quote:
!#FU11111:Pnr_stworzenia/zakl&#281;cie/liczba_tur_lub_moc;**t&#261; linijk&#281; mo&#380;na kopiowa&#263;


nr stworzenia - means the number of creature (for example 1 is pikeman etc.)

zaklecie - spell nr. (37 is cure)

luczba tur lub moc - means the number of turns/power of the spell

So the whole line should look like this i believe :

!#FU11111:P17/37/10;

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


Admirable
Omnipresent Hero
Wog refugee
posted April 16, 2015 04:25 PM

No, it should have 10 parameters, not only 3. So each word means one parameter. For example, number of turns is one, spell power is another, but you think is same.
____________
Era II mods and utilities

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


Hired Hero
posted April 16, 2015 06:07 PM
Edited by CrazzieGamerPL at 18:08, 16 Apr 2015.

I understand what you're trying to say Salamandre, but still do you know what can fix the problem with this script Salamandre? Because previously it worked for me fine but right now it doesn't work lol .

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


Admirable
Omnipresent Hero
Wog refugee
posted April 16, 2015 06:26 PM

Some addresses were changed from wog 3.58 to Era, so I guess the UN:C command now are wrong. Ask Altair for update.
____________
Era II mods and utilities

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


Hired Hero
posted April 16, 2015 09:05 PM

@Salamandre

Friend, i have checked once again this script i was thinking about it for hour and then i have finally found, this is why this script didn't worked properly and i had crashes:

Quote:
ZVSE

!#FU11111:P17/37/2/134;


Where :

17 - is the nr. of creature
37 - is nr. of spell
2 - is the power of spell
134 - is the "nr of the creature that our caster references" (for example our creature will cast right now a spell with the fearie dragon style etc - this is the safiest nr.)

This part of the script we put before the line with !?FU11111; that's why this script didn't worked ^^' (for me at least) ^^'.


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


Legendary Hero
posted April 16, 2015 10:31 PM

CrazzieGamerPL said:
Can somebody explain me what i'm doing wrong with these scripts?


With all the respect and sympathy (I do it all the time too), one thing I believe you are doing wrong is to directly use somebody else code without a perfect understanding of what every command line is doing.
From my experience, it is better to learn how what you want can be done (using other people's code when necessary) and then code it from scratch.

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


Hired Hero
posted April 17, 2015 08:03 PM

Hey once again . I'm still learning ERM and i wanted to give creature (for example Enchanters) At level 1 of experience (basic i believe it is called), the ability to reduce the cost of spells of our hero, i tried to write this script in like 10 ways but everytime i'm getting the error from the game. All the scripts works fine but this script is just nightmare (i'm working at long time)

this is the script :

Quote:

ZVSE
!?PI;
!!EA136:B1/0/////////////;
!!EA136:B2/0/////////////;
!!EA136:B3/0/////////////;
!!EA136:B4/0/////////////;
!!EA136:B5/0/////////////;
!!EA136:B6/0/////////////;
!!EA136:B7/0/////////////;
!!EA136:B8/0/////////////;
!!EA136:B9/0/////////////;
!!EA136:B10/0/////////////;
!!EA136:B11/0/////////////;
!!EA136:B12/0/////////////;
!!EA136:B5/1/67/C/0/1/1/1/1/1/1/1/1/1/1;


Can anybody could tell me what i'm doing wrong? Because seriously i tried everything (C before 67 (67/C), 67 replaced by nr. of creature etc.) I have used the guide of salamandre that bloodsucker showed in the previous post and everyscript from there works fine, but with this script i have a lot of trouble . For any help i will be gratefull .


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


Admirable
Omnipresent Hero
Wog refugee
posted April 17, 2015 08:21 PM

Letter is only abbreviation of the feature, don't use any letter in the code, remove C. Also EA#:B1 -EA:B5 are ordinary skills, as speed, shoots, attack etc, never use them. EA codes are from B6 to B13, a total of 8.

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


Hired Hero
posted April 17, 2015 11:23 PM
Edited by CrazzieGamerPL at 23:25, 17 Apr 2015.

I feel like right now i'm missing an important part, and i know it is before the 67. But i don't know what put there lol (sorry if sound a little bit of "moronish" but sometimes i have huge problems with scripts and i need sometimes a help from people that know ERM better than me :P)
Quote:

ZVSE
!?PI;
!!EA136:B5/0/////////////;
!!EA136:B6/0/////////////;
!!EA136:B7/0/////////////;
!!EA136:B8/0/////////////;
!!EA136:B9/0/////////////;
!!EA136:B10/0/////////////;
!!EA136:B11/0/////////////;
!!EA136:B12/0/////////////;
!!EA136:B6/1/67/1/1/1/1/1/1/1/1/1/1/1;



 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 ... 258 259 260 261 262 ... 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1113 seconds