• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Are multiple needtag expressions combined with & or |?

Mathias

Moderator
Staff member
If multiple needtag expressions are defined for a portal, it appears they are combined with an "or" rather than an "and" - am I correct?

If that's the case, how do I get around it? I tried creating a new tag group, made sure to make it dynamic, and used a script on the hero and the components I'm adding to (using assignstr) combine the tag expressions I'm checking into a single tag which represents both. The problem is that the expression produces errors that the tag it's trying to add doesn't exist - I thought dynamic tags were supposed to be able to have tags added, or is assignstr not one of the ways you can create new tags?
 
Distinct "needtag" expressions *are* combined via an "OR" operation.

Dynamic tags are *only* created on-the-fly when they are assigned to things and components. The compiler needs to know about all tags when it compiles the data files - so that the tag can be actually created. If you synthesize a tag reference via a script, the compiler won't know about the tag, so it won't create the tag. When you then reference the tag, it won't exist.

I need a better idea of the *goal* here. You can't do what you are trying to do, but I don't know the overall objective, so I can't offer an alternative suggestion. Please explain what you're trying to accomplish from a overall game mechanics standpoint. Then I can suggest a way to solve it.
 
Back
Top