搜索结果: *

  • 用户:Dzen
  • 按日期排序
  1. Module System Download

    If you can upload 1.113 mirror - do it, please :smile:
  2. Module System Download

    HTTP Error 404. The requested resource is not found.
    for Warband module system link.
  3. Presentations, create_text_box_overlay

    Slawomir of Aaarrghh 说:
    I'm not sure I understood you correctly... You want to get a string FROM a text_box? If so, then it's not possible. It's only for displaying strings and player can't write any text in it.

    No. create_text_box_overlay create editable text-box. Problem solved - string in s0 register when trigger fired :smile:

    插入代码块:
    presentations = [
        ("test_manage", 0, mesh_load_window,[
            (ti_on_presentation_load,
             [
                 (set_fixed_point_multiplier, 1000),
                 (create_text_box_overlay, "$g_test_text"),
                 (position_set_x, pos1, 500),
                 (position_set_y, pos1, 600),
                 (overlay_set_position, "$g_test_text", pos1),
                 (presentation_set_duration, 999999),
                 ]
             ),
    
            (ti_on_presentation_event_state_change,
             [
                 (store_trigger_param_1, ":obj"),
                  (try_begin),
                    (eq, ":obj", "$g_test_text"),
                     (party_set_name, "$g_encountered_party", s0),
                 (end_try),
                 ]
             ),
    
          (ti_on_presentation_run,
           [(try_begin),
              (key_clicked, key_escape),
              (presentation_set_duration, 0),
            (try_end),
    
            ]),
            
            ]
         ),
                 
    ]

    In $g_encountered_party - ID of city. Renaming work! :smile:

    PS Excuse my english, not native :smile:
  4. Presentations, create_text_box_overlay

    Operation create_text_box_overlay creates text box. How i can get value (string) of that control? Trigger ti_on_presentation_event_state_change fired, but param2 is 0.
  5. Hero templates

    Can i create new hero with random name? I think about create new instance of hero troop and rename, but can't find operation for renaming. Maybe exist another way? PS Sorry my english  :?
后退
顶部 底部