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 412 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 408 409 410 411 412 · «PREV
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted September 01, 2024 03:12 PM
Edited by Salamandre at 15:16, 01 Sep 2024.

bloodsucker said:
Is 12 modifier what grants the level 10?


Nope, we are not in Orwell's "1984"


The script is:

[...]
!!DO9001/21/27/1:P10;
!!en:;

!?FU9001; max experience to neutrals/AI
!!VRy1:Sx16+1*-1;
!!EAy1:Ex1/12/d/d;

So, what you think, where is the rank ACE coded? ;)

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


Legendary Hero
posted September 01, 2024 05:40 PM
Edited by bloodsucker at 08:24, 05 Sep 2024.

Didn't someone at some point coded a "Call to arms" for all towns? I ask cause I was willing to use Tew III approach, disabled all dwelling upgrades and have castle troops in town pressing 1-7 keys but I seem to recall to have used something more extensive...

P.S. I can rewrite it for all towns but I think if have to do it I'll try to do it differently, maybe as a mod, so it can easily be reused.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 05, 2024 11:30 AM

Bersy made that script for Era 2.46 but I can't download anymore that version, googledrive prohibits it.

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


Legendary Hero
posted September 07, 2024 11:36 AM

I want to make a site visitable once per hero. I know I should use the hero W vars but even I recognize the voodoo... Please, help.

!?OB23/23/0;
!!HE-1:w111/S?v1;
!!IF&v1=1:M^You have already visited this stone.^;
!!FU&v1=1:E;

!!IF:M^You touch the stone and immediately fill blessed.^;
!!HE-1:Ed15000;
!!HE-1:Y9/10000/350/1;
!!HE-1:Y65/2000/350/1;
!!HE-1:Wd4000;

!!HE-1:w111/S1; set to visited for this hero


____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 07, 2024 01:42 PM
Edited by Salamandre at 13:45, 07 Sep 2024.

Hero variables (w1-w100) store the same type of information as v variables, but are unique for each hero. This means that two different heroes could have different values stored in their w1 variable (or w2, w10 or anything up to and including w200). In order to set or check one or more w variables you must first set the hero number that they apply to by using the IF:W command. For example, if you wish to set or check w5 for hero number 27 (Gem), you would first put

!!IF:W27;

prior to the statement that referenced her w5 variable. To specify the current hero, use -1 instead of a number. So

!!IF:W-1;

means that subsequent references to w variables will refer to the current hero (until another IF:W statement is issued).


**********************

Its not voodoo but a specific section to read.
So, let's say your hero visits something

!?OBx/y/z
!!HE:N?y1; who is the hero
!!IF:Wy1;  now we set THIS hero variables
!!VRw5:S2; set this hero w5 variable to 2


Try again using this syntax.

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


Legendary Hero
posted September 07, 2024 01:58 PM
Edited by bloodsucker at 14:20, 07 Sep 2024.

Salamandre said:
!!IF:W-1;

means that subsequent references to w variables will refer to the current hero (until another IF:W statement is issued).

**********************

Its not voodoo but a specific section to read.
So, let's say your hero visits something

!?OBx/y/z
!!HE:N?y1; who is the hero
!!IF:Wy1;  now we set THIS hero variables
!!VRw5:S2; set this hero w5 variable to 2


Try again using this syntax.


Meanwhile I manage to do it with SN:W vars

!#OB24/23/0:S;
!?OB24/23/0;

!!HE-1:N?y1; check hero ID
!!SN:W^Hero_%Y1_stone_1^/?y2;  check control variable
!!IF&y2=1:M^You have already visited this.^;  message if visited
!!FU&y2=1:E;  exit if visited

!!IF:M^You touch the stone and immediately fill blessed.^; message if processing visit
!!HE-1:Ed15000;
!!HE-1:Y9/10000/350/1;
!!HE-1:Y65/2000/350/1;

!!HE-1:Wd4000;

!!SN:W^Hero_%Y1_stone_1^/1;
********

And I think the other way is like this (working too)
!#OB24/23/0:S;
!?OB24/23/0;
!!HE-1:N?y1;
!!IF:Wy1;  now we set THIS hero variables
!!IF&w5=2:M^You have already visited this.^;
!!FU&w5=2:E;

!!IF:M^You touch the stone and immediately fill blessed.^; message if processing visit
!!HE-1:Ed15000;
!!HE-1:Y9/10000/350/1;
!!HE-1:Y65/2000/350/1;

