Coding a Prereq condition - Help needed
I have a spell component.
I have a link to the heroes Attributes (zattrib) and a minimum value of this Attribut (AttrWert). I want to check as a prereq if the hero has the required attribute value.
I tryed this:
@valid = 0
if (linkage[zattrib].field[attFinal].value >= field[AttrWert].value) then
@valid = 1
endif
but I got the following error: "Script reference is invalid under this circumstances"
If I use this for a eval script if works fine, but not for the prereq.
Any hints, what I do wrong?
I have a spell component.
I have a link to the heroes Attributes (zattrib) and a minimum value of this Attribut (AttrWert). I want to check as a prereq if the hero has the required attribute value.
I tryed this:
@valid = 0
if (linkage[zattrib].field[attFinal].value >= field[AttrWert].value) then
@valid = 1
endif
but I got the following error: "Script reference is invalid under this circumstances"
If I use this for a eval script if works fine, but not for the prereq.
Any hints, what I do wrong?
Last edited: