Why is the same skill showing up three times in a foreach loop?
First of all, scratch my previous question about the labeltext script. I'm doing that whole thing a different way, which I think will still work out the way I want it, but I'm having another odd issue now.
I have the following portal: Code:
<portal Code:
|
Just covering the obvious, have you checked the debug output to be sure that you don't have Agility or Movement added multiple times to your hero?
|
Quote:
|
Quote:
Code:
debug eachpick.idstring |
Quote:
That is the only thing with a name of "Movement" Movement is defined as unique. All the skills are bootstrapped in bootstrap.1st, and since they're all unique, nothing is user selectable, so no skill can be added multiple times. |
Quote:
EDIT: No, scratch that. With this logic, it would only be listed once. But in the UI, it's listed on the skills table only once, and THAT should be an indication that it's only picked once. |
Movement is unique. Is Agility?
|
Quote:
|
Just to see what would happen, I removed "isunique='yes'" from the Movement skill, and I got an error that the linked trait must be unique. So I put it back, then removed it from Agility. I get an error that the compset requires it to be unique.
So, not only are both unique, but one is required to be unique by its compset, and the other is required to be unique by virtue of having a linkage. EDIT: Actually, I misread one of the error messages. For "Movement", it's the compset as well. For both skills and attributes, their compsets require them to be unique. |
Try adding a
Code:
debug "starting script" |
All times are GMT -8. The time now is 09:58 PM. |
Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.