Modding questions

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

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.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
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.
george moromisato
Developer
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.

Code: Select all

(typeof (list 1 2 3)) -> 'list
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.
Post Reply