GetHasSpell function does not work as on 1.69
Aliberto
Member Posts: 80
I have a huge problem.
Most of the caster mobs in my module have a number of spells above the allowed number, and when i save the creature, the dialog box appears: "This creature's wizard class has a maximum of 12 level 9 spells, but has been assigned 40 spells, do you proceed? "
In this case, the gethasspell function in 1.69 returned TRUE whereas in the case of 1.74 it return FALSE with the consequence that AI does not work and casters do not cast spells! If i assign the recommended number of spells all goes back to normal.
But I can not limit to 12, the ninth level spells of the server's strongest boss!
In 1.69 everything worked perfectly, i never had this problem! I have always used the Jasperre AI package, but two days ago we realized that nothing works anymore.
Do you also have the same problem?
Most of the caster mobs in my module have a number of spells above the allowed number, and when i save the creature, the dialog box appears: "This creature's wizard class has a maximum of 12 level 9 spells, but has been assigned 40 spells, do you proceed? "
In this case, the gethasspell function in 1.69 returned TRUE whereas in the case of 1.74 it return FALSE with the consequence that AI does not work and casters do not cast spells! If i assign the recommended number of spells all goes back to normal.
But I can not limit to 12, the ninth level spells of the server's strongest boss!
In 1.69 everything worked perfectly, i never had this problem! I have always used the Jasperre AI package, but two days ago we realized that nothing works anymore.
Do you also have the same problem?
0
Comments
https://support.baldursgate.com/projects/nwn-ee-public-bugs/issues/new
-Dave
edit: (after a day of testing ..... )
I did a very precise test
- I created a new module
- I created only one small area
- I created a single 60 level wizard hostile creature and i put her in the area
- I removed all the epic spells to the creature
- I removed all normal spells
- I entered in the creature's spell list only 12 meteor swarm and 12 sunburst
- I set the creature's intelligence to 90
- I modified a single script, nw_c2_default2 (onPerception event)
and inserted the following lines:
if (GetIsEnemy (oPercep)) {
SpeakString ("SPELL_METEOR_SWARM" + IntToString (GetHasSpell (SPELL_METEOR_SWARM)), TALKVOLUME_SHOUT);
SpeakString ("SPELL_SUNBURST" + IntToString (GetHasSpell (SPELL_SUNBURST)), TALKVOLUME_SHOUT);
}
the result printed in game log is that the gethasspell function returns 0 (ZERO) for both spells
I did the exact same thing in version 1.69 and obviously it worked perfectly, the printed number is 12 for each spell
it seems superfluous at this point to say that this is a very serious bug, all the scripts of the AI of the creatures are not working, i'm forced to put down the server, and after more than a month of work i feel really very frustrated :-(
Is it an option for you to continue to run in 1.69 while awaiting NWNEE? Now that Beamdog's talking about redoing all of the art assets, I don't expect a retail quality release for a very long time. At the moment, we're all unpaid volunteer beta testers.
-Dave
Thanks, Ghosè
There are already about 10 active players on Nordock, some of which have left the 1.69 convinced by Aliberto and then i understand his disappointment
I hope this problem will be fixed soon so the development of the mod can continue!
The problem of the GetHasSpell function is that as already noted in other threads for other functions, if the object is omitted, OBJECT_SELF is not used as the default value, it must be written explicitly.
The problem remains that if the number of spells set with the toolset exceeds the maximum allowed, the function returns an incorrect number.
The engine is now following the rules with spell, your best bet is to add the extra spells under special abilities spells.
So any update on this Niv, best way to test it is with dm possession. Seem it knock out other spells from the NPC spell list/and cut spell number down. I notice this mainly with wizards.