Trying to get this script to work.
What it supposed to do is, when players health is below certain point, the players speed is reduced. And when player gets health back up to certain, it returns to normal.
The first part, having the players speed reduced after health is low works fine, but when I pick up health, and it increases, the players speed stays the same as it was after his health dropped.
;Artificial Intelligence Script
;Header
desc = HealthSpeed
;Triggers
; Initiate
:state=0,plrhealthless=50:state=1
:state=1:plrspeedmod=60:state=2
:state=2,plrhealthgreater=51:state=3
:state=3:plrspeedmod=100:state=0
;End of Script
The tragedy of old age is not that one is old, but that one is young