Member
Join Date: Aug 2014
Posts: 52
|
Hello All,
Quick question. Consider the case where you have a tag group that is used solely to keep track of numbers, like for example Level.1, Level.2,....Level.20, where you want to use the tag id as a value. If more than one of these tags is assigned to the same pick/container, do they both get applied, so that a single Hero for example can be tagged as both Level.1 and Level.2, or does the HL engine know in this case to only use the most recently assigned tag? And a related question, when the same tag is assigned to the same pick/container but from two different scripts, this doesn't cause any kind of conflict, does it? It is still considered to have just one unique tag of that group and id? Thanks. |
#1 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
if more than one is assigned it will randomly pick one if you do tagvalue[Level.?]
I found that out the hard way once. |
#2 |
Member
Join Date: Aug 2014
Posts: 52
|
Damn. So how do you control leveling up? The 4e files (I know you haven't worked with them) have in their eval script to constantly reassess the amount of XP, look that up in an array, and assign the Level.? tag. I don't see any code deleting the previously assigned tag. How does this not result in screw-ups?
|
#3 |
Senior Member
Join Date: Mar 2007
Location: Muskegon, MI
Posts: 2,975
|
maybe they have a delete[Level.?] somewhere in there I'm not sure
|
#4 |
Member
Join Date: Aug 2014
Posts: 52
|
Did a global search, couldn't find an instance of that. The mystery deepens...
|
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
tagmax[] and tagmin[] are also available, in addition to tagvalue[].
|
#6 |
|
|