Is there a function that can check if something is a list?
Does <ShipClass support the <Trade> element? I want to show other currencies when you dock with ships.
Modding questions
-
- Fleet Admiral
- Posts: 2876
- Joined: Thu Feb 03, 2011 5:21 am
- Location: Hmm... I'm confused. Anybody have a starmap to the Core?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Get on Discord for mod help and general chat


Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
The (typeof x) function returns the type of any expression. (help 'typeof) for more.
Unfortunately, ships do not support the <Trade> element (though they should). The best work around, I think, is to redirect the docking. Look at how the St. Katharine's Star station works. It handle <OnDockObjAdj>, which I think might work for ships too.
Code: Select all
(typeof (list 1 2 3)) -> 'list