Change to the combat hook?
Posted: Thu Feb 08, 2007 12:37 pm
I'm trying to run 097 on linux, and I can't seem to get the combat hook to work properly. The same code runs fine on Windows, but it never seems to run on linux. I figured it was something to do with case-sensitivity, but the cases seem to match up okay. Here's the syshook.cfg:
This is in the same directory as newcombat.src/ecl, which is simply:
(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...
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...