Results 1 to 11 of 11

Thread: a strange thing

  1. #1

    Default a strange thing

    something strange was happening to mine campaign script when i made more historical characters and wanted to test them in mine campaign,i put them as last one, but they never appear in game even their was no error in the log,but now i found out why ;whatever script comes under this text will not spawn on the campaig map, and so have no effect,lucky i found out .

    the text;
    Spoiler Alert, click show to read: 
    monitor_event IncomingMessage IncomingMessageType pope_accepts_crusade and FactionIsLocal
    and FactionReligion catholic
    historic_event POPETAKESMONEY factions { all, }
    ;let them known pope grape some gold
    console_command add_money -3000
    add_money papal_states 3000


    end_monitor


    monitor_event IncomingMessage IncomingMessageType pope_rejects_crusade
    and FactionIsLocal
    and FactionReligion catholic
    historic_event POPEREJECTSTARGET factions { all, }
    ;let them known pope grape some gold
    console_command add_money -1000
    add_money papal_states 1000


    end_monitor


    monitor_event IncomingMessage IncomingMessageType jihad_called
    and FactionIsLocal
    and FactionReligion islam
    historic_event WARNINGJIHAD factions { all, }
    ;let them known IMAN grape some gold
    console_command add_money -1000


    end_monitor


    monitor_event IncomingMessage IncomingMessageType jihad_failed
    and FactionIsLocal
    and FactionReligion islam
    historic_event FAILEDJIHAD factions { all, }
    ;let them known IMAN grape some gold
    console_command add_money -4000


    end_monitor


    monitor_event IncomingMessage IncomingMessageType crusade_failed
    and FactionIsLocal
    and FactionReligion catholic
    and not FactionExcommunicated
    historic_event CRUSADEFALLINGY factions { all, }
    ;let them known Cardinal grape some gold
    console_command add_money -3000
    add_money papal_states 3000


    end_monitor


    monitor_event IncomingMessage IncomingMessageType crusade_called
    and FactionIsLocal
    and FactionReligion catholic
    and not FactionExcommunicated
    historic_event CRUSADECALLEDFF factions { all, }
    ;let them known Cardinal grape some gold
    console_command add_money -1000
    add_money papal_states 1000


    end_monitor


    ;------------------- CRUSADESCOSTMONEY-------------------;


    monitor_event FactionTurnStart FactionIsLocal
    and not IsFactionAIControlled
    and FactionReligion catholic
    and I_TurnNumber = 0


    ;notifiy player reinforcements have arrived
    historic_event CRUSADEMONEY factions { all, }


    end_monitor


    ;------------------- CRUSADESCOSTMONEY-------------------;


    monitor_event FactionTurnStart FactionIsLocal
    and not IsFactionAIControlled
    and I_TurnNumber = 0


    ;notifiy player reinforcements have arrived
    historic_event GAMEINFORMATION factions { all, }


    end_monitor
    terminate_monitor


    sorry for mine english that is not so good,and sadly i discovered this too late as i am missing now some scripts as they were under the lines of the spoiler onces,but i will not stop mine campaign as now into turn 195 lol.

    edit;lucky i did not put it at first script at top of the campaign script or all mine other scripts would not work,even though the scripts in the text are working very good,from below and from the top of the campaign script;i guess it is cause the script can work every second when you are in the campaign map with your faction
    Last edited by stevietheconquer; July 20, 2020 at 05:03 PM.
    getting older

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,095
    Blog Entries
    35

    Default Re: a strange thing

    Have you tested your IncomingMessageType condition\event in a simple set up?

    And you do not need factions { all, } - that is the default for historic_event.










  3. #3
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: a strange thing

    end_monitor
    terminate_monitor

    No log error for that? Is all of that script, and the spawning script you had below it, all above the wait_monitors line?

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,095
    Blog Entries
    35

    Default Re: a strange thing

    Damn, that slipped by me.










  5. #5
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: a strange thing

    Also, did you start a new campaign after making any script changes?

  6. #6

    Default Re: a strange thing

    everything is working very good as long as i put the text(scripts) as last on into the campaign_script,every script under it will not work and their is no error then in the log file

    mine campaign_scripts has more the 63000 lines so it is maybe to big,lucky i make more scripts as long as i put them above that text from behind the spoiler tags

    edit;i always start a new campaign when i test mine new scripts,they are mostly very simple onces.
    getting older

  7. #7

    Default Re: a strange thing

    whitwnar said;end_monitor
    terminate_monitor

    No log error for that? Is all of that script, and the spawning script you had below it, all above the wait_monitors line?



    no i see no error for this becausce others that script would not work and all the other scripts would not work
    Last edited by stevietheconquer; July 21, 2020 at 09:23 AM.
    getting older

  8. #8

    Default Re: a strange thing

    Quote Originally Posted by Gigantus View Post
    Have you tested your IncomingMessageType condition\event in a simple set up?

    And you do not need factions { all, } - that is the default for historic_event.
    it was too long agow when itested it but it is working very good,only i can put nothing below it or it would not work only the scripts that or under the text .lucky i foud it out





    edit;i posted this becaucse maybe someone else had a this too and did not known why
    Last edited by stevietheconquer; July 21, 2020 at 09:28 AM.
    getting older

  9. #9

    Default Re: a strange thing

    Quote Originally Posted by Withwnar View Post
    end_monitor
    terminate_monitor

    No log error for that? Is all of that script, and the spawning script you had below it, all above the wait_monitors line?
    maybe you or wright even tought that script works very good maybe the terminate_monitor is blocking all the scripts that comes under it,as it can be used too with only the end_monitor,i will test it



    edit;Withwnar,you were wright,when i removed the terminator_monitor line and then put the historical character script under it,i tested it and now it works! a strange thing it is.

    strange becausce their was no error in the log for it.

    withwnar and gigantus thanks for looking at it!
    Last edited by stevietheconquer; July 21, 2020 at 10:02 AM.
    getting older

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,095
    Blog Entries
    35

    Default Re: a strange thing

    Tip: use squid's script editor to check your script - it picks up formatting errors like that.










  11. #11
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: a strange thing

    Whoa, was not expecting that to be the reason. So terminate_monitor outside of a monitor kills/disables all monitors below it. How bizarre.

Posting Permissions

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