Results 1 to 1 of 1

Thread: Creating a World - Accelerating Stratmap Animations via Script

  1. #1
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Creating a World - Accelerating Stratmap Animations via Script

    I recently came across a situation in which I was forced to use the 'move' (slow animation) command instead of the 'reposition_character' (instant move). This can be a bit of a cold shower during (or at the start) of a game as the cursor becomes unavailable during the time of the animation. After some trial and error I came to the following solution:

    Prerequisite
    The mod's CFG file needs this entry:
    Code:
    [game]
    campaign_map_speed_up = 1
    Structure of the monitor
    Code:
        monitor_event FactionTurnStart FactionIsLocal
            call_object_shortcut strat_ui speedup_ai            ; accelerate display
            move [character name or label], x, y
            call_object_shortcut strat_ui speedup_ai            ; slow down display
            
            terminate_monitor
        end_monitor
    The animation mode returns to the default 'slow' setting once the monitor has executed.
    Last edited by Gigantus; June 29, 2013 at 10:57 AM. Reason: formatting










Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •