Johny,
This is the script I used:
Quote: ";I have made some modifications to the setuplevel.fpi to add the Health Head Systems. This adds ;the Head that are different
;depending of your health. Less health. less beautifull head.
;This script use the head images that are in the directory "gamecore/huds/". The files are "head0" to "head10". This images
;are not copy when you use the build game process. You need to copy manually.
;::::::::::::::::::START SCRIPT::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;AIScript from Wizard
;Header
desc = Setup Wizard
; Health Heads System by Habatar. Version 1
; Setup Level Stats
:state=0:sky=skybank\ww2\Gas
:state=0:music=audiobank\music\generic\main.wav,musicvolume=50,soundscale=25
:state=0:fog=0,fogred=0,foggreen=0,fogblue=0
:state=0:ambience=25,ambiencered=255,ambiencegreen=255,ambienceblue=255
; Head Creator
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head0.png,hudname=head0,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head1.png,hudname=head1,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head2.png,hudname=head2,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head3.png,hudname=head3,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head4.png,hudname=head4,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head5.png,hudname=head5,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head6.png,hudname=head6,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head7.png,hudname=head7,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head8.png,hudname=head8,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head9.png,hudname=head9,hudmake=display,hudhide=1
:state=0:hudreset,hudx=25,hudy=33,hudimage=gamecore\huds\head10.png,hudname=head10,hudmake=display,hudhide=1
:state=0:hudreset,hudx=50,hudy=50,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\fader.tga,hudhide=1,hudtype=3,hudmake=int
ernal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=0,hudblue=0,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\eyehud.tg
a,hudhide=1,hudtype=2,hudmake=internal
:state=0:hudreset,hudx=50,hudy=50,hudred=128,hudgreen=128,hudblue=128,hudsizex=1024,hudsizey=768,hudimage=gamecore\huds\zoom.
tga,hudhide=1,hudtype=4,hudmake=internal
:state=0:hudreset,hudx=5,hudy=5,hudimage=languagebank\english\gamecore\hudslives.tga,hudmake=display
:state=0:hudreset,hudx=4,hudy=8,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=1,hudmake=numeric
:state=0:hudreset,hudx=15,hudy=5,hudimage=languagebank\english\gamecore\huds\health.tga,hudmake=display
:state=0:hudreset,hudx=15,hudy=13,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=2,hudmake=numeric
:state=0:hudreset,hudx=85,hudy=8,hudimage=gamecore\huds\ammo.tga,hudtype=3,hudmake=status
:state=0:hudreset,hudx=88,hudy=12,hudsizex=16,hudsizey=16,hudimage=gamecore\huds\numeric1.tga,hudtype=3,hudmake=numeric
; Setup Game Menu
:state=0:hudreset,hudx=50,hudy=10,hudimage=languagebank\english\gamecore\backdrops\basic\gamemenu.tga,hudname=gamemenutitle,h
udhide=1,hudmake=display
:state=0:hudreset,hudx=50,hudy=50,hudimage=languagebank\english\gamecore\backdrops\basic\exitgame.tga,hudtype=3,hudname=quitg
ame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=60,hudimage=languagebank\english\gamecore\backdrops\basic\returntogame.tga,hudtype=4,hudname=r
eturngame,hudhide=1,hudmake=button
:state=0:hudreset,hudx=50,hudy=50,hudimage=gamecore\huds\pointer.tga,hudname=pointer,hudhide=1,hudmake=pointer
; All Created, go to Main Game Play
:state=0:state=1
; Main Game
:state=1,escapekeypressed=1:pausegame,state=2
; Head Controler
:state=1,plrhealthgreater=499:hudreset,hudshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunsh
ow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=500,plrhealthgreater=450:hudreset,hudunshow=head10,hudshow=head9,hudunshow=head8,hudunshow=head7,hudun
show=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=450,plrhealthgreater=400:hudreset,hudunshow=head10,hudunshow=head9,hudshow=head8,hudunshow=head7,hudun
show=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=400,plrhealthgreater=350:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudshow=head7,hudun
show=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=350,plrhealthgreater=300:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hud
show=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=300,plrhealthgreater=250:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hud
unshow=head6,hudshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=250,plrhealthgreater=200:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hud
unshow=head6,hudunshow=head5,hudshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=200,plrhealthgreater=150:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hud
unshow=head6,hudunshow=head5,hudunshow=head4,hudshow=head3,hudunshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=150,plrhealthgreater=100:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hud
unshow=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudshow=head2,hudunshow=head1,hudunshow=head0
:state=1,plrhealthless=100,plrhealthgreater=0:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudun
show=head6,hudunshow=head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudshow=head1,hudunshow=head0
:state=1,plrhealthless=1:hudreset,hudunshow=head10,hudunshow=head9,hudunshow=head8,hudunshow=head7,hudunshow=head6,hudunshow=
head5,hudunshow=head4,hudunshow=head3,hudunshow=head2,hudunshow=head1,hudshow=head0
; Game Menu
:state=2,escapekeypressed=0:state=3
:state=3:hudshow=gamemenutitle,hudshow=quitgame,hudshow=returngame,hudshow=pointer,state=4
:state=4,hudselectionmade=3:continuegame,destroy
:state=4,hudselectionmade=4:state=6
:state=4,escapekeypressed=1:state=5
:state=5,escapekeypressed=0:state=6
:state=6:hudunshow=gamemenutitle,hudunshow=quitgame,hudunshow=returngame,hudunshow=pointer,resumegame,state=1
;:::::::::::::::::::END SCRIPT::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
;I have add the parts "Head Creator" and "Head controller" and I modify the position of health ;numeric.
;If you change the maximun health you need to adjust the value of the command "plrhealthless" and ;"plrhealthgreater".
;Sweet.. Kinda like Duke-Nukem..
;In "Head Creator", makes the hud images, one per head. You need to made the heads before the ;health counter, this is
important.
;The "Head Controler" are a conditions to set the health interval to heads.
;x > 499
;450 > x >500
;400 > x >450
;The actions are simple. Show the correct head, and unshow the other heads.
"
Where "head0.png" is the name of my images. Found this in the Scripting boards under "hud".