Human/Half-Elf Shaman FC Bonus usrCandid
I've successfully modified the Human/Half-Elf Shaman FC bonus to select 1 cleric spell and add it to the known spells to filter out Words of Power. However, it would be nice if it also filtered out previously selected spells. Here is what I have now. I'm running it in a mechanic script so I don't have to edit the 2 picks directly, which is the point of the loop:
Quote:
|
Assuming that KnowSpell.? is present at the timing you need you can add the following logic:
Code:
& " & !(" & hero.tagids[KnowSpell.?,"|"] & ")" To be clear it becomes this: Code:
eachpick.field[usrCandid1].text = "component.BaseSpell & !component.BaseWord & sClass.cHelpClr & !sClass.cHelpSha & (val:sLevel.? < " & hero.childfound[cHelpSha].field[cMaxSpLev].value & ")" & " & !(" & hero.tagids[KnowSpell.?,"|"] & ")" |
The code you posted seems to make sense, however, when i plug that in, I seem to get every spell in the game in the selection list including numerous entries for some spells that are on multiple spell lists.
|
Quote:
Most likely its creating a Invalid Expression then if its giving everything. May need to wrap a IF statement and not include the tagids[] unless a tagcount shows they are present. Use debug and look at the final expression and make sure it looks valid.... |
All times are GMT -8. The time now is 10:51 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.