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: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 478
- Joined: Sun, 25. May 14, 17:45
-
- EGOSOFT
- Posts: 817
- Joined: Sun, 14. Dec 03, 13:05
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.
-
- Posts: 478
- Joined: Sun, 25. May 14, 17:45
Re: How to add global parameters to MD scripts?
Thanks! Is this adding in-game editable settings for the player?
-
- EGOSOFT
- Posts: 817
- Joined: Sun, 14. Dec 03, 13:05
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
-
- Posts: 478
- Joined: Sun, 25. May 14, 17:45
Re: How to add global parameters to MD scripts?
Thanks!
I wish to make standalone mods and rely only on officially supported APIs.
Simple 'append a new item' to global option page would do the trick for me.
I wish to make standalone mods and rely only on officially supported APIs.
Simple 'append a new item' to global option page would do the trick for me.
-
- Posts: 1124
- Joined: Fri, 25. Jan 19, 03:26