Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
How would I scrip a dis advantage that gives a -2 charisma at minor and a -4 at major?
|
#1 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
Set this for PreTraits/5000...
~if this is a major hindrance, use the -4 modifier if (field[hinMajor].value <> 0) then perform #traitadjust[trCharisma,-,4,"Really Unpleasant"] else ~otherwise this is a minor hindrance, use the -2 modifier perform #traitadjust[trCharisma,-,2,"Unpleasant"] endif |
#2 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
And if I were to make it user Activated?
|
#3 |
Senior Member
Volunteer Data File Contributor
Join Date: Aug 2009
Posts: 1,550
|
~if this is a major hindrance, use the -4 modifier
if (field[abilActive].value <> 0) then if (field[hinMajor].value <> 0) then perform #traitadjust[trCharisma,-,4,"Really Unpleasant"] else ~otherwise this is a minor hindrance, use the -2 modifier perform #traitadjust[trCharisma,-,2,"Unpleasant"] endif endif |
#4 |
Senior Member
Volunteer Data File Contributor
Join Date: Jan 2007
Posts: 591
|
You are a god among men sir.
|
#5 |
|
|