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: new erm scripts
Thread: new erm scripts This thread is 2 pages long: 1 2 · «PREV
shimmy
shimmy


Hired Hero
posted January 12, 2008 01:04 AM

thx for the help so far but i could use a little more.
i don't edit scripts so i just wanted to know how do i change a script number cause i have 2 of the same name. thx again.
____________
lolololololololol

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


Promising
Famous Hero
Passed away
posted January 12, 2008 01:29 AM
Edited by Ste at 01:29, 12 Jan 2008.

You need to change the file names to scriptXX.erm and scriptXX.ers , the script file name and script option number in the .ers file and the check in the erm file to !#UN:PXX/?v1;

(XX is an unused script number)
____________
The ultimate WoG tester

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


Hired Hero
posted January 12, 2008 11:55 AM
Edited by shimmy at 16:14, 12 Jan 2008.

u posted earlier the wogify option for my script, and it works (kinda).
if i check the script button in wogify a message "1" apears, and the script is on in the map.
if i uncheck the button, a message "0" apears and the script is still on.

i don't get it.
____________
lolololololololol

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


Promising
Famous Hero
Passed away
posted January 12, 2008 05:23 PM
Edited by Ste at 17:40, 12 Jan 2008.


The .ers file (the one that provides the button in WoG Options screen) I posted is working but the 4-line check I posted for the .erm file is only an example of how it should work. I thought you knew ERM so I didn't post the entire script. You actually need to check (with !#UN:PXX/?v1;) if the script is enabled right after each and every trigger in the script (the lines starting with !?) and exit if it isn't. What my code does is check if the script is enabled once and then display 1 if it is and 0 otherwise but still letting the script execute. To make it simple I'll modify the script in your post and you can copy and paste it in ERM Scripter.
____________
The ultimate WoG tester

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


Hired Hero
posted January 13, 2008 12:12 AM

thx again man... what can i say...
____________
lolololololololol

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


Promising
Famous Hero
Passed away
posted January 13, 2008 12:40 AM

Thanking me is enough. We are a community after all and we are here to help each other as best as we can.
____________
The ultimate WoG tester

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


Hired Hero
posted January 18, 2008 01:04 AM

hy man have u been working on my erm file? i guess u prety much didn't have time... when u find the time... pls help me with it... thx.
____________
lolololololololol

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


Promising
Famous Hero
Passed away
posted January 18, 2008 11:56 PM

Actually I fixed it a few days ago but it seems I forgot to tell you ...

here is the code you should paste in your ERM scripter :



ZVSE

!?FU69;
!!UN:P78/?y-1;

!!IF:V18/0;
!!IF:V19/0;
!!UN:V?y3/?y4/?y5/?y6/?y7;
!!IF&y6=1:V18/1;
!!IF&y3>355/y4>249:V19/1;
!!VRe1:Sy3:100;
!!VRe2:Sy4:100;
!!IF&-19/y-1<>0:M^WoG version %E1 / ERM version %E2. At least WoG v3.56 / ERM v2.50 required. Script disabled^;
!!IF&y-1=0:V19/0;

!?FU71;
!!TRx1/x2/x3:T?y1/?y2/?y3/?y4/?y5/?y6/?y7/?y8;
!!TRx1/x2/x3:Ty1/10/y3/y4/y5/y6/y7/y8;

!?FU72;
!!TRx1/x2/x3:T?y1/?y2/?y3/?y4/?y5/?y6/?y7/?y8;
!!TRx1/x2/x3:Ty1/11/y3/y4/y5/y6/y7/y8;

!?FU70;
!!UN&x1=1:U98/-1/x16/50;
!!UN&x1=2:U77/-1/x16/50;
!!FU71:Pv50/v51/v52;

!#FU69:P;
!#UN&19:U98/-1/?v1;
!#UN&19:U77/-1/?v2;
!#IF&19:V1/0;
!?GM0&19;
!!IF:V1/1;
!#DO70/1/v1/1&-1/19:P1;
!#DO70/1/v2/1&-1/19:P2;

!?CM1&19;
!!CM:I?y-1;
!!CA-1:R?y-2;
!!IF:V1/0;
!!IF&y-1=43/y-2=0:V1/1;

