Does the issue occur in the editor or during gameplay?
If it's a gameplay issue, please specify which movement system and camera type you're using (free movement vs. grid movement, third-person vs. first-person) or N/A if not applicable:
Briefly describe the issue you're experiencing:
Storing a party member in a local variable (like request_entity for example) and then trying to heal the entity either through heal_entity or directly changing the HP stat gives errors instead.
I even tried to do it manually via the console just to see if it was the script/request entity, but even doing it via the console produces the same result (see error picture).
If you directly reference the entity, or self
, it will work.
self.stat["hp"] += 5;
It just wont use a stored variable.
it does however work if you use global properties to store the reference instead.
Are there any errors in the in-game debug console or external console window?
This image shows the two errors.
The ingame console error (heal_entity) are from first trying the skill script (request_entity into a $local), and then trying it directly in the battle via console afterwards.
The terminal shows an execute_script_threaded error that pops up if I try to alter the local variable reference's stat directly.

Provide the steps necessary to reproduce the issue:
- Run a TTB map, with a party member
- aim the cursor at the party member and open the console
- type
self.stat["hp"] -= 5
to deduct some health from character
- now type
$tgt = self; heal_entity($tgt, 5);
- see console error about invalid entity for heal_entity
- Now type
$tgt = self; $tgt.stat["hp"] += 5;
instead
- see terminal error about threaded execute script
- Finally type
global.property["target"] = self; heal_entity(global.property["target"], 5);
to actually heal the character.
Provide a download link to the bare bones project (strongly recommended if it's an in-game issue, since this helps significantly when attempting to reproduce it; the report will also be given more priority in this case):
will provide one later, although it's fairly quick and easy to reproduce.