Scripting Guide - Require Full HP to Enter Script
This script will not allow a player to step on a certain tile, if their HP is not full
Note: The PUSHBACK script is required for this script to work properly.
First, you will have to lay a script attribute tile (the orange box with a S) where you want the tile to be.
Then, you will need to enter the coding for the script you want to load when a player touches that location
ex - "/god editscript map1_5_5"....that will open the event that runs when you step on Map #1, X-5, Y-5 (assuming that is where you placed your attribute tile)
Once you get the trigger event opened, enter this code:
If GetPlayerHP(Player) <> GetPlayerMaxHP(Player) Then
     RunScript0("Pushback")
End If
If a player tries to step on specified script tile, then they will be pushed back unless they have full HP