mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Added reg_anim_animate_and_move script function (closes #497)
This commit is contained in:
@@ -777,7 +777,9 @@
|
||||
opcode: 0x825a
|
||||
- name: reg_anim_animate_and_hide
|
||||
detail: void reg_anim_animate_and_hide(ObjectPtr, int animID, int delay)
|
||||
doc: Exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
|
||||
doc: |
|
||||
Works exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
|
||||
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
|
||||
opcode: 0x825b
|
||||
- name: reg_anim_light
|
||||
detail: void reg_anim_light(ObjectPtr, int light, int delay)
|
||||
@@ -799,6 +801,12 @@
|
||||
detail: void reg_anim_callback(procedure proc)
|
||||
doc: Adds the given procedure to an animation sequence-list and executes it in the registered sequence.
|
||||
opcode: 0x827e
|
||||
- name: reg_anim_animate_and_move
|
||||
detail: void reg_anim_animate_and_move(ObjectPtr, int tile, int animID, int delay)
|
||||
doc: |
|
||||
Plays the specified animation while simultaneously moving the object to the given tile.
|
||||
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
|
||||
macro: sfall.h
|
||||
|
||||
- name: Art and appearance
|
||||
items:
|
||||
|
||||
@@ -364,6 +364,7 @@
|
||||
#define overlay_clear_rectangle(winType, x, y, w, h) sfall_func6("interface_overlay", winType, 2, x, y, w, h)
|
||||
#define overlay_destroy(winType) sfall_func2("interface_overlay", winType, 0)
|
||||
#define real_dude_obj sfall_func0("real_dude_obj")
|
||||
#define reg_anim_animate_and_move(obj, tile, animID, delay) sfall_func4("reg_anim_animate_and_move", obj, tile, animID, delay)
|
||||
#define remove_all_timer_events sfall_func0("remove_timer_event")
|
||||
#define remove_timer_event(fixedParam) sfall_func1("remove_timer_event", fixedParam)
|
||||
#define set_can_rest_on_map(map, elev, value) sfall_func3("set_can_rest_on_map", map, elev, value)
|
||||
|
||||
@@ -254,7 +254,8 @@ FUNCTION REFERENCE
|
||||
|
||||
-----
|
||||
##### `void reg_anim_animate_and_hide(object obj, int animID, int delay)`
|
||||
- Exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
|
||||
- Works exactly like `reg_anim_animate` but the object will automatically disappear after the last animation frame (but not destroyed).
|
||||
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends.
|
||||
|
||||
-----
|
||||
##### `void reg_anim_light(object obj, int light, int delay)`
|
||||
@@ -1127,6 +1128,12 @@ sfall_funcX metarule functions
|
||||
**Optional argument:**
|
||||
- `pos`: the position at which to start the search. If negative, it indicates a position starting from the end of the string
|
||||
|
||||
----
|
||||
#### reg_anim_animate_and_move
|
||||
`void sfall_func4("reg_anim_animate_and_move", object obj, int tile, int animID, int delay)`
|
||||
- Plays the specified animation while simultaneously moving the object to the given tile
|
||||
- `delay`: delay from the previous animation. A value of -1 will execute the specified animation immediately after the previous one in the sequence ends
|
||||
|
||||
|
||||
****
|
||||
_See other documentation files (arrays.md, hookscripts.md) for related functions reference._
|
||||
|
||||
@@ -55,6 +55,7 @@ WRAP_WATCOM_FFUNC3(long, obj_new_sid_inst, fo::GameObject*, object, long, sType,
|
||||
WRAP_WATCOM_FFUNC3(fo::GameObject*, object_under_mouse, long, crSwitch, long, inclDude, long, elevation)
|
||||
WRAP_WATCOM_FFUNC4(void, qsort, void*, base, long, number, long, elSize, DWORD, comp)
|
||||
WRAP_WATCOM_FFUNC4(long, queue_add, long, time, fo::GameObject*, object, void*, data, long, qType)
|
||||
WRAP_WATCOM_FFUNC5(long, register_object_animate_and_move_straight, fo::GameObject*, object, long, tile, long, elevation, long, anim, long, delay)
|
||||
WRAP_WATCOM_FFUNC4(void, register_object_call, long*, target, long*, source, void*, func, long, delay)
|
||||
WRAP_WATCOM_FFUNC4(long, register_object_move_to_object, fo::GameObject*, source, fo::GameObject*, target, long, distance, long, delay)
|
||||
WRAP_WATCOM_FFUNC4(long, register_object_run_to_object, fo::GameObject*, source, fo::GameObject*, target, long, distance, long, delay)
|
||||
|
||||
@@ -64,7 +64,7 @@ void op_reg_anim_animate_and_hide(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int animId = ctx.arg(1).rawValue(),
|
||||
delay = ctx.arg(2).rawValue();
|
||||
delay = ctx.arg(2).rawValue();
|
||||
|
||||
fo::func::register_object_animate_and_hide(obj, animId, delay);
|
||||
}
|
||||
@@ -74,7 +74,7 @@ void op_reg_anim_light(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int radius = ctx.arg(1).rawValue(),
|
||||
delay = ctx.arg(2).rawValue();
|
||||
delay = ctx.arg(2).rawValue();
|
||||
|
||||
if (radius < 0) {
|
||||
radius = 0;
|
||||
@@ -89,7 +89,7 @@ void op_reg_anim_change_fid(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int fid = ctx.arg(1).rawValue(),
|
||||
delay = ctx.arg(2).rawValue();
|
||||
delay = ctx.arg(2).rawValue();
|
||||
|
||||
fo::func::register_object_change_fid(obj, fid, delay);
|
||||
}
|
||||
@@ -99,7 +99,7 @@ void op_reg_anim_take_out(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int holdFrame = ctx.arg(1).rawValue(),
|
||||
nothing = ctx.arg(2).rawValue(); // not used by engine
|
||||
nothing = ctx.arg(2).rawValue(); // not used by engine
|
||||
|
||||
fo::func::register_object_take_out(obj, holdFrame, nothing);
|
||||
}
|
||||
@@ -109,7 +109,7 @@ void op_reg_anim_turn_towards(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int tile = ctx.arg(1).rawValue(),
|
||||
nothing = ctx.arg(2).rawValue();
|
||||
nothing = ctx.arg(2).rawValue();
|
||||
|
||||
fo::func::register_object_turn_towards(obj, tile, nothing);
|
||||
}
|
||||
@@ -131,6 +131,17 @@ void op_reg_anim_callback(OpcodeContext& ctx) {
|
||||
);
|
||||
}
|
||||
|
||||
void mf_reg_anim_animate_and_move(OpcodeContext& ctx) {
|
||||
if (!checkCombatMode()) {
|
||||
auto obj = ctx.arg(0).object();
|
||||
int tile = ctx.arg(1).rawValue(),
|
||||
animId = ctx.arg(2).rawValue(),
|
||||
delay = ctx.arg(3).rawValue();
|
||||
|
||||
fo::func::register_object_animate_and_move_straight(obj, tile, obj->elevation, animId, delay);
|
||||
}
|
||||
}
|
||||
|
||||
void op_explosions_metarule(OpcodeContext& ctx) {
|
||||
int mode = ctx.arg(0).rawValue(),
|
||||
result = ExplosionsMetaruleFunc(mode, ctx.arg(1).rawValue(), ctx.arg(2).rawValue());
|
||||
|
||||
@@ -40,6 +40,8 @@ void op_reg_anim_take_out(OpcodeContext&);
|
||||
void op_reg_anim_turn_towards(OpcodeContext&);
|
||||
void op_reg_anim_callback(OpcodeContext&);
|
||||
|
||||
void mf_reg_anim_animate_and_move(OpcodeContext&);
|
||||
|
||||
void op_explosions_metarule(OpcodeContext&);
|
||||
|
||||
void op_art_exists(OpcodeContext&);
|
||||
|
||||
@@ -70,106 +70,107 @@ static MetaruleTableType metaruleTable;
|
||||
- arg1, arg2, ... - argument types for automatic validation
|
||||
*/
|
||||
static const SfallMetarule metarules[] = {
|
||||
{"add_extra_msg_file", mf_add_extra_msg_file, 1, 2, -1, {ARG_STRING, ARG_INT}},
|
||||
{"add_iface_tag", mf_add_iface_tag, 0, 0},
|
||||
{"add_g_timer_event", mf_add_g_timer_event, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"add_trait", mf_add_trait, 1, 1, -1, {ARG_INT}},
|
||||
{"art_cache_clear", mf_art_cache_flush, 0, 0},
|
||||
{"attack_is_aimed", mf_attack_is_aimed, 0, 0},
|
||||
{"car_gas_amount", mf_car_gas_amount, 0, 0},
|
||||
{"combat_data", mf_combat_data, 0, 0},
|
||||
{"create_win", mf_create_win, 5, 6, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"critter_inven_obj2", mf_critter_inven_obj2, 2, 2, 0, {ARG_OBJECT, ARG_INT}},
|
||||
{"dialog_message", mf_dialog_message, 1, 1, -1, {ARG_STRING}},
|
||||
{"dialog_obj", mf_get_dialog_object, 0, 0},
|
||||
{"display_stats", mf_display_stats, 0, 0}, // refresh
|
||||
{"draw_image", mf_draw_image, 1, 5, -1, {ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"draw_image_scaled", mf_draw_image_scaled, 1, 6, -1, {ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"exec_map_update_scripts", mf_exec_map_update_scripts, 0, 0},
|
||||
{"floor2", mf_floor2, 1, 1, 0, {ARG_NUMBER}},
|
||||
{"get_can_rest_on_map", mf_get_rest_on_map, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"get_combat_free_move", mf_get_combat_free_move, 0, 0},
|
||||
{"get_current_inven_size", mf_get_current_inven_size, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_cursor_mode", mf_get_cursor_mode, 0, 0},
|
||||
{"get_flags", mf_get_flags, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_ini_config", mf_get_ini_config, 2, 2, 0, {ARG_STRING, ARG_INT}},
|
||||
{"get_ini_section", mf_get_ini_section, 2, 2, -1, {ARG_STRING, ARG_STRING}},
|
||||
{"get_ini_sections", mf_get_ini_sections, 1, 1, -1, {ARG_STRING}},
|
||||
{"get_inven_ap_cost", mf_get_inven_ap_cost, 0, 0},
|
||||
{"get_map_enter_position", mf_get_map_enter_position, 0, 0},
|
||||
{"get_metarule_table", mf_get_metarule_table, 0, 0},
|
||||
{"get_object_ai_data", mf_get_object_ai_data, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_object_data", mf_get_object_data, 2, 2, 0, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_outline", mf_get_outline, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_sfall_arg_at", mf_get_sfall_arg_at, 1, 1, 0, {ARG_INT}},
|
||||
{"get_stat_max", mf_get_stat_max, 1, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"get_stat_min", mf_get_stat_min, 1, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"get_string_pointer", mf_get_string_pointer, 1, 1, 0, {ARG_STRING}},
|
||||
{"get_terrain_name", mf_get_terrain_name, 0, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"get_text_width", mf_get_text_width, 1, 1, 0, {ARG_STRING}},
|
||||
{"get_window_attribute", mf_get_window_attribute, 1, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"has_fake_perk_npc", mf_has_fake_perk_npc, 2, 2, 0, {ARG_OBJECT, ARG_STRING}},
|
||||
{"has_fake_trait_npc", mf_has_fake_trait_npc, 2, 2, 0, {ARG_OBJECT, ARG_STRING}},
|
||||
{"hide_window", mf_hide_window, 0, 1, -1, {ARG_STRING}},
|
||||
{"interface_art_draw", mf_interface_art_draw, 4, 6, -1, {ARG_INT, ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"interface_overlay", mf_interface_overlay, 2, 6, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"interface_print", mf_interface_print, 5, 6, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"intface_hide", mf_intface_hide, 0, 0},
|
||||
{"intface_is_hidden", mf_intface_is_hidden, 0, 0},
|
||||
{"intface_redraw", mf_intface_redraw, 0, 1},
|
||||
{"intface_show", mf_intface_show, 0, 0},
|
||||
{"inventory_redraw", mf_inventory_redraw, 0, 1, -1, {ARG_INT}},
|
||||
{"item_make_explosive", mf_item_make_explosive, 3, 4, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"item_weight", mf_item_weight, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"lock_is_jammed", mf_lock_is_jammed, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"loot_obj", mf_get_loot_object, 0, 0},
|
||||
{"message_box", mf_message_box, 1, 4, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"metarule_exist", mf_metarule_exist, 1, 1}, // no arg check
|
||||
{"npc_engine_level_up", mf_npc_engine_level_up, 1, 1},
|
||||
{"obj_is_openable", mf_obj_is_openable, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"obj_under_cursor", mf_obj_under_cursor, 2, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"objects_in_radius", mf_objects_in_radius, 3, 4, 0, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"outlined_object", mf_outlined_object, 0, 0},
|
||||
{"real_dude_obj", mf_real_dude_obj, 0, 0},
|
||||
{"remove_timer_event", mf_remove_timer_event, 0, 1, -1, {ARG_INT}},
|
||||
{"set_spray_settings", mf_set_spray_settings, 4, 4, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_can_rest_on_map", mf_set_rest_on_map, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_car_intface_art", mf_set_car_intface_art, 1, 1, -1, {ARG_INT}},
|
||||
{"set_combat_free_move", mf_set_combat_free_move, 1, 1, -1, {ARG_INT}},
|
||||
{"set_cursor_mode", mf_set_cursor_mode, 1, 1, -1, {ARG_INT}},
|
||||
{"set_drugs_data", mf_set_drugs_data, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_dude_obj", mf_set_dude_obj, 1, 1, -1, {ARG_INT}},
|
||||
{"set_fake_perk_npc", mf_set_fake_perk_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_fake_trait_npc", mf_set_fake_trait_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_flags", mf_set_flags, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_iface_tag_text", mf_set_iface_tag_text, 3, 3, -1, {ARG_INT, ARG_STRING, ARG_INT}},
|
||||
{"set_ini_setting", mf_set_ini_setting, 2, 2, -1, {ARG_STRING, ARG_INTSTR}},
|
||||
{"set_map_enter_position", mf_set_map_enter_position, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_object_data", mf_set_object_data, 3, 3, -1, {ARG_OBJECT, ARG_INT, ARG_INT}},
|
||||
{"set_outline", mf_set_outline, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_quest_failure_value", mf_set_quest_failure_value, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"set_rest_heal_time", mf_set_rest_heal_time, 1, 1, -1, {ARG_INT}},
|
||||
{"set_rest_mode", mf_set_rest_mode, 1, 1, -1, {ARG_INT}},
|
||||
{"set_scr_name", mf_set_scr_name, 0, 1, -1, {ARG_STRING}},
|
||||
{"set_selectable_perk_npc", mf_set_selectable_perk_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_terrain_name", mf_set_terrain_name, 3, 3, -1, {ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_town_title", mf_set_town_title, 2, 2, -1, {ARG_INT, ARG_STRING}},
|
||||
{"set_unique_id", mf_set_unique_id, 1, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_unjam_locks_time", mf_set_unjam_locks_time, 1, 1, -1, {ARG_INT}},
|
||||
{"set_window_flag", mf_set_window_flag, 3, 3, -1, {ARG_INTSTR, ARG_INT, ARG_INT}},
|
||||
{"show_window", mf_show_window, 0, 1, -1, {ARG_STRING}},
|
||||
{"spatial_radius", mf_spatial_radius, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"string_compare", mf_string_compare, 2, 3, 0, {ARG_STRING, ARG_STRING, ARG_INT}},
|
||||
{"string_find", mf_string_find, 2, 3, -1, {ARG_STRING, ARG_STRING, ARG_INT}},
|
||||
{"string_format", mf_string_format, 2, 8, 0, {ARG_STRING, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY}},
|
||||
{"string_to_case", mf_string_to_case, 2, 2, -1, {ARG_STRING, ARG_INT}},
|
||||
{"tile_by_position", mf_tile_by_position, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"tile_refresh_display", mf_tile_refresh_display, 0, 0},
|
||||
{"unjam_lock", mf_unjam_lock, 1, 1, -1, {ARG_OBJECT}},
|
||||
{"unwield_slot", mf_unwield_slot, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"win_fill_color", mf_win_fill_color, 0, 5, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"add_extra_msg_file", mf_add_extra_msg_file, 1, 2, -1, {ARG_STRING, ARG_INT}},
|
||||
{"add_iface_tag", mf_add_iface_tag, 0, 0},
|
||||
{"add_g_timer_event", mf_add_g_timer_event, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"add_trait", mf_add_trait, 1, 1, -1, {ARG_INT}},
|
||||
{"art_cache_clear", mf_art_cache_flush, 0, 0},
|
||||
{"attack_is_aimed", mf_attack_is_aimed, 0, 0},
|
||||
{"car_gas_amount", mf_car_gas_amount, 0, 0},
|
||||
{"combat_data", mf_combat_data, 0, 0},
|
||||
{"create_win", mf_create_win, 5, 6, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"critter_inven_obj2", mf_critter_inven_obj2, 2, 2, 0, {ARG_OBJECT, ARG_INT}},
|
||||
{"dialog_message", mf_dialog_message, 1, 1, -1, {ARG_STRING}},
|
||||
{"dialog_obj", mf_get_dialog_object, 0, 0},
|
||||
{"display_stats", mf_display_stats, 0, 0}, // refresh
|
||||
{"draw_image", mf_draw_image, 1, 5, -1, {ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"draw_image_scaled", mf_draw_image_scaled, 1, 6, -1, {ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"exec_map_update_scripts", mf_exec_map_update_scripts, 0, 0},
|
||||
{"floor2", mf_floor2, 1, 1, 0, {ARG_NUMBER}},
|
||||
{"get_can_rest_on_map", mf_get_rest_on_map, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"get_combat_free_move", mf_get_combat_free_move, 0, 0},
|
||||
{"get_current_inven_size", mf_get_current_inven_size, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_cursor_mode", mf_get_cursor_mode, 0, 0},
|
||||
{"get_flags", mf_get_flags, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_ini_config", mf_get_ini_config, 2, 2, 0, {ARG_STRING, ARG_INT}},
|
||||
{"get_ini_section", mf_get_ini_section, 2, 2, -1, {ARG_STRING, ARG_STRING}},
|
||||
{"get_ini_sections", mf_get_ini_sections, 1, 1, -1, {ARG_STRING}},
|
||||
{"get_inven_ap_cost", mf_get_inven_ap_cost, 0, 0},
|
||||
{"get_map_enter_position", mf_get_map_enter_position, 0, 0},
|
||||
{"get_metarule_table", mf_get_metarule_table, 0, 0},
|
||||
{"get_object_ai_data", mf_get_object_ai_data, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_object_data", mf_get_object_data, 2, 2, 0, {ARG_OBJECT, ARG_INT}},
|
||||
{"get_outline", mf_get_outline, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"get_sfall_arg_at", mf_get_sfall_arg_at, 1, 1, 0, {ARG_INT}},
|
||||
{"get_stat_max", mf_get_stat_max, 1, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"get_stat_min", mf_get_stat_min, 1, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"get_string_pointer", mf_get_string_pointer, 1, 1, 0, {ARG_STRING}},
|
||||
{"get_terrain_name", mf_get_terrain_name, 0, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"get_text_width", mf_get_text_width, 1, 1, 0, {ARG_STRING}},
|
||||
{"get_window_attribute", mf_get_window_attribute, 1, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"has_fake_perk_npc", mf_has_fake_perk_npc, 2, 2, 0, {ARG_OBJECT, ARG_STRING}},
|
||||
{"has_fake_trait_npc", mf_has_fake_trait_npc, 2, 2, 0, {ARG_OBJECT, ARG_STRING}},
|
||||
{"hide_window", mf_hide_window, 0, 1, -1, {ARG_STRING}},
|
||||
{"interface_art_draw", mf_interface_art_draw, 4, 6, -1, {ARG_INT, ARG_INTSTR, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"interface_overlay", mf_interface_overlay, 2, 6, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"interface_print", mf_interface_print, 5, 6, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"intface_hide", mf_intface_hide, 0, 0},
|
||||
{"intface_is_hidden", mf_intface_is_hidden, 0, 0},
|
||||
{"intface_redraw", mf_intface_redraw, 0, 1},
|
||||
{"intface_show", mf_intface_show, 0, 0},
|
||||
{"inventory_redraw", mf_inventory_redraw, 0, 1, -1, {ARG_INT}},
|
||||
{"item_make_explosive", mf_item_make_explosive, 3, 4, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"item_weight", mf_item_weight, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"lock_is_jammed", mf_lock_is_jammed, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"loot_obj", mf_get_loot_object, 0, 0},
|
||||
{"message_box", mf_message_box, 1, 4, -1, {ARG_STRING, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"metarule_exist", mf_metarule_exist, 1, 1}, // no arg check
|
||||
{"npc_engine_level_up", mf_npc_engine_level_up, 1, 1},
|
||||
{"obj_is_openable", mf_obj_is_openable, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"obj_under_cursor", mf_obj_under_cursor, 2, 2, 0, {ARG_INT, ARG_INT}},
|
||||
{"objects_in_radius", mf_objects_in_radius, 3, 4, 0, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"outlined_object", mf_outlined_object, 0, 0},
|
||||
{"real_dude_obj", mf_real_dude_obj, 0, 0},
|
||||
{"reg_anim_animate_and_move", mf_reg_anim_animate_and_move, 4, 4, -1, {ARG_OBJECT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"remove_timer_event", mf_remove_timer_event, 0, 1, -1, {ARG_INT}},
|
||||
{"set_spray_settings", mf_set_spray_settings, 4, 4, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_can_rest_on_map", mf_set_rest_on_map, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_car_intface_art", mf_set_car_intface_art, 1, 1, -1, {ARG_INT}},
|
||||
{"set_combat_free_move", mf_set_combat_free_move, 1, 1, -1, {ARG_INT}},
|
||||
{"set_cursor_mode", mf_set_cursor_mode, 1, 1, -1, {ARG_INT}},
|
||||
{"set_drugs_data", mf_set_drugs_data, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_dude_obj", mf_set_dude_obj, 1, 1, -1, {ARG_INT}},
|
||||
{"set_fake_perk_npc", mf_set_fake_perk_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_fake_trait_npc", mf_set_fake_trait_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_flags", mf_set_flags, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_iface_tag_text", mf_set_iface_tag_text, 3, 3, -1, {ARG_INT, ARG_STRING, ARG_INT}},
|
||||
{"set_ini_setting", mf_set_ini_setting, 2, 2, -1, {ARG_STRING, ARG_INTSTR}},
|
||||
{"set_map_enter_position", mf_set_map_enter_position, 3, 3, -1, {ARG_INT, ARG_INT, ARG_INT}},
|
||||
{"set_object_data", mf_set_object_data, 3, 3, -1, {ARG_OBJECT, ARG_INT, ARG_INT}},
|
||||
{"set_outline", mf_set_outline, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_quest_failure_value", mf_set_quest_failure_value, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"set_rest_heal_time", mf_set_rest_heal_time, 1, 1, -1, {ARG_INT}},
|
||||
{"set_rest_mode", mf_set_rest_mode, 1, 1, -1, {ARG_INT}},
|
||||
{"set_scr_name", mf_set_scr_name, 0, 1, -1, {ARG_STRING}},
|
||||
{"set_selectable_perk_npc", mf_set_selectable_perk_npc, 5, 5, -1, {ARG_OBJECT, ARG_STRING, ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_terrain_name", mf_set_terrain_name, 3, 3, -1, {ARG_INT, ARG_INT, ARG_STRING}},
|
||||
{"set_town_title", mf_set_town_title, 2, 2, -1, {ARG_INT, ARG_STRING}},
|
||||
{"set_unique_id", mf_set_unique_id, 1, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"set_unjam_locks_time", mf_set_unjam_locks_time, 1, 1, -1, {ARG_INT}},
|
||||
{"set_window_flag", mf_set_window_flag, 3, 3, -1, {ARG_INTSTR, ARG_INT, ARG_INT}},
|
||||
{"show_window", mf_show_window, 0, 1, -1, {ARG_STRING}},
|
||||
{"spatial_radius", mf_spatial_radius, 1, 1, 0, {ARG_OBJECT}},
|
||||
{"string_compare", mf_string_compare, 2, 3, 0, {ARG_STRING, ARG_STRING, ARG_INT}},
|
||||
{"string_find", mf_string_find, 2, 3, -1, {ARG_STRING, ARG_STRING, ARG_INT}},
|
||||
{"string_format", mf_string_format, 2, 8, 0, {ARG_STRING, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY, ARG_ANY}},
|
||||
{"string_to_case", mf_string_to_case, 2, 2, -1, {ARG_STRING, ARG_INT}},
|
||||
{"tile_by_position", mf_tile_by_position, 2, 2, -1, {ARG_INT, ARG_INT}},
|
||||
{"tile_refresh_display", mf_tile_refresh_display, 0, 0},
|
||||
{"unjam_lock", mf_unjam_lock, 1, 1, -1, {ARG_OBJECT}},
|
||||
{"unwield_slot", mf_unwield_slot, 2, 2, -1, {ARG_OBJECT, ARG_INT}},
|
||||
{"win_fill_color", mf_win_fill_color, 0, 5, -1, {ARG_INT, ARG_INT, ARG_INT, ARG_INT, ARG_INT}},
|
||||
#ifndef NDEBUG
|
||||
{"validate_test", mf_test, 2, 5, -1, {ARG_INT, ARG_NUMBER, ARG_STRING, ARG_OBJECT, ARG_ANY}},
|
||||
{"validate_test", mf_test, 2, 5, -1, {ARG_INT, ARG_NUMBER, ARG_STRING, ARG_OBJECT, ARG_ANY}},
|
||||
#endif
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user