Results 1 to 2 of 2

Thread: About Mongols invasion

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default About Mongols invasion

    as I work on script, i noticed that some intersting things in mongol invasion. Can anyone who is experienced on scripting, explain it why?

    ;-- Mongols invasions --
    monitor_event EventCounter EventCounterType mongols_invasion_warn
    and EventCounter > 0
    ; ADD SCOUTING INVASION
    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events
    if I_EventCounter mongols_invasion_warn == 2
    terminate_monitor
    end_if
    end_monitor


    Why this is like that?

    I_EventCounter mongols_invasion_warn == 2


    as i know EventCounter can be 0 or sth but why scripter put tihs 2 there and why not 1.


    and scripter opened there a if segment for enter I_EventCounter


    can it be possible like this?




    ;-- Mongols invasions --
    monitor_event EventCounter EventCounterType mongols_invasion_warn
    and I_EventCounter mongols_invasion_warn == 2


    ; ADD SCOUTING INVASION
    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events


    terminate_monitor
    end_monitor

    or just simple

    ;-- Mongols invasions --
    monitor_event EventCounter EventCounterType mongols_invasion_warn


    ; ADD SCOUTING INVASION
    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events


    terminate_monitor
    end_monitor


    in second monitor scripter is adding once again mongols_invasion and adjusting to 2. In first monitor, scrpter adjust it 4-8. why it is adjusting there again?


    monitor_event EventCounter EventCounterType mongols_invasion
    and EventCounter > 0
    if I_EventCounter mongols_invasion == 1
    add_events
    ;;; SCOUTING INVASION
    event emergent_faction mongols
    date 0
    ; region Tbilisi_Province
    region Yerevan_Province
    region Bulgar_Province
    region Sarkel_Province
    region Baghdad_Province
    movie event/mongols_invade.bik
    ;ADD MONGOL INVASION 1
    event counter mongols_invasion
    date 2

    end_add_events
    end_if

    in follow-through, what does the number (30) mean there? Others i think, coordinates.


    if I_EventCounter mongols_invasion == 2

    ;Sarkel
    if I_CharacterTypeNearTile mongols named_character, 30 258, 134
    set_counter mongols_sarkel 1
    Last edited by Elvasat; September 05, 2010 at 11:13 AM.

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

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: About Mongols invasion

    if I_CharacterTypeNearTile mongols named_character, 30 258, 134
    Checks if the character is within 30 tiles of the given co-ordinate.
    I_EventCounter mongols_invasion_warn == 2
    An event_counter can be any value. If memory serves, then there are several 'add_event' instances with 'mongol_invasions'. Each will add to the count.
    event counter mongols_invasion
    date 2
    In the add_event function you can set how many turns counting from the fulfillment of the trigger the event will happen. In this case it will be 2 turns.










Posting Permissions

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