btcritstatus()

btmux-0.6-rc4/game/text/wizhelp/cat_functions/btcritstatus() · 906 B

From the archive btonline-btechmux-0.6-rc4.tbz2

Download the archive   « Back to the archive contents

& btcritstatus()
 
  Syntax: btcritstatus(<UnitDB>,<location>)
 
  This function returns a string displaying the status of the 
  criticals in <location> on <UnitDB>
 
  The string returned is formatted" 
  <critslot>|<?>|<partname>|<operational>|<crittype>
	
	Note: The element denoted <?> is used for the brand of partnames, 
	however brands are not implemented on this codebase, so will return 
	empty
 
  <operational> returns 0 if the <critslot> is functional, -1 if the 
  part at <critslot> is destroyed
 
  <crittype> returns a value indicating the type of item stored at 
  that <critslot>
 
  * 1 = Weapon
  * 2 = Ammo
  * 3 = Actuator
  * 4 = Cargo
  * 5 = Empty
  * 0 = Other (eg Cockpit, LifeSupport) 
 
	Note: if <critslot> refers to a location where missiles are stored, <crittype> 
	will return 4, indicating a cargo crittype
 
 Continued in btcritstatus()2
 

Site Stats

Snippets: 1791
Codebases: 571