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 ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info 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 334 pages long: 1 40 80 120 160 200 240 280 320 ... 322 323 324 325 326 ... 334 · «PREV / NEXT»
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted February 19, 2017 11:54 AM

In theory is possible but that would take billions of calculations, as there are 18 beach pattern possibilities (from ERM TR column) so first you must calculate all squares around a water square, then find the one fitting, but also this may conflict with precedent nearby water square processed so the change may look bad, aesthetically. And thats only for squares near water, in your screen at least 1-2 additional further squares are beach processed, otherwise it looks weird. So a very big work with a lot of testing for, for a very botched result.
____________
All my Era II mods

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


Promising
Supreme Hero
posted February 19, 2017 02:12 PM

Oh, well I suppose it's not that important I guess. It's just that it looked nice in the campaigns and that the old Morn's Battlefields script does not include beach battlegrounds and it looks kinda odd. But anyway, thanks for the reply
____________
Not idly do the leaves of Lorien fall.

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


Adventuring Hero
posted February 20, 2017 12:46 PM

Is it possible to make a non-shooting creature a shooting one?

Like:
Azure Dragons and Crystal Dragons?

Second:

I have make my own sprite animations for shooting (fireball) and i wanted to add/replace the existing one.

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


Known Hero
posted February 20, 2017 10:43 PM
Edited by robizeratul at 22:45, 20 Feb 2017.

What is the etiquette on using ERM scripts by other people ? Dont want to offend anybody... just talked with RerryR and he will help with scripts on the map im working on(im clueless)...

Anyway, just found 3 scripts. 1 is exactly what im looking for(the move your archer and then shoot script by Bersy).  

The other is not quite, but still close. From the alexander map, the hero has a specialty that gives ranged units bless and precision. That is what I was thinking about before I replayed the map... instead of a specialty I was thinking a a bonus ability to Archery.

Also theres the Yona ability that increases the dmg from jousting, need that at 50%...

Anyway, you guys get the Idea with these examples. I dont condone stealing stuff that took a lot of work to build... what should be done ? is it ok to use scripts if credit is given?

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


Adventuring Hero
posted February 21, 2017 12:47 AM

Guys i really could use your help

I have found this script on Acid Cave. But i get a error every time when i load a map with this script.

ZVSE

!?FU8900;

!!VRx3&x1=1/x2<2:S16;
!!VRx3&x1=1/x2>197:S16;
!!FU|x2<2/x2>197:E;

!!UN:V?y1/?y2;**test version
!!VRx2&y1=358:+7961526; **for 3.58f
!!VRx2&y1=359:+7994814; **for 3.59 + era

!!UN&x1=0:Cx2/1/x3;
!!UN&x1=1:Cx2/1/?x3;

!?PI;
**We set the flag shooting
!!MA:Xnumber_creature/?i;
!!VRi:|4;
!!MA:Xnumber_creature/i;

!!FU89000/number_creature/type of shot;

**Needed to work after loading a saved game
!?GM0;
!!FU89000/number_creature/type of shot;

My Script looks like this:

ZVSE

!?FU8900;

!!VRx3&x1=1/x2<2:S16;
!!VRx3&x1=1/x2>197:S16;
!!FU|x2<2/x2>197:E;

!!UN:V?y1/?y2;**test version
!!VRx2&y1=358:+7961526; **for 3.58f
!!VRx2&y1=359:+7994814; **for 3.59 + era

!!UN&x1=0:Cx2/1/x3;
!!UN&x1=1:Cx2/1/?x3;

!?PI4;
**We set the flag shooting
!!MA:X133/?i;
!!VRi:|4;
!!MA:X133/i;

!!FU89000/133/5;

**Needed to work after loading a saved game
!?GM0;
!!FU89000/133/5;

I want to make Crystal Dragons to shoot lightning (just like titans).

I have use both of this:
!!VRx2&y1=358:+7961526; **for 3.58f
!!VRx2&y1=359:+7994814; **for 3.59 + era

Together and separately and i still get a error...

Of course i have made my own dragon crystal def's that adds a shooting animations..

and of course added "arrows" to this unit:

ZVSE

!#MA:N133/50; [number of shoots]

What i'm doing wrong?

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


Adventuring Hero
posted February 21, 2017 08:03 AM

