Hi,
I would like to add some entries to the global settings page to allow the player changing the behavior of an MD script.
Could anyone help me with some advice?
Thanks in advance!
How to add global parameters to MD scripts?
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: How to add global parameters to MD scripts?
you can use Sir Nuke's UserData API that comes with his Mod Support API mod:
https://github.com/bvbohnen/x4-projects ... ata_API.md
i use it to save the Dead is Dead feature of my Alternatives To Death mod - allowing it to work across different saved games.
https://github.com/bvbohnen/x4-projects ... ata_API.md
i use it to save the Dead is Dead feature of my Alternatives To Death mod - allowing it to work across different saved games.
Mods: RPG: Reputations and Professions, Social Standings and Citizenships, Crime has Consequences, Alternatives to Death. Missions/NPCs: Emergent Missions, NPC Reactions, Mod Parts Trader, High-sec Rooms are Locked, Hacking Outcomes, More Generic Missions, Waypoint Fields for Deployment. Others: Auto-cam, Friendly Fire Tweaks, Teleport From Transporter Room, Wear and Tear. QoL: Trade Analytics, Loot Mining, Ship Scanner, Signal Leak Hunter, Station Scanner, Surface Element Targeting, etc.
Re: How to add global parameters to MD scripts?
Thanks! Is this adding in-game editable settings for the player?
Re: How to add global parameters to MD scripts?
nah, for that you need the Simple Menu Options API, which is also in that mod.
here's its docs: https://github.com/bvbohnen/x4-projects ... ons_API.md
Mods: RPG: Reputations and Professions, Social Standings and Citizenships, Crime has Consequences, Alternatives to Death. Missions/NPCs: Emergent Missions, NPC Reactions, Mod Parts Trader, High-sec Rooms are Locked, Hacking Outcomes, More Generic Missions, Waypoint Fields for Deployment. Others: Auto-cam, Friendly Fire Tweaks, Teleport From Transporter Room, Wear and Tear. QoL: Trade Analytics, Loot Mining, Ship Scanner, Signal Leak Hunter, Station Scanner, Surface Element Targeting, etc.