Well isnt it nice that Mr Illusionest is still helping the community?
Good on you for setting ground rules too btw.
Now, as you know, i have been working on a script, with the very little knowledge of the language that I know, and I have run into loads of trouble now, where it doesnt display some of the huds (again). I have checked hud names, health, and states and they all seem to be correct, and I was hoping that you would be able to help me, as you know a lot more about this than me. It is pretty much a lenghtened version of the first one i needed help with, and that is why I am having these problems, because I made it longer. Problem is though, it is to make a health bar, without having to edit the setiplevel file, as that was more trouble than it was worth for me (it actually didnt display the huds at all). So here is the script, and I hope you will be able to spot something i couldnt, and then I will learn from my mistake, and possibly go on to make the next version which requires 2 times as many huds, without needing help.
Thanks, and here is the script.
;Original script by Reyvyn
;Refined and changed for use to display health by Michael Thompson of Flash Star Games
;Please note that my script works on the player having 100 health, not 500.
;Header
desc = Health Hud
;Triggers
;Displays different health hud as Health reaches levels of 100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 5 and 0 as character takes more and more damage.
;Following creates HUDs and hides until needed.
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud0.dds,hudname=hhud0,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud01.dds,hudname=hhud01,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud02.dds,hudname=hhud02,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud03.dds,hudname=hhud03,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud04.dds,hudname=hhud04,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud05.dds,hudname=hhud05,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud06.dds,hudname=hhud06,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud07.dds,hudname=hhud07,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud08.dds,hudname=hhud08,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud09.dds,hudname=hhud09,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud10.dds,hudname=hhud10,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud11.dds,hudname=hhud11,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud12.dds,hudname=hhud12,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud13.dds,hudname=hhud13,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud14.dds,hudname=hhud14,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud15.dds,hudname=hhud15,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud16.dds,hudname=hhud16,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud17.dds,hudname=hhud17,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud18.dds,hudname=hhud18,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud19.dds,hudname=hhud19,hudhide=1,hudmake=display,state=0
:state=0:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud20.dds,hudname=hhud20,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 dissapear when no longer needed.
:state=1,plrhealthless=101:hudshow=hhud20,state=2
:state=2,plrhealthgreater=100:hudunshow=hhud20,state=1
:state=2,plrhealthless=96:hudunshow=hhud20,state=2
:state=2,plrhealthless=96:hudshow=hhud19,state=3
:state=3,plrhealthgreater=95:hudunshow=hhud19,state=2
:state=3,plrhealthless=91:hudunshow=hhud19,state=4
:state=4,plrhealthless=91:hudshow=hhud18,state=5
:state=5,plrhealthgreater=90:hudunshow=hhud18,state=3
:state=5,plrhealthless=86:hudunshow=hhud18,state=6
:state=6,plrhealthless=86:hudshow=hhud17,state=7
:state=7,plrhealthgreater=85:hudunshow=hhud17,state=5
:state=7,plrhealthless=81:hudunshow=hhud17,state=8
:state=8,plrhealthless=81:hudshow=hhud16,state=9
:state=9,plrhealthgreater=80:hudunshow=hhud16,state=7
:state=9,plrhealthless=76:hudunshow=hhud16,state=10
:state=10,plrhealthless=76:hudshow=hhud15,state=11
:state=11,plrhealthgreater=75:hudunshow=hhud15,state=9
:state=11,plrhealthless=71:hudunshow=hhud15,state=12
:state=12,plrhealthless=71:hudshow=hhud14,state=13
:state=13,plrhealthgreater=70:hudunshow=hhud14,state=11
:state=13,plrhealthless=66:hudunshow=hhud14,state=14
:state=14,plrhealthless=66:hudshow=hhud13,state=15
:state=15,plrhealthgreater=65:hudunshow=hhud13,state=13
:state=15,plrhealthless=61:hudunshow=hhud13,state=16
:state=16,plrhealthless=61:hudshow=hhud12,state=17
:state=17,plrhealthgreater=60:hudunshow=hhud12,state=15
:state=17,plrhealthless=56:hudunshow=hhud12,state=18
:state=18,plrhealthless=56:hudshow=hhud11,state=19
:state=19,plrhealthgreater=55:hudunshow=hhud11,state=17
:state=19,plrhealthless=51:hudunshow=hhud11,state=20
:state=20,plrhealthless=51:hudshow=hhud10,state=21
:state=21,plrhealthgreater=50:hudunshow=hhud10,state=19
:state=21,plrhealthless=46:hudunshow=hhud10,state=22
:state=22,plrhealthless=46:hudunshow=hhud09,state=23
:state=23,plrhealthgreater=45:hudunshow=hhud09,state=21
:state=23,plrhealthless=41:hudunshow=hhud09,state=24
:state=24,plrhealthless=41:hudunshow=hhud08,state=25
:state=25,plrhealthgreater=40:hudunshow=hhud08,state=23
:state=25,plrhealthless=36:hudunshow=hhud08,state=26
:state=26,plrhealthless=36:hudunshow=hhud07,state=27
:state=27,plrhealthgreater=35:hudunshow=hhud07,state=25
:state=27,plrhealthless=31:hudunshow=hhud07,state=28
:state=28,plrhealthless=31:hudshow=hhud06,state=29
:state=29,plrhealthgreater=30:hudunshow=hhud06,state=27
:state=29,plrhealthless=26:hudunshow=hhud06,state=30
:state=30,plrhealthless=26:hudshow=hhud05,state=31
:state=31,plrhealthgreater=25:hudunshow=hhud05,state=29
:state=31,plrhealthless=21:hudunshow=hhud05,state=32
:state=32,plrhealthless=21:hudshow=hhud04,state=33
:state=33,plrhealthgreater=20:hudunshow=hhud04,state=31
:state=33,plrhealthless=16:hudunshow=hhud04,state=34
:state=34,plrhealthless=16:hudshow=hhud03,state=35
:state=35,plrhealthgreater=15:hudunshow=hhud03,state=33
:state=35,plrhealthless=11:hudunshow=hhud03,state=36
:state=36,plrhealthless=11:hudshow=hhud02,state=37
:state=37,plrhealthgreater=10:hudunshow=hhud02,state=35
:state=37,plrhealthless=6:hudunshow=hhud02,state=38
:state=38,plrhealthless=6:hudshow=hhud01,state=39
:state=39,plrhealthgreater=5:hudunshow=hhud01,state=37
:state=39,plrhealthless=1:hudunshow=hhud01,state=40
:state=40,plrhealthless=1:hudshow=hhud0,state=41
:state=41,plrhealthgreater=0:hudunshow=hHud0,state=39
Thanks again, and if possible, I will attach a youtube link showing the problem.
BTW, as for the state 0 thing, which one do you mean?
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud0.dds,hudname=hhud0,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud01.dds,hudname=hhud01,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud02.dds,hudname=hhud02,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud03.dds,hudname=hhud03,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud04.dds,hudname=hhud04,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud05.dds,hudname=hhud05,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud06.dds,hudname=hhud06,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud07.dds,hudname=hhud07,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud08.dds,hudname=hhud08,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud09.dds,hudname=hhud09,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud10.dds,hudname=hhud10,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud11.dds,hudname=hhud11,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud12.dds,hudname=hhud12,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud13.dds,hudname=hhud13,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud14.dds,hudname=hhud14,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud15.dds,hudname=hhud15,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud16.dds,hudname=hhud16,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud17.dds,hudname=hhud17,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud18.dds,hudname=hhud18,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud19.dds,hudname=hhud19,hudhide=1,hudmake=display
:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud20.dds,hudname=hhud20,hudhide=1,hudmake=display,state=1
;Original script by Reyvyn
;Refined and changed for use to display health by Michael Thompson of Flash Star Games
;Please note that my script works on the player having 100 health, not 500.
;Header
desc = Health Hud
;Triggers
;Displays different health hud as Health reaches levels of 100, 95, 90, 85, 80, 75, 70, 65, 60, 55, 50, 45, 40, 35, 30, 25, 20, 15, 10, 5 and 0 as character takes more and more damage.
;Following creates HUDs and hides until needed.
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud0.dds,hudname=hhud0,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud01.dds,hudname=hhud01,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud02.dds,hudname=hhud02,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud03.dds,hudname=hhud03,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud04.dds,hudname=hhud04,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud05.dds,hudname=hhud05,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud06.dds,hudname=hhud06,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud07.dds,hudname=hhud07,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud08.dds,hudname=hhud08,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud09.dds,hudname=hhud09,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud10.dds,hudname=hhud10,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud11.dds,hudname=hhud11,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud12.dds,hudname=hhud12,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud13.dds,hudname=hhud13,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud14.dds,hudname=hhud14,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud15.dds,hudname=hhud15,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud16.dds,hudname=hhud16,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud17.dds,hudname=hhud17,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud18.dds,hudname=hhud18,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud19.dds,hudname=hhud19,hudhide=1,hudmake=display,state=1
:state=1:hudreset,hudx=10,hudy=90,hudimagefine=gamecore\huds\healthhuds\hhud20.dds,hudname=hhud20,hudhide=1,hudmake=display,state=2
;The next segments will bring up the huds if the player's health reaches the appropriate level and make them dissapear when no longer needed.
:state=2,plrhealthless=101:hudshow=hhud20,state=3
:state=3,plrhealthgreater=100:hudunshow=hhud20,state=2
:state=3,plrhealthless=96:hudunshow=hhud20,state=3
:state=3,plrhealthless=96:hudshow=hhud19,state=4
:state=4,plrhealthgreater=95:hudunshow=hhud19,state=3
:state=4,plrhealthless=91:hudunshow=hhud19,state=5
:state=5,plrhealthless=91:hudshow=hhud18,state=6
:state=6,plrhealthgreater=90:hudunshow=hhud18,state=3
:state=6,plrhealthless=86:hudunshow=hhud18,state=7
:state=7,plrhealthless=86:hudshow=hhud17,state=8
:state=8,plrhealthgreater=85:hudunshow=hhud17,state=6
:state=8,plrhealthless=81:hudunshow=hhud17,state=9
:state=9,plrhealthless=81:hudshow=hhud16,state=10
:state=10,plrhealthgreater=80:hudunshow=hhud16,state=8
:state=10,plrhealthless=76:hudunshow=hhud16,state=11
:state=11,plrhealthless=76:hudshow=hhud15,state=12
:state=12,plrhealthgreater=75:hudunshow=hhud15,state=10
:state=12,plrhealthless=71:hudunshow=hhud15,state=13
:state=13,plrhealthless=71:hudshow=hhud14,state=14
:state=14,plrhealthgreater=70:hudunshow=hhud14,state=12
:state=14,plrhealthless=66:hudunshow=hhud14,state=15
:state=15,plrhealthless=66:hudshow=hhud13,state=16
:state=16,plrhealthgreater=65:hudunshow=hhud13,state=14
:state=16,plrhealthless=61:hudunshow=hhud13,state=17
:state=17,plrhealthless=61:hudshow=hhud12,state=18
:state=18,plrhealthgreater=60:hudunshow=hhud12,state=16
:state=18,plrhealthless=56:hudunshow=hhud12,state=19
:state=19,plrhealthless=56:hudshow=hhud11,state=20
:state=20,plrhealthgreater=55:hudunshow=hhud11,state=18
:state=20,plrhealthless=51:hudunshow=hhud11,state=21
:state=21,plrhealthless=51:hudshow=hhud10,state=22
:state=22,plrhealthgreater=50:hudunshow=hhud10,state=20
:state=22,plrhealthless=46:hudunshow=hhud10,state=23
:state=23,plrhealthless=46:hudunshow=hhud09,state=24
:state=24,plrhealthgreater=45:hudunshow=hhud09,state=22
:state=24,plrhealthless=41:hudunshow=hhud09,state=25
:state=25,plrhealthless=41:hudunshow=hhud08,state=26
:state=26,plrhealthgreater=40:hudunshow=hhud08,state=24
:state=26,plrhealthless=36:hudunshow=hhud08,state=27
:state=27,plrhealthless=36:hudunshow=hhud07,state=28
:state=28,plrhealthgreater=35:hudunshow=hhud07,state=26
:state=28,plrhealthless=31:hudunshow=hhud07,state=29
:state=29,plrhealthless=31:hudshow=hhud06,state=30
:state=30,plrhealthgreater=30:hudunshow=hhud06,state=28
:state=30,plrhealthless=26:hudunshow=hhud06,state=31
:state=31,plrhealthless=26:hudshow=hhud05,state=32
:state=32,plrhealthgreater=25:hudunshow=hhud05,state=30
:state=32,plrhealthless=21:hudunshow=hhud05,state=33
:state=33,plrhealthless=21:hudshow=hhud04,state=34
:state=34,plrhealthgreater=20:hudunshow=hhud04,state=32
:state=34,plrhealthless=16:hudunshow=hhud04,state=35
:state=35,plrhealthless=16:hudshow=hhud03,state=36
:state=36,plrhealthgreater=15:hudunshow=hhud03,state=34
:state=36,plrhealthless=11:hudunshow=hhud03,state=37
:state=37,plrhealthless=11:hudshow=hhud02,state=38
:state=38,plrhealthgreater=10:hudunshow=hhud02,state=36
:state=38,plrhealthless=6:hudunshow=hhud02,state=39
:state=39,plrhealthless=6:hudshow=hhud01,state=40
:state=40,plrhealthgreater=5:hudunshow=hhud01,state=38
:state=40,plrhealthless=1:hudunshow=hhud01,state=41
:state=41,plrhealthless=1:hudshow=hhud0,state=42
:state=42,plrhealthgreater=0:hudunshow=hHud0,state=40
Thanks.
Windows 7 ultimate x64, Intel i7, 4 GB RAM, NVIDIA GEFORCE 330m 1GB
Flash Star Game Creations