You need to use StartTimer(e) and GetTimer(e)
Also you can apply variables to scripts themselves (even if they are global), best not to adjust the global.lua as updates will restore it and remove your variables.
So your script will look like this
Save it as fear.lua and assign it to an always active object (p.s. sorry if there's any mistakes, written from my phone so obviously it's untested but its a simple script, should work fine unless there's any small spelling errors)
Anxiety = 0
function fear_init(e)
End
function fear_main(e)
If GetTimer(e) > 300000 then
StartTimer(e)
Anxiety = Anxiety + 1
End
If Anxiety > 99 then
HurtPlayer(e,g_PlayerHealth)
Anxiety = 0
End
Panel(35,1,65,5)
TextCenterOnX(50,3,3,"Anxiety = "..Anxiety.." %")
End
life\'s one big game
windows vista ultimate
i5 @3.3ghz, 4gb ram, AMD R9 200 series , directx 11