1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still havn't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. We have recently started the 16th edition of the Mini Mapping Contest. The theme is mini RPG. Do check it out and have fun.
    Dismiss Notice
  4. Dismiss Notice
  5. The Highway to Hell has been laid open. Come along and participate in the 5th Special Effect Contest.
    Dismiss Notice
  6. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

[GUI] Unit Translated Values Reference

Discussion in 'Tutorial Submission' started by OnGe, Feb 4, 2020.

  1. OnGe

    OnGe

    Joined:
    Feb 3, 2020
    Messages:
    25
    Resources:
    0
    Resources:
    0
    I have not found anything about this topic, so I explored it myself and written it down.

    Via Trigger editor you can directly modify unit values, including some with translated values. That means stuff with dropdown in object editor, bud represented as integer in unit values. This way, you may, for examplem change defense type, movement type, formation rank and more. Because it is not clear how listed values are translated to integer values, here is reference table:

    Integer Values:
    Defense type "udty": (armor type displayed on unit)
    0 - Light
    1 - Medium
    2 - Heavy
    3 - Fortified
    4 - Normal (that strange unused type)
    5 - Hero
    6 - Divine
    7 - Unarmoured
    8+ - broken - no icon, says just "Armor" and has default "Normal" tooltip. Better avoid this.

    Armor type "uarm": (defines sound it makes when hit)
    0 - no sound
    1 - Flesh
    2 - Metal
    3 - Wood
    4 - Ethereal
    5 - Stone
    6+ - no sound, if needed, better use 0

    Formation rank "ufor": (how will unit act in formation - bigger number means safer distance)
    0 - Melee (Footman, Grunt...)
    1 - Skirmish (Spellbreaker - maybe only on of that rank)
    2 - Ranged (Priest, Rifleman, Headhunter...)
    3 - Long range (Seige engine, Demolisher...)
    4 - Non-combat (workers)
    5+ havent found any unit with that values

    Weapons Integer Values:
    With these values, you have to pick index of attack:
    0 - attack 1
    1 - attack 2

    Attack Type "ua1t": (attack type displayed on unit)
    0 - Normal
    1 - none - attack disabled
    2 - Piercing
    3 - Seige
    4 - Magic
    5 - Chaos
    6 - Hero
    7+ - undefined - attack is displayed with no icon and acts weird. Better avoid this.

    Attack Weapon Sound "ucs1": (acts weird, here is my findings)
    0 - no sound
    1 - attack disabled - dont ask me why
    2 - Metal Medium Chop
    3 - allowed targets messed up, unit can not attack properly
    4 - allowed targets messed up, unit can not attack properly
    5 - allowed targets messed up, unit can not attack properly
    6 - Metal Heavy Slice
    7 - allowed targets messed up, unit can not attack properly
    8 - allowed targets messed up, unit can not attack properly
    (I have stopped here, because messing with this value seems pointless)


    Attack Targets Allowed "ua1g": (what I do here is mostly wild guess based on what unit can and can not attack)
    0 - any unit (friend, enemy, structure, hero...), but not item, ward, tree, debris or wall
    1 - can not target anything, just attack-move on ground
    2 - Ground - can attack ground units, but not structures
    3 - can not target anything, just attack-move on ground
    4 - Air - cat target only Air units
    5 - can not target anything, just attack-move on ground
    6 - Ground + Air (?) - can attack land and air units, but not structure, ward
    7 - can not target anything, just attack-move on ground
    8 - Structure - can target any structure, but nothing else
    9 - can not target anything, just attack-move on ground
    10 - Ground + Structure - can attack ground units and structures

    Here, probably any option you can check on Allowed Targets has value that is power of 2. That means 2,4,8,16,32,64... plus any possible sum of that values to give any possible combination. I do not want to explore this further but if you want to, go on and share your findings.

    There is many more translated values and I will add them as soon as I explore them. If you have your own findings, please, share. If there is already such reference somewhere, please, point me there.

    Cheers!
     
    Last edited: Feb 14, 2020 at 4:29 PM
  2. OnGe

    OnGe

    Joined:
    Feb 3, 2020
    Messages:
    25
    Resources:
    0
    Resources:
    0
    I have added Formation ranks and weapon integer values (not much useful stuff here)