• 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

Using the Custom Ability on one class as the Seconday Ability of another

I am trying to create a new class that uses the custom abilities of two other classes. To do this I would have to use the Custom Ability of one class as a Secondary Ability for the new class. The only solution I found to this is to recreate all the custom abilities of one class as secondary abilities. This strikes me as "silly and wastful" (to quote the comments in the Shaman script which does something similar.) I suspect there is some form of script that can do this based on the Shaman script that overwrites the secondary abilities' expression to avoid duplication. (see below, I understand this duplicates the custom ability list within a given class to the secondary ability, but it does not address accessing other classes.)

Code:
      ~we'll overwrite the secondary abilities' expression, since we need
      ~to make them use the same abilities as our primary list. The alternative (creating every spirit twice, once for each table), is silly and wasteful.
      field[cCstS2Expr].text = field[cCstSpExpr].text

      ~Same with the hexes.
      field[cCstS4Expr].text = field[cCstS3Expr].text

I just have no idea how to redirect the "AllowC2nd" of the referenced class to the custom ability (as opposed to the secondary ability). Any suggestions or pointing out an existing script that does something similar (which I obviously haven't found), would be appreciated.
 
It would be helpful here to know what two classes and which abilities your trying to get too? I am not near HL so I can't give a good answer but your on the right track of having to modify the Custom Expression used by your class to allow selection of the other two.

The one issue is you have to know which Custom ability count they each are. So for examples Rogue Talents are connected to Primary (1st) so it would be hard to allow it to go into the Secondary (2nd) slot.

Let me know the two classes and abilities and I will try and do a quick poke tonight at it.
 
Have you looked at existing things that do this? For example, the Rage domain modifies the Cleric class so that the quaternary slot is used to list the primary abilities from the Barbarian. The Sacred Servant archetype adds Cleric primary abilities (domains) to its tertiary slot. The Stonelord archetype places the Stalwart Defender's primary abilities into its tertiary slot.
 
@ShadowChemosh:

One class is a custom class I already coded. The class abilities I want to use are primary (1st) The other class is Barbarian, from which I want to use rage powers, which is also a primary (1st). This is the one I am currently working on, although I intend to also create another merging the custom class with a Witch as will using Hexes (also primary (1st)). In short what I am trying to do is what you said would be hard. If you need classes of similar makeup, try a class with Rogue Talents (rogue) and Rage Powers (barbarian), I'm confident I could adapt the code to the custom class. I'm not in a great rush, and would appreciate any insight. Don't rush to write code for this until I get a chance to check out Mathias' suggestions, no point in wasting your time. Thanks!

@Mathias:

I've tried looking at different existing things and will have a look at your suggestions. I usually resort to existing code, tutorials, forum searches and looking at the raw code out of editor before posting questions; although that doesn't mean I found what may already be there. Your suggestions sound like what I am looking for (I just didn't know were to look for such code structure...). Thanks!
 
@Mathias

I've looked at your suggestions, as well as revisiting your scripting 201 thread as well as another thread where it looks like you helped someone with a similar issue. The problem I run into is this: linkage[varies] works in archetypes, linkage
works in cleric domains and class abilities but what sort of linkage works in a class. Is the root command an option and if so, what would it look like?
 
You're writing a script on the class to modify itself?

Don't use any transition - you're already in the correct place.

Just:
Code:
field[cCstS2Expr].text = "The expression you need in this case"

If you're doing this from a class special that's bootstrapped from the class, that's when you'd use the root. transition:

Code:
root.field[cCstS2Expr].text = "The expression you need in this case"
 
Yes, I'm modifying the class itself and no linkage makes sense (now getting a better idea how linkages work...).

Using your advice above, this is the code I'm using. It still doesn't want to modify field[cCstS2Expr] which seems to be stuck as the default (according to the debug info windows). Would I need to script the secondary ability count and secondary ability name as well or am I missing something else?

Code:
Phase: Final Phase (Users)    Priority: 99999999

~we'll overwrite the secondary abilities' expression, since we need
~to make them use primary barbarian abilities

field[cCstS2Expr].text = "(SpecSource.cHelpBbn) & !Helper.Secondary & !Helper.Tertiary"
 
Running into a similar problem in getting a classes custom ability to show up as a Secondary ability. Will this scrip work for me?
 
Back
Top