szaman said:
Guys i really could use your help:(
What i'm doing wrong?

ZVSE

!?PI;   !!FU8900:P133/5/24;
!?GM0;  !!FU8900:P133/5/24;
; FU8900:P[number_creature]/[type of shot]/[number of shoots];

!?FU8900;
!!MA:Nx1/x3;

!!MA:Xx1/?y1;
!!VRy1:|4;
!!MA:Xx1/y1;

!!VRx1:+7994814;
!!UN:Cx1/1/x2;

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


Adventuring Hero
posted February 21, 2017 02:07 PM

Thanks igrik! Works like a charm!

I have just one small request... I thinks it's not so hard..

All i need is only a "end text" just like in Heroes 4 after killing a monster/hero...
Ble ble ble... good work... Press OK... End Game.

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


Known Hero
posted February 22, 2017 09:49 PM

Hi,

i have a little bit stranger question. I guess nobody can answer, but maybe...

When you are in battle and cast a spell with for example !!BMxx:M28/2/3; In this case it would be the air shield spell with duration 2 and at expert level. So now the battle ends and you start a new battle.

When you now check that creature for spells at the start with !!BMxx:M28/?y1/?y2; you will get a zero for duration (y1) and a value of 3 for y2. So what this means is that the value is somehow transfered over to the next battle. I dont know if this was intendet or is a bug in ERM but if offers some nice possibilities. Anyhow my question now is if anybody knows in which variable or adress this value is stored and if it can be manipulated? One can only override it. My guess is that it is in some array
Where could i find such information.

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


Adventuring Hero
posted February 24, 2017 02:37 AM

Hey Guys i need just a little help... I have found this script that makes a empty objects a creatures bank.

ZVSE

!#TM20:S29/600/28/255;

!#VRv801:S0;
!#VRz200:S^Magiczny grzybek^;
!#HT63/30:T200;
!?OB63/30;
!!PO998:V1/?y5;
!!IF&y5<1:Q2^Czy chcesz zaatakować strażników?^;
!!IF&y5=1:M^Nic tu nie ma?^;
!!HE-1&y5=1:R0/d-1;
!!VRv801:S0;
!!HE-1&2/y5<1:Tv998/v999/v1000/18/15;
!!VRv801&2/y5<1:S1;

!$OB63/30;
!!HE-1?y2;
!!PO998&y2<>-1/v801=1:V1/1;
!!IF&y2<>-1/v801=1:Q3/21/18/6/5000/1^Pokonawszy strażników (Leśne Elfy). Zabierasz łupy (5000 szt. złota)^;
!!OW&y2<>-1/v801=1:R-1/6/d5000;

!?TM20;
!!PO15/11/0:V1/0;


The script works fine but i want to add more monsters to defend it. Not only elves like its now but extra creatures like angels, dragons, behemots etc...

I know that this line in script is responsible for defenders:
!!HE-1&2/y5<1:Tv998/v999/v1000/18/15;

But i want to add more creatures, what i have write to get the extra creatures?

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


Admirable
Omnipresent Hero
Wog refugee
posted February 24, 2017 08:14 PM

This is old script and it does not change that object into creature bank, it just scripts a battle when you visit in, then gives a reward if win. A creature bank has the defending army scattered in corners. So, as it is, you can't change the defenders to get several types, only one, as elves for example.

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


Adventuring Hero
posted February 25, 2017 12:46 AM

To bad But still it's useful for me project...

Is there any kind of scripts that creates a "custom creature Bank?"

also...

It would be cool if someone could tell me/or make me a script with "end text message" like in Heroes 4...

eg: I have killed a X monster/Hero, the text appears "You Killed monster/hero, good work, ble ble ble... Click OK... The End".

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


Admirable
Omnipresent Hero
Wog refugee
posted February 25, 2017 06:52 PM

Creature bank: yes, there are at least two ways of creating creature banks:

1) you use an existing creature bank then replace its graphics on first day with the ones of your choice. Depending on which was this CB type/subtype, then you script every visit to that CB, army, reward and such.

2) you can script any object to act like a creature bank, just flag the visit, then create BA trigger with that flag, manually place 5 stacks of your choice in corners, then script reward.

But both solutions depend on a lot of specific data (which CB, is map random or not, which army to script, reward etc) so there is no way I can just script that for you, in a couple of minutes.

About H4 message, I don't recall what it did. If it states which creatures you killed in  battle, which hero etc, I think is possible.

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


Adventuring Hero
posted February 26, 2017 12:14 AM
Edited by szaman at 00:18, 26 Feb 2017.

Quote:
About H4 message, I don't recall what it did. If it states which creatures you killed in  battle, which hero etc, I think is possible.


Lets's say a Monster is in position XYZ and if i kill it, AFTER the battle the text message appears, with only ONE choice (OK).

After clicking OK. End Game.

Same thing when killing a hero.

Quote:
But both solutions depend on a lot of specific data (which CB, is map random or not, which army to script, reward etc) so there is no way I can just script that for you, in a couple of minutes.


Quote:
which CB


Let's say Imp Cache, change name of the bank to Black Citadel and instead of imps it has bone dragons.

Quote:
is map random or not


Map random? If  You mean i map make by map generator, then NO, NOT RANDOM i make my own maps

Quote:
reward


Let's say 8000 gold a 5 mithril.

Quote:
so there is no way I can just script that for you, in a couple of minutes.


Take your Time. I very appreciate that your a helping me, your work effort is not wasted, many people play my maps on Acid Cave and they like the scripts that im  putting  in. Some people even are asking me about the "pillage script" that you have done for me couple weeks ago. If you manage to do it in two weeks it will be great

