Sandbox: Difference between revisions

2,631 bytes added ,  12 July 2006
m
no edit summary
No edit summary
mNo edit summary
Line 9: Line 9:
|-
|-
| || ai2_barabbas_retrievegun|| ai_name:string<br>script_id:int||  makes barabbas retrieve his gun if it is lost ||OK
| || ai2_barabbas_retrievegun|| ai_name:string<br>script_id:int||  makes barabbas retrieve his gun if it is lost ||OK
|-
| || ai2_barabbas_run|| ||  lets Barabbas run while carrying his gun||OK
|-
|-
| || ai2_chump|| (null)||  creates a chump||OK
| || ai2_chump|| (null)||  creates a chump||OK
|-
|-
| || ai2_chump_stop|| ||  stops the chump||OK
| || ai2_comehere|| ai_name:string<br>script_id:int||  tells an AI to come to the player||OK
|-
|-
| || ai2_comehere|| ai_name:string<br>script_id:int|| tells an AI to come to the player||OK
| || ai2_debug_makesound|| || ||OK
|-
|-
| || ai2_doalarm|| ai_name:string<br>script_id:int<br>console_id:int||  tells an AI to run for an alarm ||OK
| || ai2_doalarm|| ai_name:string<br>script_id:int<br>console_id:int||  tells an AI to run for an alarm ||OK
|-
|-
| || ai2_dopath|| ai_name:string<br>script_id:int<br>path_name:string||  tells an AI to run a particular path ||OK
| || ai2_dopath|| ai_name:string<br>script_id:int<br>path_name:string||  tells an AI to run a particular path ||OK
|-
| || ai2_findconnections|| || ||OK
|-
|-
| || ai2_followme|| ai_name:string<br>script_id:int||  tells an AI to follow the player ||OK
| || ai2_followme|| ai_name:string<br>script_id:int||  tells an AI to follow the player ||OK
Line 53: Line 53:
|-
|-
| || ai2_passive|| ai_name:string<br>script_id:int<br>passive:int(0 1)||  stops an AI from thinking for itself ||OK
| || ai2_passive|| ai_name:string<br>script_id:int<br>passive:int(0 1)||  stops an AI from thinking for itself ||OK
|-
| || ai2_pathdebugsquare|| || ||OK
|-
| || ai2_printbnvindex|| || ||OK
|-
| || ai2_report|| || ||OK
|-
| || ai2_report_verbose|| || ||OK
|-
|-
| || ai2_reset|| reset_player:int||  resets AI as if start of level ||OK
| || ai2_reset|| reset_player:int||  resets AI as if start of level ||OK
|-
| || ai2_set_handlesilent_error|| || ||OK
|-
| || ai2_set_logerror|| || ||OK
|-
| || ai2_set_reporterror|| || ||OK
|-
|-
| || ai2_setalert|| ai_name:string<br>script_id:int<br>alert:string||  sets the alert state of an AI ||OK
| || ai2_setalert|| ai_name:string<br>script_id:int<br>alert:string||  sets the alert state of an AI ||OK
Line 61: Line 75:
|-
|-
| || ai2_setmovementmode|| ai_name:string<br>script_id:int<br>mode:string||  sets an AI's current movement mode ||OK
| || ai2_setmovementmode|| ai_name:string<br>script_id:int<br>mode:string||  sets an AI's current movement mode ||OK
|-
| || ai2_showmem|| || ||OK
|-
| || ai2_skill_bestangle|| || ||OK
|-
| || ai2_skill_decay|| || ||OK
|-
| || ai2_skill_delaymax|| || ||OK
|-
| || ai2_skill_delaymin|| || ||OK
|-
| || ai2_skill_error|| || ||OK
|-
| || ai2_skill_inaccuracy|| || ||OK
|-
| || ai2_skill_recoil|| || ||OK
|-
| || ai2_skill_revert|| || ||OK
|-
| || ai2_skill_save|| || ||OK
|-
| || ai2_skill_select|| || ||OK
|-
| || ai2_skill_show|| || ||OK
|-
|-
| || ai2_spawn|| ai_name:string<br>force_spawn:string("force")||  creates and starts an AI from a character object ||OK
| || ai2_spawn|| ai_name:string<br>force_spawn:string("force")||  creates and starts an AI from a character object ||OK
Line 70: Line 108:
| || ai2_tripalarm|| ||  alarm_id:int ai_name:string  script_id:int ||OK
| || ai2_tripalarm|| ||  alarm_id:int ai_name:string  script_id:int ||OK
|-
|-
| || begin_cutscene|| (null)||  begins a cutscene ||OK
| || begin_cutscene||string flag||  begins a cutscene ||OK
|-
|-
| || bind|| input_name:string<br>to:string("to")<br>input_function:string||  binds an input to a function ||OK
| || bind|| input_name:string<br>to:string("to")<br>input_function:string||  binds an input to a function ||OK
Line 84: Line 122:
| || chr_create|| script_id:int<br>start_create:string<br>("start")<br>||  creates a character from an ID of the AISA file ||OK
| || chr_create|| script_id:int<br>start_create:string<br>("start")<br>||  creates a character from an ID of the AISA file ||OK
|-
|-
| || chr_death|| _lock<br>ai_name:string<br>script_id:int<br>on_off:int(0 1)|| this character will not die too much ||OK
| || chr_death_lock||1. string ai_name<br>OR int script_id<br>2. int on_off||Locks final death transition for character '''ai_name'''/'''script_id''' if '''on_off'''=1, unlocks it if '''on_off'''=0||OK
|-
|-
| || chr_delete|| ai_name:string<br>script_id:int||  deletes a character ||OK
| || chr_delete|| ai_name:string<br>script_id:int||  deletes a character ||OK
|-bgcolor="silver"
|-bgcolor="silver"
| || chr_disarm|| chr_index:int||  disarms a character or everyone||OK
| || chr_disarm|| chr_index:int||  disarms a character or everyone||OK
|-
| || chr_display_combat_stats|| || ||
|-
|-
| || chr_dontaim|| ai_name:string<br>script_id:int<br>on_off:int(0 1)||  disables the weapon variant for a character||OK
| || chr_dontaim|| ai_name:string<br>script_id:int<br>on_off:int(0 1)||  disables the weapon variant for a character||OK
|-bgcolor="silver"
| || chr_draw_dot|| || ||
|-
|-
| || chr_envanim|| ai_name:string<br>script_id:int<br>anim:string<br>norotation:string("norotation")<br>||  plays an environment animation on a character ||OK
| || chr_envanim|| ai_name:string<br>script_id:int<br>anim:string<br>norotation:string("norotation")<br>||  plays an environment animation on a character ||OK
Line 116: Line 158:
| || chr_has_lsi|| ai_name:string<br>script_id:int||  records that the character has the lsi ||OK
| || chr_has_lsi|| ai_name:string<br>script_id:int||  records that the character has the lsi ||OK
|-bgcolor="silver"
|-bgcolor="silver"
| || chr_health|| chr_index:int<br>hit_points:int||  sets character's health ||OK
| || chr_health||1. int chr_index<br>2. int hit_points||  sets character's health ||OK
|-
|-
| || chr_holdkey|| ai_name:string<br>script_id:int<br>key_name:string<br>num_frames:int||  forces a character to hold a key down for some frames||OK
| || chr_holdkey|| ai_name:string<br>script_id:int<br>key_name:string<br>num_frames:int||  forces a character to hold a key down for some frames||OK
Line 133: Line 175:
|-
|-
| || chr_lock_active|| ai_name:string<br>script_id:int||  locks the character active ||OK
| || chr_lock_active|| ai_name:string<br>script_id:int||  locks the character active ||OK
|-bgcolor="silver"
| || chr_main_class|| || ||
|-
|-
| || chr_neutral|| ai_name:string<br>script_id:int<br>passive:int(0 1)||  stops an AI from thinking for itself ||OK
| || chr_neutral|| ai_name:string<br>script_id:int<br>passive:int(0 1)||  stops an AI from thinking for itself ||OK
Line 145: Line 189:
|-
|-
| || chr_playback_block|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film and blocks until complete||OK
| || chr_playback_block|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film and blocks until complete||OK
|-
| || chr_playback_debug|| || ||
|-
|-
| || chr_poison|| ai_name:string<br>script_id:int<br>damage:int<br>interval:int<br>initial_interval:int||  slowly poisons a character ||OK
| || chr_poison|| ai_name:string<br>script_id:int<br>damage:int<br>interval:int<br>initial_interval:int||  slowly poisons a character ||OK
|-bgcolor="silver"
| || chr_set_class|| || ||
|-
|-
| || chr_set_health|| ai_name:string<br>script_id:int<br>hit_points:int||  sets a characters health by script id ||OK
| || chr_set_health|| ai_name:string<br>script_id:int<br>hit_points:int||  sets a characters health by script id ||OK
Line 179: Line 227:
|-
|-
| || chr_weapon_immune|| ai_name:string<br>script_id:int||  makes a character weapon immune ||OK
| || chr_weapon_immune|| ai_name:string<br>script_id:int||  makes a character weapon immune ||OK
|-bgcolor="silver"
| || chr_who|| || ||
|-
|-
| || cinematic_start|| bitmap_name:string<br>draw_width:int<br>draw_height:int<br>start:int<br>end:int<br>velocity:float<br>mirror:bool||  start the display of a cinematic insert ||OK
| || cinematic_start|| bitmap_name:string<br>draw_width:int<br>draw_height:int<br>start:int<br>end:int<br>velocity:float<br>mirror:bool||  start the display of a cinematic insert ||OK
Line 205: Line 255:
|-
|-
| || cm_wait|| (null)||  makes the camera wait until it is no longer busy ||OK
| || cm_wait|| (null)||  makes the camera wait until it is no longer busy ||OK
|-bgcolor="silver"
| || co_show_all|| || ||
|-bgcolor="silver"
| || co_toggle_text|| || ||
|-
|-
| || console_activate|| console_id:int||  activates a console ||OK
| || console_activate|| console_id:int||  activates a console ||OK
|-
|-
| || console_deactivate|| console_id:int||  deactivates a console ||OK
| || console_deactivate|| console_id:int||  deactivates a console ||OK
|-bgcolor="silver"
| || console_print|| || ||
|-
|-
| || console_reset|| console_id:int||  resets a console to initial state ||OK
| || console_reset|| console_id:int||  resets a console to initial state ||OK
|-bgcolor="silver"
|-bgcolor="silver"
| || corpse_reset|| (null)||  resets corpses to their initial state ||OK
| || corpse_reset|| (null)||  resets corpses to their initial state ||OK
|-bgcolor="silver"
| || crash|| || ||
|-
|-
| || cutscene_sync|| (null)||  marks a point in a cutscene ||OK
| || cutscene_sync|| (null)||  marks a point in a cutscene ||OK
|-bgcolor="silver"
| || debug_env_anim|| || ||
|-bgcolor="silver"
|-bgcolor="silver"
| || diary_page_unlock|| page:int||  unlocks a specific diary page on the current level ||OK
| || diary_page_unlock|| page:int||  unlocks a specific diary page on the current level ||OK
Line 235: Line 295:
|-
|-
| || door_unlock|| door_id:int||  unlocks a door ||OK
| || door_unlock|| door_id:int||  unlocks a door ||OK
|-
| || dprint|| || ||
|-
| || dump_docs|| || ||
|-
|-
| || end_cutscene|| (null)||  ends a cutscene ||OK
| || end_cutscene|| (null)||  ends a cutscene ||OK
Line 261: Line 325:
|-bgcolor="silver"
|-bgcolor="silver"
| || fall_front|| (null)||  makes the player character fall front ||OK
| || fall_front|| (null)||  makes the player character fall front ||OK
|-bgcolor="silver"
| || flag_view_prefix|| || ||
|-
|-
| || give_powerup|| powerup_name:string<br>amount:int<br>character:int||  Gives a powerup to a character ||OK
| || give_powerup|| powerup_name:string<br>amount:int<br>character:int||  Gives a powerup to a character ||OK
Line 273: Line 339:
|-bgcolor="silver"
|-bgcolor="silver"
| || gs_fov_set|| fov_degrees:float||  sets the field of view ||OK
| || gs_fov_set|| fov_degrees:float||  sets the field of view ||OK
|-bgcolor="silver"
| || hang|| || ||
|-
|-
| || input|| on_off:int(0 1)||  turns input on or off ||OK
| || input|| on_off:int(0 1)||  turns input on or off ||OK
Line 283: Line 351:
|-
|-
| || lose|| (null)||  lose this level ||OK
| || lose|| (null)||  lose this level ||OK
|-bgcolor="silver"
| || m3_display_list|| || ||
|-bgcolor="silver"
| || m3_display_set|| || ||
|-bgcolor="silver"
| || m3_draw_engine_set|| || ||
|-bgcolor="silver"
| || m3_engine_set|| || ||
|-bgcolor="silver"
| || m3_geom_engine_set|| || ||
|-bgcolor="silver"
| || m3_quality_set|| || ||
|-bgcolor="silver"
|-bgcolor="silver"
| || make_corpse|| corpse_name:string||  makes a corpse||OK
| || make_corpse|| corpse_name:string||  makes a corpse||OK
Line 307: Line 387:
|-
|-
| || objective_set|| page:int<br>make_silent:string<br>("silent")||  Sets the current objective page ||OK
| || objective_set|| page:int<br>make_silent:string<br>("silent")||  Sets the current objective page ||OK
|-
| || p3_callevent|| || ||
|-
| || p3_count|| || ||
|-
| || p3_daodan_disable|| || ||
|-
| || p3_dumpparticles|| || ||
|-
| || p3_killall|| || ||
|-
| || p3_killnearest|| || ||
|-
| || p3_printtags|| || ||
|-
|-
| || p3_removedangerous|| (null)||  removes all "dangerous projectile" particles by making their lifetime expire ||OK
| || p3_removedangerous|| (null)||  removes all "dangerous projectile" particles by making their lifetime expire ||OK
|-
| || p3_spawn|| || ||
|-
| || p3_startall|| || ||
|-
| || p3_stopall|| || ||
|-
| || p3_writeusedparticles|| || ||
|-
| || particle|| || ||
|-
| || particle_temp_kill|| || ||
|-
| || particle_temp_start|| || ||
|-
| || particle_temp_stop|| || ||
|-bgcolor="silver"
| || perf_prefix|| || ||
|-
| || ph_status|| || ||
|-
|-
| || playback|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film ||OK
| || playback|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film ||OK
|-
|-
| || playback_block|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film and blocks until complete ||OK
| || playback_block|| ai_name:string<br>script_id:int<br>film_name:string<br>mode:string("fromhere" "interp")<br>num_frames:int||  plays back a film and blocks until complete ||OK
|-
| || playback_debug|| || ||
|-bgcolor="silver"
|-bgcolor="silver"
| || powerup_reset|| (null)||  resets all placed powerups to their starting points ||OK
| || powerup_reset|| (null)||  resets all placed powerups to their starting points ||OK
|-
|-
| || powerup_spawn|| poweruptype:string<br>flag:int||  creates a new powerup ||OK
| || powerup_spawn|| poweruptype:string<br>flag:int||  creates a new powerup ||OK
|-bgcolor="silver"
| || print_state|| || ||
|-bgcolor="silver"
| || print_type|| || ||
|-
|-
| || reset_mechanics|| (null)||  resets all level mechanics (triggers, turrets, consoles, etc...) to initial state ||OK
| || reset_mechanics|| (null)||  resets all level mechanics (triggers, turrets, consoles, etc...) to initial state ||OK
Line 323: Line 443:
|-
|-
| || save_game|| save_point:int<br>type:string("autosave")||  saves the game ||OK
| || save_game|| save_point:int<br>type:string("autosave")||  saves the game ||OK
|-bgcolor="silver"
| || sc_focus|| || ||
|-
| || script_reload|| || ||
|-
|-
| || slowmo|| duration:int||  starts the slowmotion timer ||OK
| || slowmo|| duration:int||  starts the slowmotion timer ||OK
Line 339: Line 463:
|-
|-
| || sound_impulse_play|| name:string<br>volume:float||  function plays an impulse sound ||OK
| || sound_impulse_play|| name:string<br>volume:float||  function plays an impulse sound ||OK
|-
| || sound_list_broken_links|| || ||
|-
|-
| || sound_music_start|| name:string<br>volume:float||  function to start music playing ||OK
| || sound_music_start|| name:string<br>volume:float||  function to start music playing ||OK
Line 351: Line 477:
|-
|-
| || target_set|| flag_id:int<br>min_distance:float||  Sets the target to the specified flag ||OK
| || target_set|| flag_id:int<br>min_distance:float||  Sets the target to the specified flag ||OK
|-
| || text_console|| || ||
|-
|-
| || timer_start|| duration:float<br>script:string||  starts the countdown timer ||OK
| || timer_start|| duration:float<br>script:string||  starts the countdown timer ||OK
|-
|-
| || timer_stop|| (null)||  stops the countdown timer ||OK
| || timer_stop|| (null)||  stops the countdown timer ||OK
|-
| || tr_stop_lookup|| || ||
|-
| || tr_write_animation|| || ||
|-
| || tr_write_collection|| || ||
|-
| || tr_write_lookup|| || ||
|-
|-
| || trig_activate|| trigger_id:int||  activates a trigger ||OK
| || trig_activate|| trigger_id:int||  activates a trigger ||OK
Line 403: Line 539:
|-
|-
| || weapon_spawn|| weapontype:string<br>flag:int||  creates a new weapon ||OK
| || weapon_spawn|| weapontype:string<br>flag:int||  creates a new weapon ||OK
|-
| || where|| || ||
|-
| || who|| || ||
|-
|-
| || win|| (null)||  win this level ||OK
| || win|| (null)||  win this level ||OK
|}
|}