!?CM1&19/1;
!!CM:F?y-9;
!!IF:V4/0;
!!VRy-13:S0;
!!OW:C?y-40;
!!CA-1:T?y-1;
!!CA-1:P?y-70/?y-71/?y-72;
!!TRy-70/y-71/y-72:T?y-91/?y-2/?y-93/?y-94/?y-95/?y-96/?y-97/?y-98;
!!VRz-2&y-1=0:S^{Portal} {of} {Splendor}^;
!!VRz-2&y-1=1:S^{Dragon} {Peaks}^;
!!VRz-2&y-1=2:S^{Storm} {Temple}^;
!!VRz-2&y-1=3:S^{Unholy} {Palace}^;
!!VRz-2&y-1=4:S^{Spectral} {Vault}^;
!!VRz-2&y-1=5:S^{Cave} {of} {Darkness}^;
!!VRz-2&y-1=6:S^{Behemoth} {Tomb}^;
!!VRz-2&y-1=7:S^{Chaos} {Pool}^;
!!VRz-2&y-1=8:S^{Spirit} {Pyre}^;

//Wood
!!VRy-50&y-1=0:S20;
!!VRy-50&y-1=1:S10;
!!VRy-50&y-1=2:S10;
!!VRy-50&y-1=3:S10;
!!VRy-50&y-1=4:S50;
!!VRy-50&y-1=5:S15;
!!VRy-50&y-1=6:S10;
!!VRy-50&y-1=7:S10;
!!VRy-50&y-1=8:S10;

//Mercury
!!VRy-51&y-1=0:S15;
!!VRy-51&y-1=1:S0;
!!VRy-51&y-1=2:S0;
!!VRy-51&y-1=3:S20;
!!VRy-51&y-1=4:S15;
!!VRy-51&y-1=5:S25;
!!VRy-51&y-1=6:S0;
!!VRy-51&y-1=7:S0;
!!VRy-51&y-1=8:S20;

//Ore
!!VRy-52&y-1=0:S20;
!!VRy-52&y-1=1:S25;
!!VRy-52&y-1=2:S10;
!!VRy-52&y-1=3:S10;
!!VRy-52&y-1=4:S20;
!!VRy-52&y-1=5:S15;
!!VRy-52&y-1=6:S40;
!!VRy-52&y-1=7:S10;
!!VRy-52&y-1=8:S10;


//Sulf
!!VRy-53&y-1=0:S15;
!!VRy-53&y-1=1:S15;
!!VRy-53&y-1=2:S0;
!!VRy-53&y-1=3:S0;
!!VRy-53&y-1=4:S0;
!!VRy-53&y-1=5:S15;
!!VRy-53&y-1=6:S0;
!!VRy-53&y-1=7:S15;
!!VRy-53&y-1=8:S0;

//Crystal
!!VRy-54&y-1=0:S15;
!!VRy-54&y-1=1:S20;
!!VRy-54&y-1=2:S20;
!!VRy-54&y-1=3:S0;
!!VRy-54&y-1=4:S0;
!!VRy-54&y-1=5:S0;
!!VRy-54&y-1=6:S20;
!!VRy-54&y-1=7:S15;
!!VRy-54&y-1=8:S0;

//Gems
!!VRy-55&y-1=0:S15;
!!VRy-55&y-1=1:S0;
!!VRy-55&y-1=2:S20;
!!VRy-55&y-1=3:S20;
!!VRy-55&y-1=4:S0;
!!VRy-55&y-1=5:S0;
!!VRy-55&y-1=6:S0;
!!VRy-55&y-1=7:S0;
!!VRy-55&y-1=8:S20;

//Gold
!!VRy-56&y-1=0:S30000;
!!VRy-56&y-1=1:S25000;
!!VRy-56&y-1=2:S20000;
!!VRy-56&y-1=3:S25000;
!!VRy-56&y-1=4:S15000;
!!VRy-56&y-1=5:S25000;
!!VRy-56&y-1=6:S25000;
!!VRy-56&y-1=7:S15000;
!!VRy-56&y-1=8:S30000;

!!IF&y-2=11/y-9=0:M^%Z-2^;


!!VRy-30:S-30;
!!VRy-80:S-80;

!!VRy-30&y-50>0:Sy-30-1;
!!VRy-80&y-50>0:Sy-80-1;
!!VRyy-30&y-50>0:S0;
!!VRyy-80&y-50>0:Sy-50;

