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 ... 248 249 250 251 252 ... 300 350 400 407 · «PREV / NEXT»
xevolution
xevolution

Tavern Dweller
posted December 12, 2014 12:38 PM
Edited by xevolution at 12:43, 12 Dec 2014.

xevolution said:

script, for testing :

!?MF1&1000;    before damage dealt
!!MF:N?y-1;    target stack?

!!BMy-1:B?y-2 N?y-3 H?y-4 L?y-5 I?y-99; original number of units / current number of units /HP/Hp lost by next monster
!!BMy-1:U1/?y-60;                  stack's minimum damage
!!BMy-1:U2/?y-61;                  stack's maximum damage

!!MF:F?y-6;              final damage?

!!VRy-10:Sy-3 *y-4;            initial HP pool
!!VRy-11:Sy-3 *y-4 -y-5 -y-6;     HP pool after damage

!!VRy-12:Sy-11 :y-2;     new HP/unit after damage

!!BMy-1&y-11<=0:Ky-10;   kill whole stack if damage > HP pool
!!VRy-13&y-12=0:Sy-2 -y-6;
!!BMy-1&y-12=0:H1 Ny-13; set HP/unit =1,  set new number of units if HP/unit=0
!!VRy-15:Sy-12 *y-3; !!VRy-14&y-12>=1:Sy-11 -y-15; !!VRy-12&y-14>=y-4:+1; !!VRy-14&y-14<y-4:*-1;  !!VRy-14&y-14>=y-4:Sy-12 *y-3 -y-11;
!!BMy-1&y-12>=1:Ly-14 Hy-12;

!!VRy-52:Sy-10 : y-11;
!!VRy-53:Sy-52 - 1;
!!VRy-62:Sy-60 - y-53; modified min damage
!!VRy-63:Sy-61 - y-53; modified max damage

!!BMy-1:U1/y-62;                  modified stack's minimum damage
!!BMy-1:U2/y-63;                  modified stack's maximum damage

!!MF:F0;      disable all real damage, damage now done via scripting above



Fixed it and completely changed it.
Post it into [url]http://heroescommunity.com/viewthread.php3?TID=39062&pagenumber=25[/url]

Enjoy! I have played it and used it as default active mod in my games and so far, so good.

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


Hired Hero
posted December 14, 2014 12:27 PM

When I test the map, it's an error like this.

