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