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 385 pages long: 1 2 3 4 5 ... 80 160 240 320 ... 381 382 383 384 385 · «PREV / NEXT»
Ghost
Ghost


Legendary Hero
Therefore I am
posted September 15, 2020 04:32 PM

Yeah I have a awesome idea, but I need full scripts. What?

Few 1-4
Several 5-9
Pack 10-19
Dozens 20-49
Horde 50-99
Throng 100-249
Hundreds 250-499
Zounds 500-999
Legion 1000-2499
Thousands 2500-4999
Elite 5000-9999
Ace +10000    
____________
Fight MWMs - stand teach

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


Promising
Famous Hero
Researching Magic
posted September 15, 2020 08:53 PM

Ghost said:
Yeah I have a awesome idea, but I need full scripts. What?

Few 1-4
Several 5-9
Pack 10-19
Dozens 20-49
Horde 50-99
Throng 100-249
Hundreds 250-499
Zounds 500-999
Legion 1000-2499
Thousands 2500-4999
Elite 5000-9999
Ace +10000    


You want to create bigger neutral stacks?

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


Legendary Hero
Therefore I am
posted September 16, 2020 06:07 AM

Only label. You know ghosts have grown larger than legion. So I change the label. I noticed WoG and HotA had changed label, maximum +1000 (legion), and I want maximum +10000 (ace), ace means 10000-32767, when you can give 32k to hero and 4k to neutral. I keep original them, I only change the label. Do you know how to write a script, RerryR?
____________
Fight MWMs - stand teach

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


Promising
Famous Hero
Researching Magic
posted September 16, 2020 07:19 AM

Ghost said:
Only label. You know ghosts have grown larger than legion. So I change the label. I noticed WoG and HotA had changed label, maximum +1000 (legion), and I want maximum +10000 (ace), ace means 10000-32767, when you can give 32k to hero and 4k to neutral. I keep original them, I only change the label. Do you know how to write a script, RerryR?


No sorry, no easy solution comes to my mind.

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


Legendary Hero
Therefore I am
posted September 16, 2020 07:25 AM

Ok RerryR,
____________
Fight MWMs - stand teach

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


Responsible
Supreme Hero
posted September 16, 2020 12:34 PM

RerryR!!!!!!!!!

Where are you????
____________
Not idly do the leaves of Lorien fall.

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


Legendary Hero
Therefore I am
posted September 16, 2020 04:12 PM
Edited by Ghost at 18:13, 16 Sep 2020.

Heh argh



!#HE146:X4/150/5/5/10;
!#VRz990:S^Supreme Archangels receive + 5 attack, + 5 defense and +10 damage^;

= OK

!#UN:G2/146/2/990;
!#HE149:X4/156/5/5/10;
!#VRz990:S^Ghost Behemoths receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/149/2/990;

= OK

!#HE151:X4/155/5/5/10;
!#VRz990:S^Darkness Dragons receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/151/2/990;

= OK

!#HE147:X4/152/5/5/10;
!#VRz990:S^Lord of Thunders receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/147/2/990;

= BUG

!#HE148:X4/151/5/5/10;
!#VRz990:S^Diamond Dragons receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/148/2/990;

= BUG

!#HE138:X4/158/5/5/10;
!#VRz990:S^Sacred Phoenixes receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/138/2/990;

= OK

What's wrong? Give me full script.

EDIT: I found solution

!#HE146:X4/150/5/5/10;
!#VRz990:S^Supreme Archangels receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/146/2/990;

!#HE149:X4/156/5/5/10;
!#VRz991:S^Ghost Behemoths receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/149/2/991;

!#HE151:X4/155/5/5/10;
!#VRz992:S^Darkness Dragons receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/151/2/992;

!#HE147:X4/152/5/5/10;
!#VRz993:S^Lord of Thunders receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/147/2/993;

!#HE148:X4/151/5/5/10;
!#VRz994:S^Diamond Dragons receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/148/2/994
;
!#HE138:X4/158/5/5/10;
!#VRz995:S^Sacred Phoenixes receive + 5 attack, + 5 defense and +10 damage^;
!#UN:G2/138/2/995
;
!#HE91:X3/38;
!#VRz996:S^Casts Resurrection with increased effect, based on his level compared to the level of the target unit (the bonus is greater when used on weaker units).^;
!#UN:G2/91/2/996;
!#UN:G2/91/3/91;

You can use my scripts.. Thank you..
____________
Fight MWMs - stand teach

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


Promising
Famous Hero
Researching Magic
posted September 16, 2020 06:33 PM
Edited by RerryR at 18:34, 16 Sep 2020.

@ HoL
you can use this. You need to expand the number of immune creatures.
Make sure to put not more than 14 conditions in the !!if-line
if you want more we need another command.

https://dropmefiles.com/YRmLH

@Ghost
yes you need unique z-vars

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


Responsible
Supreme Hero
posted September 16, 2020 11:25 PM

I am afraid there are more than 14 creatures that I want to give them the immunity. My logic is: Every Inferno creature and immune to Fire (or level 3 spells) should not be affected (NOTE: be that either enemy or ally). The rest of the creatures should be affected normally (even on your side). Here's the list of creatures that I would like to be excluded:

