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: Script: War Machine HP Depends on Hero Defense/Armor
Thread: Script: War Machine HP Depends on Hero Defense/Armor
orc
orc


Known Hero
posted May 24, 2018 05:19 PM

Script: War Machine HP Depends on Hero Defense/Armor

is there this script?

becuz I see late game all Die just 1 hit, maybe 25HP , or 50 HP for each armor point would be make it more balanced

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


Supreme Hero
Work at Magic Dimmension
posted May 24, 2018 09:56 PM

I would include similair script in knightmare kingdoms once I would have more free time

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


Known Hero
posted May 27, 2018 04:44 AM

majaczek said:
I would include similair script in knightmare kingdoms once I would have more free time


Salamndre has written the function below to overwrite min and max damage for ballista

maybe we can change the trigger a bit to edit the HP of these war machines?

I saw some things here http://www.wakeofgods.com/erm_help/receivers/receiver_bm.htm

but it doesnt explain how to set HP (only H$ trigger not sure if its get or set)




ZVSE

!?BF&1000;
!!BA:H0/?y1 H1/?y2; check both heroes
!!HEy1:Ed/?y3 F?y4/d/d/d; get attacker level and attack skill
!!HEy2&y2>-1:Ed/?y5 F?y6/d/d/d;  get defender level  and attack skill
!!DO456789/0/10/1&y1=6|y1=56/y1=81/y1=97/y1=118y3/y4;  run attacker stacks
!!FU&y2<0:E; exit if no defender
!!DO456789/21/31/1&y2=6|y2=56/y2=81/y2=97/y2=118y5/y6; run defender stacks
!!FU&y2<0:E; exit if no defender

!?FU456789;
;x1 level
;x2 attack skill
!!BMx16:T?y1;  type
!!FU&y1<>146:E; exit if no ballista
!!BMx16:U1/?y1 U2/?y2; check min and max damage
!!VRy1:*2; !!VRy2:*2;  multiply by 2
!!VRx1::10; divide level by 10
!!VRx1&x1<1:S1; define minimum value of 1

!!BMx16:U1/y1 U2/y2; setup final damage

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0227 seconds