Results 1 to 3 of 3

Thread: Scripting or/if conditions?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Alpha Zeke's Avatar Vicarius
    Join Date
    Dec 2006
    Location
    The US of A
    Posts
    2,931

    Default Scripting or/if conditions?

    Sorry if I'm new too this sort of scripting and am asking too many questions, but I was wondering how would I do something like
    every turn it compares a counter. if it is 1, it reads the script beneath it and then ends and will repeat this every turn.
    if it is 0, then it ignores the script and does not check again every turn afterwords

    so far (due too the limitations of how this mod works) at the bottom of the script is

    declare_counter ftt_on
    set_counter ftt_on 1

    Would that work? (As far as making that counter) without any monitors?

    Then above it some distance on the CS I have

    monitor_event FactionTurnStart FactionIsLocal
    (Not sure what to put here, but it would be the part that compares the counter and picks 1 of 2 options)
    then all the script to be used or ignored.
    end monitor (terminate if 0)


    Any helpers?

    EDIT: Also if anyone knows a good way to learn scripting from the basics that isnt cutting and pasting and finding out what those changes make (Since it takes much longer to check in this game then in others) Please do feel free to point that out!
    Last edited by Alpha Zeke; August 10, 2010 at 06:19 PM.

  2. #2

    Icon1 Re: Scripting or/if conditions?

    Scripting 101 by GrnEyedDvl and Augustus Lucifer.

  3. #3
    Alpha Zeke's Avatar Vicarius
    Join Date
    Dec 2006
    Location
    The US of A
    Posts
    2,931

    Default Re: Scripting or/if conditions?

    That short response is actually the help i needed so desperately. +rep!

Posting Permissions

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