View Single Post
Spyderbane
Member
 
Join Date: Apr 2017
Posts: 71

Old November 16th, 2023, 08:46 AM
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)
but this throws an error


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
Attached Images
File Type: png Screenshot 2023-11-16 094210.png (151.7 KB, 13 views)
Spyderbane is offline   #1 Reply With Quote