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
    Not affiliated with Red Dwarf. Member Ianofsmeg16's Avatar
    Join Date
    Jan 2005
    Location
    Home of Palm trees, cats with no tails, three-legged men, fairies...and more german bikers than germany
    Posts
    1,996

    Default Re: How to: Change the Date

    Quote Originally Posted by Epistolary Richard
    How to: Change the Date
    Code:
    script
    console_command date -220
    console_command season summer
    end_script
    This will change the date to summer 220BC.
    Note that you'll get all the historical event messages for the events between the date you jumped from and the date you skipped to.

    This command is primarily useful for people who want to skip to the Marian Reforms or change their date altogether. It is also the foundation for Myrddraal's Multiple Turns a Year mod.
    what file is this in???
    When I was a child
    I caught a fleeting glimpse
    Out of the corner of my eye.
    I turned to look but it was gone
    I cannot put my finger on it now
    The child is grown,
    The dream is gone.
    I have become comfortably numb...

    Proud Supporter of the Gahzette

  2. #2

    Default Re: How to: Change the Date

    Please read the first post in this thread - see Stage Three.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  3. #3
    J-23 Member Hans Kloss's Avatar
    Join Date
    Oct 2003
    Location
    Richmond upon Thames
    Posts
    245

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

    Does "console_command create_unit" work for naval units too ?

    I have experimented a bit but it does not seem to working

  4. #4

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

    I've never tried it, but the problem I would see with it would be where are you going to put them? Scripting tends to be very blunt, and more than likely it's trying to put them in the settlements themselves rather than in their ports. Try creating them on an existing admiral as you would do on an existing captain or family member.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  5. #5
    J-23 Member Hans Kloss's Avatar
    Join Date
    Oct 2003
    Location
    Richmond upon Thames
    Posts
    245

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

    I have tried geograhical location

    script
    console_command create_unit Athens "naval triremes" 2
    end_script



    and character :

    script
    console_command create_unit "Admiral Cassius" "naval triremes" 2
    end_script


    without much luck

    In campaign naval units are sometimes given as reward for completion of Senate missions so there is got to be way of creating them with use of scripts at particular settelments

  6. #6

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

    hello

    I'm having trouble implementing a script, Script Error in export_descr_advice, Line 28986 , column 61 more specifically. " Advice thread increment not supplied "

    I copied the samples exact, and fixed the board formatting errors.

    Code:
    ;------------------------------------------
    Trigger 2137_Help_Campaign_Keyboard_Shortcuts_Scroll_Trigger
        WhenToTest ScrollAdviceRequested
    
        Condition ScrollAdviceRequested help_scroll
    
        AdviceThread Help_Campaign_Keyboard_Shortcuts_Scroll_Thread  0
    
    ;------------------------------------------
    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\mo_money.txt
            Text Help_Campaign_Keyboard_Shortcuts_Scroll_Text_01_Text1
    Line 28986 is in red, what's going on here?



  7. #7

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

    why can't I edit my post?

    anyway, the line that is getting the error is the AdviceThread string

    AdviceThread Help_Campaign_Keyboard_Shortcuts_Scroll_Thread

    I can't figure out what's going on.. the format is fine, it compares with the samples, and the other advice thread strings in the eda file

    It says, "Advice Thread increment not supplied"

    I'm really at a loss



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