I figured out how to get the label to work but I have a new problem. The HP doesn't update until after both sides attack. The user attacks through the text parser. Here is what I am doing:
In the activate function of the text parser I display text, update the HP variables, call a function called DisplayHP, and then call a function called SailorAttack (enemy attack system)
Inside the SailorAttack function I do the same thing - display text, update the HP of the user, then call DisplayHP
Inside the DisplayHP function is where I change the text of label - depending on who attacks changes which label gets altered.
After the first message is displayed I would like to show updated HP value of the enemy that was just attacked. I am not sure why but it waits until the enemy attacks back and that message is displayed and updates them both at the same time.
In the activate function of the text parser I display text, update the HP variables, call a function called DisplayHP, and then call a function called SailorAttack (enemy attack system)
Inside the SailorAttack function I do the same thing - display text, update the HP of the user, then call DisplayHP
Inside the DisplayHP function is where I change the text of label - depending on who attacks changes which label gets altered.
After the first message is displayed I would like to show updated HP value of the enemy that was just attacked. I am not sure why but it waits until the enemy attacks back and that message is displayed and updates them both at the same time.