• 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

Scripted Alignment change

risner

Well-known member
I'm trying to reduce the alignment on the Evil/Good axis:
~ reduce alignment one step on evil alignment
hero.child[Totals].field[tGoodVEvil].value -= 3


But I get an error:
Only Derived Fields can generally be modified via scripts (field tGoodVEvil)

Does anyone know how to script an alignment change? Especially a method that will work with or without Ultimate Campaign
 
I'm pretty sure Alignment changes cannot be scripted, you just have to change them yourself.
I think its something new they just added for Ultimate Campaign actually as I don't recall a Good vs Evil total value.

@risner usually a Derived field is one that can't be changed or not expected to be changed by a script. If I get time I will take a look later this weekend but I have not otherwise worked with that field before. Not even 100% sure what its suppose to be storing/showing.
 
Could you bootstrap the required alignment via the script? Using an if then statement? If we're LE Alignment then ...... do stuff and bootstrap NE Alignment instead.

I don't know if that would prevent user alteration or not but it might be a solution.
 
Use a prerequisite to require the user to change the alignment. You can't change alignments with a script.
 
Back
Top