I have a script that removes spells remaining for the PC's.
I set it to remove from the standard classes:
if(GetLevelByclass(class_TYPE_BARD, oPC) > 0
|| GetLevelByclass(class_TYPE_WIZARD, oPC) > 0
|| GetLevelByclass(class_TYPE_SORCERER, oPC) > 0
|| GetLevelByclass(class_TYPE_CLERIC, oPC) > 0
|| GetLevelByclass(class_TYPE_DRUID, oPC) > 0
|| GetLevelByclass(class_TYPE_PALADIN, oPC) > 0
|| GetLevelByclass(class_TYPE_RANGER, oPC) > 0)
{Penalise = 1;}
The above code has the word "class" altered when pasted into this forum for some reason, but is not incorrect in the toolset.
HOWEVER, for some reason, the Sorcerer does not have their spells removed. I have not checked every class yet, but clerics, druids, wizards and bards do have them removed OK. I will check the others, but if I do not come back, assume the problem is just with the sorcerers.
Any reason why I cannot use the DecrementRemainingSpellUses for Sorcerers?
DEBUG says they are removed, but they are not when looking at the spells afterwards.
Thanks.
Lance.
Modifié par Lance Botelle, 06 janvier 2011 - 11:56 .





Retour en haut







