added global variables and event to when monster dies to subtract it