This is an old revision of the document!
Table of Contents
How do the library based Checks and Execs work?
Check values of different types of libvars
There are different kind of libvars which can have different kind of values.
Libvar Types: Commanders, Historical Unit, Historical Model, LandscapeType, etc…
ValueTypes: numeric, text, regime slot#, people slot#, sftype slot#, etc..
CheckLibVarCommander
parameters: historical unit slot#, library Name, variable Name
returns: value of libvar
==CheckLibVarHex parameters: x, y, library Name, variable Name
returns: value of libvar
CheckLibVarSFType
parameters: sftype slot#, library Name, variable Name
returns: value of libvar
CheckLibVarLocType
parameters: locationtype slot#, library Name, variable Name
returns: value of libvar
CheckLibVarRoad
parameters: roadType slot#, library Name, variable Name
returns: value of libvar
CheckLibVarRiver
parameters: riverType slot#, library Name, variable Name
returns: value of libvar
CheckLibVarPeople
parameters: people slot#, library Name, variable Name
returns: value of libvar
CheckLibVarRegime
parameters: regime slot#, library Name, variable Name
returns: value of libvar
CheckLibVarLandscape
parameters: landscapeType slot#, library Name, variable Name
returns: value of libvar
CheckLibVarHistorical
parameters: historical unit slot#, library Name, variable Name
returns: value of libvar
CheckLibVarGlobal
parameters: library Name, variable Name
returns: value of libvar
Check the slot# of a specific library imported data instance
CheckGetEventPic
parameters: library Name, event picture Id# as set in library
returns: returns event picture slot#
CheckGetCardByLibrary
parameters: library Name, card Id# as set in library
returns: returns actioncard slot#
CheckGetPeopleByLibrary
parameters: library Name, people Id# as set in library
returns: returns people slot#
CheckGetSFTypeByLibrary
parameters: library Name, sfType Id# as set in library
returns: returns sfType slot#
CheckGetPreDefByLibrary
parameters: library Name, unit PredefId# as set in library
returns: returns unit predef ID# in our scenario
CheckGetEventByLib
parameters: library Name, event Id# as set in library
returns: returns event slot#
CheckGetHistoricalIDByLib
parameters: library Name, historical unit ID# as set in library
returns: returns historical unit ID# in our scenario
CheckGetHistoricalIdForCommanderByLib
parameters: library Name, commander ID# as set in library
returns: returns historical unit ID# in our scenario
CheckGetSmallPic
parameters: library Name, smallGfx Id# as set in library
returns: returns smallGfx slot#
Misc. checks related to libraries
CheckGetCardLib
parameters: cards slot#
returns: returns name of library
