![]() |
Member
Join Date: Nov 2012
Location: Portland, OR
Posts: 43
|
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. |
![]() |
![]() |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
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. |
![]() |
![]() |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
not sure if there is a way to modify wcAlign via eval script
|
![]() |
![]() |
Member
Join Date: Nov 2012
Location: Portland, OR
Posts: 43
|
I couldn't figure out how.
|
![]() |
![]() |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,219
|
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.
|
![]() |
![]() |
Member
Join Date: Nov 2012
Location: Portland, OR
Posts: 43
|
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. |
![]() |
![]() |
Senior Member
Join Date: Apr 2010
Posts: 152
|
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] Matt Droz Community material (Forgotten Realms & Non-SRD/Retro) |
![]() |
![]() |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,219
|
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. |
![]() |
![]() |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
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.
|
![]() |
![]() |
![]() |
|
|