Skip to main content

Data Structures

This is a list of the available data structures.

warning

Any member array listed in here starts at index 1, instead of 0.

Take the following example:
Structure: Building
Member: SWORD Dwellers[6]

Trying to access the first element through Dwellers[0] would result in a out-of-bounds error!

thing.u.Bldg.Dwellers[0] --> wrong
thing.u.Bldg.Dwellers[1] --> correct

Draw​

DrawInfo​

TypeNameDescription
SWORDDrawNum
UWORDFlags
UWORDFrameCount
UBYTEFrameNum
UBYTEDrawTableIdx
SBYTEAlpha

ObjectThingInfo​

TypeNameDescription
SLONGScale
UWORDTilt
UWORDRoll
SBYTEConstructionStage

ObjectDrawInfo​

TypeNameDescription
SLONGScale
SWORDAngle
SWORDTilt
SWORDRoll
SWORDScrX
SWORDScrY
SWORDDrawNum
UBYTEBlock
SBYTEShadeAdj
UBYTEFlags

SpriteFrameEvent​

TypeNameDescription
Thing*Thing
ThingDrawTableInfo*ThingDrawTableInfo
SLONGx
SLONGy
SLONGw
SLONGh
SLONGBankNum
UBYTEFrameDrawFlags
boolScaled

TbPaletteRGB​

TypeNameDescription
UBYTERed
UBYTEGreen
UBYTEBlue

TbSprite​

TypeNameDescription
UWORDWidth
UWORDHeight

Objects​

Thing​

TypeNameDescription
UWORDChild
UWORDParent
ULONGFlags
ULONGFlags2
ULONGFlags3
UWORDThingNum
SWORDAngleXZ
UBYTEType
UBYTEModel
UBYTEState
UBYTESubState
UBYTETimeSlice
SBYTEOwner
DrawInfoDrawInfo
ThingPosPos
MovementMove
ThingTypeDatau

warning

ThingInfo is subject to heavy script breaking changes in future Multiverse updates.

ThingInfo​

TypeNameDescription
ULONGUUID
UWORDThingNum
UWORDTargetIdx
UWORDBoundIdx
SWORDCount
UBYTESubclass
UBYTEResurrectionCount
UBYTEMeleeDamageBoost
UWORDPoisonCount
UWORDSlownessCount
UBYTEMovementSpeedCap
UBYTESubclassProduced
UWORDSpeedBuffCount
UBYTESpeedBuffValue
UBYTENumListeners
UWORDNumKilled
UBYTEUserVal_UBYTE
SBYTEUserVal_SBYTE
SLONGUserVal_SLONG
ULONGUserVal_ULONG
SBYTETextureBlockIdx
ULONGFlags
ULONGFlags2
WORDScale
SBYTEDrawAsTribe
SBYTEDrawBank
ThingInfoTypeType

ThingInfoType​

TypeNameDescription
ThingInfoTypeCreatureEagleEagle

ThingInfoCreatureEagle​

TypeNameDescription
UWORDForcedDirection

ThingTypeData​

TypeNameDescription
PersonPers
BuildingBldg
SceneryScenery
VehicleVehicle
GeneralGeneral
ShapeShape
DiscoveryDiscovery
TriggerTrigger
EffectGeneralEffect
ShotGeneralShot
SoulConvertSoulConvert
ObjectThingInfoObjectInfo

ThingPos​

TypeNameDescription
Coord3DD3
Coord2DD2

Building​

TypeNameDescription
Coord2DBasePos
SWORDDwellers[6]
UWORDTrainingManaCost
UWORDTrainingManaStored
SWORDPersonToBeTrainedIdx
UWORDFlags
UWORDDamaged
SWORDUpgradeCount
SWORDSproggingCount
SBYTENumDwellers
SBYTECount
SBYTEDrawOwner
SBYTELastDamagedBy

Discovery​

TypeNameDescription
SLONGManaAmt
SLONGDiscoveryModel
UWORDDrawLinkThing
SWORDCountToPlayerUpdate
UBYTEDiscoveryType
UBYTETriggerType
UBYTEDiscoveringPlayer
UBYTECountToEffect
UBYTEAvailabilityType

Effect​

EffectGeneral​

