Check value for installed mods?

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

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

Realspace
Posts: 1902
Joined: Wed, 15. Nov 06, 10:21
x4

Check value for installed mods?

Post by Realspace »

I can't find anywhere both in common.xsd or md.xsd.
A way (check value) to exclude a cue if another specific mod is installed (that has the same function).
Thanks!
sprIder
Posts: 151
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Check value for installed mods?

Post by sprIder »

What about checking, if a cue in a specific file exists?

In his Extended Conversation Menu iforgotmysocks has a testmod example, where he looks, if a specific cue of a specific file exists and then (would, if not commented out) use this cue:

Code: Select all

<do_if value="@md.ExtendedConversationMenu.Main.exists">
	<set_value name="md.ExtendedConversationMenu.Main.$convOptions.$testmod" exact="table[$signalCue = md.ExtendedConversationMenu_TestMod.Test_ConversationExtentionManagerSupport, $params = [event.object]]
</do_if>
Does this help?
Realspace
Posts: 1902
Joined: Wed, 15. Nov 06, 10:21
x4

Re: Check value for installed mods?

Post by Realspace »

Yes it does...of course, a check value for the main cue of any md file in the other mod will do the trick...how could I not think of such a simple solution :shock:
Thanks mate
sprIder
Posts: 151
Joined: Sat, 3. Jul 10, 23:23
x4

Re: Check value for installed mods?

Post by sprIder »

You're welcome! I'm glad it's helping you!

Return to “X4: Foundations - Scripts and Modding”