Results 1 to 3 of 3

Thread: Doubt (again lol)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Doubt (again lol)

    i want to create a script that does something like this:


    a script occurs, and before it's finished, that will lauch a new event


    many examples are the mongol invasion (1st- warns, X-Y turns later occurs the invasion), henry sets to the holy lands from the britannia campaign.. etc


    Spoiler Alert, click show to read: 

    monitor_event EventCounter EventCounterType mongols_invasion_warn
    and EventCounter > 0

    if I_EventCounter mongols_invasion_warn == 1

    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events

    terminate_monitor
    end_if
    end_monitor

    monitor_event EventCounter EventCounterType mongols_invasion
    and EventCounter > 0

    if I_EventCounter mongols_invasion == 1

    historic_event mongols_alamut

    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events
    end_if

    if I_EventCounter mongols_invasion == 2

    add_events
    event emergent_faction mongols
    date 0
    region Baghdad_Province
    movie event/mongols_invade.bik
    event counter mongols_invasion
    date 4 8
    end_add_events
    end_if



    as you can see, these events lauch the one that follows


    my script would be something like that and if possible, make a somehow detailed info about how to make 1 event trigger another one, so i can learn it
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  2. #2

    Default Re: Doubt (again lol)

    exactly the idea I was talking about (different particulars though) think your on to some thing Swagger

  3. #3
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: Doubt (again lol)

    It's fairly simple. This section:
    Code:
    add_events
    event counter mongols_invasion
    date 4 8
    end_add_events
    Tells the game to create the counter mongol_invasion, and then in 4 turns increase it by 1, and in 8 turns increase it by 1 again. So the following check which checks for the counter to be 1 or 2 will fire 4 and 8 turns after the one that sets the counter. You should conceivably be able to extend the amount of #s on the date line.

Posting Permissions

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