!!HE-1:Wd4000;

!!VRw5:S2;
****

Which one is better?

One thing I don't understand is why the W changes from Cap to Lower Case...



____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 07, 2024 02:53 PM

Both ok

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


Legendary Hero
posted September 07, 2024 11:18 PM
Edited by bloodsucker at 11:49, 08 Sep 2024.

Sorry, what is !!SS ?
I saw it when reading this thread but I can't find it in Help and never heard of it before...

Also...

I've tried to make the Lava Sharpshooter a level 2 creature.

!#MA: C171/6/600 A171/12 D171/12 P171/20 S171/12 M171/11 E171/15 N171/45 G171/10 O171/0 L171/1;

It does the rest of the line but Lava Sharpshooters still have the progression of a level 5 creature and max experience is 113750, same as Master Genies.
I thought it could be related to the Arctic Sharp being level 5, so I said they don't upgrade but it didn't work anyway.
Also tried it on !?PI; but with no results.
But I've managed to make Archangels level 5 with both methods.
And not Enchanters... Nor Hell Steeds.
My guess is neutral creatures don't have a level but were manually set to those attributes. How risky do you think it would be to change them with Instructions or after !?PI ?
Cause you said several times, namely in "Guide to create unique abilities for your creatures" not to mess with them...
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 08, 2024 12:56 PM

Tried this?

!#EA171:L56000;

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


Legendary Hero
posted September 08, 2024 01:41 PM
Edited by bloodsucker at 14:16, 08 Sep 2024.

Nope.

It does the trick. I used 35000 instead, that is the value for the archers. Now they can accumulate way more units...

I adapted the "Brutes Money" from TDS, cause Adelaide was finishing her formation with more then 120 millions...
It's still poorly tested but I wanted to stop working at some point, like when she beats the last opponents before visiting the Mirror of the Home Way or when she arrives to town but I'm blocked and don't know how to do it. Help please.

!?BA0&1000;
!!HE-1:N?v1;
!!FU&v1<>11:E;
!!VRv1003:S0;
!!CO-1:T?y20;
!!HE-1:E?v1003; v1003=H exp @ battle start
!!OW:R-1/6/?v1052;  v1052=H gold @ start

!?BA1&1000/v1003>0;
!!HE-1:O?y20;
!!CO-1:D?y21;
!!FU|y20<0/y21=1:E;
!!HE-1:E?y20;
!!VRy21:Sy20 -v1003 :2; y21=H exp gained/2   (50%) (normal Brute amt)
!!VRy20:-v1003 *5 :100; y20=H exp gained/40 (2.5%) (10% of normal)
!!OW:R-1/6/?y22;
!!FU&y22=v1052:E;
!!VRy22:Sy21 *-1; dy22 will subtract orig. Brute gold
!!OW:R-1/6/dy20; add 10%
!!VRy21:-y20; [JHV]

!!VRy25:S0 R99;

!!HE-1&y25<20:R2/?y24;
!!VRy23&y25<20/y24=0:S118 R2;
!!VRy23&y25<20/y24=1:S6 R2;
!!VRy23&y23=120/y25<20/y24=0:S143;
!!VRy23&y23=8/y25<20/y24=1:S143;
!!IF&y25<20/-544/y24=0:Q2/21/y23/1^Bad day!  A bold thief stole {%Y21 gold} as you were looking at a beautiful woman.%Z10^;
!!IF&y25<20/-544/y24=1:Q2/21/y23/1^Bad day!  A bold thief stole {%Y21 gold} as you were looking at at a handsome man.%Z10^;

!!VRy23&y25>=20/y25<35:Sy21 :5000 +1;
!!VRy23&y25>=20/y25<35/y23>3:S3;
!!IF&y25>=20/y25<25/-544:Q2/11/y23/1^You spend {%Y21 gold} to kiss the Blarney Stone.  They say it brings luck.%Z10^;
!!IF&y25>=25/y25<28/-544:Q2/14/y23/1^You spend {%Y21 gold} to take your troops to the circus and your army gains high morale!%Z10^;
!!IF&y25>=28/y25<31/-544:Q2/14/y23/1^You spend {%Y21 gold} to take your troops to the Folies Bergère and your army gains high morale!%Z10^;
!!IF&y25>=31/y25<35/-544:Q2/14/y23/1^You spend {%Y21 gold} to take your troops to Disney World and and your army gains high morale!%Z10^;
!!HE-1&y25>=20/y25<25:R1/dy23;
!!HE-1&y25>=25/y25<35:R0/dy23;

