[Discussion] Generic X3TC S&M questions II
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- EGOSOFT
- Posts: 12099
- Joined: Fri, 21. May 04, 17:15
-
- Posts: 266
- Joined: Sun, 5. Oct 08, 10:06

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="planet_fix" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">
<cues>
<cue name="khaak_fix" comment="its imperative that you use a custom name">
<condition>
<check_all>
<check_value value="{player.name}" exact="fix2" comment=""/>
</check_all>
</condition>
<timing>
<time exact="2s"/>
</timing>
<action>
<do_all>
<find_object group="this.broken1" category="planet" typename="SS_PL127">
<sector x="0" y="0"/>
</find_object>
<find_object group="this.broken1" category="planet" typename="SS_PL89">
<sector x="0" y="0"/>
</find_object>
<find_object group="this.broken1" category="planet" typename="SS_PL58">
<sector x="0" y="0"/>
</find_object>
<destroy_group group="this.broken1" explosion="0"/>
</do_all>
</action>
</cue>
</cues>
</director>
Edit: Maybe it should be done through <alter_sector> ?
Last edited by Igor.tverd on Thu, 25. Mar 10, 19:05, edited 1 time in total.
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
-
- EGOSOFT
- Posts: 12099
- Joined: Fri, 21. May 04, 17:15
-
- Posts: 9378
- Joined: Mon, 29. Dec 08, 20:58
Just an MD quickie:
Is there actually anything you download to type up MD scripting, or do I just learn it and XML it.
Because if it's the latter, I'm game! I feel like a few missions might add to some of my Plugins, released and planned. (All 2 of them. 3 if you count AG
)
Is there actually anything you download to type up MD scripting, or do I just learn it and XML it.
Because if it's the latter, I'm game! I feel like a few missions might add to some of my Plugins, released and planned. (All 2 of them. 3 if you count AG

______
I'm Jon. I'm mostly not around any more. If you want to talk, please message me! It's cool.
______
I'm Jon. I'm mostly not around any more. If you want to talk, please message me! It's cool.
______
-
- Posts: 2575
- Joined: Sat, 28. Mar 09, 16:03
-
- Posts: 1962
- Joined: Tue, 8. Jan 08, 18:19
I'm not quite sure what you mean by "or do I just learn it and XML it.", but I'll try to answer anyways:Is there actually anything you download to type up MD scripting, or do I just learn it and XML it.
You can code MD Missions with any text editor you like. Some are more suited (my favourite is Microsofts Visual Web Developer, because it supports .xsd files), some are less suited (the Editor for example).
There is no ingame MD code editor.
The syntax of the script language used in the X games is a mixture of many different programming languages, so there is nothing comparable, especially not HTML or any other markup language.Q. Is the script code used in the game similar or HTML or another code,
or is it a code language unique to the X games ?
If you want to see code, just open a script with a web browser, which supports XML stylesheets (e.g. Firefox). This only works, if you have the x2script.xsl in your "scripts" directory (which should be the case).
Greetings,
ScRaT
-
- Posts: 9378
- Joined: Mon, 29. Dec 08, 20:58
-
- Posts: 1827
- Joined: Wed, 6. Nov 02, 20:31
Go here it's in the X3R forum, it's the main MD files links you'll need.EmperorJon wrote:I meant, do you just learn all the commands to type in.
Anyway. Yes is the answer.
HTH
Argo.
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

-
- Posts: 1827
- Joined: Wed, 6. Nov 02, 20:31
MD help,
This code creates the station at the co-ordinates but it always spawns without the products.
I can't see where it's wrong.
I'm creating this because the Goner Temple in my Game has no products and I already tried to add product to the station but it didn't work so though I'd try with creating an EQ for them.
The sector is just for testing atm and if I'd gotten it to work I would have placed it in Elysium of Light.
Using Cycrows cheats I can get them in but not with the MD code
.
All help appreciated,
Argo.
This code creates the station at the co-ordinates but it always spawns without the products.
I can't see where it's wrong.
Code: Select all
<create_station race="goner" typename="SS_DOCK_A_EQUIP" name="Goner Equipment Dock">
<position x="5" y="5" z="5"/>
<sector x="8" y="8"/>
<equipment loadout="default"/>
<products>
<ware typename="SS_WARE_BEAMING" exact="8"/>
<ware typename="SS_WARE_TECH209" exact="50"/>
<ware typename="SS_WARE_WARPING" exact="2"/>
<ware typename="SS_WARE_L_A" exact="1"/>
</products>
</create_station>
The sector is just for testing atm and if I'd gotten it to work I would have placed it in Elysium of Light.
Using Cycrows cheats I can get them in but not with the MD code

All help appreciated,
Argo.
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

-
- Posts: 1827
- Joined: Wed, 6. Nov 02, 20:31
Ok will give that a go and see what happens.
Thanks scrat.
Argo
Thanks scrat.
Argo
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

-
- EGOSOFT
- Posts: 12099
- Joined: Fri, 21. May 04, 17:15
-
- Posts: 266
- Joined: Sun, 5. Oct 08, 10:06
Ketraar, any news on the planet deletion problem? I tried it in couple other sectors with other planets, still no result.Ketraar wrote:Creating docks via MD does not work... (yet)
Neither products nor any other ware node will work.
MFG
Ketraar
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
-
- EGOSOFT
- Posts: 12099
- Joined: Fri, 21. May 04, 17:15
-
- Posts: 1827
- Joined: Wed, 6. Nov 02, 20:31
The yet bit means that there's a possibility of it working then?Ketraar wrote:Creating docks via MD does not work... (yet)
Neither products nor any other ware node will work.
MFG
Ketraar

Argo.
[MOD]X3TC No Fog / [MOD]X3AP No Fog / [MD]X3TC Menagerie Shipyard / [MD]X3AP Menagerie Shipyard
<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

<==<<Argonaught>>==>
XBTF>XT>X2TT>X3R>X3TC>X3AP>X4F
I lurk alot for the most part now

-
- Posts: 266
- Joined: Sun, 5. Oct 08, 10:06
-
- Posts: 22477
- Joined: Sat, 23. Apr 05, 21:42
-
- Posts: 266
- Joined: Sun, 5. Oct 08, 10:06
I would prefer to do it 100% with MD. Basically if MD has any common sence there should be something like <remove_ware> command or something similar.jlehtone wrote:Can MD call a script? Script can remove ware/resource/product.
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
-
- Posts: 10522
- Joined: Fri, 12. Mar 04, 19:47
Ok, after doing some searching... and trying to ask some friendly worms in my garden if they know
... I am still searching for an answer to the following question:-


- If you are providing a Custom Ware with your script, is there any way of NOT having to include the whole TWareT file?


Lenna (aka [SRK] The_Rabbit)
"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55
"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb
"When eating an elephant take one bite at a time" - Creighton Abrams
"Understanding is a three edged sword... your side, their side... and the Truth!" - J.J. Sheriden, Babylon 5 S4E6 T28:55
"May god stand between you and harm in all the dark places you must walk." - Ancient Egyption Proverb
"When eating an elephant take one bite at a time" - Creighton Abrams
-
- Posts: 13244
- Joined: Fri, 13. Jan 06, 16:39
It's how X3 modding works. There are no half files. Only THE file or not THE file.
My complete script download page. . . . . . I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
There is no sense crying over every mistake. You just keep on trying till you run out of cake.