Results 1 to 6 of 6

Thread: Need help with some stuff.

Hybrid View

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

    Default Need help with some stuff.

    Otherwise I wouldn't be posting here.


    Aaanyhow, I've shamelessly stolen part of the FOE script (for own use) to make more of the mission like events the mod had at the start.

    However, whenever the "mission/advice" is activated, my game crashes.

    I've been trying to figure out what is wrong, but sadly it's been no use.

    Here is what I've inserted into the background script:
    Spoiler Alert, click show to read: 
    ;;; Turn 28
    console_command date -273
    console_command season summer
    if I_TurnNumber = 28
    and I_LocalFaction rome_republic

    disable_cursor
    disable_shortcuts true
    inhibit_camera_input true
    disable_shortcuts advisor_portrait_button false
    filter_all_ui_commands off

    move_strat_camera 285, 119
    reveal_tile 285, 118
    zoom_strat_camera 0.3
    campaign_wait 2
    ui_indicator 0 circle 512 275 colour 0 0 255 scale .8 ; Mastia

    enable_cursor
    disable_entire_ui
    disable_shortcuts options_button false

    disable_shortcuts advisor_dismiss_button false
    disable_shortcuts dismiss_advice false
    disable_shortcuts advisor_portrait_button false

    dismiss_advice
    while I_AdvisorVisible
    end_while
    advance_advice_thread Rebels_Lucanian_Sextus_Thread ; Spartacus

    restart_timer Campaign_Map_Timer

    ; Dismiss to continue. If not dismissed after 10 seconds, show hint.
    while I_AdvisorVisible
    monitor_conditions I_TimerElapsed Campaign_Map_Timer > 10000
    ui_flash_start advisor_dismiss_button ; uses ui_indicator slot 2
    terminate_monitor
    end_monitor
    end_while

    ui_flash_stop
    ui_indicator_remove 0

    filter_all_ui_commands on
    enable_entire_ui
    disable_shortcuts false
    inhibit_camera_input false
    end_if

    while I_TurnNumber < 29
    suspend_unscripted_advice true
    end_while


    Here is what I've added to the export_descr_advice:
    Spoiler Alert, click show to read: 
    ;------------------------------------------
    AdviceThread Rebels_Lucanian_Sextus_Thread
    GameArea Campaign

    Item Rebels_Lucanian_Sextus_Text_01
    Uninhibitable
    Verbosity 3
    Threshold 1
    Attitude Normal
    Presentation Default
    Title Rebels_Lucanian_Sextus_Text_01_Title
    Text Rebels_Lucanian_Sextus_Text_01_Text1


    Here is what I've put into the export_descr_advice_enums:
    Spoiler Alert, click show to read: 
    Rebels_Lucanian_Sextus_Title
    Rebels_Lucanian_Sextus_Text1


    And here is what I've added to the export_advice:
    Spoiler Alert, click show to read: 
    ¬---------------------
    {Rebels_Lucanian_Sextus_Text_01_Title} The Lucanians rebel!
    {Rebels_Lucanian_Sextus__Text_01_Text1} Senators, the Lucanians have revolted! Displeased with our harsh and rightful treatment of these treacherous barbarians, after they aided the king of Epiros, has led to open rebellion. They must be put to the sword, so that we can be at peace!


    Any help in uncovering what mistake I've made would be awesome.

  2. #2
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Need help with some stuff.

    Already answered in the RTR forum.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  3. #3

    Default Re: Need help with some stuff.

    Indeed!

    New question though, is there any way to lower the happiness of a city, say like... Syracuse, at a certain point into the game?

    What I'm looking for is a way to make certain cities revolt at a certain point in the game, like at... 200 BC or anything like that.

    Also, I have a problem. I've had the above things working (the script part) but now it just moves to the refered tile, zooms in and the mouse cursor appears. No advisor or anything popping up.
    Last edited by Cozur; November 25, 2009 at 03:58 PM.

  4. #4
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Need help with some stuff.

    You could try spawning a few rebel spies in there.

    And what did you change?
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  5. #5

    Default Re: Need help with some stuff.

    There was a mistake in the export_descr_advice file, I sorted it out.

    Is there any way to just script the army lead by random rebel leader that I spawn to just besiege the city of my choice?
    Last edited by Cozur; November 28, 2009 at 09:34 AM.

  6. #6
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: Need help with some stuff.

    Only possible in M2TW.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

Posting Permissions

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