Can someone confirm this?
Basically, when you open a bic file of a character up in leto, you can see that the 'default' script is applied to all the events on the creature screen.
Default, as I was aware, is the script that is run every heartbeat.
However, I started thinking - could it also be used for other events, and what it actually needs, is a case statement inside it?
eg
void main()
{
switch(iEventNumber)
{
case HEARTBEAT:
//Heartbeat code here
break;
case ONDAMAGED:
//On damaged code here?
break;
}
}
Can anyone confirm if this works?
I am at work, and cant get near nwn to try it.
Im ideally looking for a way of capturing the 'damaged' event on players.
The use of subraces, armor, and different weapon types, makes it impossible to handle it via item related onHit event.
I need to try and capture it on the players instead.
If creatures have these events, surely players do too?