Page 1 of 1
Just some mod feasability questions
Posted: Sat Mar 11, 2023 8:29 am
by zgrssd
So, same deal as last time: I got some ideas. And wanted to see if they could be implemented, given the current limitations of modding.
So can I:
1. Give a slow gain towards a tech (I was thinking specifically the Racial Diplomacy Techs)?
I could see this done via a silent event, that triggers every so often and gives a +1 Tech progress.
2. Give Planets a extra weight so mining Ships (and only those) go there with priority?
Even if that means going to planets without any other resources?
Re: Just some mod feasability questions
Posted: Sat Mar 11, 2023 9:25 am
by frankycl
zgrssd wrote: Sat Mar 11, 2023 8:29 am
can I:
1. Give a slow gain towards a tech (I was thinking specifically the Racial Diplomacy Techs)?
I could see this done via a silent event, that triggers every so often and gives a +1 Tech progress.
2. Give Planets a extra weight so mining Ships (and only those) go there with priority?
Even if that means going to planets without any other resources?
As far as I know you can only:
1. decrease/increase the research-speed in general - or for each race in general (with the policy-files), but not the research-speed for a specific tech.
However, in specific events, you could increase the gain of specific techs - or enable them in the first place, but you can't disable or decrease the gain, or slower the researchspeed.
2. No - this a hardcoded feature that can only be used in-game with strategic/tactical thoughts (and additionally you can't mod things belonging to specific planets (because they are generated and specified only with the galaxy-generation in-game) - except when you link a specific event with them.).
Re: Just some mod feasability questions
Posted: Sat Mar 11, 2023 5:14 pm
by AKicebear
Your first goal seems very possible - look into the skip drive bonuses events that all races get at game start as an example.
The second seems like a coding mod, not with simple XML.
Re: Just some mod feasability questions
Posted: Sat Mar 11, 2023 5:55 pm
by zgrssd
AKicebear wrote: Sat Mar 11, 2023 5:14 pm
Your first goal seems very possible - look into the skip drive bonuses events that all races get at game start as an example.
The second seems like a coding mod, not with simple XML.
I was thinking both might be. Good to know.
My biggest worry about the Event is probably message spam. I hope I can do invisible events.
Re: Just some mod feasability questions
Posted: Sun Mar 12, 2023 4:53 am
by iancmtaylor
You could likely create a piece of debris that gives 'x' tech, then create an event that causes it to spawn in at Homeworld or something. When salvaged, would give an amount of that tech.
Re: Just some mod feasability questions
Posted: Sun Mar 12, 2023 5:31 am
by zgrssd
iancmtaylor wrote: Sun Mar 12, 2023 4:53 am
You could likely create a piece of debris that gives 'x' tech, then create an event that causes it to spawn in at Homeworld or something. When salvaged, would give an amount of that tech.
A interesting idea.
I guess it would still need to be salvaged?
And wouldn't it still produce a message "you made progress from salvage"?
Re: Just some mod feasability questions
Posted: Sun Mar 12, 2023 5:38 am
by iancmtaylor
Yes, it would need to be salvaged, and would make a message.
I never really looked at the events file, not familiar with whether you can make a silent event that increments research.
I'm confident that my way would work though.
-- I have no idea what the trigger for my event would be, I don't even know what the triggers in the file are, other than game start and exploration.
Re: Just some mod feasability questions
Posted: Sun Mar 12, 2023 7:48 am
by zgrssd
iancmtaylor wrote: Sun Mar 12, 2023 5:38 am
Yes, it would need to be salvaged, and would make a message.
I never really looked at the events file, not familiar with whether you can make a silent event that increments research.
I'm confident that my way would work though.
-- I have no idea what the trigger for my event would be, I don't even know what the triggers in the file are, other than game start and exploration.
I skimmed the Event file a bit. Just starting with the Home Colony Ruins stuff.
The Message itself is apparently a Trigger Action. Meaning it should be optional:
Code: Select all
<TriggerActions>
<GameEventAction>
<Type>GeneralStoryMessageToEmpire</Type>
<MessageTitle>Expand and Exploit!</MessageTitle>
<Description>At long last, we have developed the technology to explore beyond our planet, thanks to the excavation of the ancient Haakonish ruins on our homeworld. The ingenuity of our forebears now belongs to us!