Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Authoring Kit (http://forums.wolflair.com/forumdisplay.php?f=58)
-   -   Tags Used As Numerical Values (http://forums.wolflair.com/showthread.php?t=50598)

sincla September 5th, 2014 06:03 PM

Tags Used As Numerical Values
 
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.

AndrewD2 September 5th, 2014 06:14 PM

if more than one is assigned it will randomly pick one if you do tagvalue[Level.?]

I found that out the hard way once.

sincla September 5th, 2014 07:01 PM

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?

AndrewD2 September 5th, 2014 07:19 PM

maybe they have a delete[Level.?] somewhere in there I'm not sure

sincla September 5th, 2014 07:24 PM

Did a global search, couldn't find an instance of that. The mystery deepens...

Mathias September 11th, 2014 09:57 AM

tagmax[] and tagmin[] are also available, in addition to tagvalue[].


All times are GMT -8. The time now is 12:22 PM.

Powered by vBulletin® - Copyright ©2000 - 2024, vBulletin Solutions, Inc.
wolflair.com copyright ©1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.