I have some code I can't seem to figure out I just want it to set the TempHP if they are greater than current and then set my bar to that new total as max. Here is my code but I keep getting "java.lang.NullPointerException error executing expression bar.Temp-Full = TempHP / TempHP)."
Code: Select all
[h: status = input("temphpChange|0|Temporary Hit Points Gained")]
[h: abort(status)]
[h: TempHP = max(temphpChange, TempHP)]
[h: bar.Temp-Full = TempHP / TempHP)]
[r: token.name] gains [r:TempHP)] temporary hit points.