I'm still having a problem killing the monster.
The monster's name is Ent.
I have my spells in their own window. (It just seems easier this way because the HUD is very filled up with objects as it is.)
The code on the Ent is very simple--if you left click on him you take damage. Works fine.
When I click on a button Spells in the HUD it brings up the Spells window with the blast spell and a close button. The close button works fine.
The code on the spells button:
#include "scripts\base.inc"
on "blast"
{
}
else
if (!
(ehealth.
Text ==
0)) {
hud.SubtractHealth(5);
hud.SubtractEH(10);
}
In scriptinit for scene:
Monster = ent
(Monster is a global in base.inc script
Nothing works when I left click on the blast spell. So the problem seems to be the script on the blast spells button--I tried attaching it to the spells window script and had the same problem.
I get this script error:
14:49: Compiling script 'scenes\House_Arrest3\scr\scene_init.script'...
14:49: Error@line 14: Variable 'monster' is referenced but not defined
Any help, as always, is appreciated.