• 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

Editor Coding Question

I'm trying to create a race that not only receives powers by HD, but also receives different/same powers by alignment. For example, a Devil (any of them for this example) becomes good...in my opinion, it would gain different powers and lose it evil powers. I know how to code based on HD, but need help on the alignment part of the equation.

-Joe
 
The alignment is a pair of tags applied to the hero (one for the L-C axis and another for the G-E). They are applied early enough to be used in bootstrap conditions as well.

Does that help? You don't seem to have a specific question so I can't really tell what you're needing.
 
That does help, but how do I code it in to the power (what does the code look like). I'm trying to create a devil, erinyes/half-celestial child. In other words...a celestial fell and his/her mate (a non-fallen celestial) had a child. What if that child's alignment changes? In my opinion, the child would lose, gain and keep powers based on the change.

I hope this gives you a better understanding of what I'm trying to do and thanks for your help.

-Joe
 
Last edited:
Well, are you creating a race for this person? If so, you can bootstrap the racial abilities you want it to have when good, neutral, and evil all at the same time, but give each ability a bootstrap condition so it only shows when the correct alignment is selected. For example, if you wanted to give it the Daylight spell if good then bootstrap that spell as a SLA with this bootstrap condition:

count:Alignment.Good <> 0

If you want it to get Mage armor while neutral, then bootstrap that spell as a SLA with

count:Alignment.NeutralGE <> 0

If you want it to get Darkness when evil that would be:

count:Alignment.Evil <> 0

Since the hero will only have 1 alignment tag at a time, it will only get one of those three.
 
Back
Top