• 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

Dynamic tags displaying text

Destrin

Well-known member
I'm fiddling about with trying to get Firestorm Armada v2.0 built and struggling with a particular funny around dynamic tag groups.

Shield rating is usually a numeric value. However, if a ship has a cloaking field, it's shield rating is 'cloaking field'. Given it's numeric, I would have through the tag group should be dynamic, to avoid having to list every possible numeric value in advance. However, if I do this and then give a unit a shield rating of 'cloaking field' it shows up as a 0 in the unit details box.

Am I misunderstanding how dynamic tags are supposed to work? Or is this a case of needing to list out the discrete possible values given that some of them could be textual?
 
Off top of my head one way of approaching it would be to leave the values as numeric but assign a specific value to the unit stat if they have a Cloaking Field e.g. -999 (something that the user couldn't get to in the normal process of creating the unit.

In the def file in the Unit Stat tab for the Shield unit stat in the Finalize section then something like:

if (@value = -999) then

@text = $stCloakField
endif

In the def file in the String section then set up stClaokField to be "Cloaking Field" (that allows for easy language translation
 
Back
Top