• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

help with coding (again)

I am working on a high level item that increases the number of spells a character can cast at a certain level, using a multiplier. for instance, a lesser version of the item might improve the number of 2nd level spells a mage or sorcerer can cast by 50% (e.g. 3 instead of 2, 6 instead of 4, etc.). while a greater version of the item might increase the number of 3rd level spells by 100% (i.e. double). how would i implement multiplying the number of spells of a specific level and getting the change to show up in the "spells" tab so i can track them normally?

any help is greatly appreciated!
 
Unfortunately, the ring of wizardry works by adding a tag that tells the spell calculations to apply the appropriate effects. Try looking at "Spells Cast per Day" on the adjust tab.

More unfortunate is that the number of spells/day and the bonus spells from high attributes are both totaled in the same script, so there's no way to multiply only those spells granted by the class unless you manually back out the attribute bonuses before multiplication and add them back in after multiplication (which is why the Ring of Wizardry acts through a tag).
 
mathias, i went with risner's suggestion and it seems to work ok -- so far. what is it that i'm missing about your post? why is the tag which modifies spell calculation a bad thing? as far as i can tell, the tag seems to be just adding the total you can cast at that level (prior to attribute bonuses). multiplying that tag by .5 before applying it should do the trick for the 50% bonus and simply adding the tag with no multiplier would add the 100% bonus, correct?
 
The Ring of Wizardry specifically does not multiply the bonus spells you get for having high attributes. Does your magic item carry the same restriction?
 
ahhh... when i created and tested the lesser items that only add 50% i didn't get any compilation errors but it seems the multiplier is simply ignored. when i equip the item it, regardless of multiplier, the evaluator script just doubles the base number of spells.

now i understand better what you were trying to explain.
 
Back
Top