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 / NEXT»
bloodsucker
bloodsucker


Legendary Hero
posted July 22, 2024 07:54 AM

How do I turn this:

!!IF&y3=0:M^You earned the ability to Fly.^;

into this?

!!IF&y2=43:Q1/8/150/1^You got an Artifact.^;

Is it just the information that is missing in the help or aren't the creature EA abilities available for simple dialogs and I need to do something different?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 22, 2024 10:42 AM

I have no idea what's about. Show entire script and what you want it to do.

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


Legendary Hero
posted July 22, 2024 12:59 PM
Edited by bloodsucker at 13:05, 22 Jul 2024.

Salamandre said:
I have no idea what's about. Show entire script and what you want it to do.
I want to show a message as in the second line, with a picture of something, in this case the image used for the EA ability Fly. But the images of the EA skills don't appear in the help's list, so I asked if is missing information or I'll need to use the other dialogs. Plus I'm not sure where are those images, if you know it by heart, please...

Everything else is working fine, at least at this moment. Code is quite simple.

But since you asked...

!?OB92/134/0;
!!PO998:S?v1; ask what value in PO, v998 holds current object coordinates


!!VRv1:+1; increment +1 after each visit

!!PO998:S?v1; check v1 on entry
!!IF&v1=0:M^Here you can do 100 battles a day.^;
!!IF&v1>=100:M^You have exausted your battles here for today.^; exit if already 250 times today
!!FU&v1>=100:E;

!!VRv1:+1; increment +1 after each visit
!!PO998:Sv1;
!!IF:M^You are in your %V1 battle here today^;

!!HE-1:Wd700;

!!VRi:R5;
!!HE-1&i=0:T92/134/0/25/150;
!!HE-1&i=1:T92/134/0/39/120;
!!HE-1&i=2:T92/134/0/67/120;
!!HE-1&i=3:T92/134/0/81/180;
!!HE-1&i=4:T92/134/0/121/180;
!!HE-1&i=5:T92/134/0/195/120;

!!VRy1:R12;
!!OW&y1=0:R-1/0/d3;
!!OW&y1=0:R-1/2/d3;
!!OW&y1=1:R-1/1/d3;
!!OW&y1=2:R-1/3/d3;
!!OW&y1=3:R-1/4/d3;
!!OW&y1=4:R-1/5/d3;
!!OW&y1=5:R-1/5/d3;
!!OW&y1=6:R-1/5/d3;
!!OW&y1=7:R-1/6/d3000;
!!OW&y1=8:R-1/6/d3000;
!!OW&y1=9:R-1/6/d3000;
!!OW&y1=10:R-1/6/d3000;
!!OW&y1=11:R-1/6/d3000;
!!OW&y1=12:R-1/6/d3000;

!!VRy2:R120;
!!HE-1&y2=0:Fd1/d/d/d;
!!IF&y2=0:Q1/31/1/1^You got +1 of Attack.^;
!!HE-1&y2=1:Fd/d1/d/d;
!!IF&y2=1:Q1/32/1/1^You got +1 of Defense^;
!!HE-1&y2=2:Fd/d/d1/d;
!!IF&y2=2:Q1/33/1/1^You got +1 of Power^;
!!HE-1&y2=3:Fd/d/d/d1;
!!IF&y2=3:Q1/34/1/1^You got +1 of Knowledge^;

!!HE-1&y2=14:C2/13/d4/1/132000;
!!IF&y2=14:Q1/21/13/1^Archangels join your army^;

!!OW&y2=32:R-1/7/d5;
!!IF&y2=32:M^You got 5 bars of Mithril^;

!!HE-1&y2=40:A146;
!!IF&y2=40:Q1/8/146/1^You got an Artifact.^;
!!HE-1&y2=41:A147;
!!IF&y2=41:Q1/8/147/1^You got an Artifact.^;
!!HE-1&y2=42:A148;
!!IF&y2=42:Q1/8/148/1^You got an Artifact.^;
!!HE-1&y2=43:A150;
!!IF&y2=43:Q1/8/150/1^You got an Artifact.^;
!!HE-1&y2=44:A151;
!!IF&y2=44:Q1/8/151/1^You got an Artifact.^;
!!HE-1&y2=45:A154;
!!IF&y2=45:Q1/8/154/1^You got an Artifact.^;

!!HE-1&y2=46:A155;
!!IF&y2=46:Q1/8/155/1^You got an Artifact.^;
!!HE-1&y2=47:A155;
!!IF&y2=47:Q1/8/155/1^You got an Artifact.^;
!!HE-1&y2=48:A155;
!!IF&y2=48:Q1/8/155/1^You got an Artifact.^;

