5,389
edits
m (Argument format) |
|||
Line 21: | Line 21: | ||
;Type | ;Type | ||
:Bold (void only) : special console output (confirmation message, data output, ...) | :Bold (void only) : special console output (confirmation message, data output, ...) | ||
;Arguments | |||
:format is a bit wasteful (1+ line per argument) | |||
:but at least it stays readable in 800x600 and lower | |||
:feel free to suggest alternatives | |||
{|border=1 cellspacing=0 cellpadding=1 | {|border=1 cellspacing=0 cellpadding=1 | ||
!Type!!Name!!Arguments!!Comment!!Tested | !Type!!Name!!Arguments!!Comment!!Tested | ||
|- | |- | ||
|void||ai2_forget||string ai_name | |void||ai2_forget||1. string ai_name<br>OR int32 script_id<br>2. string forget_char<br>OR void||makes AI '''ai_name'''/'''script_id''' forget '''forget_char'''/anybody||OK | ||
|- | |- | ||
|bool||chr_has_lsi||string ai_name | |bool||chr_has_lsi||1. string ai_name<br>OR int32 script_id||returns true if character '''ai_name'''/'''script_id''' has the lsi||OK | ||
|-bgcolor="silver" | |-bgcolor="silver" | ||
|'''void'''||chr_weapon|| | |'''void'''||chr_weapon||1. int32 chr_index<br>2. string weapon_name<br>OR int32 weapon_num||arms character '''chr_index''' with weapon '''weapon_name'''/'''weapon_num'''||OK | ||
|- | |- | ||
|int32||difficulty||void||returns the difficulty level (0:easy, 1:normal, 2:hard)||OK | |int32||difficulty||void||returns the difficulty level (0:easy, 1:normal, 2:hard)||OK |