define variable <health>
type numeric
value <100>
scope local
display <Health: !>
onchange if ( %health[userid]% <= 0 ) then msg <You are unconcious!>
end define
To enter this via QDK, simply add a new variable and each feild enter the apropiate data. the onchange is a 'condition' of camparing values (heath and 0). But it'll be much simply to just add it in a text editer, by opening the game, finding where the variables go (create a 'dummy' variable to test where they go if you don't know) and pasting this in.