Single_player: omit_key_once doesn't work

Users who are viewing this thread

Hi. I have tried to block escape or charcter screen but nothing works. Any working code for this operand? omit_key_once
Maybe it works only in multiplayer?

(0, 0, 0, [
(eq, "$gk_order", gk_order_4),
],
[
(omit_key_once, key_escape),
])
,
(0, 0, 0, [
(key_clicked, key_escape),
],
[
(omit_key_once, key_escape),
]),
 
Try doing it in an empty presentation.

Code:
("omit_keys", prsntf_read_only|prsntf_manual_end_only, 0, [
    (ti_on_presentation_load, [
        (presentation_set_duration, 999999),
    ]),
    (ti_on_presentation_run, [
        (omit_key_once, key_escape),
    ]),
]),

Code:
(0, 0, 0, [
    (neg|is_presentation_active, "prsnt_omit_keys"),
],
[
    (start_presentation, "prsnt_omit_keys"),
]),
 
Upvote 0
@Eärendil Ardamírë,
I tested singleplayer missions. Global map doesn't work. Here is result:
Code:
gk_everyone_hear           = 29
gk_infantry_hear           = 30
gk_archers_hear            = 31
gk_cavalry_hear            = 32
gk_group0_hear = gk_infantry_hear
gk_group1_hear = gk_archers_hear
gk_group2_hear = gk_cavalry_hear
gk_group3_hear             = 33
gk_group4_hear             = 34
gk_group5_hear             = 35
gk_group6_hear             = 36
gk_group7_hear             = 37
gk_group8_hear             = 38
gk_reverse_order_group     = 39
gk_everyone_around_hear    = 40

gk_action                  = 4 (mount, dismount fail, picking weapon from the ground works)
gk_kick                    = 8  <E>
gk_toggle_weapon_mode      = 9  <X>
gk_sheath_weapon           = 17 </>
gk_cam_toggle              = 21 <R>
gk_crouch                  = 49 <Z> (need to set can_crouch = 1 in module.ini)

key_mouse_scroll_up     = 0xee = 238
key_mouse_scroll_down   = 0xef = 239
key_space               = 0x39 = 57

key_escape doesn't work in single player but Viking Conquest has it in multiplayer. Needed to check.
key_pad or key_xbox from 0xF0 to 0xFF - possible works all.

You can bypass F1-F8 menu by (close_order_menu), = 1789
 
Last edited:
Upvote 0
Back
Top Bottom