Lists of expressions etc

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

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

thomasbkdk
Posts: 180
Joined: Wed, 8. Jan 20, 07:34
x4

Lists of expressions etc

Post by thomasbkdk »

Let it be said i only new a little about programming etc.
Enough to get the general idea and to adapt it.

When i look through some of the mod files for the game i see expressions like:
player.zone
player.ship
$actor.stock.list

These are just a few examples.

My question is, is there some compiled documentation and overview of all of these?
Or will i need to go through the decompressed game files and other peoples mods to learn about these?
AMD 3700X|GSKILL 2x32GB 3600C17|MSI X570 UNIFY|MSI RX 6800|SAMSUNG NVME 990 PRO|RAZER TARTARUS PRO|AOC AGON AG273QX 2560x1440@165|STREAM DECK XL+PEDAL|CORSAIR K95 PLATINUM RGB
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13486
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Lists of expressions etc

Post by euclid »

To my best knowledge there is no compiled documentation on those parameters. However, many of them (maybe not all) you should find in scriptproperties.xml. Just search the file for property name=.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
j.harshaw
EGOSOFT
EGOSOFT
Posts: 2171
Joined: Mon, 23. Nov 15, 18:02

Re: Lists of expressions etc

Post by j.harshaw »

keywords are documented in scriptproperties.xml as euclid mentioned.
script actions are in:
- common.xsd (for actions that can be used in both AI scripts and MD)
- aiscripts.xsd (for actions that can only be used in AI scripts)
- md.xsd (for actions that can only be used in MD scripts)

have those four files pretty much permanently opened in a notepad++ instance when i'm working on scripts. find it easier and faster to find what's already possible (without additional implementation) that way than with things like visual studio's built-in stuff.
thomasbkdk
Posts: 180
Joined: Wed, 8. Jan 20, 07:34
x4

Re: Lists of expressions etc

Post by thomasbkdk »

Thank you both.
AMD 3700X|GSKILL 2x32GB 3600C17|MSI X570 UNIFY|MSI RX 6800|SAMSUNG NVME 990 PRO|RAZER TARTARUS PRO|AOC AGON AG273QX 2560x1440@165|STREAM DECK XL+PEDAL|CORSAIR K95 PLATINUM RGB

Return to “X4: Foundations - Scripts and Modding”