I am trying to create a new cleric domain that adds the dwarven stonecunning ability to the character, or if the character already posses the ability I want to increase it by two. I am having a problem with the script, however. I have pieced this together by looking at how other scripts work. I am not very proficient with with scripting so I have hit a dead end on how to fix it. I get an error on line 5.
if (#hasability[raStonecun] <> 0) then
#value[raStonecun] += 2
else
if (#hasability[raStonecun] = 0) then
perform hero.assign[ability.raStonecun]
endif
Any help would be appreciated.
if (#hasability[raStonecun] <> 0) then
#value[raStonecun] += 2
else
if (#hasability[raStonecun] = 0) then
perform hero.assign[ability.raStonecun]
endif
Any help would be appreciated.