Member
Join Date: Apr 2017
Posts: 73
|
How can I perform an action if a skill is a class skill?
I was looking at adding this directly in a custom skill Code:
doneif (field[kClass].value <> 0) Any suggestions? I'm trying to add bonus points if it is a class skill. Full code Code:
doneif (field[kClass].value <> 0) var nPoints as number nPoints = (#totallevelcount[] * 5) field[Bonus].value += nPoints |
#1 |
Senior Member
Join Date: Jul 2010
Posts: 3,151
|
Class skills are determined by the class, not by the skill or even the hero. So, you'll need to look at all the classes to determine if it's a class skill.
Do you want it to be a class skill for a specific class or for any class? For any class, you might try something like this: Code:
var classskill as number foreach pick in hero from BaseClHelp where "BaseSkill.nen2" classskill += 1 nexteach doneif (classskill = 0) |
#2 |
|
|