26
27
42
43
44
45
46
47
48
49
50
51
52
53
54
55
82
83
114
121
125
127
130
131
132
151
155
160
161
162
163
172
177
186
195

Also, I said that I don't need the cancel button function, if you can remove it please. I don't need it as an option in my mod.
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
Researching Magic
posted September 17, 2020 07:26 AM

Hero_of_Light said:
I am afraid there are more than 14 creatures that I want to give them the immunity. My logic is: Every Inferno creature and immune to Fire (or level 3 spells) should not be affected (NOTE: be that either enemy or ally). The rest of the creatures should be affected normally (even on your side). Here's the list of creatures that I would like to be excluded:




ZVSE

!?MF1;                                  [Magogs Fireball-Attack doesnt damage own troops]

!!BG:N?y1;                              [Get attacking stack number]
!!MF:N?y4;                              [Get defending stack number]
!!BMy1:I?y5;                            [Get attacking stack side and Creature Type]
!!BMy4:I?y6 T?y7;                       [Get defending stack side]
!!UN:C42149568/4/?y10;                  [Judgement basis (028326c0)]
!!FU(HoL_Check_for_valid_creature):Py7/?y8; [Pass defending creature type and return yes1 or no0]
!!if&y8=1:;                             [Creature Types that are immune]
 *!MF&y10=4454752/y5=y6:E0;            [Disable taking damage if Magog Fireball and own team]
 !!MF&y10=4454752:E0;                  [Disable taking damage if Magog Fireball]
!!en:;


!?FU(HoL_Check_for_valid_creature);
x1=creature type, x2 returns 1 or 0
!!VRx2:S0;
!!VRx2|x1=42/x1=43:S1; Set x2 to 1 if valid creature, can have up to 14 conditions
.
.
.
!!VRx2|x1=54/x1=55:S1; Set x2 to 1 if valid creature

*Imune Creatures
42  Imp
43  Familiar
44  Gog
45  Magog
46  Hell Hound
47  Cerberus
48  Demon
49  Horned Demon
50  Pit Fiend
51  Pit Lord
52  Efreeti
53  Efreet Sultan
54  Devil
55  Arch Devil

Just put in all creatures you want to be immune in the function.

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


Responsible
Supreme Hero
posted September 17, 2020 01:49 PM

Here's the script the way I added it on my own script (No11):

*************Magogs Fireball Attack**************

!?MF1;                                  [Magogs Fireball-Attack doesnt damage own troops]

!!BG:N?y1;                              [Get attacking stack number]
!!MF:N?y4;                              [Get defending stack number]
!!BMy1:I?y5;                            [Get attacking stack side and Creature Type]
!!BMy4:I?y6 T?y7;                       [Get defending stack side]
!!UN:C42149568/4/?y10;                  [Judgement basis (028326c0)]
!!FU(HoL_Check_for_valid_creature)y7/?y8; [Pass defending creature type and return yes1 or no0]
!!if&y8=1:;                             [Creature Types that are immune]
*!MF&y10=4454752/y5=y6:E0;            [Disable taking damage if Magog Fireball and own team]
!!MF&y10=4454752:E0;                  [Disable taking damage if Magog Fireball]
!!en:;


!?FU(HoL_Check_for_valid_creature);
x1=creature type, x2 returns 1 or 0
!!VRx2:S0;
!!VRx2|x1=26/x1=27:S1; Set x2 to 1 if valid creature, can have up to 14 conditions
!!VRx2|x1=42/x1=43:S1;
!!VRx2|x1=44/x1=45:S1;
!!VRx2|x1=46/x1=47:S1;
!!VRx2|x1=48/x1=49:S1;
!!VRx2|x1=50/x1=51:S1;
!!VRx2|x1=52/x1=53:S1;
!!VRx2|x1=54/x1=55:S1;
!!VRx2|x1=82/x1=83:S1;
!!VRx2|x1=114/x1=121:S1;
!!VRx2|x1=125/x1=127:S1;
!!VRx2|x1=130/x1=131:S1;
!!VRx2|x1=132/x1=151:S1;
!!VRx2|x1=155/x1=160:S1;
!!VRx2|x1=161/x1=162:S1;
!!VRx2|x1=163/x1=172:S1;
!!VRx2|x1=177/x1=186:S1;
!!VRx2|x1=195:S1;

It works and it doesn't work... Now the creatures above are not affected AT ALL, meaning that even when they are centered by a Magog's attack. That cannot be the case. Even a Death Cloud attack DOES affect the undead when they are directly targeted. The same should apply here. The creature that is directly targeted, should take the damage that is due.
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
Researching Magic
posted September 17, 2020 02:19 PM

hmm try with the other outcommented MF line instead

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


Responsible
Supreme Hero
posted September 17, 2020 03:00 PM

I don't understand. Can you edit my version of the script and post it here to show me what you mean?
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
Researching Magic
posted September 17, 2020 03:55 PM

Delete this: !!MF&y10=4454752:E0;  

