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

Old March 2nd, 2016, 04:58 AM
So I am attempting to assign a tag to a chosen thing, and am getting an error. In this case, the thing in question is a custom ability.

Here is the script I am using:

Code:
~ Add SpecSource tag
doneif (field[fChosen].ischosen = 0)

var source as string
source = hero.childfound[fShapeSouH].field[fChosen].chosen.idstring
source = "SpecSource." & source

perform field[fChosen].chosen.assignstr[source]
and here is the error:

Quote:
Attempt to access pick information or behaviors for read-only thing 'cTtmBeTaCi'
Location: 'eval' script for Thing 'fShapeSoul' (Eval Script '#1') near line 8
Is this a bug or expected behavior? I have been able to do similar things in the past, so I'm not sure why this isn't working.
Sendric is offline   #16