gMargin

Freeform discussion about anything related to modding Transcendence.
Post Reply
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

This doesn't work

Code: Select all

(setq gMargin intTeratonSellMargin-35)

This is annoying for those who wish to change how the Teratons, Ringers, and Taikon do buisness. It is possible to redefine dsExchangeSell and dsRingerSell to accommodate both functions and constants together by separating gFunctMargin and gConstMargin, but could you add this possibility for the next release?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

Why not just change the intTeratonSellMargin itself? Or change it to use lambda then pass the info you want almost like you want it to be now.
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

yes it is possible to redefine dsExchangeSell and dsRingerSell to accommodate both functions and constants together by separating gFunctMargin and gConstMargin. 8)

personally I would keep it as is and make a new global for gConstMargin so functions that are set up for it can use it and you could still use the old way so you don't have to rewrite anything.

edit: The only thing with that Periculi we do not have optional arguments currently, if we did that would work. (the lambda thing I mean)
Crying is not a proper retort!
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

Periculi wrote:Why not just change the intTeratonSellMargin itself?
Not in any of the .xml files. It is, after all, a function
User avatar
Betelgeuse
Fleet Officer
Fleet Officer
Posts: 1920
Joined: Sun Mar 05, 2006 6:31 am

eer yes it is

Teratons.xml line 1129

all functions that start with int are in the xml
Crying is not a proper retort!
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

I don't know how I didn't find it... :oops:

All I have to do is put it in my mod in a globals tag and modify it, right?
User avatar
Periculi
Fleet Officer
Fleet Officer
Posts: 1282
Joined: Sat Oct 13, 2007 7:48 pm
Location: Necroposting in a forum near you

I think you can do that- you mean just override intTeratonSellMargin in an extension, right? Try it and let us know. :)
F50
Fleet Officer
Fleet Officer
Posts: 1004
Joined: Sat Mar 11, 2006 5:25 pm

Teratons and Taikon are no longer so generous in the HardMod.

It worked flawlessly
Post Reply