Results 1 to 10 of 10

Thread: basic question about descr_events.txt

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default basic question about descr_events.txt

    Is the number after 'date' the turn number or what?

    Thanks

  2. #2

    Default Re: basic question about descr_events.txt

    yes it's the turn, but don't make it 0 or 1, cos it won't appear that way, not sure why again. so if it's 4 it will appear in turn 4, and it depends on the amount of turns per year you have set what the actual date is then.

    here's a guide to the historical_events file, could help a bit, could you +rep me for helping you if you think my answer helped you?
    Last edited by Sir Mork; August 16, 2009 at 04:16 PM.

  3. #3
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: basic question about descr_events.txt

    +rep for a good answer.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  4. #4
    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: basic question about descr_events.txt

    I wish to disagree. According to your explanation, if I had an event with date 4 it should appear on the fourth turn. which is no the case unless you have the game set to one turn per year.
    If you use the great script of GED and use 12 turns per year the event will fire in the first month of the fourth year (turn 49). The date is linked to the beginning of the year. If you want to have events in the above 12turns\year let's say in April of the first month, then you will have to script it like that in campaign_script:
    monitor_event FactionTurnStart FactionIsLocal
    and I_TurnNumber = 3
    historic_event M2TW_1066_04
    terminate_monitor
    end_monitor
    The reason why date 1 doesn't work (or any uneven number for that matter) is the 2 turns\year setting. If you have two turns, how can have a year 1, 3 , 5 etc?
    date 0 should work, it does in the script. That is also the reason why April (being the fourth month) is turn number 3 in the script.










  5. #5

    Default Re: basic question about descr_events.txt

    I did say "and it depends on the amount of turns per year you have set what the actual date is then", but It has been a long time since i did anything to the events file, and you, gigantus, seem to know a bit more.
    Din't explain everything properly, sorry for that, should have done, but I didn't recall exactly how everything worked again. Thanks for clearing that up Gigantus, as always you seem to know everything, will +rep you for that. and Taiji, you should better look at Gigantus' post, cos his explanation is much better than mine, sorry for the unclearness.

  6. #6
    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: basic question about descr_events.txt

    One is glad to be of service










  7. #7
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: basic question about descr_events.txt

    I should have made my first post a little more verbose. The guide Mork points out doesn't answer my question, although it implies that it does.

    Mork, where you say "so if it's 4 it will appear in turn 4, and it depends on the amount of turns per year you have set what the actual date is then." you actually reinforce the confusion the guide caused, since in DLV if it's 4 then it appears in turn 8 (not turn 4). I appreciate that you're trying to help and I should have explained that I'd already seen that guide.

    Thanks Gigantus, without your answer I'd still be stuck
    Last edited by Taiji; August 17, 2009 at 08:19 AM.

  8. #8
    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: basic question about descr_events.txt

    see post #6










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

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

    Default Re: basic question about descr_events.txt

    Definitely use scripting for your historic event needs rather than the descr_events file. That file is kind of useless for multiple turns per year mods. You can use the example gigantus posted, but just use if statements so you can fit every historic event in one monitor.
    Code:
    monitor_event FactionTurnStart FactionIsLocal
    
     if I_TurnNumber = 3 ; date here
      historic_event M2TW_1066_04
     end_if
    
     if I_TurnNumber = 7 ; date here
      historic_event super_awesome_event
     end_if
    
    ;don't terminate since it runs for all events
    end_monitor
    You don't need to define historic events called through scripting in descr_events.txt at all, but you do need the strings in historic_events.txt.

  10. #10
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: basic question about descr_events.txt

    I don't really need to be specific beyond a certain point. I can identify events that are firing already, in the rough area of time I where need an event, and use one of them.

    So I'm not adding an event at all. But I appreciate your advice Augustus, there might come a time where I need to and I'll bear what you've said in mind

Posting Permissions

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