View Single Post
sincla
Member
 
Join Date: Aug 2014
Posts: 52

Old September 1st, 2014, 05:12 PM
The wiki says that the intersect reference is the following format:

Code:
intersect[init,curr]
where in a validate script the tags in the group init belong to the initial context, that is the prospective container for a thing, and the curr gives you the tags in the alternate context which is the thing that might be added (as a pick).

But, it seems that this is exactly backwards in many instances in actual code I've seen. For example:

Code:
altthing.intersect[ReqClass,Class]
where the script is comparing the required class to wield the thing to be added (ReqClass) which resides on the altthing, and seeing if that intersects with a Class tag on the hero.

Which is the correct syntax?
sincla is offline   #15 Reply With Quote