Senior Member
Join Date: Feb 2013
Posts: 357
|
If you can select a skill to get a bonus to but have to have a certain number of ranks in the chosen skill, how would you code the prerequisites?
|
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
Quote:
If this is for a feat, the eval rule would probably look something like this: Code:
validif (field[fChosen].chosen.field[kUserRanks].value >= #) Code:
foreach pick in hero from BaseSkill if (eachpick.field[kUserRanks].value >= #) then perform each.assign[User.Tag] endif nexteach Code:
component.BaseSkill & User.Tag |
|
#2 |
Senior Member
Join Date: Oct 2016
Posts: 621
|
Hey Sendric, thanks for your quick answers, can you give me the complete eval rule to add this for a feat? Coding is only level 2 now.
|
#3 |
Senior Member
Join Date: Jul 2010
Posts: 3,147
|
The first line of code I provided above should do the trick. Just replace # with the actual number of ranks required. If it doesn't work, let me know.
|
#4 |
|
|