• 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

Suppressing Racial Spellcasting

When I do that (hero.findchild[BaseRace].field[cMagicLev].value = 0) I get a whole bunch of errors along the line of Attempt to access out-of-bounds matrix index -1,0 etc.
 
Can you post the exact error message (right click it to copy it to the clipboard)? I think cMagicLev is just a value field, but it might be used to set some other matrix field, but I would like to know which one.
 
here it is

Code:
Attempt to access out-of-bounds matrix index '-1,0' for matrix field 'cCastTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 88
- - -
Attempt to access out-of-bounds matrix index '-1,0' for matrix field 'cKnowTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 95
- - -
Attempt to access out-of-bounds matrix index '-1,1' for matrix field 'cCastTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 88
- - -
Attempt to access out-of-bounds matrix index '-1,1' for matrix field 'cKnowTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 95
- - -
Attempt to access out-of-bounds matrix index '-1,2' for matrix field 'cCastTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 88
- - -
Attempt to access out-of-bounds matrix index '-1,2' for matrix field 'cKnowTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 95
- - -
Attempt to access out-of-bounds matrix index '-1,3' for matrix field 'cCastTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 88
- - -
Attempt to access out-of-bounds matrix index '-1,3' for matrix field 'cKnowTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 95
- - -
Attempt to access out-of-bounds matrix index '-1,4' for matrix field 'cCastTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 88
- - -
Attempt to access out-of-bounds matrix index '-1,4' for matrix field 'cKnowTot'
Location: 'eval' script for Component 'Spellcast' (Eval Script 'Calc Spells Available') near line 95
 
Back
Top