i am new to dbpro (havent got it yet but am getting it) and i have created a man down function that i would like to share and recieve feedback, error reports etc.
scrnX = screenwidth()
scrnY = screenheight()
function ManDown(AllyName$,AllyHealth)
REM ally wounded
if AllyHealth < 75 `or whatever health you deem to be wounded
text scrnX/2,scrnY/2+30,AllyName$+" is wounded"
`play a sound notifying the player
endif
REM ally down
if AllyHealth <= 0
text scrnX/2,scrnY/2+30,AllyName$+"is down"
wait 5000
DeathTime = 120 `or however long you want to give the player
repeat
text scrnX/2,scrnY/2+30,"you have "+DeathTime+"to get to "+AllyName$
wait 1000
dec DeathTime
REM play a random sound to tell the player e.g. characters shouting
until DeathTime <= 0 or MedAssist = 1 `i have not made the medassist part yet
if DeathTime <= 0
REM run character death sequence
endif
if medassist = 1
REM do what you want e.g. get him to a hospital or treat him in the field
endif
end function
it isnt finisheed yet but hopefully i can finish it and get it in a game
(it is inspired by full spectrum warrior)