I just need a "base script" from this i manage to modify the base script to replace the other banks for my future maps

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


Adventuring Hero
posted February 26, 2017 04:20 PM

Krukov from Acid Cave has made a script for me...

ZVSE

!?OB16/1;
!!PO998:B0/50;
!?BA0;
!!PO998:B0/?y1;
!!BA&y1=50:M1/0/116/10 M1/1/34/2 M1/2/9/1 M1/3/9/1 M1/4/9/1 M1/5/34/2 M1/6/116/10;

It Changes creature bank (in this case Dwarven bank) with custom cretures.

But i notice it affects all dwarven banks i want to affected only a specific bank not all.

Also...

I want to change the reward after the battle:
Eg: 5000 gold, 5 gems, minor artifact.

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


Admirable
Omnipresent Hero
Wog refugee
posted February 26, 2017 04:51 PM

I already told you don't give enough information so one can make a proper script. I used as coordinates x/y/z, you replace with the proper ones.

!?OBx/y/z;
!!CBx/y/z:G0/116/10 G1/34/2 G2/9/1 G3/9/1 G4/34/2; [Set guards]
!!CBx/y/z:R5/5 R6/5000; [Add resource bonus]

!$OBx/y/z;
!!HE-1:O?y1;
!!FU&y1<0:E;
!!POx/y/z:N?y2;
!!FU&y2>0:E;
!!UN:J6/4/?y3; generate random minor artifact
!!HE-1:Ay3 B0/?z1;
!!IF:Q1/8/y3/1^After defeating the cave, %Z1 gets a minor artifact.^;
!!POx/y/z:N15;

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


Adventuring Hero
posted February 26, 2017 11:22 PM

Thanks Salamandre... i think i got all the needed scripts now

Notice only one thing... when i approach a dwarven bank and the "default text appears" you know the text "You have found a dwarven treasury, do you want to attack it?" i like it to change it to something random.

eg: You are standing at the threshold of the Black Citadel do you want to attack it?

Quote:
I already told you don't give enough information


Believe me Salamandre... I'm giving you all the information that i think of It's not that i like to bug people i like to give all the info, but sometimes i don't know what questions i should ask

Maybe someone could create a questions list, with will contain numbers of questions that will help scripters to decrypt what the petitioner wants

Good for the petitioner and for the scripter... both of them i think will be happy

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


Admirable
Omnipresent Hero
Wog refugee
posted February 27, 2017 08:43 AM

Ok, here are the changes:

!#VRz904:S^Black Citadel^;
!#OBx/y/z:Hz904;

!?OBx/y/z;
!!OB998:M-1/1/0; disable regular message
!!PO998:N?y1;
!!FU&y1>0:E;
!!IF:Q1^You are standing at the threshold of the %Z904, do you want to attack it?^;
!!FU&-1:E;
!!CBx/y/z:G0/116/10 G1/34/2 G2/9/1 G3/9/1 G4/34/2; [Set guards]
!!CBx/y/z:R5/5 R6/5000; [Add resource bonus]

!$OBx/y/z;
!!CBx/y/z:T?y1; check if taken
!!FU&y1<1:E;
!!HE-1:O?y1;
!!FU&y1<0:E;
!!POx/y/z:N?y2;
!!FU&y2>0:E;
!!UN:J6/4/?y3;
!!HE-1:Ay3 B0/?z1;
!!IF:Q1/8/y3/1^After defeating the cave, %Z1 gets a minor artifact.^;
!!POx/y/z:N15;

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


Adventuring Hero
posted March 03, 2017 04:09 AM

Salamandre
Found a small bug...

!!CBx/y/z:R5/5 R6/5000; [Add resource bonus]

When changing R5 (Gems) to R7 (Mithril) it doesn't work Other resource work fine.

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


Admirable
Omnipresent Hero
Wog refugee
posted March 03, 2017 08:59 AM

It probably means that mithril is not handled in CB receiver.

Modify this:

[...]
!!IF:Q1/8/y3/7/5/1^After defeating the cave, %Z1 gets a minor artifact and 5 bars of mithril.^;
!!OW:R-1/7/5;
[...]

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


Adventuring Hero
posted March 16, 2017 01:49 PM

Is there any kind of script that enables "end game" when you step on it (Local Event) position 30/30/0 only red player, with text of course (you have make it the the mountains, well done!).

Second, the same thing but with monster. Let's say... to finish the game, red player have to kill a monster (Azure dragon) on position 20/25/0, AFTER a kill, a text appears (you have defeated a vile monster), with only one Choice (OK), after clicking OK, the map is over you WIN!.

Third.... same as second, but with a stationary hero, that is standing in position 25/25/0, killing the hero (only red player), enables text (you have defeted a evil villain), with one choice to click (OK) and end game after clicing OK.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 334 pages long: 1 40 80 120 160 200 240 280 320 ... 322 323 324 325 326 ... 334 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 1.4234 seconds