Use use this instead: !!MF&y10=4454752/y5=y6:E0;

             

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


Responsible
Supreme Hero
posted September 17, 2020 06:07 PM
Edited by Hero_of_Light at 00:27, 19 Sep 2020.

**Magogs Fireball-Attack doesn't damage own troops (by PerryR)**
!?MF1;                                  [Magogs Fireball-Attack doesn't damage own troops]

!!BG:N?y1;                              [Get attacking stack number]
!!MF:N?y4;                              [Get defending stack number]
!!BMy1:I?y5;                            [Get attacking stack side and Creature Type]
!!BMy4:I?y6 T?y7;                       [Get defending stack side]
!!UN:C42149568/4/?y10;                  [Judgement basis (028326c0)]
!!FU(HoL_Check_for_valid_creature):Py7/?y8; [Pass defending creature type and return yes1 or no0]
!!if&y8=1:;                             [Creature Types that are immune]
*!MF&y10=4454752/y5=y6:E0;            [Disable taking damage if Magog Fireball and own team]
!!MF&y10=4454752/y5=y6:E0;             [Disable taking damage if Magog Fireball]
!!en:;


!?FU(HoL_Check_for_valid_creature);
x1=creature type, x2 returns 1 or 0
!!VRx2:S0;
!!VRx2|x1=26/x1=27:S1; Set x2 to 1 if valid creature, can have up to 14 conditions
!!VRx2|x1=42/x1=43:S1;
!!VRx2|x1=44/x1=45:S1;
!!VRx2|x1=46/x1=47:S1;
!!VRx2|x1=48/x1=49:S1;
!!VRx2|x1=50/x1=51:S1;
!!VRx2|x1=52/x1=53:S1;
!!VRx2|x1=54/x1=55:S1;
!!VRx2|x1=82/x1=83:S1;
!!VRx2|x1=114/x1=121:S1;
!!VRx2|x1=125/x1=127:S1;
!!VRx2|x1=130/x1=131:S1;
!!VRx2|x1=132/x1=151:S1;
!!VRx2|x1=155/x1=160:S1;
!!VRx2|x1=161/x1=162:S1;
!!VRx2|x1=163/x1=172:S1;
!!VRx2|x1=177/x1=186:S1;
!!VRx2|x1=195:S1;


Now it works when MY Magogs attack, but when OPPONENT Magogs attack, Fireball works as normal. I think you're close though.

RerryR?
____________
Not idly do the leaves of Lorien fall.

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


Promising
Famous Hero
Researching Magic
posted September 19, 2020 08:23 AM

HoL Iam not sure.
My best bet would be that you try to add new conditions for your later mentioned case.

The damage should not work when
a) one of the mentioned creatures
b) but is not primary target (maybe BG:E?)
c) and is not in the same team, so y5<>y6

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


Responsible
Supreme Hero
posted September 19, 2020 07:43 PM

You know what, that's OK, I will use the original script you gave me. I've already spent a lot of your time and effort and in the end, it isn't THAT important. Thank you for your time!
____________
Not idly do the leaves of Lorien fall.

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


Legendary Hero
Therefore I am
posted September 20, 2020 12:25 PM

Where I can find 53 erm/option? I want copy and edit erm/option to BANK 47 (object).
____________
Fight MWMs - stand teach

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


Legendary Hero
Therefore I am
posted September 21, 2020 06:18 PM

Ok I changed for object and gorynych, when I found script.

!#IF:V11/0;
!#VRz889:S^Fire Caravan (Not Visited)^;
!#OB74/28/1:Hz889;
!#VRv10:S0T3;
!#VRv10:+4;
!#VRv10:*3;

!?OB74/28/1&11;
!!IF&11:M^Be burnt to death^;
!?OB74/28/1&-11;
!!IF:Q10^This is Fire Caravan. Do you want to enter?^;

!!HE-1&10?v5;
!!HE-1&10:T74/28/1/168/v10;
!!HE-1&10?v100;
!!HE-1&10/v5=v100:A1/36/0;
!!HE-1&10/v5=v100/-1:A36;
!!HE-1&10/v5=v100:A1/71/2;
!!HE-1&10/v5=v100/-1:A71;
!!IF&10/v5=v100:V11/1;
!!IF&11:Q1/8/36/8/71/1^You have won the battle with %V10 Gorynyches and received:^;
!!VRz889&11:S^Fire Caravan (Visited)^;

!!OB74/28/1&11:Hz889;

Ok how do i give gold to a hero? It's !!HE-1&10/v5=v100, and then what? I want 200.000 gold.


____________
Fight MWMs - stand teach

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


Promising
Famous Hero
Researching Magic
posted September 21, 2020 06:40 PM
Edited by RerryR at 18:49, 21 Sep 2020.

@Ghost

first you check the Hero Owner (player color) HE:O and than you give gold to player with OW:R

and when posting ERM code go with the "Disable Smilies" option.

And to find specific WoG option use a tool like, "Total Commander"
and search Mods folder for ":P53/" it will list all scripts with that option number

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 385 pages long: 1 2 3 4 5 ... 80 160 240 320 ... 381 382 383 384 385 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1146 seconds