Results 1 to 4 of 4

Thread: Need help with scripted earthquake events

  1. #1
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Need help with scripted earthquake events

    Hi, one of our former members created cool historical earthquake events but for some reason they are not firing. Could someone please take a look at the script to see what alternations need to be done for it work? Thanks!

    Spoiler Alert, click show to read: 

    ;;=====================================================================;;
    ;;;;;;;;;;;;;;;;;;;;;;;;;;;;; EARTHQUAKES ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    ;;=====================================================================;;
    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 223


    reveal_tile 87, 137
    add_events
    event earthquake earthquake_in_naples
    date 0
    position 87, 137
    end_add_events
    hide_all_revealed_tiles


    terminate_monitor
    end_monitor


    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 6


    reveal_tile 83, 242
    add_events
    event earthquake earthquake_in_friuli
    date 0
    position 83, 242 ; Udine
    end_add_events
    hide_all_revealed_tiles

    ;; effect surrounding towns
    add_events
    event earthquake
    date 0
    position 89, 240 ; Gorz
    position 101, 241 ; Laibach
    position 91, 219 ; Pola
    position 68, 234 ; Trevixo
    position 52, 243 ; Trient
    position 63, 228 ; Padova
    position 47, 232 ; Verona
    position 44, 226 ; Mantova
    position 59, 219 ; Ferrara
    position 37, 234 ; Brescia
    position 37, 219 ; Parma
    position 22, 233 ; Milan
    position 46, 216 ; Modena
    position 317, 210 ; Zena
    position 22, 240 ; Como
    position 70, 229 ; Venexia
    end_add_events


    terminate_monitor
    end_monitor


    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 8


    reveal_tile 64, 161
    add_events
    event earthquake earthquake_in_apennine
    date 0
    position 64, 161 ; Roma
    end_add_events
    hide_all_revealed_tiles


    ;; effect surrounding towns
    add_events
    event earthquake
    date 0
    position 68, 176 ; Spoleto
    position 57, 191 ; Arezzo
    position 48, 199 ; Fiorenza
    position 36, 202 ; Lucca
    position 34, 197 ; Pisa
    position 49, 188 ; Siena
    position 70, 196 ; Urbino
    position 69, 202 ; Rimini
    position 83, 192 ; Ancona
    position 78, 168 ; Aquila
    position 106, 154 ; San Severo
    position 87, 137 ; Naples
    position 95, 135 ; Salermo
    position 111, 133 ; Potenza
    end_add_events


    terminate_monitor
    end_monitor



  2. #2
    Jadli's Avatar The Fallen God
    Gaming Emeritus

    Join Date
    Dec 2013
    Location
    Czech Republic
    Posts
    8,528

    Default Re: Need help with scripted earthquake events

    Well, did you check if the positions corresponds to the settlements? (they could have been moved)

    And also perhaps did you try to play as the faction thats directly hit by the earthquakes?

    Also, have you treud going all the way through the game to reach those turns or how did you test it?

  3. #3
    jurcek1987's Avatar Protector Domesticus
    Join Date
    Sep 2013
    Location
    Slovenia
    Posts
    4,082

    Default Re: Need help with scripted earthquake events

    Yeah I checked the coordinates, the reveal tile also doesn't work. Also tested as one of the affected factions. The second and third earthquake events should trigger very early in the campaign (turn 6 and turn 8) so they are tested yes

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

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

    Default Re: Need help with scripted earthquake events

    Quote Originally Posted by Gigantus View Post
    Earthquake
    The animation for this event is centered around a small area of the settlement, using a co-ordinate of the settlement is advisable. This event uses the default message and a default locator button for the settlement. The animation isn't seen until the position button is clicked.










Posting Permissions

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