!!if&y2=64:;
 !!VRy3:R4;
 !!IF&y3=0:M^You earned the ability to Fly.^;
 !!IF&y3=1:M^You earned the ability of Dragon Breath^;
 !!IF&y3=2:M^You earned the ability to Attack Twice^;
 !!IF&y3=3:M^You earned the ability to Attack All Around^;
 !!IF&y3=4:M^You earned the ability of No Retaliation^;
 !!VRy4&y3=0:S2;
 !!VRy4&y3=1:S8;
 !!VRy4&y3=2:S32768;
 !!VRy4&y3=3:S524288;
 !!VRy4&y3=4:S65536;

 !!VRz1:S^Halflings^;
 !!VRz2:S^Lava Sharpshooters^;
 !!VRz3:S^Royal Griffins^;
 !!VRz4:S^Cruzaders^;
 !!VRz5:S^Enchanters^;
 !!VRz6:S^Hell Steeds^;
 !!VRz7:S^Archangels^;
 !!VRz8:S^Select the creature to get the ability^;
 !!VRz9:S^I don't care.^;

 !!IF:G5/1024/256/8/1/2/3/4/5/6/7/9;
 !!VRy5&v1024=1:S138;
 !!VRy5&v1024=2:S171;
 !!VRy5&v1024=4:S5;
 !!VRy5&v1024=8:S7;
 !!VRy5&v1024=16:S136;
 !!VRy5&v1024=32:S195;
 !!VRy5&v1024=64:S13;

 !!MA:Xy5/?y6; [Read Creature Flags1]
 !!VRy6:|y4; [OR Creature Flags with Special Ability ]
 !!MA:Xy5/y6; [Set updated Creature Flags]
!!en:;


!#TM31:S1/999/1/1;
!?TM31;
!!PO92/134/0:S0;

[Smileys]
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 22, 2024 05:13 PM

Well, just use icon of fly spell (Q1/9/spell number/1).

Btw, your script doesn't check if hero is alive after battle, so reward is given no matter.

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


Legendary Hero
posted July 22, 2024 05:55 PM
Edited by bloodsucker at 18:42, 22 Jul 2024.

