• 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

Custom Ability Duplicate Help

Frodie

Well-known member
Ok, I don't know how to explain this so I attached a screen shot.

Basically, I am using a script from the cleric domain Rage in a Custom Ability. It all works well with no problems. But once the ability is chosen, it appears twice. Is there a way to get rid of one of them. It doesn't matter which one, it just makes a mess. I also have "Upgrade - Hide from List" checked.

Thank you for any ideas or help

Here is the script:


Post Levels 5000

~modify our linked class to add modern hero training

~we'll use the tertiary abilities slot for these

linkage
.field[cCustTeTot].arrayvalue[11] += 1
linkage
.field[cCustTeTot].arrayvalue[15] += 2
linkage
.field[cSpec3rdSi].text = "Cross Training"




Final Phase 99999999

~we'll overwrite the tertiary abilities' expression, since we need
~to make them use primary modern hero training

linkage
.field[cCstS3Expr].text = "(SpecSource.arMHEngine)"





Levels 10000
hero.childfound[cHelpMdH].field[cGiveSp3rd].value += 1
 

Attachments

  • HeroLabError.jpg
    HeroLabError.jpg
    147.5 KB · Views: 13
Try changing:

Code:
linkage[table].field[cCstS3Expr].text = "(SpecSource.arMHEngine)"

to:

Code:
linkage[table].field[cCstS3Expr].text = "(SpecSource.arMHEngine & Helper.Tertiary)"

and then mark all your "Cross Training" abilities with the Helper.Tertiary tag.
 
Nope, still shows up twice. The "Cross Training abilities are already have the tag "Secondary". So that might be it. Is there a way to remove a tag?
 
I found this script, maybe it can be made to work, idk

Prelevels 1000

~ Check the magic container Thing to see if we are a one-Handed weapon
~ if we are then make us a Light weapon instead
if (container.tagis[wClass.OneHanded] <> 0) then
container.tagreplace[wClass.TwoHanded,wClass.Light]
endif
 
or something like this:

if (field[abilActive].value <> 0) then


perform delete[Helper.Secondary]

endIf
 
Ok, this works, but you have to add each ability. Is there way to say (any Secondary ability)?

perform hero.childfound[cMHBreakth].delete[Helper.Secondary]
 
Sorry, was on vacation the last couple days.

You don't have to delete the Helper.Secondary tag in an eval script, there is a "Tags" button in the upper right of the editor. You should be able to just delete the correct tag there, that's probably a better way to handle it than adding an eval script to every one of your custom abilities.
 
Yea, the problem with that is the custom ability needs the Helper.Secondary tag must of the time. Only when the cross training ability is taken does it need to hide, or if I can just hide the Helper.Tertiary after it has been chosen. Just need to hide one or the other, some how.

Thank you!
 
Last edited:
Ah, so you can either take secondary abilities (Archetype Trainings), or you can take tertiary abilities (Cross Trainings) but not both?
 
Sort of, in general the seconds are tied to a certain archetype, but if you take "cross training" you can access the seconds you normally do not have access to.

So you would still have access to your normal archetype "second abilities", but you also gain the other archetype "second abilities"

Here is the script:


Post Levels 5000

~modify our linked class to add modern hero training

~we'll use the tertiary abilities slot for these

linkage
.field[cSpec3rdSi].text = "Cross Training"




Final Phase 99999999

~we'll overwrite the tertiary abilities' expression, since we need
~to make them use primary modern hero training

linkage
.field[cCstS3Expr].text = "(SpecSource.arMHEngine)"





Levels 10000
hero.childfound[cHelpMdH].field[cGiveSp3rd].value += 1
 
Last edited:
Yea, they show up and all, but it post a copy of the ability twice. I want to hide one or the other copy.
 
Ah, I thought you said you'd fixed that. Go ahead and send me the .user file so I can take a look. If my initial suggestion didn't correct the problem then I'd either need to look a bit deeper or have some misconception of what the goal is.
 
The goal is to hide one of the copies that appear in the class UI.

The script works fine, but when you take an ability that has shown up in the tertiary abilities slot. It post that ability in the secondary and the tertiary of the class section of the UI. I want to hide one of the copies in the class UI.


At the moment to fix the issue, I have a script under the "Cross Training Engineer" custom ability.

perform hero.childfound[cMHBreakth].delete[Helper.Secondary]
perform hero.childfound[cMHAdvEng].delete[Helper.Secondary]
perform hero.childfound[cMHAdTrStS].delete[Helper.Secondary]
perform hero.childfound[cMHEngImp].delete[Helper.Secondary]
perform hero.childfound[cMHImpKit].delete[Helper.Secondary]
perform hero.childfound[cMHImQkCrf].delete[Helper.Secondary]
perform hero.childfound[cMHImpTool].delete[Helper.Secondary]
perform hero.childfound[cMHQuickCr].delete[Helper.Secondary]
perform hero.childfound[cMHReconfi].delete[Helper.Secondary]
perform hero.childfound[cMHReconWp].delete[Helper.Secondary]
perform hero.childfound[cMHSabotag].delete[Helper.Secondary]
perform hero.childfound[cMHSupRep].delete[Helper.Secondary]
perform hero.childfound[cMHUnflust].delete[Helper.Secondary]
perform hero.childfound[cMPCHQkFi].delete[Helper.Secondary]
perform hero.childfound[cMPCHWpnUp].delete[Helper.Secondary]

and that works, but is there an easier way because there is a lot to do this way.
 
Last edited:
The Version I downloaded doesn't have the tertiary custom ability table displayed. How do I get Cross Trainings to show?
 
Also, why are you even using 2 tables? From what I understand, it seems like both Archetype Trainings and Cross Trainings are the same set of abilities, shouldn't they be added through the same table?
 
"Cross Training Engineer" custom ability is the "test" and the one I am working on before I do the others.

Cross Training is a primary ability that moves the archetypes secondary abilities to tertiary. If there is a way to get them to show up in the secondary without overwriting the other secondary, that would be great.
 
Cross Training engineer is the one I added, but no third table appeared. Are you sure you posted your beta/test set rather than just the latest public release?
 
Back
Top