!!VRy-30&y-51>0:Sy-30-1;
!!VRy-80&y-51>0:Sy-80-1;
!!VRyy-30&y-51>0:S1;
!!VRyy-80&y-51>0:Sy-51;

!!VRy-30&y-52>0:Sy-30-1;
!!VRy-80&y-52>0:Sy-80-1;
!!VRyy-30&y-52>0:S2;
!!VRyy-80&y-52>0:Sy-52;

!!VRy-30&y-53>0:Sy-30-1;
!!VRy-80&y-53>0:Sy-80-1;
!!VRyy-30&y-53>0:S3;
!!VRyy-80&y-53>0:Sy-53;

!!VRy-30&y-54>0:Sy-30-1;
!!VRy-80&y-54>0:Sy-80-1;
!!VRyy-30&y-54>0:S4;
!!VRyy-80&y-54>0:Sy-54;

!!VRy-30&y-55>0:Sy-30-1;
!!VRy-80&y-55>0:Sy-80-1;
!!VRyy-30&y-55>0:S5;
!!VRyy-80&y-55>0:Sy-55;

!!VRy-30&y-56>0:Sy-30-1;
!!VRy-80&y-56>0:Sy-80-1;
!!VRyy-30&y-56>0:S6;
!!VRyy-80&y-56>0:Sy-56;


!!IF&y-2=10/y-9=0/y-30=-32:Ny-31/y-81/y-32/y-82;
!!IF&y-2=10/y-9=0/y-30=-33:Ny-31/y-81/y-32/y-82/y-33/y-83;
!!IF&y-2=10/y-9=0/y-30=-34:Ny-31/y-81/y-32/y-82/y-33/y-83/y-34/y-84;
!!IF&y-2=10/y-9=0/y-30=-35:Ny-31/y-81/y-32/y-82/y-33/y-83/y-34/y-84/y-35/y-85;
!!IF&y-2=10/y-9=0/y-30=-36:Ny-31/y-81/y-32/y-82/y-33/y-83/y-34/y-84/y-35/y-85/y-36/y-86;
!!IF&y-2=10/y-9=0/y-30=-37:Ny-31/y-81/y-32/y-82/y-33/y-83/y-34/y-84/y-35/y-85/y-36/y-86/y-37/y-87;


!!IF&y-2=10/y-9=0:N^Press {CTRL+ALT+LeftClick} to build the %Z-2^;
!!CA-1:O?y-41;
!!IF&y-2=10/y-9=36/y-40=y-41:Q4^Would you like to build the %Z-2?^;
!!OW:Ry-40/0/?y-60;
!!OW:Ry-40/1/?y-61;
!!OW:Ry-40/2/?y-62;
!!OW:Ry-40/3/?y-63;
!!OW:Ry-40/4/?y-64;
!!OW:Ry-40/5/?y-65;
!!OW:Ry-40/6/?y-66;
!!VRy-60:-y-50;
!!VRy-61:-y-51;
!!VRy-62:-y-52;
!!VRy-63:-y-53;
!!VRy-64:-y-54;
!!VRy-65:-y-55;
!!VRy-66:-y-56;
!!VRy-13&y-60>=0/y-61>=0/y-62>=0/y-63>=0/y-64>=0/y-65>=0/y-66>=0:S1;
!!CA-1&4/y-13=1:R1;
!!TRy-70/y-71/y-72&4/y-13=1:Ty-91/11/y-93/y-94/y-95/y-96/y-97/y-98;
!!FU72&4/y-13=1/18:Dy-70/y-71/y-72;
!!IF&4/y-13=0:M^You do not have enough resources.^;
!!OW&4/y-13=1:Ry-40/0/y-60;
!!OW&4/y-13=1:Ry-40/1/y-61;
!!OW&4/y-13=1:Ry-40/2/y-62;
!!OW&4/y-13=1:Ry-40/3/y-63;
!!OW&4/y-13=1:Ry-40/4/y-64;
!!OW&4/y-13=1:Ry-40/5/y-65;
!!OW&4/y-13=1:Ry-40/6/y-66;

!?FU73;
!!CAx1/x2/x3:M2/x4/x5/x6;

