Thanks a tonne. i will just include it as a code snippet though, and i will attach it too, for those who wish to download it.
Just for the record by the way, this is not my script, i have just taken it and changed the health levels.
;Original script by Reyvyn
;Refined by Michael Thompson of Flash Star Games
;Please note that my script works on the player having 100 health, not 500.
;Header
desc = Low Health Hud
;Triggers
;Displays different damage hud as Health reaches levels of 100, 90, 80, 70, 60, 50, 40, 30, 20, 10, and 5 as character takes more and more damage.
;Following creates HUDs and hides until needed.
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud0.png,hudname=Hud0,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud1.png,hudname=Hud1,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud2.png,hudname=Hud2,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud3.png,hudname=Hud3,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud4.png,hudname=Hud4,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud5.png,hudname=Hud5,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud6.png,hudname=Hud6,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud7.png,hudname=Hud7,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud8.png,hudname=Hud8,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud9.png,hudname=Hud9,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=50,hudy=50,hudimagefine=gamecore\huds\Hud10.png,hudname=Hud10,hudhide=1,hudmake=display,state=1
;The next segments will bring up the huds if the player's health reaches the appropriate level and make them fade away when no longer needed.
:state=1,plrhealthless=101:hudshow=Hud10,state=2
:state=2,plrhealthgreater=100:hudfadeout=Hud10,state=1
:state=2,plrhealthless=91:hudfadeout=Hud10,state=2
:state=2,plrhealthless=91:hudshow=Hud9,state=3
:state=3,plrhealthgreater=90:hudfadeout=Hud9,state=1
:state=3,plrhealthless=81:hudfadeout=Hud8,state=4
:state=4,plrhealthless=81:hudshow=Hud8,state=5
:state=5,plrhealthgreater=80:hudfadeout=Hud8,state=2
:state=5,plrhealthless=71:hudfadeout=Hud8,state=6
:state=6,plrhealthless=71:hudshow=Hud7,state=7
:state=7,plrhealthgreater=70:hudfadeout=Hud7,state=4
:state=7,plrhealthless=61:hudfadeout=Hud7,state=8
:state=8,plrhealthless=61:hudshow=Hud6,state=9
:state=9,plrhealthgreater=60:hudfadeout=Hud6,state=5
:state=9,plrhealthless=51:hudfadeout=Hud6,state=10
:state=10,plrhealthless=51:hudshow=Hud5,state=11
:state=11,plrhealthgreater=50:hudfadeout=Hud5,state=6
:state=11,plrhealthless=41:hudfadeout=Hud5,state=12
:state=12,plrhealthless=41:hudshow=Hud4,state=13
:state=13,plrhealthgreater=40:hudfadeout=Hud4,state=7
:state=13,plrhealthless=31:hudfadeout=Hud4,state=14
:state=14,plrhealthless=31:hudshow=Hud3,state=15
:state=15,plrhealthgreater=30:hudfadeout=Hud3,state=8
:state=15,plrhealthless=21:hudfadeout=Hud3,state=16
:state=16,plrhealthless=21:hudshow=Hud2,state=17
:state=17,plrhealthgreater=20:hudfadeout=Hud2,state=9
:state=17,plrhealthless=11:hudfadeout=Hud2,state=18
:state=18,plrhealthless=11:hudshow=Hud1,state=19
:state=19,plrhealthgreater=10:hudfadeout=Hud1,state=10
:state=19,plrhealthless=1:hudfadeout=Hud1,state=20
:state=20,plrhealthgreater=0:hudfadeout=hud1,state=11
If you find anything, it would be better than nothing. even if it does not seem like it would effect the script, please let me know as i am hoping that i can make it much better and even the biggest problems can be caused by the smallest things.
If you need the huds, i will provide them. thanks a tonne.
EDIT
I have corrected the hudx part (it showed hud=50 not hudx=50).
Also, I am unable to post for some reason, i am unsure as to why, as there are loads of forum pages with more than 100 posts so something must be wrong. I will try again later.
Anyway, Mr Illusionest, could you please post the code with all the changes, as i do not quite get what you mean.
Thanks.
Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations