modding question

Freeform discussion about anything related to modding Transcendence.
Post Reply
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Is there a way of getting the modifiers in ListOptions if gShowCriteria isn't set?
like a scrGetListFilter or some kind of workaround?
Crying is not a proper retort!
Apemant
Commonwealth Pilot
Commonwealth Pilot
Posts: 94
Joined: Mon Dec 03, 2007 12:51 pm

Betelgeuse wrote:Is there a way of getting the modifiers in ListOptions if gShowCriteria isn't set?
like a scrGetListFilter or some kind of workaround?
I don't understand? Why do you need that filter? I mean, it is usually set right there in ListOptions, so you have the control there. Where would those modifiers come from if not from gShowCriteria from outside? And what would you do with those modifiers? Give me a real example of what you need...
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

Every station has what it can an can not buy but most use the dsExchangeBuy but not all set gShowCriteria (well most don't) and the list still gets filtered. An easy example is the Starton Eridani station, it has modifiers on what you can buy "*NU -Illegal; -ID; -NotForSale;", I would like to know how to get that from inside dsExchangeBuy.

say you want a cargo compatibility mod. That would mean you can only buy or loot depending on your cargo hold. A different kind of mod you would want to do this in is a equipment compatibility mod ie you can only install things compatible with your current devices (this is much easier due to no station has restrictions on what it can install other than level but that may change).
I have thought of a workaround and that is just put a staticdata saying it for every station but would like an easier way of doing it.
Crying is not a proper retort!
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

You would need to remove the station trade tag entirely which will make all the control drop down to the dockscreens. Ringers and Teratons use this method to set their margins. I think the <trade> settings override the dockscreen, or at least are added in first with additional bits adding in from ds trade settings.

Once you have removed the station settings you can just put what you want in the dockscreen trade, or even make it work from a global as per Teratons: gMargin intTeratonBuyMargin
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

no need to do that. You can still scrSetListFilter to anything you want and it will work. The only problem is that you don't know what the stations modifiers is in the dockscreen but static data will solve that problem because you can easily put that data in there.
Crying is not a proper retort!
Post Reply