!?CM1&19;
!!CM:R1;
!!CA-1:B3/43;
!!VRy-1&1:S1;
!!CM:I?y-2;
!!VRy-2:-115;
!!CA-1&y-2>-1/y-2<7:M2/y-2/?y-3/?y-4;
!!OW:C?y-5;
!!CA-1:O?y-6;
!!CM:F?y-7;
!!IF:V1/0;
!!IF&y-1=1/y-2>=0/y-2<7/y-4>0/y-5=y-6/y-7=36:V1/1;

!?CM1&19/1;
!!IF:V2/0;
!!CM:I?y-5;
!!VRy-5:-115;
!!OW:C?y-40;
!!CA-1:T?y-1;
!!CA-1:P?y-70/?y-71/?y-72;
!!TRy-70/y-71/y-72:T?y-91/?y-2/?y-93/?y-94/?y-95/?y-96/?y-97/?y-98;
!!CA-1:M2/y-5/?y-6/?y-7;
!!VRy-8&y-1<8:Sy-1+1*14-1;
!!VRy-8&y-1=8:S131;
!!VRy-10:Sy-1+150;
!!VRy-11|y-1=3/y-1=4/y-1=8:S1;
!!VRy-11|y-1=5/y-1=7:S3;
!!VRy-11|y-1=1/y-1=6:S4;
!!VRy-11|y-1=0/y-1=2:S5;
!!MA:Cy-6/y-11/?y-21;
!!MA:Cy-10/y-11/?y-22;
!!VRy-23:Sy-22-y-21;
!!VRy-23:*y-7;
!!MA:Cy-6/6/?y-24;
!!MA:Cy-10/6/?y-25;
!!VRy-26:Sy-25-y-24;
!!VRy-26:*y-7;
!!OW:Ry-40/6/?y-27;
!!VRy-27:-y-26;
!!OW:Ry-40/y-11/?y-28;
!!VRy-28:-y-23;
!!VRy-30&y-27>=0/y-28>=0:S1;
!!IF&y-2=11/y-8=y-6:Q2/6/y-26/y-11/y-23/2^In order to properly train your troops, you will have to spend some resources. Do you still wish them to be upgraded?^;
!!IF&2/y-30=0:M^You do not have enough resources.^;
!!CA-1:P?y-31/?y-32/?y-33;
!!EXy-31/y-32/y-33/y-5/2:E?y-34;
!!EXy-31/y-32/y-33/y-5/2:R?y-35/136/?y-36/?y-37;
!!CA-1&2/y-30=1:M2/y-5/y-10/y-7;
!!UN&2/y-30=1:R4/-1;
!!EXy-31/y-32/y-33/y-5/2:Ey-34;
!!EXy-31/y-32/y-33/y-5/2:Ry-35/136/y-36/y-37;
!!FU73&18/2/y-30=1:Dy-70/y-71/y-72/y-5/y-10/y-7;
!!OW&2/y-30=1:Ry-40/y-11/y-28;
!!OW&2/y-30=1:Ry-40/6/y-27;
!!CM&y-30=1/2:R0;

!?TH0&19;
!!CA-1:B3/43;
!!CA-1:P?y-1/?y-2/?y-3;
!!FU71&-1:Py-1/y-2/y-3;
!!FU71&-1/18:Dy-1/y-2/y-3;



If it still doesn't work properly then there is some problem in the logic of the script that can't be fixed by me.
____________
The ultimate WoG tester

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


Hired Hero
posted January 23, 2008 01:14 PM

script works perfect. thx a lot.
____________
lolololololololol

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


Promising
Famous Hero
Passed away
posted January 23, 2008 05:40 PM

I'm glad I could help.
____________
The ultimate WoG tester

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


Hired Hero
posted January 24, 2008 10:58 AM

ste i am sorry to keep buging you, but this is the last time, i promise. The thing is i love sagamosa's enhanced arena, but it doesn't work for me.
when i start the game, doesn't matter if the script is turned on or off, it sais that i won my first fight, and gives me the first prize without even visiting an arena.

this is the script, and the graphic file: [url=http://rapidshare.com/files/86185605/enhanced_arena.rar.html]enhanced arena[/url], the script's original number was 87.

if you have the time, pls help me out.
____________
lolololololololol

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 2 pages long: 1 2 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0482 seconds