Navigation menu help

The place to discuss scripting and game modifications for X Rebirth.

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

TarJensen
Posts: 8
Joined: Fri, 27. Feb 09, 08:32

Navigation menu help

Post by TarJensen »

Hi,

I'm working on a little mod (with almost zero xml knowledge, this is a challenge). In this mod, i'll like the navigation window to show up (where you can select a destination an click 'plotcourse');
I figured out how to create a new menu entry, but sadly the window will not pop up when i click any of the menu options (galaxy, sectors,...)

I'm trying to avoid unwanted interferences, so i added my own menu.

Any hint would be appreciated;

Thanks
TarJensen
Posts: 8
Joined: Fri, 27. Feb 09, 08:32

Post by TarJensen »

Disregard;

I just figured out that the section name was incorrect (stupid me)

Back to the editing work :)
Thanks
TarJensen
Posts: 8
Joined: Fri, 27. Feb 09, 08:32

Post by TarJensen »

anyone knows how to call a script with parameters?

I've seen 2 different ways:

<start_script object=.... name="'name of script'">
and
<run_script name="'name of script'" result="$variable">

However, the script I want to call needs some parameters.... How to pass them ?

Thanks
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

<start_script> is in the case you want to spawn an independent instance of a script and run it on an object, but you wont get a return value this way

<run_script> interrupts the current scrimt, executes the given script and continues when its finisched with the return value.

both can have parameters passed with this method

<start|run_script ......>
.<parameter name="X" value="Y"/>
.<parameter ......
............/>
</start|run_script>
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
TarJensen
Posts: 8
Joined: Fri, 27. Feb 09, 08:32

Post by TarJensen »

Thank you for the info;

Can these script be run on the playership?

Thanks
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

scripts can not be run on objects themselves, only on entities like Pilots, Managers, Yisha and the Bordcomputer.
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

Return to “X Rebirth - Scripts and Modding”