Results 1 to 5 of 5

Thread: Multiple options Script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Romanos IV's Avatar The 120th Article, § 4
    Join Date
    Jun 2008
    Location
    the hell outta here (Athens, European Client State of Greece)
    Posts
    3,882

    Default Multiple options Script

    Hey,

    I actually wanted to ask how to make a script where the player has two options, each one giving it's own command. The Kalmar Union section of the teutonic campaign script seems to be missing the "give the player a yes or no option" section, so it might be in another file.

    Thanks in advance.
    Under the noble patronage of Jimkatalanos

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Multiple options Script

    You have to use Kingdoms to have the accept/decline scroll. Then you just create a historic_event and put the word "true" behind it.

  3. #3
    Romanos IV's Avatar The 120th Article, § 4
    Join Date
    Jun 2008
    Location
    the hell outta here (Athens, European Client State of Greece)
    Posts
    3,882

    Default Re: Multiple options Script

    So, the only difference from usual scripts is that I should put the "_TRUE" in the event in historic_events.txt? Would a counter help?
    Under the noble patronage of Jimkatalanos

  4. #4
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: Multiple options Script

    Quote Originally Posted by Romanos IV View Post
    So, the only difference from usual scripts is that I should put the "_TRUE" in the event in historic_events.txt? Would a counter help?
    A counter for what? I guess it depends what you want to do.

    A command like this from my Hiring Ancillaries script will pop the accept/decline window:
    Code:
    monitor_event ScrollOpened character_info_scroll_character_panel 
    and I_EventCounter fire_playwright = 1
    add_events
    event counter fire_playwright_accepted
    event counter fire_playwright_declined
    date 0
    end_add_events
    historic_event fire_playwright true
    end_monitor

  5. #5
    Romanos IV's Avatar The 120th Article, § 4
    Join Date
    Jun 2008
    Location
    the hell outta here (Athens, European Client State of Greece)
    Posts
    3,882

    Default Re: Multiple options Script

    Oh, I see thanks for helping.
    Under the noble patronage of Jimkatalanos

Posting Permissions

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