Few months ago, I described a bug in this and (talentRandom) function that searching for talents of the category TALENT_CATEGORY_HARMFUL_AREAEFFECT_DISCRIMINANT returns actually talents of the category TALENT_CATEGORY_HARMFUL_AREAEFFECT_INDISCRIMINANT. And thus I swapped those two constants in nwscript.nss and recompiled AI for that matter (and then added into my patch project).
But recent testing revealed that this behavior doesn't always happen. I made some test and with help of henesua I come to the closure that this bug happens only in singleplayer - as its correct in multiplayer. But still on my other computer this is correct even in singleplayer and there is more discrepancies.
LINK: Test module for this bug. Simple, clean module to test this issue. In game type "test" into chat and you should see two lines indicating best discriminant and best indiscriminant talent of the beholder - eyeball creature nearby. Also this creature should normally activate stunning aura, then try strength drain pulse and then beholder dispell.
Got two computers. Both trying with clean 1.69 install (or rather rebuild, I was too lazy to reinstal, so I simply reinstalled english 169 patch), no override, patch haks, community patch, nwnx, nothing, really clean install.
Still the behavior is different on my two computers.
how it should be:
best discriminant should be strength drain pulse, best indiscriminant should be beholder dispell, creature should first activate stunning aura, then drain strength and then dispell the PC
Computer 1:
behavior there is correct as it should be
Computer 2:
best discriminant returns beholder dispell which is wrong, indiscriminant returns drain pulse
both computers has Win XP OS, 32bit
Could someone try this module (its a matter of 5minutes) with clean install and post results? What I know is that if I run this module via nwserver on my second computer the behavior/order is correct/reversed but thats all. It disturbs me that NWN behaves differently on two instances.