I'm trying to add a simple roll bonus to a specific Knowledge skill, in this case Knowledge (Arcane), and I tried the following Eval Script at Pre-Traits/5000:
I THINK that should work, but when I hit "Test Now"I get the error "One or more 'if' statements is missing the closing 'endif' statement"
Code:
~go through all knowledge skills and find an "Arcane" one
foreach pick in hero where "thingid.skKnow"
if (compare(lowercase(eachpick.field[domDomain].text),"arcane") = 0) then
perform #traitroll[skKnow,+,2,"Highest Clearance"]
endif
I THINK that should work, but when I hit "Test Now"I get the error "One or more 'if' statements is missing the closing 'endif' statement"