Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
|
|
#11 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
Code:
field[usrChosen1].value += field[BonComp].value += 5 Code:
field[usrChosen1].field[BonComp].value +=5 |
|
#12 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The first of those will not work. The second one is close, but you've made a mistake in your transitions - there's something missing in-between field[usrChosen1] and field[BonComp].value.
|
#13 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
Code:
~Take the selection chosen by the user and grant a +5 competence bonus to the skills selected field[usrChosen1].chosen.field[BonComp].value +=5 1. If the user is selecting two skills to apply the bonus to, and choses the first skill, can we eliminate that choice from the list of candidates on the second list? |
|
#14 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Eliminating the second one is more work than we consider it to be worth for our own material when writing abilities that make changes to two separate choices from the same list. If you want, you can write an eval rule to complain if the user selects the same thing twice (there should be several examples of that sort of thing out there).
Now, in the editor's help menu...help on using the editor, and then read the section named "Reference Information". Start with the "General Modifiers" section there, and then scroll back up a little ways, and look within "Useful Macros" for things that are designed to work along with those General Modifiers. |
#15 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
Quote:
Code:
#applybonus[BonComp],field[usrChosen1].chosen, 5 |
|
#16 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
You're closing the [ ] too early - you're closing it just after the bonus type, but you'll need to close it at the end.
|
#17 |
Senior Member
Join Date: Nov 2017
Location: Trafford, PA, USA
Posts: 226
|
|
#18 |
Thread Tools | |
Display Modes | |
|
|