19,703
edits
m (wikilinked Data Comlink)  | 
				 (reordered BSL functions, alphabetizing the Character ones and correcting a couple mistakes/duplications)  | 
				||
| Line 382: | Line 382: | ||
====Math====  | ====Math====  | ||
* int '''int32div''' n1:int n2:int  | |||
:Divides two integers  | |||
* int '''int32mul''' n1:int n2:int  | * int '''int32mul''' n1:int n2:int  | ||
:Multiplies two integers  | :Multiplies two integers  | ||
* float '''div''' [int1:int|float1:float] [int2:int|float2:float]  | |||
:Divides two two numbers  | |||
* float '''mul''' [int1:int|float1:float] [int2:int|float2:float]  | * float '''mul''' [int1:int|float1:float] [int2:int|float2:float]  | ||
:Multiplies two numbers  | :Multiplies two numbers  | ||
* int '''int32rand''' start:int end:int  | * int '''int32rand''' start:int end:int  | ||
:Returns a pseudo-random number between two numbers (inclusive).  | :Returns a pseudo-random number between two numbers (inclusive).  | ||
====Characters====  | ====Characters====  | ||
*   | * float '''d_distance''' [ai_name:string | script_id:int] [ai_name:string | script_id:int]  | ||
:Gets the   | :Gets the distance between two characters  | ||
* int '''d_getdamage''' [ai_name:str | script_id:int]  | * int '''d_getdamage''' [ai_name:str | script_id:int]  | ||
:Gets the amount of damage a character has caused  | :Gets the amount of damage a character has caused  | ||
* int '''d_getindex''' [ai_name:str]  | * int '''d_getindex''' [ai_name:str]  | ||
:Gets a character's script_id from their name  | :Gets a character's script_id from their name  | ||
* int '''  | * int '''d_getkills''' [ai_name:str | script_id:int]  | ||
:Gets   | :Gets the number of kills a character has  | ||
* int '''d_health''' [ai_name:str | script_id:int] [newhealth:int]  | * int '''d_health''' [ai_name:str | script_id:int] [newhealth:int]  | ||
:Gets or sets a character's health  | :Gets or sets a character's health  | ||
* int '''d_holdkey''' [ai_name:string | script_id:int] keys frames:int  | * int '''d_holdkey''' [ai_name:string | script_id:int] keys frames:int  | ||
:Makes a character hold a key  | :Makes a character hold a key  | ||
| Line 417: | Line 410: | ||
:Checks if player is holding a key  | :Checks if player is holding a key  | ||
:Possibly broken  | :Possibly broken  | ||
* float '''d_location''' [ai_name:string | script_id:int] axis:string anything:string  | |||
:Gets the X, Y or Z coordinate of a character, as specified in "axis"; the "anything" parameter is unused but must be present  | |||
* float '''d_location''' [ai_name:string | script_id:int] x:float y:float z:float  | |||
:Sets the XYZ coordinates of a character  | |||
* int '''d_maxhealth''' [ai_name:str | script_id:int] [newmaxhealth:int]  | |||
:Gets or sets a character's maxhealth  | |||
* string '''d_name''' [ai_name:str | script_id:int] [newname:string]  | |||
:Gets or sets a character's name  | |||
* int '''d_powerup''' ai_name:str|script_id:int powerup:str [newcount:int]  | |||
:Gets or sets the amount of powerups a character has  | |||
:Powerup list is the same one used with '''chr_givepowerup''', with the addition of "bossshield"  | |||
* int '''d_regen''' [ai_name:str | script_id:int] on_off:bool  | |||
:Gets or sets a character's regeneration (like elderrune for the player)  | |||
* int '''d_waitforkey''' keys  | * int '''d_waitforkey''' keys  | ||
:Waits for a keypress from the player  | :Waits for a keypress from the player  | ||
====Text====  | ====Text====  | ||
| Line 435: | Line 431: | ||
:Colors are ints between 0 and 255. Other numbers will be reduced to 255.  | :Colors are ints between 0 and 255. Other numbers will be reduced to 255.  | ||
:Any colors you do not supply will be replaced with the default values: 255, 255, 255 and 63, 63. 63  | :Any colors you do not supply will be replaced with the default values: 255, 255, 255 and 63, 63. 63  | ||
* string '''sprintf''' str1:format ...  | * string '''sprintf''' str1:format ...  | ||
:Does a C-style sprintf operation on a string  | :Does a C-style sprintf operation on a string  | ||