Code: Select all
SystemHookScript newcombat.ecl
{
Attack AttackScript
}Code: Select all
exported function AttackScript( mobAttacker, mobDefender )
print( mobAttacker.name + " attacking " + mobDefender.name );
return 1;
endfunction
(there actually is custom combat code, but I just commented it out for now and only have that print statement there)
As far as I can tell everything seems correct, but that print statement never get called. However, if I run the same files on Windows it does call the print statement...