--requested by Hobbes
Hello everyone,
here's a new script that should allow you to orchestrate your arcs and missions a bit better (if you want).
The idea is that you can script when should certain events occur and in which order and use those events to affect mission scripts.
Or, you can just use it to display "a tip of the month", I don't judge
The arc script runs just before the mission script, i.e. February arc script does already affect February mission script.
Here's the syntax:
arcScripts:
- type: earlyGame # the type/name is used for overwriting or deleting purposes
sequentialArcs: # the type of research topics to be "discovered", each month 0 or 1, processed sequentially
- STR_EARLY_ARC_1_START
- STR_EARLY_ARC_2_START
- STR_EARLY_ARC_3_START
randomArcs: # the type of research topics to be "discovered", each month 0 or 1, chosen randomly considering weights
STR_SIDE_STORY_1_START: 50
STR_SIDE_STORY_2_START: 30
STR_SIDE_STORY_3_START: 20
firstMonth: 0 # months this command runs on, 0 runs on startup of a new game (default 0)
lastMonth: 12 # don't run after this month. -1 denotes no limit (default -1)
executionOdds: 75 # % chances of this command executing (default 100)
maxArcs: 4 # maximum number of arcs this command can generate (together during the whole game), -1 for infinite (default -1)
minDifficulty: 0 # this command only applies to difficulty levels of this or above (default 0)
maxDifficulty: 4 # this command only applies to difficulty levels of this or below (default 4)
researchTriggers: # a list of research topics that can influence the execution of this command (default empty)
STR_THE_MARTIAN_SOLUTION: true # in this case, the command would only run if the player has the Martian Solution
STR_CYDONIA_OR_BUST: false # and does NOT have Cydonia or Bust
firstMonth, lastMonth, minDifficulty, maxDifficulty and researchTriggers should be self-explanatory.
sequentialArcs and randomArcs are meant to be either-or, but it is possible to use both at the same time if you really want.
If you use both:
- executionOdds are done only once, same result is used for both types
- sequential arc is generated first, random arc second
- maxArcs always applies, e.g. if maxArcs=1 and sequential arc was generated, random arc will not be generated even if everything else was satisfied
maxArcs counts any discovered topics, even from other arc scripts or normal game; and if you have any duplicate topics within a command it will count all duplicates as separate topics too
The "discovered" research topics behave almost identically to normal research:
+ lookups, unlocking, disabling and other features affecting normal research will apply (as if this research was finished in your HQ)
+ score will be awarded
+ ufopedia article will pop up (if available)
- getOneFree DOES NOT work (intentionally, no need to report as bug)
Test download:
https://lxnt.wtf/oxem/builds//Extended/Extended-5.4-41f8647ec-2019-04-27-win64.7zFeedback welcome...