SOLDIER DAT HSL

From UFOpaedia
Jump to: navigation, search

SOLDIER.DAT Hex Workshop Structure Library

The following can be used to make an .hsl file that will work with Hex Workshop (v4.23) available from www.BPSoft.com. This allows one to overlay a structure while viewing/editing SOLDIER.DAT and work in a more organized fashion.

Tip: Set the data view window to 34 bytes wide, and each SOLDIER record will take exactly two display lines. (It won't let you set it to higher than 64, unfortunately.)

/***********************************************************************************
 * XCOMUFO.hsl - Structure definitions for XCOM UFO DEFENSE v1.4 (DOS)
 *    This structure def last edited Sept. 16, 2005
 *    Mike Fay mikestar@speedfactory.net
 *    MikeTheRed on www.xcomufo.com forums
 *    Also see the SOLDIER.DAT wiki at www.ufopaedia.org/index.php?title=SOLDIER.DAT
 ***********************************************************************************
 * Revision History:
 *  09/26/05 - MF - Original
 */

#include "standard-types.hsl"

// SOLDIER.DAT
struct SOLDIER_DAT 
{
   WORD Rank ;
   WORD BaseOrTransfer ;
   WORD Craft ;
   WORD UnknownFFFF;
   SHORT Missions ;
   SHORT Kills ;
   SHORT WoundDays ;
   SHORT SoldierValue ;
   CHAR Name[25] ;
   UBYTE TransferBase ;
   UBYTE TUs_Init ;
   UBYTE Health_Init ;
   UBYTE Stam_Init ;
   UBYTE Rxns_Init ;
   UBYTE Str_Init ;
   UBYTE FAcc_Init ;
   UBYTE TAcc_Init ;
   UBYTE MAcc_Init ;
   UBYTE Psi_Str ;
   UBYTE Psi_Skill ;
   UBYTE Brave_Init ;
   UBYTE TUs_Inc ;
   UBYTE Health_Inc ;
   UBYTE Stam_Inc ;
   UBYTE Rxns_Inc ;
   UBYTE Str_Inc ;
   UBYTE FAcc_Inc ;
   UBYTE TAcc_Inc ;
   UBYTE MAcc_Inc ;
   UBYTE Brave_Inc ;
   UBYTE Armor ;
   UBYTE PsiLab_Inc ;
   UBYTE PsiLab_Flag ;
   UBYTE Promotion_Flag ;
   UBYTE Gender ;
   UBYTE Appearance ;
} ;

Return to SOLDIER.DAT