Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Indexs (http://forums.wolflair.com/showthread.php?t=64670)

Darius Darksoul August 16th, 2020 04:26 PM

Indexs
 
what is an Index and how do you use them.

Minous August 16th, 2020 06:07 PM

Thats a really generic question, there are a number of indexes used for different purposes.

Darius Darksoul August 16th, 2020 09:31 PM

Attempt to access field 'xIndex' that does not exist for thing 'ioMagusglovesGR'
Location: 'eval' script for Thing 'ioMagusglovesGR' (Eval Script '#2') near line 4
- - -
Attempt to access field 'xIndex' that does not exist for thing 'ioMagusglovesGR'
Location: 'eval' script for Thing 'ioMagusglovesGR' (Eval Script '#2') near line 11
- - -
Attempt to access field 'xIndex' that does not exist for thing 'ioMagusglovesGR'
Location: 'eval' script for Thing 'ioMagusglovesGR' (Eval Script '#2') near line 17
- - -
Attempt to access field 'xIndex' that does not exist for thing 'ioMagusglovesGR'
Location: 'eval' script for Thing 'ioMagusglovesGR' (Eval Script '#2') near line 23
- - -
Attempt to access field 'abSumm' that does not exist for thing 'ioMagusglovesGR'
Location: 'eval' script for Thing 'ioMagusglovesGR' (Eval Script '#5') near line 6


This seems to be causing the problem.

~ set listname depending on # of times taken and if we have
~ taken mythic version

if (field[xIndex].value >= 4) then
if (hero.tagis[LGMyAbil.TrueMagus] = 0) then
field[listname].text = "True Magus"
else
field[listname].text = "True Magus [Mythic]"
endif
elseif (field[xIndex].value = 3) then
if (hero.tagis[LGMyAbil.GreSplComb] = 0) then
field[listname].text = "Greater Spell Combat"
else
field[listname].text = "Greater Spell Combat [Mythic]"
endif
elseif (field[xIndex].value = 2) then
if (hero.tagis[LGMyAbil.ImpSplComb] = 0) then
field[listname].text = "Improved Spell Combat"
else
field[listname].text = "Improved Spell Combat [Mythic]"
endif
elseif (field[xIndex].value = 1) then
if (hero.tagis[LGMyAbil.SplComb] = 0) then
field[listname].text = "Spell Combat"
else
field[listname].text = "Spell Combat [Mythic]"
endif
endif

Minous August 17th, 2020 03:15 AM

Quote:

Originally Posted by Mathias
February 11th, 2016, 02:56 PM
The xCount and xIndex fields are generated with a foreach that uses a sort order to search through the abilities in order by the level they're added at.

So that's probably a timing issue. Where are you setting it to run?

Darius Darksoul August 17th, 2020 09:20 PM

Post levels 10000


All times are GMT -8. The time now is 09:39 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.