darrenan
November 20th, 2015, 18:01
I was working on a ruleset last night, and was porting some templates over from the 3.5e ruleset, when I hit a problem I couldn't figure out. Specifically, the action() function on the template used for the ability bonuses tries get the attribute name using "self.target[1]". In my ruleset, when I double click on the control I get an error that target is nil and can't figure out what the difference is that is causing this.
I walked up the template inheritence chain, checked the control references in the wiki, and scoured my lua book, but couldn't find 'target' anywhere. I was wondering if someone could briefly explain where this field comes from and what I can expect to find in it (how many elements, where do they come from, etc.)?
Thanks.
I walked up the template inheritence chain, checked the control references in the wiki, and scoured my lua book, but couldn't find 'target' anywhere. I was wondering if someone could briefly explain where this field comes from and what I can expect to find in it (how many elements, where do they come from, etc.)?
Thanks.