How to add global parameters to MD scripts?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Assailer
Posts: 476
Joined: Sun, 25. May 14, 17:45
x4

How to add global parameters to MD scripts?

Post by Assailer » Fri, 30. Jul 21, 13:58

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!

kuertee
EGOSOFT
EGOSOFT
Posts: 789
Joined: Sun, 14. Dec 03, 13:05
x4

Re: How to add global parameters to MD scripts?

Post by kuertee » Fri, 30. Jul 21, 14:25

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.
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.

Assailer
Posts: 476
Joined: Sun, 25. May 14, 17:45
x4

Re: How to add global parameters to MD scripts?

Post by Assailer » Sat, 31. Jul 21, 13:00

Thanks! Is this adding in-game editable settings for the player?

kuertee
EGOSOFT
EGOSOFT
Posts: 789
Joined: Sun, 14. Dec 03, 13:05
x4

Re: How to add global parameters to MD scripts?

Post by kuertee » Sat, 31. Jul 21, 14:22

Assailer wrote:
Sat, 31. Jul 21, 13:00
Thanks! Is this adding in-game editable settings for the player?
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.

Post Reply

Return to “X4: Foundations - Scripts and Modding”