I need help with this:
I want the script to display a Health Bar (5 PNG images) and always when the health of the entity is smaller than the condition value, the Hud changes.
I wanted it to display one HUD after the other. But it only shows the first and then immediately jumps to the last one when it gets shot...
;Artificial Intelligence Script
;by Pigs can fly
;add this to your enemy AI
;the entity must have 200 health (or at least 176)
;not sure if it works
;Header
desc = enemy HUD system
;Triggers
:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudshealth1.png,hudname=Health1,hudhide=1,hudmake=display,state=9
:state=9:setvar1=health,state=10
:state=10:state=11,hudshow=Health1
:state=11,var1less=175:hudfadeout=Health1,state=12
:state=12:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudshealth2.png,hudname=Health2,hudhide=1,hudmake=display,state=13
:state=13:setvar1=healthmstate=14
:state=14:state=15,hudshow=Health2
:state=15,var1less=125:hudfadeout=Health2,state=16
:state=16:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudshealth3.png,hudname=Health3,hudhide=1,hudmake=display,state=17
:state=17:setvar1=health,state=18
:state=18:state=19,hudshow=Health3
:state=19,var1less=75:hudfadeout=Health3,state=20
:state=20:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudshealth4.png,hudname=Health4,hudhide=1,hudmake=display,state=21
:state=21:setvar1=health,state=22
:state=22:state=23,hudshow=Health4
:state=23,var1=0:hudfadeout=Health4,state=24
:state=24:hudreset,hudx=50,hudy=90,hudimagefine=gamecorehudshealth5.png,hudname=Health5,hudhide=1,hudmake=display,state=25
:state=25:hudshow=Health5,hudfadeout=Health5
;End of Script
Please, I really need help with that
Yes, it seems to be the same post like this:
klick. But here I post an existing script that doesn't work... unfortunately
What is wrong with it?
Can anyone help me?
Question: I used commands from Empty's Update. But maybe just the health=x condition might work. Does it affect the player's or the entity's health??
All the free PCF Productions Stuff