!!IF&y25>=35/y25<45/-544:Q2/21/1/1^You lose {%Y21 gold} playing dice with some soldiers.%Z10^;
!!IF&y25>=45/y25<55/-544:Q2/22/5/1^You spend {%Y21 gold} in a tavern.%Z10^;
!!IF&y25>=55/y25<65/-544:Q2/8/47/1^You lose {%Y21 gold} playing poker.%Z10^;
!!IF&y25>=65/y25<75/-544:Q2/21/14/1^You lose {%Y21 gold} gambling on centaur races.%Z10^;

!!VRy23&y25>=75/y25<80:Sy21 :5000 +1 *10;
!!VRy23&y25>=75/y25<80/y23>1000:S1000;
!!IF&y25>=75/y25<80/-544:Q2/35/y23/1^You need a lot of spell points, so you pay {%Y21 gold} to a witch for some.%Z10^;
!!HE-1&y25>=75/y25<80:Idy23/1;

!!VRy23&y25>=80/y25<85:S0 R6;
!!VRy23&y25>=80/y25<85/y23=6:S7; [JHV:  why buy gold w/gold?]
!!VRy24&y25>=80/y25<85:Sy21 :5000 +1;
!!VRy24&y25>=80/y25<85/y24>100:S100;
!!IF&y25>=80/y25<85/-544:Q2/y23/y24/1^You need more resources!  You pay {%Y21 gold} for some.%Z10^;
!!OW&y25>=80/y25<85:R-1/y23/?y26;
!!VRy24&y25>=80/y25<85:+y26;
!!OW&y25>=80/y25<85:R-1/y23/y24;

!!VRy23&y25>=85/y25<95:Sy21 :5000 +100;
!!VRy23&y25>=85/y25<90/y23>100000:S100000;
!!VRy23&y25>=90/y25<95/y23>5000:S5000;
!!IF&y25>=85/y25<90/-544:Q2/17/y23/1^You pay {%Y21 gold} to get some more experience.%Z10^;
!!IF&y25>=90/y25<95/-544:Q2/8/98/1^You pay {%Y21 gold} to get %Y23 movement.%Z10^;
!!HE-1&y25>=85/y25<90:Edy23;
!!HE-1&y25>=90/y25<95:Wdy23/1;

!!VRy23&y25>=95:S31 R3;
!!VRy24&y25>=95:S0 R99;
!!IF&y25>=95/y21>=5000/-544/y24<10:Q2/y23/1/1^You spend {%Y21 gold} to enhance your combat efficiency.^;
!!IF&y25>=95/y21<5000/-544/y24>9:Q2/y23/0/1^You pay {%Y21 gold} to enhance your combat efficiency, but you were cheated!^;
!!HE-1&y25>=95/y21>=5000/y23=31/y24<10:Fd1/d/d/d;
!!HE-1&y25>=95/y21>=5000/y23=32/y24<10:Fd/d1/d/d;
!!HE-1&y25>=95/y21>=5000/y23=33/y24<10:Fd/d/d1/d;
!!HE-1&y25>=95/y21>=5000/y23=34/y24<10:Fd/d/d/d1;
!!HE-1&y25>=95/y21>=5000/y24<10:F?y1/?y2/?y3/?y4;
!!HE-1&y25>=95/y21>=5000/y1>98/y24<10:F99/d/d/d;
!!HE-1&y25>=95/y21>=5000/y2>98/y24<10:Fd/99/d/d;
!!HE-1&y25>=95/y21>=5000/y3>98/y24<10:Fd/d/99/d;
!!HE-1&y25>=95/y21>=5000/y4>98/y24<10:Fd/d/d/99;

!!OW:R-1/6/dy22;



____________

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


Admirable
Omnipresent Hero
Wog refugee
posted September 08, 2024 01:44 PM
Edited by Salamandre at 14:12, 08 Sep 2024.

So, where is the problem?

Set a flag to true when beat last opponent or visit whatever then check that flag when battle starts. Exit if true.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 412 pages long: 1 2 3 4 5 ... 80 160 240 320 400 ... 408 409 410 411 412 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.6389 seconds