• 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

Altering race name using Primary and Secondary abilities

Umarian

Well-known member
So I have a race that is a half-breed. The race will select the two "breeds" as primary and secondary selections (R Custom Special) on the background tab. Each selection will have a list of races to choose from, and a custom text one.

So here is my question...Is it possible to alter the name of the original race to reflect the two selected sub-races? To display like:

Race Name (Selection 1, Selection 2).

This is similar to how the Tiefling races uses the below code, but does not replace the full name:

Code:
First / 600
      ~set our race's name to our own name
      focus.field[livename].text = field[name].text

Umarian
 
So I have a race that is a half-breed. The race will select the two "breeds" as primary and secondary selections (R Custom Special) on the background tab. Each selection will have a list of races to choose from, and a custom text one.

So here is my question...Is it possible to alter the name of the original race to reflect the two selected sub-races? To display like:



This is similar to how the Tiefling races uses the below code, but does not replace the full name:

Code:
First / 600
      ~set our race's name to our own name
      focus.field[livename].text = field[name].text

Umarian

Do you see the part earlier in that script that sets the focus? You should be able to overwrite that thing's livename with it's normal name, + 2 strings generated from the "half races" you mentioned.
 
The script above is present on the R Custom Special for the Tiefling. Wouldn't this one need to be present on the base race? To have something similar to

Code:
field[livename].text = "(field[name].text) (" & "choice1.field[name].text"&", "&"choice2.field[name].text" & ")"

Getting the name for the choice1 and choice2 is where I am unsure of where to pull from. It would depend on the selection, and I can't see where the text is being filled in on the Develop -> show XX Field.
 
Go from the other direction:

First/600, on each of the picks that can be a first selection:
focus.field[livename].text &= focus.field[name].text & " (" & field[name].text

First/601, on each of the picks that can be a second selection:

focus.field[livename].text &= ", " & field[name].text & ")"
 
Last edited:
Back
Top