• 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

Set alignment with an eval script

Wruin

Active member
I want to write an eval script to change alignment for the template I am creating. Selecting which alignments are valid in the editor limits which alignments the base creature can be and has the effect of graying out the template during selection. This is not what I want. I want to apply the template to any alignment, and the template will make the creature Chaotic Evil.

I am looking at tags and fields. There are so many having to do with alignment that I don't understand which to set. I cannot find an example anywhere. The Helm of Opposite Alignment doesn't actually change alignment. I have been trying to solve this for 3 days, so someone please show me how.

Thank you.
 
I've checked some that would cause an alignment to change, but it doesn't appear to actually do it automatically, you still have to go and change it, it just highlights that the alignment is invalid.

It would be a handy addition.
 
The intent is that you ignore the fact that it's greyed out, add the template anyway, and then fix the alignment, so that the template becomes valid.
 
Alright, that's not so bad. I can be a bit of a perfectionist, and I have no time constraints on this project. I figure if I can implement this template, I will have learned the skills I need to be proficient with the tool. It is actually nice to know I couldn't figure it out because it can't be done.

As always, I appreciate the feedback from both of you.
 
I'm setting up an Alternate Racial Trait that switches the base creature from Chaotic Good to Chaotic Evil. I was able to change it by doing the following:

Code:
perform hero.child[rUnicorn].delete[Alignment.Good]
perform hero.child[rUnicorn].assign[Alignment.Evil]
 
Add a prereq to the ART for the new alignment. I can't remember the details off hand, but I'm pretty sure there are reasons that just changing the alignment tags won't work.

If the race has a prereq of a specific alignment, you may need to have the ART delete the tags that create that prereq.
 
If I remember correctly, the issue Mathias was talking about is that the alignment tags from the race are only forwarded if the user hasn't picked an alignment manually. Thus your script will only work if the user hasn't clicked on the alignment selection button already.
 
Back
Top