View Single Post
Sendric
Senior Member
 
Join Date: Jul 2010
Posts: 3,147

Old August 28th, 2018, 05:52 AM
Quote:
Originally Posted by thegreatone5224 View Post
Hello everyone,

I'm trying to figure out how to go about setting the duration of this custom class feature to a value based on whether or not a different ability was choosen.

Please advise.

if (#hasability[pngEleEBea] <> 0) then
duration = field[xTotalLev].value
else
duration = field[xTotalLev].value / 2
endif
Other than needing to declare the variable (var duration as number) this looks okay assuming #hasability works as intended here, and you're timing is set correctly. Are you getting an error?
Sendric is offline   #2 Reply With Quote