TypeNameDescription
SWORDDuration
SWORDCount
EGUnionu

EGUnion​

TypeNameDescription
EffectLineLine
EffectFlyThingFlyThing
EffectOrbitingOrbiting

EffectOrbiting​

TypeNameDescription
UWORDThingLink
Coord3DOrbitPos
SWORDAngle
UWORDDistance
SBYTESpeed

EffectFlyThing​

TypeNameDescription
UBYTEColour

EffectLine​

TypeNameDescription
UBYTEInited
UBYTEDirection
SWORDInitialDuration
UBYTEModel
UBYTELineType
UBYTEType
SWORDMinMaxAlt
SWORDBaseVal
UBYTEDelay
UBYTEX
UBYTEZ

Shot​

ShotGeneral​

TypeNameDescription
SWORDCount
UWORDFlags
Coord3DStartCoord
Coord3DTargetCoord
UBYTEEffectType
UBYTEEffectModel
SWORDItemsPerTurn
UBYTEItemDuration
UWORDTargetThingIdx

Person​

TypeNameDescription
Coord2DCurrBaseCoord
SWORDMaxLife
SWORDLife
SWORDCount
SWORDTargetIdx
UWORDFlags
SWORDWoodCarrying
UBYTEHunger
UBYTEThirst
UBYTEPrevState
UBYTEFlags2
UBYTECmdGroupFlags
PersonDatau

PersonData​

TypeNameDescription
PersonOwnedOwned

PersonOwned​

TypeNameDescription
SWORDBldgQueueLinkIdx
UWORDTimeDoingNothing
SWORDFightIdx
UBYTEInvisibleCount
UBYTEOnFireCount
UBYTEShieldCount
UBYTECurrCmd
UBYTECurrCmdType
UBYTESubState2
UBYTESubState3
UBYTEHypnoTime
SBYTEOriginalHypnoOwner
SBYTELastDamagedBy
UBYTEBloodlustCount
unionu

Scenery​

TypeNameDescription
SWORDType
SWORDDuration
SLONGMaxScale
SWORDScaleIncr
SWORDResourceRemaining
SWORDGrowthRate
UBYTEPortalStatus
UBYTEPortalLevel
UBYTEPortalType
UBYTEIslandNum
UBYTELevelDrawNum
UBYTEFlags
SWORDLinkTriggerIdx
UBYTEHeadType

SoulConvert​

TypeNameDescription
SWORDCount
UBYTECurrModel
UBYTEFallenToGround

Shape​

TypeNameDescription
UBYTENumWorkers
UBYTEFlags
UBYTEBldgModel

Trigger​

TypeNameDescription
UBYTETriggerType
UBYTECellRadius
UBYTERandomValue
SBYTENumOccurences
UBYTECurrRadius
UBYTEFlags
UBYTEResetCount
UBYTENumPlayersCurrPraying
UBYTEStartInactive
UBYTECreatePlayerOwned
SWORDTriggerCount
SWORDCountToReactivate
SWORDHeadThingIdx
SWORDInactiveTime
SLONGPrayCount
SLONGPrayTime
SWORDTriggeredPendingCount
SBYTETriggeringPlayer
SWORDOriginalInactiveTime
SWORDCounts[4]
UWORDEditorThingIdxs[10]

Vehicle​

TypeNameDescription
SLONGFlags
SWORDVerticalSpeed
SWORDLife
SBYTENumOccupants
SWORDWaitCount
VehicleOccupantInfoOccupants[12]
UBYTELastUserOwner

VehicleOccupantInfo​

TypeNameDescription
UWORDThingIdx

Map​

Coord3D​

TypeNameDescription
SWORDXpos
SWORDYpos
SWORDZpos

Coord2D​

TypeNameDescription
SWORDXpos
SWORDZpos

MapElement​

TypeNameDescription
ULONGFlags
SWORDAlt
SWORDChild
UWORDShapeOrBldgIdx
UBYTECliff

MapElement2​

TypeNameDescription
ULONGFlags
SWORDDrawAlt
SWORDTextureAlt
SWORDBlockNum
SWORDTargetAlt
SBYTEShadeIncr

MapElemList​

TypeNameDescription
MapElement*MapElement
UWORDMapIdx
UBYTEShapeSpecialFlags
UBYTEData1

