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 407 pages long: 1 50 100 150 200 250 300 ... 317 318 319 320 321 ... 350 400 407 · «PREV / NEXT»
igrik
igrik


Promising
Known Hero
posted November 24, 2016 01:24 PM
Edited by igrik at 19:00, 25 Nov 2016.

XEricSin said:
Ahh....
Dont understand the code.
Dont know how to run the code.

Maybe you can tell me how the layer sequence works?

Is it that there is a list that contains the building IDs? Then the first building in the list will be shown in the top layer?

Or is it that the layer sequence is determined by the position of the  def in the town screen? There is an erm code that changes the coordinates.

I don't know English well enough, to explain this detail. Sorry.

upd: But you can do in Photoshop image that I saw exactly what you want. Then I can help

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


Known Hero
posted December 21, 2016 12:08 AM
Edited by szaman at 00:09, 21 Dec 2016.

Hi All

I'm making a custom campaign with custom objects/ERM etc... Everything goes well, but i have a little problem i want tu buff the hero specialization.

Offense from 5% to 30% is that possible via ERM?

Also

Is there a way to combine two specialization to one? lets say Offence + Expert Spell.

I would be very pleased, if someone could post a script for this

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


Admirable
Omnipresent Hero
Wog refugee
posted December 21, 2016 12:11 AM

I told you to give precise data, what is "expert spell"? How can one code a spell bonus without knowing which spell or what else you had in mind?

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


Known Hero
posted December 21, 2016 12:29 AM
Edited by szaman at 00:33, 21 Dec 2016.

Salamandre said:
I told you to give precise data, what is "expert spell"? How can one code a spell bonus without knowing which spell or what else you had in mind?


FRENZY i want it to combine with modified 30% offensive.

Edit: Is it also possible to make this "expert Frenzy" to work like a living scroll? that randomly throws a frenzy spell on a random troop? (heroes troops that is).

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


Admirable
Omnipresent Hero
Wog refugee
posted December 21, 2016 08:48 AM

Well this is very vague. What means combine frenzy with the modified offense? Of course we can script frenzy to be cast randomly (yet I would not advice it as it can screw your battle, you know frenzy lets a stack without any defense, right?), but also what means randomly (at start of each round or really random, which means frenzy has chances to be cast on a stack which already acted), and how to combine with offense improved (raise attack by same percentage? Will have probably not effect as there is a cap in attack too, no more damage inflicted).

See, coding is precise, therefore instructions have to be precise too.

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


Known Hero
posted December 21, 2016 12:50 PM

Salamandre said:
Well this is very vague. What means combine frenzy with the modified offense?


The oryginal hero spec in offence is 5% per level. I want to change it to 30% permanent NOT PER LEVEL, and combine the modified Offence (30%) with FRENZY spell (random cast, just like a living scroll).

I Hope that i wrote quite clearly now

Salamandre said:
...but also what means randomly (at start of each round or really random, which means frenzy has chances to be cast on a stack which already acted)


I want the frenzy to work like the Living scroll (X% [lets say 10%?] chances to be cast on a random stack before the attack).

Salamandre said:
See, coding is precise, therefore instructions have to be precise too.


1.Modify offensive 5% per level TO to 30% permanent
2. Combine the Modify offensive (30%)...
WITH!
3. Frenzy Spell that behave like a living scroll (you know how living scroll work?)

and Done... (of course if this is possibile)

IF THIS CAN'T BE DONE!

Then Just modified the offensive to 30% and please tell me how to add a living scroll with frenzy to heroes backpack.

Try it with map editor but there is no living scroll choice there:/

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


Admirable
Omnipresent Hero
Wog refugee
posted December 21, 2016 04:56 PM
Edited by Salamandre at 16:59, 21 Dec 2016.

Thanks but still unclear to me. Offense expert is adding 30% damage and you want it as specialty to do permanent 30% damage, that sounds odd to me and it requires no code, just leave as it is and add fake specialty. Or something I didn't get right?

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


Known Hero
posted December 21, 2016 11:48 PM
Edited by szaman at 23:50, 21 Dec 2016.

Salamandre said:
Thanks but still unclear to me. Offense expert is adding 30% damage and you want it as specialty to do permanent 30% damage, that sounds odd to me...


I second thoughts i have to agree with You its odd i forgot that Expert Offense gives 30%

