lev_script.c File Reference

#include "lev_script.h"
#include "globals.h"
#include "arr_utils.h"
#include "lev_data.h"
#include "obj_column_def.h"
#include "obj_slabs.h"
#include "obj_column.h"
#include "lev_column.h"

Go to the source code of this file.

Functions

short script_param_to_int (int *val, const char *param)
short script_param_to_ulong (unsigned long *val, const char *param)
short execute_adikted_command (struct LEVEL *lvl, struct DK_SCRIPT_COMMAND *cmd, char *err_msg)
short script_cmd_verify_argcount (char *err_msg, const struct DK_SCRIPT_COMMAND *cmd, const int prop_count)
short string_is_decimal_number (const char *str, const short allow_sign)
short script_cmd_verify_arg_actnpt (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, const short allow_herogate, const short allow_plyrheart)
short script_cmd_verify_arg_gameturn (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param)
short script_cmd_verify_arg_goldamnt (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param)
short script_cmd_verify_arg_experience (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param)
short script_cmd_verify_arg_ncrtrs (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, int min_val, int *count)
short script_cmd_verify_arg_operator (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, int *opertr_idx)
short script_cmd_verify_arg_conditvar (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, short allow_vars, int *cmd_type, int *var_idx)
short script_cmd_verify_arg_singlevar (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, char *param_name, func_cmd_index f_cmd_index, int *res_idx)
short script_cmd_verify_arg_btnparam (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param)
short script_cmd_verify_arg_creatr (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, int *crtr_idx)
short script_cmd_verify_arg_party_objectv (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, const short heading_objctv, int *obj_idx)
short script_cmd_verify_arg_party_name (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, const short create_new, int *party_idx)
short script_cmd_verify_arg_quotparam (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, const char *param_name, unsigned int *par_idx)
short script_cmd_verify_arg_limparam (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, const char *param_name, int min_val, unsigned int max_val)
short script_cmd_verify_arg_unsg_int (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, int min_val, unsigned int max_val)
short script_cmd_verify_arg_logic_int (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, short *logic_val)
short script_cmd_verify_arg_specval (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, const char *param, char def_val)
short script_cmd_verify_condit (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_party (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_avail (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_custobj (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_setup (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_triger (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_crtradj (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_commnt (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short script_cmd_verify_obsol (struct SCRIPT_VERIFY_DATA *scverif, char *err_msg, int *err_param, const struct DK_SCRIPT_COMMAND *cmd)
short txt_verify (const struct LEVEL *lvl, char *err_msg, struct IPOINT_2D *errpt)
short dkscript_verify (const struct LEVEL *lvl, char *err_msg, int *err_line, int *err_param)
short execute_script_line (struct LEVEL *lvl, char *line, char *err_msg)
short decompose_script (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns)
short recompose_script (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns)
short recompute_script_levels (struct DK_SCRIPT *script)
int get_script_command_level (const char *text, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_condit (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_blockbody (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_party (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_avail (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_custobj (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_setup (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_triger (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd_crtradj (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params_cmd (struct DK_SCRIPT_PARAMETERS *par, struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short script_decomposed_to_params (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns)
short script_params_to_decomposed (struct DK_SCRIPT *script, const struct SCRIPT_OPTIONS *optns)
short script_strword_pos (char const **ptr, unsigned int *ptr_len, const char *str, const short whole_rest)
char * script_strword (const char *str, const short whole_rest)
int recognize_script_word_group_and_idx (int *index, const char *wordtxt, const short is_parameter)
short decompose_script_command (struct DK_SCRIPT_COMMAND *cmd, const char *text, const struct SCRIPT_OPTIONS *optns)
short script_command_param_add (struct DK_SCRIPT_COMMAND *cmd, char *param)
short is_no_bracket_command (int group, int cmdidx)
char * recompose_script_command (const struct DK_SCRIPT_COMMAND *cmd, const struct SCRIPT_OPTIONS *optns)
short renew_cmd_param (const struct DK_SCRIPT_COMMAND *cmd, const unsigned int param_idx, const struct SCRIPT_OPTIONS *optns)
const char * script_cmd_text (const int group, const int cmdidx, const char *prev_val)
int adikted_cmd_arrsize ()
int adikted_cmd_index (const char *cmdtext)
const char * adikted_cmd_text (int cmdidx)
int condit_cmd_arrsize ()
int condit_cmd_index (const char *cmdtext)
const char * condit_cmd_text (int cmdidx)
int flag_cmd_arrsize ()
int flag_cmd_index (const char *cmdtext)
const char * flag_cmd_text (int cmdidx)
int party_objectv_cmd_arrsize ()
int party_objectv_cmd_index (const char *cmdtext)
const char * party_objectv_cmd_text (int cmdidx)
int party_cmd_arrsize ()
int party_cmd_index (const char *cmdtext)
const char * party_cmd_text (int cmdidx)
int avail_cmd_arrsize ()
int avail_cmd_index (const char *cmdtext)
const char * avail_cmd_text (int cmdidx)
int comp_plyr_cmd_arrsize ()
int comp_plyr_cmd_index (const char *cmdtext)
const char * comp_plyr_cmd_text (int cmdidx)
int players_cmd_arrsize ()
int players_cmd_index (const char *cmdtext)
const char * players_cmd_text (int cmdidx)
int creatures_cmd_arrsize ()
int creatures_cmd_index (const char *cmdtext)
const char * creatures_cmd_text (int cmdidx)
int room_cmd_arrsize ()
int room_cmd_index (const char *cmdtext)
const char * room_cmd_text (int cmdidx)
int spell_cmd_arrsize ()
int spell_cmd_index (const char *cmdtext)
const char * spell_cmd_text (int cmdidx)
const char * spell_cmd_fullname (int cmdidx)
int trap_cmd_arrsize ()
int trap_cmd_index (const char *cmdtext)
const char * trap_cmd_text (int cmdidx)
const char * trap_cmd_fullname (int cmdidx)
int door_cmd_arrsize ()
int door_cmd_index (const char *cmdtext)
const char * door_cmd_text (int cmdidx)
const char * door_cmd_fullname (int cmdidx)
int special_cmd_arrsize ()
int special_cmd_index (const char *cmdtext)
const char * special_cmd_text (int cmdidx, const char *cmdtext)
int operator_cmd_arrsize ()
int operator_cmd_index (const char *cmdtext)
const char * operator_cmd_text (int cmdidx)
int objtype_cmd_arrsize ()
int objtype_cmd_index (const char *cmdtext)
const char * objtype_cmd_text (int cmdidx)
int variabl_cmd_arrsize ()
int variabl_cmd_index (const char *cmdtext)
const char * variabl_cmd_text (int cmdidx)
int timer_cmd_arrsize ()
int timer_cmd_index (const char *cmdtext)
const char * timer_cmd_text (int cmdidx)
int custobj_cmd_arrsize ()
int custobj_cmd_index (const char *cmdtext)
const char * custobj_cmd_text (int cmdidx)
int setup_cmd_arrsize ()
int setup_cmd_index (const char *cmdtext)
const char * setup_cmd_text (int cmdidx)
int triger_cmd_arrsize ()
int triger_cmd_index (const char *cmdtext)
const char * triger_cmd_text (int cmdidx)
int crtradj_cmd_arrsize ()
int crtradj_cmd_index (const char *cmdtext)
const char * crtradj_cmd_text (int cmdidx)
int obsolt_cmd_arrsize ()
int obsolt_cmd_index (const char *cmdtext)
const char * obsolt_cmd_text (int cmdidx)
int commnt_cmd_arrsize ()
int commnt_cmd_index (const char *cmdtext)
const char * commnt_cmd_text (int cmdidx)
int orient_cmd_arrsize ()
int orient_cmd_index (const char *cmdtext)
const char * orient_cmd_text (int cmdidx)
int font_cmd_arrsize ()
int font_cmd_index (const char *cmdtext)
const char * font_cmd_text (int cmdidx)
struct DK_SCRIPT_COMMANDscript_command_create (void)
void script_command_clear (struct DK_SCRIPT_COMMAND *cmd)
void script_command_free (struct DK_SCRIPT_COMMAND *cmd)
void script_command_renew (struct DK_SCRIPT_COMMAND **cmd)
void text_file_free (char **lines, int lines_count)
int text_file_line_add (char ***lines, int *lines_count, char *text)
int text_file_linecp_add (char ***lines, int *lines_count, char *text)
short add_stats_to_script (char ***lines, int *lines_count, struct LEVEL *lvl)
short add_graffiti_to_script (char ***lines, int *lines_count, struct LEVEL *lvl)
short add_custom_clms_to_script (char ***lines, int *lines_count, struct LEVEL *lvl)
char * get_orientation_shortname (unsigned short orient)
unsigned short get_orientation_next (unsigned short orient)
 Returns orientation constant after the given one.
char * get_font_longname (unsigned short font)
 Returns font name string for given font index.

Variables

const char if_cmdtext [] = "IF"
const char if_available_cmdtext [] = "IF_AVAILABLE"
const char if_actnpt_cmdtext [] = "IF_ACTION_POINT"
const char endif_cmdtext [] = "ENDIF"
const char * cmd_condit_arr []
const char custom_column_cmdtext [] = "CUSTOM_COLUMN"
const char graffiti_cmdtext [] = "GRAFFITI"
const char leveltimestmp_cmdtext [] = "LEVEL_TIMESTAMP"
const char usrcmnds_count_cmdtext [] = "USER_COMMANDS_COUNT"
const char levversion_cmdtext [] = "LEVEL_VERSION"
const char levname_cmdtext [] = "LEVEL_NAME"
const char levdesc_cmdtext [] = "LEVEL_DESCRIPTION"
const char levauthors_cmdtext [] = "LEVEL_AUTHORS"
const char * cmd_adikted_arr []
const char create_party_cmdtext [] = "CREATE_PARTY"
const char add_tunneler_tolev_cmdtext [] = "ADD_TUNNELLER_TO_LEVEL"
const char add_to_party_cmdtext [] = "ADD_TO_PARTY"
const char add_party_tolev_cmdtext [] = "ADD_PARTY_TO_LEVEL"
const char add_creatr_tolev_cmdtext [] = "ADD_CREATURE_TO_LEVEL"
const char add_tunneller_party_tolev_cmdtext [] = "ADD_TUNNELLER_PARTY_TO_LEVEL"
const char * cmd_party_arr []
const char room_avail_cmdtext [] = "ROOM_AVAILABLE"
const char creatr_avail_cmdtext [] = "CREATURE_AVAILABLE"
const char magic_avail_cmdtext [] = "MAGIC_AVAILABLE"
const char trap_avail_cmdtext [] = "TRAP_AVAILABLE"
const char door_avail_cmdtext [] = "DOOR_AVAILABLE"
const char * cmd_avail_arr []
const char display_objectv_cmdtext [] = "DISPLAY_OBJECTIVE"
const char display_objectv_wpos_cmdtext [] = "DISPLAY_OBJECTIVE_WITH_POS"
const char display_info_cmdtext [] = "DISPLAY_INFORMATION"
const char display_info_wpos_cmdtext [] = "DISPLAY_INFORMATION_WITH_POS"
const char bonus_lev_time_cmdtext [] = "BONUS_LEVEL_TIME"
const char tutorial_flash_btn_cmdtext [] = "TUTORIAL_FLASH_BUTTON"
const char quick_objectv_cmdtext [] = "QUICK_OBJECTIVE"
const char quick_info_cmdtext [] = "QUICK_INFORMATION"
const char * cmd_custobj_arr []
const char set_gen_speed_cmdtext [] = "SET_GENERATE_SPEED"
const char start_money_cmdtext [] = "START_MONEY"
const char comp_player_cmdtext [] = "COMPUTER_PLAYER"
const char ally_players_cmdtext [] = "ALLY_PLAYERS"
const char set_hate_cmdtext [] = "SET_HATE"
const char resrch_cmdtext [] = "RESEARCH"
const char set_computer_globals_cmdtext [] = "SET_COMPUTER_GLOBALS"
const char set_computer_checks_cmdtext [] = "SET_COMPUTER_CHECKS"
const char set_computer_event_cmdtext [] = "SET_COMPUTER_EVENT"
const char set_computer_process_cmdtext [] = "SET_COMPUTER_PROCESS"
const char max_creatures_cmdtext [] = "MAX_CREATURES"
const char * cmd_setup_arr []
const char reset_actnpt_cmdtext [] = "RESET_ACTION_POINT"
const char next_cmd_reusable_cmdtext [] = "NEXT_COMMAND_REUSABLE"
const char set_flag_cmdtext [] = "SET_FLAG"
const char set_timer_cmdtext [] = "SET_TIMER"
const char game_lose_cmdtext [] = "LOSE_GAME"
const char game_win_cmdtext [] = "WIN_GAME"
const char set_music_cmdtext [] = "SET_MUSIC"
const char * cmd_triger_arr []
const char dead_creatures_ret_to_pool_cmdtext [] = "DEAD_CREATURES_RETURN_TO_POOL"
const char add_creatr_to_pool_cmdtext [] = "ADD_CREATURE_TO_POOL"
const char set_creatr_fear_cmdtext [] = "SET_CREATURE_FEAR"
const char set_creatr_armour_cmdtext [] = "SET_CREATURE_ARMOUR"
const char set_creatr_health_cmdtext [] = "SET_CREATURE_HEALTH"
const char set_creatr_strength_cmdtext [] = "SET_CREATURE_STRENGTH"
const char set_creatr_max_level_cmdtext [] = "SET_CREATURE_MAX_LEVEL"
const char creatr_swap_cmdtext [] = "SWAP_CREATURE"
const char * cmd_crtradj_arr []
const char rem_cmdtext [] = "REM"
const char emptyln_cmdtext [] = ""
const char * cmd_commnt_arr []
const char print_cmdtext [] = "PRINT"
const char create_text_cmdtext [] = "CREATE_TEXT"
const char * cmd_obsolt_arr []
const char random_cmdtext [] = "RANDOM"
const char flag0_cmdtext [] = "FLAG0"
const char flag1_cmdtext [] = "FLAG1"
const char flag2_cmdtext [] = "FLAG2"
const char flag3_cmdtext [] = "FLAG3"
const char flag4_cmdtext [] = "FLAG4"
const char flag5_cmdtext [] = "FLAG5"
const char flag6_cmdtext [] = "FLAG6"
const char flag7_cmdtext [] = "FLAG7"
const char * cmd_flag_arr []
const char timer0_cmdtext [] = "TIMER0"
const char timer1_cmdtext [] = "TIMER1"
const char timer2_cmdtext [] = "TIMER2"
const char timer3_cmdtext [] = "TIMER3"
const char timer4_cmdtext [] = "TIMER4"
const char timer5_cmdtext [] = "TIMER5"
const char timer6_cmdtext [] = "TIMER6"
const char timer7_cmdtext [] = "TIMER7"
const char * cmd_timer_arr []
const char oper_equ_cmdtext [] = "=="
const char oper_neq_cmdtext [] = "!="
const char oper_less_cmdtext [] = "<"
const char oper_grtr_cmdtext [] = ">"
const char oper_lesseq_cmdtext [] = "<="
const char oper_grtreq_cmdtext [] = ">="
const char * cmd_operator_arr []
const char all_dngns_destroyed_cmdtext [] = "ALL_DUNGEONS_DESTROYED"
const char crtrs_scavng_gained_cmdtext [] = "CREATURES_SCAVENGED_GAINED"
const char crtrs_scavng_lost_cmdtext [] = "CREATURES_SCAVENGED_LOST"
const char doors_destroyed_cmdtext [] = "DOORS_DESTROYED"
const char total_gold_mined_cmdtext [] = "TOTAL_GOLD_MINED"
const char dngn_destroyed_cmdtext [] = "DUNGEON_DESTROYED"
const char gold_pots_stolen_cmdtext [] = "GOLD_POTS_STOLEN"
const char times_broken_into_cmdtext [] = "TIMES_BROKEN_INTO"
const char spells_stolen_cmdtext [] = "SPELLS_STOLEN"
const char rooms_destroyed_cmdtext [] = "ROOMS_DESTROYED"
const char battles_won_cmdtext [] = "BATTLES_WON"
const char battles_lost_cmdtext [] = "BATTLES_LOST"
const char creatrs_annoyed_cmdtext [] = "CREATURES_ANNOYED"
const char total_creatrs_left_cmdtext [] = "TOTAL_CREATURES_LEFT"
const char total_area_cmdtext [] = "TOTAL_AREA"
const char total_doors_cmdtext [] = "TOTAL_DOORS"
const char total_research_cmdtext [] = "TOTAL_RESEARCH"
const char total_creatrs_cmdtext [] = "TOTAL_CREATURES"
const char total_imps_cmdtext [] = "TOTAL_IMPS"
const char break_in_cmdtext [] = "BREAK_IN"
const char game_turn_cmdtext [] = "GAME_TURN"
const char money_cmdtext [] = "MONEY"
const char * cmd_variabl_arr []
const char objctv_defend_party_cmdtext [] = "DEFEND_PARTY"
const char objctv_attack_rooms_cmdtext [] = "ATTACK_ROOMS"
const char objctv_attack_dnheart_cmdtext [] = "ATTACK_DUNGEON_HEART"
const char objctv_enemies_cmdtext [] = "ATTACK_ENEMIES"
const char objctv_steal_spells_cmdtext [] = "STEAL_SPELLS"
const char objctv_steal_gold_cmdtext [] = "STEAL_GOLD"
const char objctv_approp_dung_cmdtext [] = "APPROPIATE_DUNGEON"
const char objctv_dnheart_cmdtext [] = "DUNGEON_HEART"
const char objctv_dungeon_cmdtext [] = "DUNGEON"
const char objctv_actnpt_cmdtext [] = "ACTION_POINT"
const char * cmd_party_objectv_arr []
const char comp_sell_trapsdoors_cmdtext [] = "COMPUTER_SELL_TRAPS_AND_DOORS"
const char comp_attack_magic_cmdtext [] = "COMPUTER_ATTACK_MAGIC"
const char comp_wait_for_bridge_cmdtext [] = "COMPUTER_WAIT_FOR_BRIDGE"
const char comp_magic_speed_up_cmdtext [] = "COMPUTER_MAGIC_SPEED_UP"
const char comp_dig_to_neutral_cmdtext [] = "COMPUTER_DIG_TO_NEUTRAL"
const char comp_slap_imps_cmdtext [] = "COMPUTER_SLAP_IMPS"
const char comp_move_creatrs_todefens_cmdtext [] = "COMPUTER_MOVE_CREATURES_TO_DEFEND"
const char comp_move_creatrs_topos_cmdtext [] = "COMPUTER_MOVE_CREATURE_TO_POS"
const char comp_move_creatrs_toroom_cmdtext [] = "COMPUTER_MOVE_CREATURE_TO_ROOM"
const char comp_pickup_for_attack_cmdtext [] = "COMPUTER_PICKUP_FOR_ATTACK"
const char comp_magic_callarms_cmdtext [] = "COMPUTER_MAGIC_CALL_TO_ARMS"
const char comp_dig_toattack_cmdtext [] = "COMPUTER_DIG_TO_ATTACK"
const char comp_dig_togold_cmdtext [] = "COMPUTER_DIG_TO_GOLD"
const char comp_dig_toentrnce_cmdtext [] = "COMPUTER_DIG_TO_ENTRANCE"
const char comp_place_room_cmdtext [] = "COMPUTER_PLACE_ROOM"
const char comp_check_room_dug_cmdtext [] = "COMPUTER_CHECK_ROOM_DUG"
const char comp_dig_room_cmdtext [] = "COMPUTER_DIG_ROOM"
const char comp_dig_room_passage_cmdtext [] = "COMPUTER_DIG_ROOM_PASSAGE"
const char * cmd_comp_plyr_arr []
const char obj_room_cmdtext [] = "ROOM"
const char obj_magic_cmdtext [] = "MAGIC"
const char obj_creature_cmdtext [] = "CREATURE"
const char * cmd_objtype_arr []
const char door_steel_cmdtext [] = "STEEL"
const char door_braced_cmdtext [] = "BRACED"
const char door_wood_cmdtext [] = "WOOD"
const char door_magic_cmdtext [] = "MAGIC"
const char * cmd_doors_arr []
const char * cmd_doors_fullname []
const char trap_boulder_cmdtext [] = "BOULDER"
const char trap_alarm_cmdtext [] = "ALARM"
const char trap_gas_cmdtext [] = "POISON_GAS"
const char trap_lightng_cmdtext [] = "LIGHTNING"
const char trap_wordpwr_cmdtext [] = "WORD_OF_POWER"
const char trap_lava_cmdtext [] = "LAVA"
const char * cmd_traps_arr []
const char * cmd_traps_fullname []
const char spell_armag_cmdtext [] = "POWER_ARMAGEDDON"
const char spell_possess_cmdtext [] = "POWER_POSSESS"
const char spell_destrwalls_cmdtext [] = "POWER_DESTROY_WALLS"
const char spell_chickn_cmdtext [] = "POWER_CHICKEN"
const char spell_disease_cmdtext [] = "POWER_DISEASE"
const char spell_conceal_cmdtext [] = "POWER_CONCEAL"
const char spell_protect_cmdtext [] = "POWER_PROTECT"
const char spell_speed_cmdtext [] = "POWER_SPEED"
const char spell_lightng_cmdtext [] = "POWER_LIGHTNING"
const char spell_holdaud_cmdtext [] = "POWER_HOLD_AUDIENCE"
const char spell_healcrtr_cmdtext [] = "POWER_HEAL_CREATURE"
const char spell_cavein_cmdtext [] = "POWER_CAVE_IN"
const char spell_callarms_cmdtext [] = "POWER_CALL_TO_ARMS"
const char spell_sight_cmdtext [] = "POWER_SIGHT"
const char spell_slap_cmdtext [] = "POWER_SLAP"
const char spell_obey_cmdtext [] = "POWER_OBEY"
const char spell_imp_cmdtext [] = "POWER_IMP"
const char spell_hand_cmdtext [] = "POWER_HAND"
const char * cmd_spells_arr []
const char * cmd_spells_fullname []
const char player_all_cmdtext [] = "ALL_PLAYERS"
const char player_good_cmdtext [] = "PLAYER_GOOD"
const char player3_cmdtext [] = "PLAYER3"
const char player2_cmdtext [] = "PLAYER2"
const char player1_cmdtext [] = "PLAYER1"
const char player0_cmdtext [] = "PLAYER0"
const char * cmd_players_arr []
const char creatr_horny_cmdtext [] = "HORNY"
const char creatr_skeleton_cmdtext [] = "SKELETON"
const char creatr_troll_cmdtext [] = "TROLL"
const char creatr_dragon_cmdtext [] = "DRAGON"
const char creatr_dmspawn_cmdtext [] = "DEMONSPAWN"
const char creatr_fly_cmdtext [] = "FLY"
const char creatr_dkmist_cmdtext [] = "DARK_MISTRESS"
const char creatr_sorcer_cmdtext [] = "SORCEROR"
const char creatr_biledm_cmdtext [] = "BILE_DEMON"
const char creatr_imp_cmdtext [] = "IMP"
const char creatr_bug_cmdtext [] = "BUG"
const char creatr_vampire_cmdtext [] = "VAMPIRE"
const char creatr_spider_cmdtext [] = "SPIDER"
const char creatr_hound_cmdtext [] = "HELL_HOUND"
const char creatr_ghost_cmdtext [] = "GHOST"
const char creatr_tentacl_cmdtext [] = "TENTACLE"
const char creatr_orc_cmdtext [] = "ORC"
const char creatr_wizard_cmdtext [] = "WIZARD"
const char creatr_barbarin_cmdtext [] = "BARBARIAN"
const char creatr_archr_cmdtext [] = "ARCHER"
const char creatr_monk_cmdtext [] = "MONK"
const char creatr_dwarfa_cmdtext [] = "DWARFA"
const char creatr_knight_cmdtext [] = "KNIGHT"
const char creatr_avatar_cmdtext [] = "AVATAR"
const char creatr_tunnelr_cmdtext [] = "TUNNELLER"
const char creatr_witch_cmdtext [] = "WITCH"
const char creatr_giant_cmdtext [] = "GIANT"
const char creatr_fairy_cmdtext [] = "FAIRY"
const char creatr_thief_cmdtext [] = "THIEF"
const char creatr_samurai_cmdtext [] = "SAMURAI"
const char creatr_newa_cmdtext [] = "NEW_CREATURE_B"
const char creatr_newb_cmdtext [] = "NEW_CREATURE_A"
const char creatr_flspirit_cmdtext [] = "FLOATING_SPIRIT"
const char * cmd_creatures_arr []
const char room_grdpost_cmdtext [] = "GUARD_POST"
const char room_brige_cmdtext [] = "BRIDGE"
const char room_lair_cmdtext [] = "LAIR"
const char room_hatchery_cmdtext [] = "GARDEN"
const char room_barracks_cmdtext [] = "BARRACKS"
const char room_graveyrd_cmdtext [] = "GRAVEYARD"
const char room_temple_cmdtext [] = "TEMPLE"
const char room_scavng_cmdtext [] = "SCAVENGER"
const char room_workshp_cmdtext [] = "WORKSHOP"
const char room_training_cmdtext [] = "TRAINING"
const char room_torture_cmdtext [] = "TORTURE"
const char room_prison_cmdtext [] = "PRISON"
const char room_library_cmdtext [] = "RESEARCH"
const char room_treasure_cmdtext [] = "TREASURE"
const char room_entrance_cmdtext [] = "ENTRANCE"
const char * cmd_rooms_arr []
const char orient_ns_cmdtext [] = "ORIENT_NS"
const char orient_we_cmdtext [] = "ORIENT_WE"
const char orient_sn_cmdtext [] = "ORIENT_SN"
const char orient_ew_cmdtext [] = "ORIENT_EW"
const char orient_tpns_cmdtext [] = "ORIENT_TOPNS"
const char orient_tpwe_cmdtext [] = "ORIENT_TOPWE"
const char orient_tpsn_cmdtext [] = "ORIENT_TOPSN"
const char orient_tpew_cmdtext [] = "ORIENT_TOPEW"
const short orient_constants []
const char * cmd_orient_arr []
const char font_none_cmdtext [] = "FONT_NONE"
const char font_adiclssc_cmdtext [] = "FONT_ADICLSSC"
const char font_adisize8_cmdtext [] = "FONT_ADISIZE8"
const char * cmd_font_arr []
const char * cmd_orient_shortnames []
const char * cmd_font_fullnames []
const char * object_available_shortnames []


Function Documentation

short add_custom_clms_to_script ( char ***  lines,
int *  lines_count,
struct LEVEL lvl 
)

Definition at line 5110 of file lev_script.c.

Referenced by write_adi_script().

short add_graffiti_to_script ( char ***  lines,
int *  lines_count,
struct LEVEL lvl 
)

Definition at line 5078 of file lev_script.c.

Referenced by write_adi_script().

short add_stats_to_script ( char ***  lines,
int *  lines_count,
struct LEVEL lvl 
)

Definition at line 5021 of file lev_script.c.

Referenced by write_adi_script().

int adikted_cmd_arrsize (  ) 

Definition at line 4224 of file lev_script.c.

int adikted_cmd_index ( const char *  cmdtext  ) 

Definition at line 4229 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* adikted_cmd_text ( int  cmdidx  ) 

Definition at line 4243 of file lev_script.c.

Referenced by add_stats_to_script(), execute_adikted_command(), and script_cmd_text().

int avail_cmd_arrsize (  ) 

Definition at line 4354 of file lev_script.c.

int avail_cmd_index ( const char *  cmdtext  ) 

Definition at line 4359 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* avail_cmd_text ( int  cmdidx  ) 

Definition at line 4373 of file lev_script.c.

Referenced by script_cmd_text().

int commnt_cmd_arrsize (  ) 

Definition at line 4845 of file lev_script.c.

int commnt_cmd_index ( const char *  cmdtext  ) 

Definition at line 4850 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* commnt_cmd_text ( int  cmdidx  ) 

Definition at line 4865 of file lev_script.c.

Referenced by script_cmd_text().

int comp_plyr_cmd_arrsize (  ) 

Definition at line 4380 of file lev_script.c.

int comp_plyr_cmd_index ( const char *  cmdtext  ) 

Definition at line 4385 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* comp_plyr_cmd_text ( int  cmdidx  ) 

Definition at line 4399 of file lev_script.c.

Referenced by script_cmd_text().

int condit_cmd_arrsize (  ) 

Definition at line 4250 of file lev_script.c.

int condit_cmd_index ( const char *  cmdtext  ) 

Definition at line 4255 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* condit_cmd_text ( int  cmdidx  ) 

Definition at line 4269 of file lev_script.c.

Referenced by script_cmd_text().

int creatures_cmd_arrsize (  ) 

Definition at line 4432 of file lev_script.c.

Referenced by level_clear_script_param(), level_init(), and write_nfo().

int creatures_cmd_index ( const char *  cmdtext  ) 

const char* creatures_cmd_text ( int  cmdidx  ) 

Definition at line 4451 of file lev_script.c.

Referenced by script_cmd_text().

int crtradj_cmd_arrsize (  ) 

Definition at line 4793 of file lev_script.c.

int crtradj_cmd_index ( const char *  cmdtext  ) 

Definition at line 4798 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* crtradj_cmd_text ( int  cmdidx  ) 

Definition at line 4812 of file lev_script.c.

Referenced by script_cmd_text().

int custobj_cmd_arrsize (  ) 

Definition at line 4715 of file lev_script.c.

int custobj_cmd_index ( const char *  cmdtext  ) 

Definition at line 4720 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* custobj_cmd_text ( int  cmdidx  ) 

Definition at line 4734 of file lev_script.c.

Referenced by script_cmd_text().

short decompose_script ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3004 of file lev_script.c.

Referenced by load_txt().

short decompose_script_command ( struct DK_SCRIPT_COMMAND cmd,
const char *  text,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3985 of file lev_script.c.

Referenced by decompose_script(), and execute_script_line().

short dkscript_verify ( const struct LEVEL lvl,
char *  err_msg,
int *  err_line,
int *  err_param 
)

Definition at line 2853 of file lev_script.c.

Referenced by txt_verify().

int door_cmd_arrsize (  ) 

Definition at line 4550 of file lev_script.c.

Referenced by level_clear_script_param(), and level_init().

const char* door_cmd_fullname ( int  cmdidx  ) 

Definition at line 4576 of file lev_script.c.

int door_cmd_index ( const char *  cmdtext  ) 

const char* door_cmd_text ( int  cmdidx  ) 

Definition at line 4569 of file lev_script.c.

Referenced by script_cmd_text().

short execute_adikted_command ( struct LEVEL lvl,
struct DK_SCRIPT_COMMAND cmd,
char *  err_msg 
)

Definition at line 548 of file lev_script.c.

Referenced by execute_script_line().

short execute_script_line ( struct LEVEL lvl,
char *  line,
char *  err_msg 
)

Definition at line 2962 of file lev_script.c.

Referenced by script_load_and_execute().

int flag_cmd_arrsize (  ) 

Definition at line 4276 of file lev_script.c.

int flag_cmd_index ( const char *  cmdtext  ) 

const char* flag_cmd_text ( int  cmdidx  ) 

Definition at line 4295 of file lev_script.c.

Referenced by script_cmd_text().

int font_cmd_arrsize (  ) 

Definition at line 4898 of file lev_script.c.

int font_cmd_index ( const char *  cmdtext  ) 

Definition at line 4903 of file lev_script.c.

Referenced by execute_adikted_command().

const char* font_cmd_text ( int  cmdidx  ) 

Definition at line 4917 of file lev_script.c.

Referenced by add_graffiti_to_script().

char* get_font_longname ( unsigned short  font  ) 

Returns font name string for given font index.

Parameters:
font Font index.
Returns:
Returns font name string.

Definition at line 5173 of file lev_script.c.

unsigned short get_orientation_next ( unsigned short  orient  ) 

Returns orientation constant after the given one.

Parameters:
orient Previous orientation constant.
Returns:
Returns next orientation constant.

Definition at line 5156 of file lev_script.c.

char* get_orientation_shortname ( unsigned short  orient  ) 

Definition at line 5142 of file lev_script.c.

int get_script_command_level ( const char *  text,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3078 of file lev_script.c.

Referenced by decompose_script_command().

short is_no_bracket_command ( int  group,
int  cmdidx 
)

Definition at line 4037 of file lev_script.c.

Referenced by recompose_script_command().

int objtype_cmd_arrsize (  ) 

Definition at line 4637 of file lev_script.c.

int objtype_cmd_index ( const char *  cmdtext  ) 

const char* objtype_cmd_text ( int  cmdidx  ) 

Definition at line 4656 of file lev_script.c.

Referenced by script_cmd_text().

int obsolt_cmd_arrsize (  ) 

Definition at line 4819 of file lev_script.c.

int obsolt_cmd_index ( const char *  cmdtext  ) 

Definition at line 4824 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* obsolt_cmd_text ( int  cmdidx  ) 

Definition at line 4838 of file lev_script.c.

Referenced by script_cmd_text().

int operator_cmd_arrsize (  ) 

Definition at line 4611 of file lev_script.c.

int operator_cmd_index ( const char *  cmdtext  ) 

const char* operator_cmd_text ( int  cmdidx  ) 

Definition at line 4630 of file lev_script.c.

Referenced by script_cmd_text().

int orient_cmd_arrsize (  ) 

Definition at line 4872 of file lev_script.c.

int orient_cmd_index ( const char *  cmdtext  ) 

Definition at line 4877 of file lev_script.c.

Referenced by execute_adikted_command().

const char* orient_cmd_text ( int  cmdidx  ) 

Definition at line 4891 of file lev_script.c.

Referenced by add_graffiti_to_script().

int party_cmd_arrsize (  ) 

Definition at line 4328 of file lev_script.c.

int party_cmd_index ( const char *  cmdtext  ) 

Definition at line 4333 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* party_cmd_text ( int  cmdidx  ) 

Definition at line 4347 of file lev_script.c.

Referenced by script_cmd_text().

int party_objectv_cmd_arrsize (  ) 

Definition at line 4302 of file lev_script.c.

int party_objectv_cmd_index ( const char *  cmdtext  ) 

const char* party_objectv_cmd_text ( int  cmdidx  ) 

Definition at line 4321 of file lev_script.c.

Referenced by script_cmd_text().

int players_cmd_arrsize (  ) 

Definition at line 4406 of file lev_script.c.

int players_cmd_index ( const char *  cmdtext  ) 

const char* players_cmd_text ( int  cmdidx  ) 

Definition at line 4425 of file lev_script.c.

Referenced by script_cmd_text(), and script_cmd_verify_setup().

int recognize_script_word_group_and_idx ( int *  index,
const char *  wordtxt,
const short  is_parameter 
)

short recompose_script ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3021 of file lev_script.c.

char* recompose_script_command ( const struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 4081 of file lev_script.c.

Referenced by recompose_script().

short recompute_script_levels ( struct DK_SCRIPT script  ) 

Definition at line 3038 of file lev_script.c.

short renew_cmd_param ( const struct DK_SCRIPT_COMMAND cmd,
const unsigned int  param_idx,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 4144 of file lev_script.c.

Referenced by recompose_script_command().

int room_cmd_arrsize (  ) 

Definition at line 4458 of file lev_script.c.

Referenced by level_clear_script_param(), and level_init().

int room_cmd_index ( const char *  cmdtext  ) 

const char* room_cmd_text ( int  cmdidx  ) 

Definition at line 4477 of file lev_script.c.

Referenced by script_cmd_text().

const char* script_cmd_text ( const int  group,
const int  cmdidx,
const char *  prev_val 
)

short script_cmd_verify_arg_actnpt ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
const short  allow_herogate,
const short  allow_plyrheart 
)

short script_cmd_verify_arg_btnparam ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param 
)

Definition at line 1178 of file lev_script.c.

Referenced by script_cmd_verify_custobj().

short script_cmd_verify_arg_conditvar ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
short  allow_vars,
int *  cmd_type,
int *  var_idx 
)

Definition at line 1087 of file lev_script.c.

Referenced by script_cmd_verify_condit().

short script_cmd_verify_arg_creatr ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
int *  crtr_idx 
)

short script_cmd_verify_arg_experience ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param 
)

Definition at line 988 of file lev_script.c.

Referenced by script_cmd_verify_crtradj(), and script_cmd_verify_party().

short script_cmd_verify_arg_gameturn ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param 
)

short script_cmd_verify_arg_goldamnt ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param 
)

Definition at line 944 of file lev_script.c.

Referenced by script_cmd_verify_party(), and script_cmd_verify_setup().

short script_cmd_verify_arg_limparam ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
const char *  param_name,
int  min_val,
unsigned int  max_val 
)

short script_cmd_verify_arg_logic_int ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
short *  logic_val 
)

short script_cmd_verify_arg_ncrtrs ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
int  min_val,
int *  count 
)

short script_cmd_verify_arg_operator ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
int *  opertr_idx 
)

Definition at line 1070 of file lev_script.c.

Referenced by script_cmd_verify_condit().

short script_cmd_verify_arg_party_name ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
const short  create_new,
int *  party_idx 
)

Definition at line 1276 of file lev_script.c.

Referenced by script_cmd_verify_party().

short script_cmd_verify_arg_party_objectv ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
const short  heading_objctv,
int *  obj_idx 
)

Definition at line 1245 of file lev_script.c.

Referenced by script_cmd_verify_party().

short script_cmd_verify_arg_quotparam ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
const char *  param_name,
unsigned int *  par_idx 
)

Definition at line 1320 of file lev_script.c.

Referenced by script_cmd_verify_custobj().

short script_cmd_verify_arg_singlevar ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
char *  param_name,
func_cmd_index  f_cmd_index,
int *  res_idx 
)

short script_cmd_verify_arg_specval ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
char  def_val 
)

Definition at line 1461 of file lev_script.c.

Referenced by script_cmd_verify_party().

short script_cmd_verify_arg_unsg_int ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
const char *  param,
int  min_val,
unsigned int  max_val 
)

Definition at line 1392 of file lev_script.c.

Referenced by script_cmd_verify_party().

short script_cmd_verify_argcount ( char *  err_msg,
const struct DK_SCRIPT_COMMAND cmd,
const int  prop_count 
)

short script_cmd_verify_avail ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 1990 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_commnt ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2800 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_condit ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 1475 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_crtradj ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2646 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_custobj ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2151 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_obsol ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2814 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_party ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 1720 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_setup ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2323 of file lev_script.c.

Referenced by dkscript_verify().

short script_cmd_verify_triger ( struct SCRIPT_VERIFY_DATA scverif,
char *  err_msg,
int *  err_param,
const struct DK_SCRIPT_COMMAND cmd 
)

Definition at line 2550 of file lev_script.c.

Referenced by dkscript_verify().

void script_command_clear ( struct DK_SCRIPT_COMMAND cmd  ) 

Definition at line 4937 of file lev_script.c.

Referenced by execute_script_line(), script_command_create(), and script_command_renew().

struct DK_SCRIPT_COMMAND* script_command_create ( void   )  [read]

Definition at line 4927 of file lev_script.c.

Referenced by script_command_renew().

void script_command_free ( struct DK_SCRIPT_COMMAND cmd  ) 

Definition at line 4948 of file lev_script.c.

Referenced by execute_script_line().

short script_command_param_add ( struct DK_SCRIPT_COMMAND cmd,
char *  param 
)

Definition at line 4027 of file lev_script.c.

Referenced by decompose_script_command().

void script_command_renew ( struct DK_SCRIPT_COMMAND **  cmd  ) 

Definition at line 4961 of file lev_script.c.

Referenced by decompose_script().

short script_decomposed_to_params ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3705 of file lev_script.c.

Referenced by load_txt().

short script_decomposed_to_params_cmd ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3665 of file lev_script.c.

Referenced by script_decomposed_to_params().

short script_decomposed_to_params_cmd_avail ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3204 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_blockbody ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3182 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_condit ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3109 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_crtradj ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3557 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_custobj ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3372 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_party ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3193 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_setup ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3382 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_decomposed_to_params_cmd_triger ( struct DK_SCRIPT_PARAMETERS par,
struct DK_SCRIPT_COMMAND cmd,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3547 of file lev_script.c.

Referenced by script_decomposed_to_params_cmd().

short script_param_to_int ( int *  val,
const char *  param 
)

short script_param_to_ulong ( unsigned long *  val,
const char *  param 
)

Definition at line 531 of file lev_script.c.

Referenced by execute_adikted_command().

short script_params_to_decomposed ( struct DK_SCRIPT script,
const struct SCRIPT_OPTIONS optns 
)

Definition at line 3721 of file lev_script.c.

char* script_strword ( const char *  str,
const short  whole_rest 
)

Definition at line 3808 of file lev_script.c.

Referenced by decompose_script_command().

short script_strword_pos ( char const **  ptr,
unsigned int *  ptr_len,
const char *  str,
const short  whole_rest 
)

Definition at line 3728 of file lev_script.c.

Referenced by script_strword().

int setup_cmd_arrsize (  ) 

Definition at line 4741 of file lev_script.c.

int setup_cmd_index ( const char *  cmdtext  ) 

Definition at line 4746 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* setup_cmd_text ( int  cmdidx  ) 

Definition at line 4760 of file lev_script.c.

Referenced by script_cmd_text().

int special_cmd_arrsize (  ) 

Definition at line 4583 of file lev_script.c.

int special_cmd_index ( const char *  cmdtext  ) 

Definition at line 4588 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* special_cmd_text ( int  cmdidx,
const char *  cmdtext 
)

Definition at line 4599 of file lev_script.c.

Referenced by script_cmd_text().

int spell_cmd_arrsize (  ) 

Definition at line 4484 of file lev_script.c.

Referenced by level_clear_script_param(), and level_init().

const char* spell_cmd_fullname ( int  cmdidx  ) 

Definition at line 4510 of file lev_script.c.

int spell_cmd_index ( const char *  cmdtext  ) 

const char* spell_cmd_text ( int  cmdidx  ) 

Definition at line 4503 of file lev_script.c.

Referenced by script_cmd_text().

short string_is_decimal_number ( const char *  str,
const short  allow_sign 
)

void text_file_free ( char **  lines,
int  lines_count 
)

Definition at line 4977 of file lev_script.c.

Referenced by write_adi_script(), write_lif(), and write_nfo().

int text_file_line_add ( char ***  lines,
int *  lines_count,
char *  text 
)

Definition at line 4989 of file lev_script.c.

int text_file_linecp_add ( char ***  lines,
int *  lines_count,
char *  text 
)

int timer_cmd_arrsize (  ) 

Definition at line 4689 of file lev_script.c.

int timer_cmd_index ( const char *  cmdtext  ) 

const char* timer_cmd_text ( int  cmdidx  ) 

Definition at line 4708 of file lev_script.c.

Referenced by script_cmd_text().

int trap_cmd_arrsize (  ) 

Definition at line 4517 of file lev_script.c.

Referenced by level_clear_script_param(), and level_init().

const char* trap_cmd_fullname ( int  cmdidx  ) 

Definition at line 4543 of file lev_script.c.

int trap_cmd_index ( const char *  cmdtext  ) 

const char* trap_cmd_text ( int  cmdidx  ) 

Definition at line 4536 of file lev_script.c.

Referenced by script_cmd_text().

int triger_cmd_arrsize (  ) 

Definition at line 4767 of file lev_script.c.

int triger_cmd_index ( const char *  cmdtext  ) 

Definition at line 4772 of file lev_script.c.

Referenced by recognize_script_word_group_and_idx().

const char* triger_cmd_text ( int  cmdidx  ) 

Definition at line 4786 of file lev_script.c.

Referenced by script_cmd_text().

short txt_verify ( const struct LEVEL lvl,
char *  err_msg,
struct IPOINT_2D errpt 
)

Definition at line 2836 of file lev_script.c.

Referenced by level_verify().

int variabl_cmd_arrsize (  ) 

Definition at line 4663 of file lev_script.c.

int variabl_cmd_index ( const char *  cmdtext  ) 

const char* variabl_cmd_text ( int  cmdidx  ) 

Definition at line 4682 of file lev_script.c.

Referenced by script_cmd_text().


Variable Documentation

const char add_creatr_to_pool_cmdtext[] = "ADD_CREATURE_TO_POOL"

Definition at line 138 of file lev_script.c.

const char add_creatr_tolev_cmdtext[] = "ADD_CREATURE_TO_LEVEL"

Definition at line 63 of file lev_script.c.

const char add_party_tolev_cmdtext[] = "ADD_PARTY_TO_LEVEL"

Definition at line 62 of file lev_script.c.

const char add_to_party_cmdtext[] = "ADD_TO_PARTY"

Definition at line 61 of file lev_script.c.

const char add_tunneler_tolev_cmdtext[] = "ADD_TUNNELLER_TO_LEVEL"

Definition at line 60 of file lev_script.c.

const char add_tunneller_party_tolev_cmdtext[] = "ADD_TUNNELLER_PARTY_TO_LEVEL"

Definition at line 64 of file lev_script.c.

const char all_dngns_destroyed_cmdtext[] = "ALL_DUNGEONS_DESTROYED"

Definition at line 219 of file lev_script.c.

const char ally_players_cmdtext[] = "ALLY_PLAYERS"

Definition at line 104 of file lev_script.c.

const char battles_lost_cmdtext[] = "BATTLES_LOST"

Definition at line 230 of file lev_script.c.

const char battles_won_cmdtext[] = "BATTLES_WON"

Definition at line 229 of file lev_script.c.

const char bonus_lev_time_cmdtext[] = "BONUS_LEVEL_TIME"

Definition at line 89 of file lev_script.c.

const char break_in_cmdtext[] = "BREAK_IN"

Definition at line 238 of file lev_script.c.

const char* cmd_adikted_arr[]

const char* cmd_avail_arr[]

const char* cmd_commnt_arr[]

Initial value:

Definition at line 157 of file lev_script.c.

Referenced by commnt_cmd_arrsize(), commnt_cmd_index(), and commnt_cmd_text().

const char* cmd_comp_plyr_arr[]

const char* cmd_condit_arr[]

const char* cmd_creatures_arr[]

const char* cmd_crtradj_arr[]

const char* cmd_custobj_arr[]

const char* cmd_doors_arr[]

const char* cmd_doors_fullname[]

Initial value:

{
        "", "Wooden", "Braced",  
        "Iron", "Magic",
        }

Definition at line 323 of file lev_script.c.

Referenced by door_cmd_fullname().

const char* cmd_flag_arr[]

const char* cmd_font_arr[]

const char* cmd_font_fullnames[]

Initial value:

{
        "none","Classic","Size 8" }

Definition at line 511 of file lev_script.c.

Referenced by get_font_longname().

const char* cmd_objtype_arr[]

Initial value:

Definition at line 308 of file lev_script.c.

Referenced by objtype_cmd_arrsize(), objtype_cmd_index(), and objtype_cmd_text().

const char* cmd_obsolt_arr[]

Initial value:

Definition at line 164 of file lev_script.c.

Referenced by obsolt_cmd_arrsize(), obsolt_cmd_index(), and obsolt_cmd_text().

const char* cmd_operator_arr[]

const char* cmd_orient_arr[]

const char* cmd_orient_shortnames[]

Initial value:

{
        "NS","WE","SN","EW","TpNS","TpWE","TpSN","TpEW" }

Definition at line 508 of file lev_script.c.

Referenced by get_orientation_shortname().

const char* cmd_party_arr[]

const char* cmd_party_objectv_arr[]

const char* cmd_players_arr[]

const char* cmd_rooms_arr[]

const char* cmd_setup_arr[]

const char* cmd_spells_arr[]

const char* cmd_spells_fullname[]

Initial value:

{
        "", "Hand of Evil", "Create imp",  
        "Must obey", "Slap", "Evil Sight",
        "Call to arms", "Cave in", "Heal creature",
        "Hold audience", "Lightning", "Speed",
        "Protect", "Conceal", "Disease",
        "Chicken", "Destroy walls", "Possess",
        "Armageddon",
        }

Definition at line 376 of file lev_script.c.

Referenced by spell_cmd_fullname().

const char* cmd_timer_arr[]

const char* cmd_traps_arr[]

const char* cmd_traps_fullname[]

Initial value:

{
        "", "Boulder", "Alarm",  
        "Poison gas", "Lightning", "Word of Power",
        "Lava",
        }

Definition at line 341 of file lev_script.c.

Referenced by trap_cmd_fullname().

const char* cmd_triger_arr[]

const char* cmd_variabl_arr[]

const char comp_attack_magic_cmdtext[] = "COMPUTER_ATTACK_MAGIC"

Definition at line 275 of file lev_script.c.

const char comp_check_room_dug_cmdtext[] = "COMPUTER_CHECK_ROOM_DUG"

Definition at line 289 of file lev_script.c.

const char comp_dig_room_cmdtext[] = "COMPUTER_DIG_ROOM"

Definition at line 290 of file lev_script.c.

const char comp_dig_room_passage_cmdtext[] = "COMPUTER_DIG_ROOM_PASSAGE"

Definition at line 291 of file lev_script.c.

const char comp_dig_to_neutral_cmdtext[] = "COMPUTER_DIG_TO_NEUTRAL"

Definition at line 278 of file lev_script.c.

const char comp_dig_toattack_cmdtext[] = "COMPUTER_DIG_TO_ATTACK"

Definition at line 285 of file lev_script.c.

const char comp_dig_toentrnce_cmdtext[] = "COMPUTER_DIG_TO_ENTRANCE"

Definition at line 287 of file lev_script.c.

const char comp_dig_togold_cmdtext[] = "COMPUTER_DIG_TO_GOLD"

Definition at line 286 of file lev_script.c.

const char comp_magic_callarms_cmdtext[] = "COMPUTER_MAGIC_CALL_TO_ARMS"

Definition at line 284 of file lev_script.c.

const char comp_magic_speed_up_cmdtext[] = "COMPUTER_MAGIC_SPEED_UP"

Definition at line 277 of file lev_script.c.

const char comp_move_creatrs_todefens_cmdtext[] = "COMPUTER_MOVE_CREATURES_TO_DEFEND"

Definition at line 280 of file lev_script.c.

const char comp_move_creatrs_topos_cmdtext[] = "COMPUTER_MOVE_CREATURE_TO_POS"

Definition at line 281 of file lev_script.c.

const char comp_move_creatrs_toroom_cmdtext[] = "COMPUTER_MOVE_CREATURE_TO_ROOM"

Definition at line 282 of file lev_script.c.

const char comp_pickup_for_attack_cmdtext[] = "COMPUTER_PICKUP_FOR_ATTACK"

Definition at line 283 of file lev_script.c.

const char comp_place_room_cmdtext[] = "COMPUTER_PLACE_ROOM"

Definition at line 288 of file lev_script.c.

const char comp_player_cmdtext[] = "COMPUTER_PLAYER"

Definition at line 103 of file lev_script.c.

const char comp_sell_trapsdoors_cmdtext[] = "COMPUTER_SELL_TRAPS_AND_DOORS"

Definition at line 274 of file lev_script.c.

const char comp_slap_imps_cmdtext[] = "COMPUTER_SLAP_IMPS"

Definition at line 279 of file lev_script.c.

const char comp_wait_for_bridge_cmdtext[] = "COMPUTER_WAIT_FOR_BRIDGE"

Definition at line 276 of file lev_script.c.

const char create_party_cmdtext[] = "CREATE_PARTY"

Definition at line 59 of file lev_script.c.

const char create_text_cmdtext[] = "CREATE_TEXT"

Definition at line 163 of file lev_script.c.

const char creatr_archr_cmdtext[] = "ARCHER"

Definition at line 420 of file lev_script.c.

const char creatr_avail_cmdtext[] = "CREATURE_AVAILABLE"

Definition at line 74 of file lev_script.c.

const char creatr_avatar_cmdtext[] = "AVATAR"

Definition at line 424 of file lev_script.c.

const char creatr_barbarin_cmdtext[] = "BARBARIAN"

Definition at line 419 of file lev_script.c.

const char creatr_biledm_cmdtext[] = "BILE_DEMON"

Definition at line 408 of file lev_script.c.

const char creatr_bug_cmdtext[] = "BUG"

Definition at line 410 of file lev_script.c.

const char creatr_dkmist_cmdtext[] = "DARK_MISTRESS"

Definition at line 406 of file lev_script.c.

const char creatr_dmspawn_cmdtext[] = "DEMONSPAWN"

Definition at line 404 of file lev_script.c.

const char creatr_dragon_cmdtext[] = "DRAGON"

Definition at line 403 of file lev_script.c.

const char creatr_dwarfa_cmdtext[] = "DWARFA"

Definition at line 422 of file lev_script.c.

const char creatr_fairy_cmdtext[] = "FAIRY"

Definition at line 428 of file lev_script.c.

const char creatr_flspirit_cmdtext[] = "FLOATING_SPIRIT"

Definition at line 433 of file lev_script.c.

const char creatr_fly_cmdtext[] = "FLY"

Definition at line 405 of file lev_script.c.

const char creatr_ghost_cmdtext[] = "GHOST"

Definition at line 414 of file lev_script.c.

const char creatr_giant_cmdtext[] = "GIANT"

Definition at line 427 of file lev_script.c.

const char creatr_horny_cmdtext[] = "HORNY"

Definition at line 400 of file lev_script.c.

const char creatr_hound_cmdtext[] = "HELL_HOUND"

Definition at line 413 of file lev_script.c.

const char creatr_imp_cmdtext[] = "IMP"

Definition at line 409 of file lev_script.c.

const char creatr_knight_cmdtext[] = "KNIGHT"

Definition at line 423 of file lev_script.c.

const char creatr_monk_cmdtext[] = "MONK"

Definition at line 421 of file lev_script.c.

const char creatr_newa_cmdtext[] = "NEW_CREATURE_B"

Definition at line 431 of file lev_script.c.

const char creatr_newb_cmdtext[] = "NEW_CREATURE_A"

Definition at line 432 of file lev_script.c.

const char creatr_orc_cmdtext[] = "ORC"

Definition at line 416 of file lev_script.c.

const char creatr_samurai_cmdtext[] = "SAMURAI"

Definition at line 430 of file lev_script.c.

const char creatr_skeleton_cmdtext[] = "SKELETON"

Definition at line 401 of file lev_script.c.

const char creatr_sorcer_cmdtext[] = "SORCEROR"

Definition at line 407 of file lev_script.c.

const char creatr_spider_cmdtext[] = "SPIDER"

Definition at line 412 of file lev_script.c.

const char creatr_swap_cmdtext[] = "SWAP_CREATURE"

Definition at line 144 of file lev_script.c.

const char creatr_tentacl_cmdtext[] = "TENTACLE"

Definition at line 415 of file lev_script.c.

const char creatr_thief_cmdtext[] = "THIEF"

Definition at line 429 of file lev_script.c.

const char creatr_troll_cmdtext[] = "TROLL"

Definition at line 402 of file lev_script.c.

const char creatr_tunnelr_cmdtext[] = "TUNNELLER"

Definition at line 425 of file lev_script.c.

const char creatr_vampire_cmdtext[] = "VAMPIRE"

Definition at line 411 of file lev_script.c.

const char creatr_witch_cmdtext[] = "WITCH"

Definition at line 426 of file lev_script.c.

const char creatr_wizard_cmdtext[] = "WIZARD"

Definition at line 418 of file lev_script.c.

const char creatrs_annoyed_cmdtext[] = "CREATURES_ANNOYED"

Definition at line 231 of file lev_script.c.

const char crtrs_scavng_gained_cmdtext[] = "CREATURES_SCAVENGED_GAINED"

Definition at line 220 of file lev_script.c.

const char crtrs_scavng_lost_cmdtext[] = "CREATURES_SCAVENGED_LOST"

Definition at line 221 of file lev_script.c.

const char custom_column_cmdtext[] = "CUSTOM_COLUMN"

Definition at line 42 of file lev_script.c.

Referenced by add_custom_clms_to_script().

const char dead_creatures_ret_to_pool_cmdtext[] = "DEAD_CREATURES_RETURN_TO_POOL"

Definition at line 137 of file lev_script.c.

const char display_info_cmdtext[] = "DISPLAY_INFORMATION"

Definition at line 87 of file lev_script.c.

const char display_info_wpos_cmdtext[] = "DISPLAY_INFORMATION_WITH_POS"

Definition at line 88 of file lev_script.c.

const char display_objectv_cmdtext[] = "DISPLAY_OBJECTIVE"

Definition at line 85 of file lev_script.c.

const char display_objectv_wpos_cmdtext[] = "DISPLAY_OBJECTIVE_WITH_POS"

Definition at line 86 of file lev_script.c.

const char dngn_destroyed_cmdtext[] = "DUNGEON_DESTROYED"

Definition at line 224 of file lev_script.c.

const char door_avail_cmdtext[] = "DOOR_AVAILABLE"

Definition at line 77 of file lev_script.c.

const char door_braced_cmdtext[] = "BRACED"

Definition at line 315 of file lev_script.c.

const char door_magic_cmdtext[] = "MAGIC"

Definition at line 317 of file lev_script.c.

const char door_steel_cmdtext[] = "STEEL"

Definition at line 314 of file lev_script.c.

const char door_wood_cmdtext[] = "WOOD"

Definition at line 316 of file lev_script.c.

const char doors_destroyed_cmdtext[] = "DOORS_DESTROYED"

Definition at line 222 of file lev_script.c.

const char emptyln_cmdtext[] = ""

Definition at line 156 of file lev_script.c.

const char endif_cmdtext[] = "ENDIF"

Definition at line 34 of file lev_script.c.

const char flag0_cmdtext[] = "FLAG0"

Definition at line 173 of file lev_script.c.

const char flag1_cmdtext[] = "FLAG1"

Definition at line 174 of file lev_script.c.

const char flag2_cmdtext[] = "FLAG2"

Definition at line 175 of file lev_script.c.

const char flag3_cmdtext[] = "FLAG3"

Definition at line 176 of file lev_script.c.

const char flag4_cmdtext[] = "FLAG4"

Definition at line 177 of file lev_script.c.

const char flag5_cmdtext[] = "FLAG5"

Definition at line 178 of file lev_script.c.

const char flag6_cmdtext[] = "FLAG6"

Definition at line 179 of file lev_script.c.

const char flag7_cmdtext[] = "FLAG7"

Definition at line 180 of file lev_script.c.

const char font_adiclssc_cmdtext[] = "FONT_ADICLSSC"

Definition at line 501 of file lev_script.c.

const char font_adisize8_cmdtext[] = "FONT_ADISIZE8"

Definition at line 502 of file lev_script.c.

const char font_none_cmdtext[] = "FONT_NONE"

Definition at line 500 of file lev_script.c.

const char game_lose_cmdtext[] = "LOSE_GAME"

Definition at line 126 of file lev_script.c.

const char game_turn_cmdtext[] = "GAME_TURN"

Definition at line 239 of file lev_script.c.

const char game_win_cmdtext[] = "WIN_GAME"

Definition at line 127 of file lev_script.c.

const char gold_pots_stolen_cmdtext[] = "GOLD_POTS_STOLEN"

Definition at line 225 of file lev_script.c.

const char graffiti_cmdtext[] = "GRAFFITI"

Definition at line 43 of file lev_script.c.

Referenced by add_graffiti_to_script().

const char if_actnpt_cmdtext[] = "IF_ACTION_POINT"

Definition at line 33 of file lev_script.c.

const char if_available_cmdtext[] = "IF_AVAILABLE"

Definition at line 32 of file lev_script.c.

const char if_cmdtext[] = "IF"

Definition at line 31 of file lev_script.c.

const char levauthors_cmdtext[] = "LEVEL_AUTHORS"

Definition at line 49 of file lev_script.c.

const char levdesc_cmdtext[] = "LEVEL_DESCRIPTION"

Definition at line 48 of file lev_script.c.

const char leveltimestmp_cmdtext[] = "LEVEL_TIMESTAMP"

Definition at line 44 of file lev_script.c.

Referenced by add_stats_to_script().

const char levname_cmdtext[] = "LEVEL_NAME"

Definition at line 47 of file lev_script.c.

const char levversion_cmdtext[] = "LEVEL_VERSION"

Definition at line 46 of file lev_script.c.

Referenced by add_stats_to_script().

const char magic_avail_cmdtext[] = "MAGIC_AVAILABLE"

Definition at line 75 of file lev_script.c.

const char max_creatures_cmdtext[] = "MAX_CREATURES"

Definition at line 111 of file lev_script.c.

const char money_cmdtext[] = "MONEY"

Definition at line 240 of file lev_script.c.

const char next_cmd_reusable_cmdtext[] = "NEXT_COMMAND_REUSABLE"

Definition at line 123 of file lev_script.c.

const char obj_creature_cmdtext[] = "CREATURE"

Definition at line 305 of file lev_script.c.

const char obj_magic_cmdtext[] = "MAGIC"

Definition at line 304 of file lev_script.c.

const char obj_room_cmdtext[] = "ROOM"

Definition at line 303 of file lev_script.c.

const char objctv_actnpt_cmdtext[] = "ACTION_POINT"

Definition at line 264 of file lev_script.c.

const char objctv_approp_dung_cmdtext[] = "APPROPIATE_DUNGEON"

Definition at line 261 of file lev_script.c.

const char objctv_attack_dnheart_cmdtext[] = "ATTACK_DUNGEON_HEART"

Definition at line 256 of file lev_script.c.

const char objctv_attack_rooms_cmdtext[] = "ATTACK_ROOMS"

Definition at line 255 of file lev_script.c.

const char objctv_defend_party_cmdtext[] = "DEFEND_PARTY"

Definition at line 254 of file lev_script.c.

const char objctv_dnheart_cmdtext[] = "DUNGEON_HEART"

Definition at line 262 of file lev_script.c.

const char objctv_dungeon_cmdtext[] = "DUNGEON"

Definition at line 263 of file lev_script.c.

const char objctv_enemies_cmdtext[] = "ATTACK_ENEMIES"

Definition at line 257 of file lev_script.c.

const char objctv_steal_gold_cmdtext[] = "STEAL_GOLD"

Definition at line 259 of file lev_script.c.

const char objctv_steal_spells_cmdtext[] = "STEAL_SPELLS"

Definition at line 258 of file lev_script.c.

Initial value:

{
        "None", "Rsch", "Got",}

Definition at line 514 of file lev_script.c.

const char oper_equ_cmdtext[] = "=="

Definition at line 205 of file lev_script.c.

const char oper_grtr_cmdtext[] = ">"

Definition at line 208 of file lev_script.c.

const char oper_grtreq_cmdtext[] = ">="

Definition at line 210 of file lev_script.c.

const char oper_less_cmdtext[] = "<"

Definition at line 207 of file lev_script.c.

const char oper_lesseq_cmdtext[] = "<="

Definition at line 209 of file lev_script.c.

const char oper_neq_cmdtext[] = "!="

Definition at line 206 of file lev_script.c.

const short orient_constants[]

const char orient_ew_cmdtext[] = "ORIENT_EW"

Definition at line 482 of file lev_script.c.

const char orient_ns_cmdtext[] = "ORIENT_NS"

Definition at line 479 of file lev_script.c.

const char orient_sn_cmdtext[] = "ORIENT_SN"

Definition at line 481 of file lev_script.c.

const char orient_tpew_cmdtext[] = "ORIENT_TOPEW"

Definition at line 486 of file lev_script.c.

const char orient_tpns_cmdtext[] = "ORIENT_TOPNS"

Definition at line 483 of file lev_script.c.

const char orient_tpsn_cmdtext[] = "ORIENT_TOPSN"

Definition at line 485 of file lev_script.c.

const char orient_tpwe_cmdtext[] = "ORIENT_TOPWE"

Definition at line 484 of file lev_script.c.

const char orient_we_cmdtext[] = "ORIENT_WE"

Definition at line 480 of file lev_script.c.

const char player0_cmdtext[] = "PLAYER0"

Definition at line 392 of file lev_script.c.

const char player1_cmdtext[] = "PLAYER1"

Definition at line 391 of file lev_script.c.

const char player2_cmdtext[] = "PLAYER2"

Definition at line 390 of file lev_script.c.

const char player3_cmdtext[] = "PLAYER3"

Definition at line 389 of file lev_script.c.

const char player_all_cmdtext[] = "ALL_PLAYERS"

Definition at line 387 of file lev_script.c.

const char player_good_cmdtext[] = "PLAYER_GOOD"

Definition at line 388 of file lev_script.c.

const char print_cmdtext[] = "PRINT"

Definition at line 162 of file lev_script.c.

const char quick_info_cmdtext[] = "QUICK_INFORMATION"

Definition at line 92 of file lev_script.c.

const char quick_objectv_cmdtext[] = "QUICK_OBJECTIVE"

Definition at line 91 of file lev_script.c.

const char random_cmdtext[] = "RANDOM"

Definition at line 169 of file lev_script.c.

Referenced by special_cmd_index(), and special_cmd_text().

const char rem_cmdtext[] = "REM"

const char reset_actnpt_cmdtext[] = "RESET_ACTION_POINT"

Definition at line 122 of file lev_script.c.

const char resrch_cmdtext[] = "RESEARCH"

Definition at line 106 of file lev_script.c.

const char room_avail_cmdtext[] = "ROOM_AVAILABLE"

Definition at line 73 of file lev_script.c.

const char room_barracks_cmdtext[] = "BARRACKS"

Definition at line 455 of file lev_script.c.

const char room_brige_cmdtext[] = "BRIDGE"

Definition at line 452 of file lev_script.c.

const char room_entrance_cmdtext[] = "ENTRANCE"

Definition at line 467 of file lev_script.c.

const char room_graveyrd_cmdtext[] = "GRAVEYARD"

Definition at line 456 of file lev_script.c.

const char room_grdpost_cmdtext[] = "GUARD_POST"

Definition at line 451 of file lev_script.c.

const char room_hatchery_cmdtext[] = "GARDEN"

Definition at line 454 of file lev_script.c.

const char room_lair_cmdtext[] = "LAIR"

Definition at line 453 of file lev_script.c.

const char room_library_cmdtext[] = "RESEARCH"

Definition at line 465 of file lev_script.c.

const char room_prison_cmdtext[] = "PRISON"

Definition at line 462 of file lev_script.c.

const char room_scavng_cmdtext[] = "SCAVENGER"

Definition at line 458 of file lev_script.c.

const char room_temple_cmdtext[] = "TEMPLE"

Definition at line 457 of file lev_script.c.

const char room_torture_cmdtext[] = "TORTURE"

Definition at line 461 of file lev_script.c.

const char room_training_cmdtext[] = "TRAINING"

Definition at line 460 of file lev_script.c.

const char room_treasure_cmdtext[] = "TREASURE"

Definition at line 466 of file lev_script.c.

const char room_workshp_cmdtext[] = "WORKSHOP"

Definition at line 459 of file lev_script.c.

const char rooms_destroyed_cmdtext[] = "ROOMS_DESTROYED"

Definition at line 228 of file lev_script.c.

const char set_computer_checks_cmdtext[] = "SET_COMPUTER_CHECKS"

Definition at line 108 of file lev_script.c.

const char set_computer_event_cmdtext[] = "SET_COMPUTER_EVENT"

Definition at line 109 of file lev_script.c.

const char set_computer_globals_cmdtext[] = "SET_COMPUTER_GLOBALS"

Definition at line 107 of file lev_script.c.

const char set_computer_process_cmdtext[] = "SET_COMPUTER_PROCESS"

Definition at line 110 of file lev_script.c.

const char set_creatr_armour_cmdtext[] = "SET_CREATURE_ARMOUR"

Definition at line 140 of file lev_script.c.

const char set_creatr_fear_cmdtext[] = "SET_CREATURE_FEAR"

Definition at line 139 of file lev_script.c.

const char set_creatr_health_cmdtext[] = "SET_CREATURE_HEALTH"

Definition at line 141 of file lev_script.c.

const char set_creatr_max_level_cmdtext[] = "SET_CREATURE_MAX_LEVEL"

Definition at line 143 of file lev_script.c.

const char set_creatr_strength_cmdtext[] = "SET_CREATURE_STRENGTH"

Definition at line 142 of file lev_script.c.

const char set_flag_cmdtext[] = "SET_FLAG"

Definition at line 124 of file lev_script.c.

const char set_gen_speed_cmdtext[] = "SET_GENERATE_SPEED"

Definition at line 101 of file lev_script.c.

const char set_hate_cmdtext[] = "SET_HATE"

Definition at line 105 of file lev_script.c.

const char set_music_cmdtext[] = "SET_MUSIC"

Definition at line 128 of file lev_script.c.

const char set_timer_cmdtext[] = "SET_TIMER"

Definition at line 125 of file lev_script.c.

const char spell_armag_cmdtext[] = "POWER_ARMAGEDDON"

Definition at line 348 of file lev_script.c.

const char spell_callarms_cmdtext[] = "POWER_CALL_TO_ARMS"

Definition at line 360 of file lev_script.c.

const char spell_cavein_cmdtext[] = "POWER_CAVE_IN"

Definition at line 359 of file lev_script.c.

const char spell_chickn_cmdtext[] = "POWER_CHICKEN"

Definition at line 351 of file lev_script.c.

const char spell_conceal_cmdtext[] = "POWER_CONCEAL"

Definition at line 353 of file lev_script.c.

const char spell_destrwalls_cmdtext[] = "POWER_DESTROY_WALLS"

Definition at line 350 of file lev_script.c.

const char spell_disease_cmdtext[] = "POWER_DISEASE"

Definition at line 352 of file lev_script.c.

const char spell_hand_cmdtext[] = "POWER_HAND"

Definition at line 365 of file lev_script.c.

const char spell_healcrtr_cmdtext[] = "POWER_HEAL_CREATURE"

Definition at line 358 of file lev_script.c.

const char spell_holdaud_cmdtext[] = "POWER_HOLD_AUDIENCE"

Definition at line 357 of file lev_script.c.

const char spell_imp_cmdtext[] = "POWER_IMP"

Definition at line 364 of file lev_script.c.

const char spell_lightng_cmdtext[] = "POWER_LIGHTNING"

Definition at line 356 of file lev_script.c.

const char spell_obey_cmdtext[] = "POWER_OBEY"

Definition at line 363 of file lev_script.c.

const char spell_possess_cmdtext[] = "POWER_POSSESS"

Definition at line 349 of file lev_script.c.

const char spell_protect_cmdtext[] = "POWER_PROTECT"

Definition at line 354 of file lev_script.c.

const char spell_sight_cmdtext[] = "POWER_SIGHT"

Definition at line 361 of file lev_script.c.

const char spell_slap_cmdtext[] = "POWER_SLAP"

Definition at line 362 of file lev_script.c.

const char spell_speed_cmdtext[] = "POWER_SPEED"

Definition at line 355 of file lev_script.c.

const char spells_stolen_cmdtext[] = "SPELLS_STOLEN"

Definition at line 227 of file lev_script.c.

const char start_money_cmdtext[] = "START_MONEY"

Definition at line 102 of file lev_script.c.

const char timer0_cmdtext[] = "TIMER0"

Definition at line 189 of file lev_script.c.

const char timer1_cmdtext[] = "TIMER1"

Definition at line 190 of file lev_script.c.

const char timer2_cmdtext[] = "TIMER2"

Definition at line 191 of file lev_script.c.

const char timer3_cmdtext[] = "TIMER3"

Definition at line 192 of file lev_script.c.

const char timer4_cmdtext[] = "TIMER4"

Definition at line 193 of file lev_script.c.

const char timer5_cmdtext[] = "TIMER5"

Definition at line 194 of file lev_script.c.

const char timer6_cmdtext[] = "TIMER6"

Definition at line 195 of file lev_script.c.

const char timer7_cmdtext[] = "TIMER7"

Definition at line 196 of file lev_script.c.

const char times_broken_into_cmdtext[] = "TIMES_BROKEN_INTO"

Definition at line 226 of file lev_script.c.

const char total_area_cmdtext[] = "TOTAL_AREA"

Definition at line 233 of file lev_script.c.

const char total_creatrs_cmdtext[] = "TOTAL_CREATURES"

Definition at line 236 of file lev_script.c.

const char total_creatrs_left_cmdtext[] = "TOTAL_CREATURES_LEFT"

Definition at line 232 of file lev_script.c.

const char total_doors_cmdtext[] = "TOTAL_DOORS"

Definition at line 234 of file lev_script.c.

const char total_gold_mined_cmdtext[] = "TOTAL_GOLD_MINED"

Definition at line 223 of file lev_script.c.

const char total_imps_cmdtext[] = "TOTAL_IMPS"

Definition at line 237 of file lev_script.c.

const char total_research_cmdtext[] = "TOTAL_RESEARCH"

Definition at line 235 of file lev_script.c.

const char trap_alarm_cmdtext[] = "ALARM"

Definition at line 330 of file lev_script.c.

const char trap_avail_cmdtext[] = "TRAP_AVAILABLE"

Definition at line 76 of file lev_script.c.

const char trap_boulder_cmdtext[] = "BOULDER"

Definition at line 329 of file lev_script.c.

const char trap_gas_cmdtext[] = "POISON_GAS"

Definition at line 331 of file lev_script.c.

const char trap_lava_cmdtext[] = "LAVA"

Definition at line 334 of file lev_script.c.

const char trap_lightng_cmdtext[] = "LIGHTNING"

Definition at line 332 of file lev_script.c.

const char trap_wordpwr_cmdtext[] = "WORD_OF_POWER"

Definition at line 333 of file lev_script.c.

const char tutorial_flash_btn_cmdtext[] = "TUTORIAL_FLASH_BUTTON"

Definition at line 90 of file lev_script.c.

const char usrcmnds_count_cmdtext[] = "USER_COMMANDS_COUNT"

Definition at line 45 of file lev_script.c.

Referenced by add_stats_to_script().


Generated on Tue Sep 2 18:51:50 2008 for libAdikted by  doxygen 1.5.6