PosAsXZ​

TypeNameDescription
UBYTEX
UBYTEZ

MapPosXZ​

TypeNameDescription
UWORDPos
PosAsXZXZ

Players​

Player​

TypeNameDescription
SBYTEPlayerNum
ComputerPlayerInfoCP
ULONGFlags
SLONGLastManaIncr
SLONGMana
SLONGNumPeople
SLONGNumBuildings
SWORDNumBuildingsOfType[20]
SWORDNumBuiltOrPartBuiltBuildingsOfType[20]
SLONGNumDeadSoulConverts
SLONGNumGhostPeople
SWORDNumLocalPeopleInBalloons[9]
SWORDNumLocalPeopleInBoats[9]
SWORDNumPeopleOfType[9]
SWORDNumVehiclesOfType[5]
UBYTEShamanLives
Coord3DReincarnSiteCoord
SLONGSpellsMana[32]
UWORDPeopleKilled[4]
UBYTESpellsCast[22]
SLONGManaTransferAmt
SLONGManaUnspent
SLONGTotalSpellsMana
UWORDNumPeopleConverted
UBYTESpellDelayCount
UWORDShotMapIdx
SLONGDeadCount
UBYTEPlayerActive

ComputerPlayerInfo​

TypeNameDescription
ULONGFlags
MapPosXZStartSite
UWORDDrumTowerStartPos
ComputerBaseSiteInfoBase

ComputerBaseSiteInfo​

TypeNameDescription
MapPosXZSite
UBYTEMaxRadius

Player2​

TypeNameDescription
ULONGFlags
SWORDNumPeopleOfType[5]

PlayerThings​

TypeNameDescription
ULONGBuildingsAvailable
ULONGBuildingsAvailableLevel
ULONGBuildingsAvailableOnce
ULONGSpellsAvailable
ULONGSpellsAvailableLevel
ULONGSpellsNotCharging
UBYTESpellsAvailableOnce[32]
UWORDVehiclesAvailable
UBYTETrainingManaOff
UBYTEFlags

Tables​

BuildingTypeInfo​

TypeNameDescription
UWORDObjectIdx
SWORDButtonTooltipText
SWORDToolTipStrId1
SWORDToolTipStrId2
SWORDToolTipStrId3
UWORDDiscoveryObjectIdx
UWORDDrawTableIdx
SWORDGUIButtonId
UWORDCursorSpriteNum
UWORDMinBuilders
UWORDMaxBuilders
UWORDDfltBuilders
UWORDReqdShapeWood
UWORDReqdBldgWood
UWORDAtlantisWoodDecr
UBYTEMaxNumWoodCollectors
UBYTEMaxNumFlatteners
UBYTEMaxNumDwellers
UBYTEMaxNumAttackers
UWORDWaiterWanderRadius
UWORDWorkWanderRadius
SWORDWorkAltOffset
UWORDFlags2
UWORDTrainingLength
UWORDConversionCount
UWORDDamageThreshold
UBYTEBldgValue
UBYTEModelProduced
SBYTEGuiStateGroup
SBYTEUpgradeLevel
SBYTEUpgradeModel
SWORDUpgradeTime
SWORDHousedBldgManaFactor
SWORDPeopleMinMaxPopValue
SWORDSproggingTime
SBYTEArmageddonValue
SBYTEArmageddonModel
SWORDFlattenAmt
SWORDRepairAltIncr
SWORDMaxAltDiff
ULONGFlags

PeopleTypeInfo​

TypeNameDescription
UWORDAttackPower
UBYTEAutoGuardFreq
UBYTEBaseFightEnergy
UBYTEBaseHunger
UBYTEBaseThirst
SWORDCanCarryWood
SLONGComputerConvManaCost
SWORDConvValue
UBYTECPDefenceValue
ULONGDefaultLife
SWORDDrownAlt
SWORDDrownRate
UBYTEFightPriority
UWORDFlags
SBYTEGhostingValue
UBYTEGotoPointDistCheck
UBYTEGuardDiamCmd
UBYTEGuardDiamIdle
SLONGHumanConvManaCost
UBYTEKilledValue
UBYTELifeIncrease
SWORDManaValue
UBYTEMoveInfoIdx
UBYTERadius
UBYTESightCells
SWORDSWBlastPer256
SWORDToolTipStrId1
SWORDToolTipStrId2
UBYTETopState
UBYTEUnemployedState
UBYTEWoodCutTime