So i drop the idea to "modified to 30%" and i just want a script that makes spell frenzy cast on random troops,let's say 10% chances

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


Admirable
Omnipresent Hero
Wog refugee
posted December 22, 2016 12:01 AM

ok, I will modify the living scrolls script by adding frenzy to it, then upload the mod. Give me 2-3 days please.

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


Known Hero
posted December 22, 2016 12:26 AM

Salamandre said:
ok, I will modify the living scrolls script by adding frenzy to it, then upload the mod. Give me 2-3 days please.


I really appreciate that, Thank you

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

Tavern Dweller
posted December 22, 2016 06:47 AM

I know this out of blue but anyone can show me where I can find peole to play H3 with me, and how to do. I've played it almost 10 years but just AI, when I started playing it, no one around me bother to play it any more.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 22, 2016 10:46 AM

szaman, I just checked the living scrolls script and frenzy is in. It is cast as every other spell in that script.

So, beside asking me to code things already coded, anything else I can do for you?

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


Known Hero
posted December 23, 2016 12:35 AM

Salamandre said:
...So, beside asking me to code things already coded, anything else I can do for you?


Salamandre i know that a frenzy spell is in the living scroll code BUT! but i want a specs skill that works like a living scroll.

Let's say i'm going in to battle with opposing army. In X turn my hero randomly throws a Frenzy spell on a random troop. That's all.

alternatively...

You Can tell me how to add a living scroll to heroes backpack with frenzy, because i don't know how... In editor there is no options for that.

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


Promising
Supreme Hero
posted December 23, 2016 08:52 AM

I think Szaman wants to say that hero who has Frenzy speciality can randomly cast Frenzy during battle like having Frenzy living Scroll, even he doesn't have frenzy living scroll.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted December 23, 2016 08:53 AM
Edited by Salamandre at 08:56, 23 Dec 2016.

szaman said:


Salamandre i know that a frenzy spell is in the living scroll code BUT! but i want a specs skill that works like a living scroll.

Let's say i'm going in to battle with opposing army. In X turn my hero randomly throws a Frenzy spell on a random troop. That's all.


Maybe is some language problem but if you equip a frenzy living scroll it will do what you ask, no need for me to code anything. What is about "the spec skill" you talk about?


szaman said:
You Can tell me how to add a living scroll to heroes backpack with frenzy, because i don't know how... In editor there is no options for that.


You can't by normal means, either you place the scroll on ground or you add it by erm codes. So it must have some trigger (visit an object, click somewhere etc)
____________
Era II mods and utilities

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


Known Hero
posted December 25, 2016 01:03 AM

Lets's try something diffrent then if the first request is unclear

I was thinking about the new Hero specialization. Forget about the frenzy.

New Hero Specialization: Pillage

Every time when a hero wins a battle he gets a X random resources and Gold.

When a hero captures a Town he gets 5000 gold and X of all resources.

Is this possible to do in ERM.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 25, 2016 08:23 AM
Edited by Salamandre at 08:24, 25 Dec 2016.

Which hero will have this specialty?

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


Known Hero
posted December 25, 2016 04:38 PM

Salamandre said:
Which hero will have this specialty?

Gundula

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


Admirable
Omnipresent Hero
Wog refugee
posted December 25, 2016 05:50 PM
Edited by Salamandre at 17:56, 25 Dec 2016.

ZVSE


!?PI;
!!HE109:X0/0;
!!UN:G2/109/3/291; [Set Gundula specialty picture]

!?BF&1000;
!!IF:V667/0;
!!VRv8003:C0/0/0;
!!BA:H0/?v8001 H1/?v8002;
!!FU&v8001<>109/v8002<>109:E; exit if not gundula
!!IF:V666/1; set flag 666 to true
!!BA:P?v8003/?v8004/?v8005;
!!OB8003:T?y6;
!!CA8003&y6=98:O?v8006;
!!IF&y6=98/v8006>-1:V667/1; set town if not neutral
!!VRv701:S0;  initialize v701, counter stacks health
!!if&v8002<0:; if no defender
!!DO2315264/0/6/1:P; count monsters
!!en:;
!!if&v8002>-1:; if a defender
!!HEv8001:O?y1;
!!HEv8002:O?y2; get owner
!!DO2315265/21/41/1&y1=5:P;  count health
!!DO2315265/0/20/1&y2=5:P;
!!en:;

