- Fix Bug 7850
- Replace incorrect end commands with close
- Update variable syntax

Signed-off-by: Patskie <escalona3413@gmail.com>

Fix variables and character stuck at healing

Signed-off-by: Patskie <escalona3413@gmail.com>