PlayersInfo​

TypeNameDescription
UBYTEColour
UBYTELiteColour
UBYTEDarkColour
UBYTEAlpha
UBYTEManaBarClr

SceneryTypeInfo​

TypeNameDescription
SWORDDrawTableIdx
SWORDToolTipStrId
SWORDDfltResourceValue
SWORDResourceGrowth
SWORDDormantTime
SWORDDrawNum
SWORDDrownRate
SWORDDrownAlt
UBYTEColour
UBYTETopState
SBYTEMoveInfoIdx
ULONGFlags

SpellsTypeInfo​

TypeNameDescription
SWORDActive
SWORDNetworkOnly
SLONGCost
UWORDModel
SWORDGUIButtonId
SWORDCursorSpriteNum
UWORDDiscoveryDrawIdx
SWORDAvailableSpriteIdx
SWORDNotAvailableSpriteIdx
SWORDClickedSpriteIdx
SWORDToolTipStrIdx
SWORDToolTipStrIdxLSME
ULONGFlags
SLONGWorldCoordRange
SLONGWorldCoordRangeLSME
UBYTEShotModels[2]
UBYTEEffectModels[5]
UBYTEOneOffMaximum
UBYTELSMEOneOffMaximum
UBYTEShieldReboundable
SWORDPanelSampleIdx
SWORDPanelSampleCount
UBYTEPanelSampleType
UBYTECreateCastMsg
SWORDCastMsgTimeout
SWORDOptimalChargeSecs
UBYTEDrawOffsetX
UBYTEDrawOffsetY

VehicleTypeInfo​

TypeNameDescription
SBYTEMaxNumOccupants
SWORDWoodValue
UWORDFlags

WorldInfo​

TypeNameDescription
UBYTEBuilding
UBYTEPerson
UBYTESPerson
UBYTEAlpha

Other​

Commands​

TypeNameDescription
UBYTECommandType
UBYTEFlags
SWORDNumCommandees
CmdTargetInfou

CmdTargetInfo​

TypeNameDescription
UWORDTargetIdx
Coord2DTargetCoord
CmdTMIdxsTMIdxs
CmdIdxSizeTIdxSize

CmdTMIdxs​

TypeNameDescription
UWORDTargetIdx
UWORDMapIdx

CmdIdxSize​

TypeNameDescription
UWORDMapIdx
UBYTECellsX
UBYTECellsZ

GlobalSaveMultiverseItems​

TypeNameDescription
ULONGFlags
UBYTETargetAltsProcess
UBYTETargetAltsIncrVal
UBYTETargetAltsDecrVal
UBYTETargetAltsResetOnGoal
UBYTELightStormsActive

GameParams​

TypeNameDescription
SBYTEGameSpeed
ULONGFlags2

GlobalSaveItems​

TypeNameDescription
ULONGFlags
UBYTECurrNumPlayers
UBYTECurrMaxNumPlayers
ThisLevelInfoThisLevelInfo
NetworkCountsCounts
CounterValue

Counter​

TypeNameDescription
SLONGCounter

NetworkCounts​

TypeNameDescription
ULONGGameTurn
ULONGProcessThings

GlobalNonSaveItems​

TypeNameDescription
SBYTECurrPointer
LevelHeaderThisLevelHeader
Thing*PrisonThing
SLONGNumWildPeople
SLONGNumSoulsInLimbo
SLONGNumBoats
SLONGNumAirShips
SLONGActiveGlobalThings
SLONGTotalNumPeople
SLONGTotalNumBuildings
GameParamsGameParams
CurrentGameDescriptionCurrentGameDescription
SWORDScreenW
SWORDScreenH
SLONGCurrDrawThingBucketIdx
BuildingMenuInfoBldgMenuInfo
ULONGDebugFlags
SWORDDrawMode
ULONGFlags
ULONGFlags3
ULONGFlags4

CurrentGameDescription​

TypeNameDescription
ULONGFlags

