f First Aid II is active (Tobyn, script64 see above, Tent Cure spell)
!!UN:P201/?y-5;                        check if Artillery I is active (Arstahd, script48, pre-battle damage)

!!MA&y-1=0/y-2=0/y-3=0/y-4=0:P147/750; all First Aid Tents will have 750 HPs (if neither First Aid skill nor the Tent war machine itself are enhanced)

!!VRz237:Sz164039;                     if no warfare relevant skills were enhanced
!!VRz238:Sz164040;                      .
!!VRz239:Sz164041;                      .
!!VRz237|y-1=1/y-2=1:Sz164042;         if Ballistics enhanced by script 54 or 55
!!VRz238|y-5=1:Sz164043;               if Artillery enhanced by script 48
!!VRz239|y-3=1/y-4=1:Sz164044;         if First Aid enhanced by script 48 or 64

!!UN:G0/10/0/237 G0/20/0/238 G0/27/0/239;  set skill names to Warfare


  MANUALLY SET WARFARE MAIN SKILL

!?CM2&v2365=1;                       right-clicked at hero screen
!!CM:I?y-1;                            get right-click number (y-1) (79..102 is skill area)
!!CM:S?y-2;                            check left/right-click (=12 left click, =14 right click)
!!FU2345:Py-1/-1/?y-3/?y-4/?y-5;       call skill click function (in: click number and hero number, out: skill (y-3), area (y-4) and slot (y-5))
!!VRy-6|y-3=10/y-3=20/y-3=27:S1;       y-6 = 1 means either Bal, Art or FA was clicked
!!CM&y-1>78/y-1<103/y-6=1/y-4>1:R0;    if clicked text area of a Warfare skill, disable standard skill click reaction
!!FU2340&y-6=1:Py-4/y-2/y-3;           .. and call Warfare display function (in: skill area, left/right-click, skill)

!?FU2340;                            Warfare skill display and determination (x1=skill area, x2=click type, x3=skill)
!!VRy4&x2=12:S10;                      if left-click  then init y4:=10 (OK/Cancel buttons with three pics, two of them selectable)
!!VRy4&x2=14:S4;                       if right-click then init y4:=4 (no button)
!!CM&y4=0:R1;                          enable standard reaction if unidentified click and exit
!!FU&y4=0:E;       BUG COUNTERMEASURE (clicking non-functional-areas after Estates (with disabled std reaction) erroneously gives another msgbox and nasty side effects)
!!IF:W-1;                              set w var reference to current hero
!!VRy5:S0;                             init y5
!!VRy5&x1>1/x2=14:S1;                  set cycling "flag" y5 if right-clicked on text field (name or expertise)
!!FU2341:P-1/x3/y5;                    determine and set Warfare expertise (highest of all three skills) on current hero (-1)
!!HE-1:Sx3/?y6;                        get Warfare expertise

!!VRy1|w48<>10:S32 +y6;                (calculate correct display for type 10 message below...)
!!VRy1|w48=10:S62 +y6;                 (... which stores result (=1 left, =2 middle, =0 cancel)
!!VRy2|w48=0/w48=27:S62 +y6;           (... in v var instead of normally used dialogue flag)
!!VRy2|w48=10/w48=20:S83 +y6;           .
!!VRy3|w48=0/w48=27:S83 +y6;            .
!!VRy3|w48=10:S32 +y6;                  .
!!VRy3|w48=20:S62 +y6;                  .
!!VRv248:S0;                         #DIRECTORY IN_SFX

ambi.wav
ambiL.wav
ambiR.wav
ball.wav
grunt10.wav
grunt12.wav
grunt14.wav
grunt16.wav
grunt17.wav
grunt18.wav
grunt2.wav
grunt20.wav
grunt4.wav
grunt5.wav
grunt6.wav
grunt7.wav
grunt8.wav
grunt9.wav
net.wav
pants1.wav
racket1.wav
racket10.wav
racket11.wav
racket12.wav
racket13.wav
racket5.wav
racket7.wav
racket8.wav
racket9.wav
swish_1.wav
swish_10.wav
swish_11.wav
swish_12.wav
swish_2.wav
swish_3.wav
swish_4.wav
swish_5.wav
swish_6.wav
swish_7.wav
swish_8.wav
swish_9.wav
clayslide.wav

#DIRECTORY OUT_SFX

ambi.wav
ambiL.wav
ambiR.wav
ball.wav
grunt10.wav
grunt12.wav
grunt14.wav
grunt16.wav
grunt17.wav
grunt18.wav
grunt2.wav
grunt20.wav
grunt4.wav
grunt5.wav
grunt6.wav
grunt7.wav
grunt8.wav
grunt9.wav
net.wav
pants1.wav
racket1.wav
racket10.wav
racket11.wav
racket12.wav
racket13.wav
racket5.wav
racket7.wav
racket8.wav
racket9.wav
swish_1.wav
swish_10.wav
swish_11.wav
swish_12.wav
swish_2.wav
swish_3.wav
swish_4.wav
swish_5.wav
swish_6.wav
swish_7.wav
swish_8.wav
swish_9.wav
clayslide.wav

#DIRECTORY MENU

menuswish.wav
net.wav
hit1.wav
hit2.wav
hit3.wav
hit4.wav
hit5.wav
hit6.wav
hit7.wav
ball.wav
ump15-30.wav
ump40-0.wav
clayslide.wav

