Lone Wolf Development Forums  

Go Back   Lone Wolf Development Forums > Hero Lab Forums > HL - Pathfinder Roleplaying Game

Notices

Reply
 
Thread Tools Display Modes
Darius Darksoul
Member
 
Join Date: Oct 2019
Posts: 43

Old August 16th, 2020, 04:26 PM
what is an Index and how do you use them.
Darius Darksoul is offline   #1 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old August 16th, 2020, 06:07 PM
Thats a really generic question, there are a number of indexes used for different purposes.
Minous is offline   #2 Reply With Quote
Darius Darksoul
Member
 
Join Date: Oct 2019
Posts: 43

Old 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
Darius Darksoul is offline   #3 Reply With Quote
Minous
Senior Member
 
Join Date: May 2015
Posts: 830

Old 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?
Minous is offline   #4 Reply With Quote
Darius Darksoul
Member
 
Join Date: Oct 2019
Posts: 43

Old August 17th, 2020, 09:20 PM
Post levels 10000
Darius Darksoul is offline   #5 Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:41 AM.


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