|
|
Altair
Tavern Dweller
|
posted June 17, 2012 06:03 PM |
|
|
Thank you Bersy!
Do you know how to write this script for 3.58?
I know 3.58 is old and obsolete, but many people still use it.
So I want to write a universal script running on both (3.58 and ERA) versions as much as possible.
|
|
OxFEA
Promising
Famous Hero
feanor on DF2.ru
|
posted June 17, 2012 06:25 PM |
|
|
Quote:
Do you know how to write this script for 3.58?
In no way. There is no analog of SN:E in 358.
|
|
Bersy
Honorable
Supreme Hero
|
posted June 17, 2012 07:03 PM |
|
|
Welcome, Altar. I read a bit Polish forum and downloaded your library quite far weeks ago. Nice work, of course, but to say the truth, I see no reasons in trying to support 3.58. Other authors cannot release mods for two versions (1), cannot constantly search for addresses for both versions (2) and cannot implement tons of things in 3.58 in any way (3).
It seems that we have the same direction in modding: making things compatible, easy to install and use. In order to build a good product, one should neglect the out-of-date things, or be burdened with endless crutches and bugs.
Era included all things from 3.58. Old maps, resources and scripts work the same. So backward compatibility exists and for me it's enough.
|
|
Galileo
Known Hero
|
posted June 19, 2012 10:00 AM |
|
|
I have only one question... (I don't know anywhere else to look for the answer... The ERM manual which comes with ERA is quite big, and I can't find the script there...) What's the script which allows ''life without towns''? Like in WoG tutorial.
|
|
JimV
Responsible
Supreme Hero
|
posted June 19, 2012 01:35 PM |
|
|
From ERM Help, the OW (owner) Receiver:
------------excerpt from ERM Help---------------------
PLAYER ORIENTED COMMANDS (OW) RECEIVER
Used for commands that apply to specific players such as resources, teams, number of heroes controlled and time a hero can live without a town.
!!OW:XXXX; These are commands that apply to a specific player.
OPTIONS
... (A-C options)
D#1/#2; Set the number of days that a player remains in the game after losing his or her last town.
1.#1 = gamer number (see Format E1) or current (-1)
#2 = days to be gone (0...127) or live forever (128..254).
If you set 128..254, the gamer will not get a message with a countdown until he captures at least one town and then loses his last one. 255 sets the standard default of 7 days.
2.#1 = -2 - sets the default to to be gone (standard default is 7) for all players
#2 = days (ex: 0...127), (128..255) all players will stay alive forever.
If you set 128..254, the gamer will get an initial message saying he must capture a town within a week but no more following that.
If you set 255, the gamer will get this message every day.
If you capture a town and then lose your last town, the default set by using -2 will remain in effect.
... (other options)
---------------------------------------------------
How to make a script using this command is described in the ERM Help tutorials.
|
|
Galileo
Known Hero
|
posted June 19, 2012 02:15 PM |
|
|
Thank you, JimV. (I'm a new to HC, and I was shocked when I noticed the great Jim Vogan replied me. Heh...)
____________
|
|
JimV
Responsible
Supreme Hero
|
posted June 19, 2012 03:00 PM |
|
|
You're welcome, and it is nice to be thanked (not everyone does it), but I must protest that I am by far the least great of anyone who answers questions here. Bersy and OxFea know much more than I do, with Solitaire345 not far behind. Through hard work, Salamandre has become a very good scripter, and knows much more than I do about Era and mod-making. The list goes on. Since they are in different time zones, sometimes a question comes in when I am awake and they are not, unfortunately for the asker.
|
|
Bersy
Honorable
Supreme Hero
|
posted June 19, 2012 03:47 PM |
|
|
You are too modest Jim ) Most of us are too lasy/busy to make good answers on forums, while you and Valery help everyone.
|
|
Ghost
Undefeatable Hero
Therefore I am
|
posted June 19, 2012 04:01 PM |
|
Edited by Ghost at 16:17, 19 Jun 2012.
|
Invaluable group/team! If all stop..
____________
Fight MWMs - stand teach
|
|
Bersy
Honorable
Supreme Hero
|
posted June 19, 2012 09:49 PM |
bonus applied by angelito on 18 Jul 2012. |
|
The following script is used to place troops using mouse in tactics phase. Left click to select new active stack or teleport the current one to specified position.
!?FU111000;
!!UN:C6919200/4/?y1;
!!VRy1:+81256;
!!UN:Cy1/1/?x1;
!!FU&x1<>1:E;
!!BG:N?y1 Q?y2;
!!BHy2:N?y3;
!!HEy3:S19/?y4;
!!VRy5:S1-y2;
!!BHy5:N?y6;
!!VRy7:S0;
!!HEy6&y6<>-1:S19/?y7;
!!VRy4:-y7*2;
!!VRx2:Sy4;
!?FU77006;
!!FU111000:P?v2/?v3;
!!FU&v2<>1:E;
!!SN:W^Tactics.GiveTurn^/?y3;
!!FU&y3=0:E;
!!VRy3:-1;
!!VRy4:Sy3:21;
!!VRy5:Sy3%21;
!!SN:Xy4/y5;
!!SN:W^Tactics.GiveTurn^/0;
!?CM4;
!!FU111000:P?v2/?v3;
!!FU&v2<>1:E;
!!CM:F?y1 D?y2 S?y99;
!!FU|y1<>0/y2<=0/y2>186/y99<>12:E;
!!VRy4:Sy2:17;
!!VRy3:Sy2%17;
!!FU|y3=0/y3=16:E;
!!CM:R0;
!!BG:N?y5 Q?y50;
!!BU:Ey2/?y6;
!!if&y6<>-1:;
!!BMy6:F?y7;
!!VRy8:Sy7&96;
!!FU&y8<>0:E;
!!VRy9:Sy6:21;
!!FU&y9<>y50:E;
!!VRy6:+1;
!!SN:W^Tactics.GiveTurn^/y6;
!!BG:A12;
!!SN:Q;
!!el:;
!!BMy5:F?y7;
!!VRy8:Sy7&1;
!!VRy8&y50=1:*-1;
!!if&y50=0:;
!!VRy10:S1+v3;
!!FU&y3>y10:E;
!!el:;
!!VRy10:S15-v3;
!!FU&y3<y10:E;
!!en:;
!!VRy11:Sy2+y8;
!!VRy3:Sy11%17;
!!if&y50=0:;
!!FU&y3>y10:E;
!!el:;
!!FU&y3<y10:E;
!!en:;
!!BMy5:Py2;
!!SN:Q;
!!en:;
|
|
kegolo
Promising
Famous Hero
of infamy
|
posted June 20, 2012 06:26 AM |
|
|
If I am using HE:X4, do I need to include another line for the upgraded version of the creature, or is that taken care of? And what about lvl 8 creatures??
|
|
JimV
Responsible
Supreme Hero
|
posted June 20, 2012 01:50 PM |
|
Edited by JimV at 13:55, 20 Jun 2012.
|
I don't know, but the ERM Help language only guarantees that a single, specified creature type will be affected per Hero. Perhaps the authors wanted people to test some commands for themselves, to get practice using ERM. The first such test might take an hour to set up, but once you have a test map with Heroes, neutral creatures, and other objects on it it, it only takes about five minutes to add another test. (Add a !#HE:X4 instruction to a Timed Event script for a Hero that is on the map, edit the Hero's troops, save, run Heroes 3 for that map, and open the Hero Screen to check troop bonuses.)
An ERM script could be written to check Hero numbers at the start of a battle, and apply bonuses to several different creature types for specific Heroes in a custom map, of course.
P.S. Thanks to Bersy for the script to make Tactics creature placement easier.
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 20, 2012 02:14 PM |
|
|
It only increases stats to the creature specified, no upgrade or level 8. As Jim said, should be combined with battle script.
|
|
ChelseaPerfect
Hired Hero
|
posted June 23, 2012 04:38 AM |
|
|
Help me
When I write this ERM, I can't end turn, but I don't why.
When I remove this ERM, I can end turn easy.
Plesae, help me and tell me why , thanhks
ZVSE
!#HE31:C0/0/169/11111 C0/1/116/22222 C0/2/109/77777 C0/3/99/33333 C0/4/73/44444 C0/5/0/55555 C0/6/5/66666;
!#HE106:C0/0/172/16934 C0/1/192/16785 C0/2/195/800 C0/3/67/1000 C0/4/25/7334 C0/5/21/14388 C0/6/169/12678;
!#HE32:C0/0/151/2034 C0/1/156/2085 C0/2/154/2008 C0/3/157/2045 C0/4/155/2034 C0/5/158/2088 C0/6/168/3078;
!#HE143:C0/0/65/20763 C0/1/132/1060 C0/2/19/20765 C0/3/7/50 C0/4/127/20000 C0/5/135/1088 C0/6/35/20000;
!#HE89:C0/0/109/24528 C0/1/93/28464 C0/2/39/20005 C0/3/55/1 C0/4/137/125000 C0/5/170/125000 C0/6/171/125000;
!#HE96:C0/0/51/24528 C0/1/9/28464 C0/2/101/80000 C0/3/1/50 C0/4/129/25000 C0/5/159/300000 C0/6/173/450000;
!#HE121:C0/0/45/245280 C0/1/158/3464 C0/2/7/100 C0/3/55/10 C0/4/7/100 C0/5/158/3000 C0/6/45/240000;
!#HE98:C0/0/67/2143 C0/1/93/126532 C0/2/121/52762 C0/3/39/42786 C0/4/121/48727 C0/5/93/126353 C0/6/67/2113;
!#HE97:C0/0/81/52347 C0/1/134/5287 C0/2/102/82625 C0/3/194/128732 C0/4/102/82356 C0/5/134/5278 C0/6/81/52981;
!#HE48:C0/0/132/11247 C0/1/134/12187 C0/2/133/12125 C0/3/135/12732 C0/4/151/12356 C0/5/155/11278 C0/6/196/11281;
!#HE48:F65/56/80/60;
!#HE61:C0/0/169/61247 C0/1/45/52187 C0/2/150/22125 C0/3/192/112732 C0/4/75/112356 C0/5/95/15078 C0/6/133/19281;
!#HE61:F70/66/80/62;
!#HE87:C0/0/65/86821 C0/1/65/82187 C0/2/65/82125 C0/3/65/82732 C0/4/65/82356 C0/5/65/85078 C0/6/65/89281;
!#HE87:F75/70/82/65;
!#HE9:C0/0/39/76821 C0/1/35/152187 C0/2/39/72125 C0/3/35/152732 C0/4/39/72356 C0/5/35/155078 C0/6/39/79281;
!#HE9:F78/72/84/68;
!#HE8:C0/0/41/11111 C0/1/41/11111 C0/2/41/11111 C0/3/41/11111 C0/4/41/11111 C0/5/41/11111 C0/6/41/11111;
!#HE8:F80/74/86/70;
!#HE16:C0/0/29/1111111 C0/1/29/1111111 C0/2/29/1111111 C0/3/29/1111111 C0/4/29/1111111 C0/5/29/1111111 C0/6/29/1111111;
!#HE16:F82/78/88/80;
!#HE27:C0/0/25/188888 C0/1/25/188888 C0/2/25/188888 C0/3/25/188888 C0/4/25/188888 C0/5/25/188888 C0/6/25/188888;
!#HE27:F84/80/90/82;
!#HE10:C0/0/9/255555 C0/1/9/255555 C0/2/9/255555 C0/3/9/255555 C0/4/9/255555 C0/5/9/255555 C0/6/9/255555;
!#HE10:F84/80/90/82;
!#HE11:C0/0/196/11111 C0/1/196/11111 C0/2/196/11111 C0/3/196/11111 C0/4/196/11111 C0/5/196/11111 C0/6/196/11111;
!#HE11:F84/80/90/82;
!#HE56:C0/0/53/122222 C0/1/53/122222 C0/2/53/122222 C0/3/53/122222 C0/4/53/122222 C0/5/53/122222 C0/6/53/122222;
!#HE56:F86/82/90/82;
!#HE112:C0/0/55/999 C0/1/55/999 C0/2/55/999 C0/3/55/999 C0/4/55/999 C0/5/55/999 C0/6/55/999;
!#HE112:F86/82/90/84;
!#HE113:C0/0/67/7777 C0/1/67/7777 C0/2/67/7777 C0/3/7/1222 C0/4/67/7777 C0/5/67/7777 C0/6/67/7777;
!#HE113:F86/82/90/84;
!#HE28:C0/0/5/699999 C0/1/5/699999 C0/2/5/699999 C0/3/5/699999 C0/4/5/699999 C0/5/5/699999 C0/6/5/699999;
!#HE28:F87/84/91/85;
!#HE5:C0/0/142/8076 C0/1/193/8786 C0/2/195/4247 C0/3/136/9170 C0/4/138/8258 C0/5/56/3125936 C0/6/172/5320;
!#HE17:C0/0/69/69999 C0/1/69/69999 C0/2/69/69999 C0/3/69/69999 C0/4/69/69999 C0/5/69/69999 C0/6/69/69999;
!#HE17:F87/84/91/85;
!#HE86:C0/0/12/99999 C0/1/26/99999 C0/2/40/99999 C0/3/54/99999 C0/4/82/99999 C0/5/130/99999 C0/6/110/99999;
!#HE86:F88/87/91/85;
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 23, 2012 04:43 AM |
|
|
Quote:
C0/6/29/1111111;
I think the game can't handle such quantities (>30 000). AI heroes with such armies will freeze the game.
Quote:
C0/0/67/7777 C0/1/67/7777 C0/2/67/7777 C0/3/7/1222 C0/4/67/7777 C0/5/67/7777 C0/6/67/7777;
Giving in instructions thousands of same creatures in all slots makes no sense. AI will pack them together on first turn and will freeze if resulting slot has more than 30k again. This must be scripted directly in battle.
|
|
ChelseaPerfect
Hired Hero
|
posted June 23, 2012 05:15 AM |
|
|
@Salamandre
In Alexander, you wrote this ERM:
!#HE51:C0/0/194/9999 C0/1/194/9999 C0/2/194/9999 C0/3/194/9999 C0/4/194/9999 C0/5/194/9999 C0/6/194/9999;
!#HE51:S0/3 S1/3 S2/3 S3/3 S5/3 S7/3 S8/3 S9/3 S11/3 S13/3 S14/3 S15/3 S17/3 S18/3 S21/3 S22/3 S23/3 S24/3 S25/3;
!?BA0&1000;
!!BA:H0/?y-95;
!!BA:H1/?y-93;
!!HE51|y-95=51/y-93=51:C0/0/194/9999 C0/1/194/9999 C0/2/194/9999;
!!HE51|y-95=51/y-93=51:C0/3/194/9999 C0/4/194/9999 C0/5/194/9999 C0/6/194/9999; (Ignatius)
Can I write my ERM like your ERM?
|
|
Salamandre
Admirable
Omnipresent Hero
Wog refugee
|
posted June 23, 2012 05:29 AM |
|
|
If hero has zero movement radius is ok. Still don't give more than 30k in one slot.
|
|
kegolo
Promising
Famous Hero
of infamy
|
posted June 24, 2012 06:30 PM |
|
|
Does anyone know the name of the ghost's resurrection ability sound file? Can't seem to find it in Heroes3.snd
|
|
Hero_Of_Light
Responsible
Supreme Hero
|
posted June 25, 2012 04:54 PM |
|
|
I've been trying to create a random map but there's a popup window that writes: "could not create a random map that fits current choices"
However, this occurs with any combination of choices. Does anyone know what might be wrong?
____________
Not idly do the leaves of Lorien fall.
|
|
Bersy
Honorable
Supreme Hero
|
posted June 25, 2012 04:59 PM |
|
|
|
|