Results 1 to 30 of 102

Thread: A Beginner's Guide to Scripting & Scripting "How To"s

Hybrid View

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

    Default Re: A Beginner's Guide to Scripting & Scripting "How To"s

    tried using the example script for mo_money but that particular section of the txt seems to be disabled in patch 1.5. Tried using the advice thread for the settlements list again no joy.

    I'm trying to get force_diplomacy to work so I can play around with that in the early game if anyone has any help they could give I'd love to click their 'show me how' button.


  2. #2
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Post Re: A Beginner's Guide to Scripting & Scripting "How To"s

    Quote Originally Posted by Parenti's Child
    tried using the example script for mo_money but that particular section of the txt seems to be disabled in patch 1.5.
    Just copied and pasted the mo_money code snippet into an existing script of mine and it worked as expected in 1.5. I'd guess you have a problem in the triggering mechanism. The "show me how" button on the advisor should be dark (un-ghosted) until you click it. Is this what you see?
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



  3. #3

    Default Re: A Beginner's Guide to Scripting & Scripting "How To"s

    that's the problem. For some reason the request advice button in the shortcuts screen doesn't even bring up the advisor.

  4. #4

    Default Re : A Beginner's Guide to Scripting & Scripting "How To"s

    Hello I never mod before but I already can switch side for historical battle; Can you help me with that : How do I make the opposite side (AI) wait for the ennemy (me) .the AI rushes all the time and is not supposed to do so, so the battle turn crazy. I don't know the script and where (which folder) it goes;
    many thanks

  5. #5

    Default Re: A Beginner's Guide to Scripting & Scripting "How To"s

    Quote Originally Posted by Atilius
    The "show me how" button on the advisor should be dark (un-ghosted) until you click it. Is this what you see?
    Please explain "Dark" and "Ghosted/Un-Ghosted", and how this corresponds to 'greyed-out' vs. 'active'.

    I (as far as I can tell) did everything correctly according to Richard's instructions. My problem is; The "Show Me How" button is greyed out and un-clickable.

    I reset the advisor in the options, as well as changing the Advice Level to 'High', but the Show Me How button is still greyed out (and now that snotty wench pops up to tell me everything she's told me once before already).

    I'm trying to do the force_diplomacy accept thing. Here's my files:

    data\export_descr_advice.txt:
    Code:
    ;------------------------------------------
    AdviceThread Help_Campaign_Keyboard_Shortcuts_Scroll_Thread
        GameArea Campaign
    
        Item Help_Campaign_Keyboard_Shortcuts_Scroll_Text_01
            Uninhibitable
            Verbosity  0 
            Threshold  1 
            Attitude Normal
            Presentation Default
            Title Help_Campaign_Keyboard_Shortcuts_Scroll_Text_01_Title
            Script scripts\show_me\forcedip.txt
            Text Help_Campaign_Keyboard_Shortcuts_Scroll_Text_01_Text1
    data\scripts\show me\forcedip.txt:
    Code:
    script
    
    command_console force_diplomacy accept
    
    end_script
    Now, I added this script while in the middle of an Imperial Campaign, and I'm just wondering if that's the problem...

    On another subject;

    Where does this game hide the Targas? I've looked for them everywhere. There are data files that refer to them, but the targas themselves don't appear to exist anywhere. Like "roman_official_ancillary.tga" for example.

  6. #6
    Bibliophilic Member Atilius's Avatar
    Join Date
    Oct 2005
    Location
    America Medioccidentalis Superior
    Posts
    3,837

    Default Re: A Beginner's Guide to Scripting & Scripting "How To"s

    Quote Originally Posted by Tombstone
    Please explain "Dark" and "Ghosted/Un-Ghosted", and how this corresponds to 'greyed-out' vs. 'active'.
    Dark, Un-Ghosted=active
    Ghosted=greyed-out

    Your export_descr_advice.txt looks OK.

    As for the script, you have

    Code:
    command_console force_diplomacy accept
    This should be

    Code:
    console_command force_diplomacy accept
    Quote Originally Posted by Tombstone
    Where does this game hide the Targas?
    You need to unpack the files in the packs folder. There's a link to Vercingetorix's xpak in this post. Usage info here.
    The truth is the most valuable thing we have. Let us economize it. - Mark Twain



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO