Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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? |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
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. |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
I turned one of my needtags into a prereq, actually, so don't worry about this one.
|
#3 |
|
|