[URL=https://imageshack.com/i/iqOSsdjCp][/URL]

Initially, I thought a few errors with ERM. But when i remove all ERM, it was such error, and i can't play map. Please help me fix it

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

Tavern Dweller
posted December 14, 2014 12:41 PM

Hi, I would like to ask you Salamandre, if you would be able to create a mod allowing to see amount of resources of other players both allies and enemies.
____________

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


Admirable
Omnipresent Hero
Wog refugee
posted December 14, 2014 01:25 PM
Edited by Salamandre at 13:27, 14 Dec 2014.

@Chelsea, looks like the map is corrupted in editor, like your previous. Maybe upload it so I can take a look?

@Kantor: very easy, try yourself to write it and show result for assistance.

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


Legendary Hero
posted December 14, 2014 02:23 PM

I have no idea where to ask this.
I've created some features that use objects form Salamandre's "All my Objects for WoG". Now I was thinking to create a thread to publish them and I would like to install the objects I worked with them but I have no idea how to extract them from the patch, even if I know how to indicate the path for the object in the data folder.
Is there a thread teaching this? Is it simple enouch to be awsered in a post?
Thx

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


Admirable
Omnipresent Hero
Wog refugee
posted December 14, 2014 02:44 PM

I don't know what mod is "all my objects for wog", I never released such mod

But if you speak about the different graphical patches, why not release the whole patch + your scripts? Because extracting and recoding each object is very long and boring. Data/objects folder has the text file with the ID's.
____________
Era II mods and utilities

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

Tavern Dweller
posted December 14, 2014 02:54 PM

Salamandre said:
@Kantor: very easy, try yourself to write it and show result for assistance.


I would like to, but unfortunately I don't know even a essential things about ERM, that's why I'm asking you

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


Admirable
Omnipresent Hero
Wog refugee
posted December 14, 2014 03:12 PM

Well, is a good thing you asked because my trainer mod should do that, but it doesn't, just checked. Will fix it before tomorrow, then post link.
____________
Era II mods and utilities

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


Legendary Hero
posted December 14, 2014 03:23 PM

Salamandre said:
I don't know what mod is "all my objects for wog", I never released such mod




Yeah, "All my objects for WoG" is the name of the thread where you linked them but as far as I remember it was a single install file so I always tought about it as "All my objects for WoG" and yes it's a patch for editor with hundreds of decorative objects and a few alternatives for for wells, utopias etc... It has a bunch os strange altars of sacrifice. Do you recall it now?

But if you think attach the hundreds of objects is best will do it like that. You are probably right, u use to know much better how to acchive an objective when modding the game.

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

Tavern Dweller
posted December 14, 2014 03:27 PM

Salamandre said:
Well, is a good thing you asked because my trainer mod should do that, but it doesn't, just checked. Will fix it before tomorrow, then post link.

Ok, thanks, will wait.

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


Admirable
Omnipresent Hero
Wog refugee
posted December 14, 2014 03:31 PM
Edited by Salamandre at 15:42, 14 Dec 2014.

Trainer mod reuploaded.  Press F2, then enter the name of a hero. You will see that hero faction resources and even be able to modify them.

bloodsucker said:

But if you think attach the hundreds of objects is best will do it like that. You are probably right, u use to know much better how to acchive an objective when modding the game.


Not necessarily. Just add in your mod read me: requires new Objects patch mod.
____________
Era II mods and utilities

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


Legendary Hero
posted December 14, 2014 10:19 PM

Salamandre said:
Just add in your mod read me: requires new Objects patch mod.


I was confusing "New Objects Patch" with "Fred Objects Patch", sorry.

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


Known Hero
posted December 15, 2014 01:54 PM

any idea to get the artifacts bonus although they are in the backpack? AE1, probably won't work

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


Admirable
Omnipresent Hero
Wog refugee
posted December 15, 2014 07:43 PM
Edited by Salamandre at 19:46, 15 Dec 2014.

It is possible, but cumbersome to keep track after battle and avoid big problems. Basically you need to check if artefact is in backpack during BA trigger then activate manually effect.

The problem will be after battle, as you need to remove effect, so you need to check for ALL 170 artifacts, this needs complex storage method.
But if you use this system for only one artifact, then it may work. But if hero died, then his artifact went to the winner, so after battle your check will not find it, yet the effect is still present.

if artifact bonus is not for battle, then check in timer if present in backpack, then add manually resource or movement (or other adventure bonus) for this turn.

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


Known Hero
posted December 15, 2014 08:58 PM
Edited by Mister_kalu at 21:01, 15 Dec 2014.

the idea of this is obviously keep the same bonus for all of them and get the correct order of appearance in the game to transfer it to my custom dialog with the slots 19-82 of current hero.

i don't know but probably i couldn't emulate the inventory of h2 with this system. or at least not for all the heroes


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


Admirable
Omnipresent Hero
Wog refugee
posted December 15, 2014 09:11 PM

Why not use heroes meeting screen mod, redesigned to H2 graphics? it has custom dialog for backpack artifacts.

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


Known Hero
posted December 15, 2014 09:52 PM

i will try , but carry out the final purpose is visually impossible, maybe the solution is to put all the artifacts of the hero in the backpack and use some W variables to store the order of appearance only when the hero screen is charged and restore it when the exit button is pressed

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


Admirable
Omnipresent Hero
Wog refugee
posted December 15, 2014 10:00 PM

its hard to understand what you really want. Showing artifacts from backpack in custom dialog is easy. Making them have effect like they were equipped is a problem, because 1) when a battle ends, artifacts are lost and they go to the winner, or the game only calculates equipped artifacts stats reset, then 2) you will need a system storing 170 artifacts and their (possibly) different effects.

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


Known Hero
posted December 15, 2014 10:19 PM

Salamandre said:
its hard to understand what you really want. Showing artifacts from backpack in custom dialog is easy. Making them have effect like they were equipped is a problem, because 1) when a battle ends, artifacts are lost and they go to the winner, or the game only calculates equipped artifacts stats reset, then 2) you will need a system storing 170 artifacts and their (possibly) different effects.


plus remember the order of the acquisition for every hero( f.e the magic book can be stored in the 3 or 5 slot not always in the first), just try to do the same h2 inventory in a custom dialog, which takes as source the hero doll

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


Known Hero
posted December 16, 2014 02:49 AM
Edited by mister_kalu at 02:50, 16 Dec 2014.

Salamandre said:
its hard to understand what you really want. Showing artifacts from backpack in custom dialog is easy. Making them have effect like they were equipped is a problem, because 1) when a battle ends, artifacts are lost and they go to the winner, or the game only calculates equipped artifacts stats reset, then 2) you will need a system storing 170 artifacts and their (possibly) different effects.


ok i have an artificial solution for my problem but the AE1 trigger don't help me so much, do you know how to unequip (or move to the backpack) the same artifact that you recently equip with the AE 1 ? this because the trigger occurs before so i can't change the new artifact without additional actions

 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 ... 248 249 250 251 252 ... 300 350 400 407 · «PREV / NEXT»
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.1985 seconds