I gave the example with Fly cause it was the first ability. What's the spell for "Attack All Around" or "Attack Twice"?
I guess I could use the picks of creatures that have the ability like Hydras and Crusaders but then will have to change the description of the creature, cause it comes with that text (and I don't know how to do it but I remember you did it somewhere).

I was going to test this but since it's about that... If I do something in a post visit to an object, it will only run if the hero could do the visit it, right?

____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 22, 2024 06:48 PM

Yes, visit and post visit is always about hero, but remember to add flag 1000 to skip AI visits.

No, pics for abilities are not available for standard dialogs.

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


Legendary Hero
posted July 22, 2024 06:59 PM

Salamandre said:
Yes, visit and post visit is always about hero.
I mean, if I give something in a post visit to an object (in the case a learning stone) it will only run the first time the hero "visits" the object, right? He can't get it over and over by revisiting it, right?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 22, 2024 07:25 PM

Both are triggers thus work same way, if you don't block by conditions, it will give unlimited times.

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


Legendary Hero
posted July 23, 2024 08:48 AM
Edited by bloodsucker at 11:54, 23 Jul 2024.

Is there a document I'm not aware of that connects heroes with their .pcx files? I know the names follow certain rules like KN for knight but I can only look for them manually and I wanted to trade some pics already in the game (so I can have only pretty faces on the screen...)

Do you still have defs somewhere? I would like to see the Serafin and other alternatives to Archangels, also sword/pikemen and horses (mounted or not) and maybe elephants, whatever fits a human Castle, where can I find them and what do I have to do to have them working in a map/mod?
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 23, 2024 01:11 PM
Edited by Salamandre at 13:13, 23 Jul 2024.

Vallex portraits

Portraits manager

Dtmang portraits

Striker portraits

For creatures,

Itsjustme Creatures

But thats long work, need to be motivated.

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


Legendary Hero
posted July 23, 2024 03:48 PM
Edited by bloodsucker at 16:16, 23 Jul 2024.

I know the portrait pacs, at least some of them work by replacing the KN00xx with another file also called KN00xx... What I wanted was a text file documenting why KN0000 is Orrin and KN0001 is Valeska, so I don't have to open each file to see who is it.
Would probably look like a grid.

You say it's a long way just to learn to replace the defs or you think me, with my clumsy hands and my failing eyes, I'm wanting to try to learn how to draw in Photoshop or similar? It would take another lifetime...

P.S. I got you, it looks like I'll need a tutorial just to use the tools... I have no idea what happened to the defs I just imported.

Sorry for being such a pain in the ass, I see I've come to this point 10 or 12 years later.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 23, 2024 04:17 PM

There is no quick way. You have to browse portraits then rename/replace manually, same for creatures.

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


Legendary Hero
posted July 23, 2024 07:13 PM
Edited by bloodsucker at 19:23, 23 Jul 2024.

Ok, I wrote this based on the example you gave me of TEW III Shield but it is for Alexander's specialty (Adelaide exactly, Shiva with some changes) but it isn't working... My bet is on the trigger but I tried several ways and all failed.
Plus I need to check for shooting ability and I don't know how to do that.

** in Battle enchantements for Adelaide & Shiva
!?BR&1000; ignore v7238    ????? what is IGNORE?
!!BA:H0/?y1 H1/?y2; check hero left/right
!!HEy1:O?y3; !!HEy2&y2>-1:O?y4; check their color
!!if&y1=11:;
!!DO6378421/0/20/1&y3=0/y6>0:Py1;
!!en:;
!!if&y1=99:;
!!DO6378422/0/20/1&y3=0/y6>0:Py2;
!!en:;
!!if&y2=11:;
!!DO6378421/21/41/1&y2>-1/y4=0/y8>0:Py1;
!!en:;
!!if&y2=99:;
!!DO6378421/21/41/1&y2>-1/y4=0/y8>0:Py2;
!!en:;

!?FU6378421; in battle
!!BMx16:T?y1; check creature type
!!if|y1<145/y1>149:; ignore machines
!!BMx16:M41/999/3; bless
!!BMx16:M44/999/3; precision
!!en:;


!?FU6378422; in battle
!!BMx16:T?y1; check creature type
!!if|y1<145/y1>149:; ignore machines
!!BMx16:M43/999/3; bloodlust add spells
!!BMx16:M27/999/3; shield
!!en:;


____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 23, 2024 09:25 PM
Edited by Salamandre at 21:29, 23 Jul 2024.

Thats because I paste my scripts, so you see how is done, but if you use them without removing my conditions, will not work./

For instance :

!!DO6378421/0/20/1&y3=0/y6>0:Py1;

You have to remove y6>0 (and later y8 as well) as your script doesn't check for y6, neither y8, mine did. Just an example.

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


Legendary Hero
posted July 23, 2024 09:39 PM

Sorry, didn't paid enough attention to that line. Now it's working. It gives Precision and Bless to everyone but since the mass enchants on the creatures also do it, I don't care.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted July 23, 2024 09:44 PM

For checking shooters for precision :

!?FU6378421; in battle
!!BMx16:T?y1; check creature type
!!if|y1<145/y1>149:; ignore machines
!!BMx16:M41/999/3; bless
!!BMx16:F?i; Add this
!!VRi:&4; and this
!!BMx16&i>0:M44/999/3; and here, precision
!!en:;



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


Legendary Hero
posted July 23, 2024 09:51 PM
Edited by bloodsucker at 21:59, 23 Jul 2024.

Thanks, I'll add it but, as I said, I have a 4 at the end of Lava Sharpshooters !!EA Precision, so everyone gets it anyway. There are values above 4 that respect certain conditions but I don't remember where I found that info or if it applies to these abilities or only to magic immunities.

At least I've learned about !!BM:F?i, I was wondering how to get the flags, I'm sure it will be useful in the future.
____________

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


Promising
Supreme Hero
Researching Magic
posted July 24, 2024 07:13 AM

bloodsucker said:

At least I've learned about !!BM:F?i, I was wondering how to get the flags, I'm sure it will be useful in the future.


In the ERM Help document of course. Everything you need is there. Flags can be found Format FL - Monster flags
The document should come with your H3 ERA installation.

You might also be interested: http://heroescommunity.com/viewthread.php3?TID=32519&pagenumber=1

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


Legendary Hero
posted July 24, 2024 10:48 PM

That one is always side by side with Google Translator, I believe I use it more. But you need to know what you want to learn...
I've used !!MA:X since forever so when I saw no X, I didn't thought of looking elsewhere. But I should have known it was possible, so it needed to be there.
____________

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


Legendary Hero
posted July 28, 2024 07:15 PM
Edited by bloodsucker at 19:52, 28 Jul 2024.

Is it possible to add the type of abilities you add with !!EA:B (in this case Attack & Return) to a monster in the battlefield? It would be for a specialty, so it has to be done totally in battle.

P.S. Ok, this works but I have no idea how to do it dynamically,

!!EA-2:B6/1/102/98/1/1/1/1/1/1/1/1/1/1/1; A&R

will have to be

IFz1&y1=0:S-1;  and so on?

____________

 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 / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.4199 seconds