LevelHeader​

TypeNameDescription
UWORDMarkers[256]

ThisLevelInfo​

TypeNameDescription
DiscoveryDescriptionDiscoveries[3]
PlayerThingsPlayerThings[4]

DiscoveryDescription​

TypeNameDescription
SBYTEObjectiveIndex
SBYTEType
SBYTEModel

BuildingMenuInfo​

TypeNameDescription
SBYTECurrItem

SoundReceiverInfo​

TypeNameDescription
stringFileName
E_STOP_EVENT_CAUSEReason

PlayerHintDisplay​

TypeNameDescription
UBYTEType
ULONGFlags
SLONGStrId

TbPoint​

TypeNameDescription
SINTX
SINTY

TbRect​

TypeNameDescription
SINTLeft
SINTTop
SINTRight
SINTBottom

BorderLayout​

TypeNameDescription
UWORDTopLeft
UWORDTop
UWORDTopRight
UWORDLeft
UWORDCentre
UWORDRight
UWORDBottomLeft
UWORDBottom
UWORDBottomRight

MovementDestInfo​

TypeNameDescription
SWORDAngleXZ
Coord2DCoord
MovementDestAngleInfoAngles
MovementDestCoordInfoCoords

MovementDestAngleInfo​

TypeNameDescription
SWORDXZ
SWORDZY

MovementDestCoordInfo​

TypeNameDescription
Coord2DD2
Coord3DD3

MouseEvent​

TypeNameDescription
TbPointPos
boolDown
TbInputKeyButton

SLVec2​

TypeNameDescription
SLONGx
SLONGy

LVec2​

TypeNameDescription
LONGx
LONGy

DamageEvent​

TypeNameDescription
Thing*Thing
SLONGDamage
UBYTEShield
SBYTEDamagingPlayer

Movement​

TypeNameDescription
General3DVelocity
Coord2DFinalCoord
Coord2DStageCoord
MovementDestInfoCurrDest
SWORDCurrAngleXZ
SWORDSelfPowerSpeed

General3D​

TypeNameDescription
SWORDX
SWORDY
SWORDZ

P3Constants​

MaxManaValue
StartManaValue
ConvertPersonManaCost
TrainingManaBucketSize
HumanManaAdjustFactor
ComputerManaAdjustFactor
TrainingManaFactor
HousedManaFactor
WorkingManaFactor
MaxManaFactor
ManaUpdateFreq
MaxWalkableAltDiff
MaxBuildableAltDiff
MaxBoatHutAltDiff
MaxBuildingDestroyAltDiff
RaiseLowerManaCost
TriggerReactivateCount
SuperWarriorFireRate
SuperWarriorBlastDamage
SuperWarriorFireRateTower
SuperWarriorBlastDamageTower
HypnoNumPeopleAffected
SwampNumPeopleAffected
LightningNumPeopleAffected
InvisNumPeopleAffected
ShieldNumPeopleAffected
BloodlustNumPeopleAffected
ShapeNearBldgCells
ShamenDeadManaPer256Lost
ShamenDeadManaPer256Gained
InvisibleCount
HypnotisedCount
ShieldCount
BldgDamageDelay
PreacheeCheckConvFreq
PreacheeConvertChance
BloodlustCount
BldgBlastDamage
PersBlastDamage
SwarmPersonDamage
LandBridgeMaxAltChange
BraveDtRadius
WarriorDtRadius
ReligiousDtRadius
SpyDtRadius
SuperWarriorDtRadius
MedicineManDtRadius
FallOutOfWhirlwindDamage
FirestormDuration
SpyDisguiseDelay
MultipleSelectNumber
DMETimeBeforeRestore
AOD2KillCount
AOD2Duration
LandBridgeDuration
BloodlustHealthMultiplier
BloodlustSWarriorBlastRate
FriendliesAffectedByBlast
IdleBravesMana
IdleSpecialistsMana
BusyBravesMana
BusySpecialistsMana
LSMENumTreesPerShot
LSMENumWildsPerShot
LSMETimeLimitSeconds
LSMEPointAltAlterAmount
HumanReincStartDelay
LSMEWorldCoordRangeRaiseLower
SuperWarriorBlastDamageShamanInVehiclePer256