; Get total health of defender or neutrals
!?FU2315265;  x1 defender ID
!!BMx16:T?y1 B?y2;
!!FU&y1<0:E;
!!MA:Py1/?y3; get HP per unit
!!VRy2:*y3; get total health
!!VRv701:+y2; add stack's health to total health: v701;

!?FU2315264;
!!BA:M1/x16/?y3/?y4; [If neutrals]
!!FU|y3<0/y4=0:E; [Exit if nothing in slot]
!!MA:Py3/?y5; base HP of the creature
!!VRy6:Sy5*y4; total health for the stack
!!VRv701:+y6; add stack's health to total health: v701;

!?BA1&1000/666;
!!HE109:O?y1;
!!IF&y1<0:V666/0; reset flag
!!IF&y1<0:V667/0; reset town flag
!!FU&y1<0:E;
!!VRv702:Sv701;
!!VRy1:S0 T5;
!!VRv701::1000; for resources
!!VRv702&v702<1:S10;
!!VRv701&v701<1:S1;
!!IF:Q1/6/v702/y1/v701/1^From the fleeing enemy, Gundula manages to get some spoils of war^;
!!OW:R-1/y1/dv701;
!!OW:R-1/6/dv702; give resources and gold
!!IF:V666/0; reset flag
!!if&667:;
!!OW:Rv8006/0/?y1;
!!OW:Rv8006/1/?y2;
!!OW:Rv8006/2/?y3;
!!OW:Rv8006/3/?y4;
!!OW:Rv8006/4/?y5;
!!OW:Rv8006/5/?y6;
!!OW:Rv8006/6/?y7;
!!VRy1::10;  !!VRy2::10;  !!VRy3::10;   !!VRy4::10;    !!VRy5::10;   !!VRy6::10;  !!VRy7::10;
!!VRy1&y1=<0:S1;  !!VRy2&y2=<0:S1;    !!VRy3&y3=<0:S1;   !!VRy4&y4=<0:S1;   !!VRy5&y5=<0:S1;  !!VRy6&y6=<0:S1;   !!VRy7&y7=<0:S1;
!!OW:R-1/0/y1;  !!OW:R-1/1/y2;   !!OW:R-1/2/y3;  !!OW:R-1/3/y4;   !!OW:R-1/4/y5;  !!OW:R-1/5/y6; !!OW:R-1/6/y7;
!!IF:L^After defeating the town, Gundula gets %Y1 wood, %Y2 mercury, %Y3 ore, %Y4 sulphur, %Y5 crystal, %Y6 gems, %Y7 gold^;
!!IF:V667/0;
!!en:;
!!UN:R2;

!?CM2;
!!HE-1:N?y11; check hero ID
!!FU&y11<>109:E;  Gundula
!!CM:I?y1;
!!FU&y1<>118:E; specialty icon

!!IF:Q1/-1/-1/4^{~Yellow}Specialty: PILLAGE{~}:

Gets resources after victorious battles.

After defeating a town (not neutral), gets {~Cyan}5000 gold and 10%{~} of that player resources.^;
!!CM:R0;

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


Famous Hero
Game ranger, HotA Player
posted December 25, 2016 10:04 PM
Edited by malax83 at 22:29, 25 Dec 2016.

Hey Salamandre.

I m new to ERA and i ve never used this mod. I m ready to install over complete but i need some help.

Can you help me ? I don t want to code something, i don t have any skill for but i  m unhappy with the dispell spell. When you cast a spell you have to cast a spell with his maximum mastery (basic, advanced or expert) so if you re an awesome wizard, like you Salamandre , you can t cancel a single target spell while you re able to clean all the battlefield.

I hope i don t bother you.. Is it complicated to add a command line which dispell only one target ? i mean like a new spell cause i imagine you can t modify the old one. To be honest i m asking you this but i don t know if it takes too much time, i would like to break this mecanism of dispell everything or not.. You are free to think about how it could work..

Majaczek recently say that "In ERA you cannot add spells, but you can change/replace ones..." i would replace "Destroy undead" or "Death ripple"

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This Popular Thread is 407 pages long: 1 50 100 150 200 250 300 ... 317 318 319 320 321 ... 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1102 seconds