Great to finally see someone trying to figure this out
It's *extremely* annoying the ranged function doesn't work though, I had several uses in mind for that one should we ever have gotten in to work
I briefly messed with this myself and so far I found out two important things:
(1) it doesn't matter what arguments or return value you use, even when they are left out altogether the messageboxes appear. So the function (I only tested Attack, I assume Defense works the same) is *always* called during combat, regardless of what arguments value are used. The only thing you need to do is spell the function name correctly This means finding out proper arguments and return values could turn out to be tricky...
(2) I couldn't seem to get the function to work, even with very high return values (100000) it didn't seem to make much of a difference. However, when I used the following code:
The first round of combat was fought out normally, but then they units kept attacking eachother without results, as one would expect with an attack value of 0. Of course, this continued forever and closing the combat screen froze the game, as the game had entered an infinite loop. But apparently this function *does* do something...
It's *extremely* annoying the ranged function doesn't work though, I had several uses in mind for that one should we ever have gotten in to work
I briefly messed with this myself and so far I found out two important things:
(1) it doesn't matter what arguments or return value you use, even when they are left out altogether the messageboxes appear. So the function (I only tested Attack, I assume Defense works the same) is *always* called during combat, regardless of what arguments value are used. The only thing you need to do is spell the function name correctly This means finding out proper arguments and return values could turn out to be tricky...
(2) I couldn't seem to get the function to work, even with very high return values (100000) it didn't seem to make much of a difference. However, when I used the following code:
Code:
int_f mod_UnitAttack() { return 0; }
Comment