what are functions

Freeform discussion about anything related to modding Transcendence.
Post Reply
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

What are function, how and were do you use them.
when life throws you a curve ball catch it and throw it back.
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?

Functions are how you modify things using tscript, which is Transcendence's scripting language. Xelerus has an incomplete, but very helpful list of functions:
http://xelerus.de/index.php?s=functions&all=yes
If you want help learning it I suggest you go to IRC:
http://webchat.freenode.net/?randomnick ... e&prompt=1
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.
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

Thank u
when life throws you a curve ball catch it and throw it back.
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

What kind of things do functions do
when life throws you a curve ball catch it and throw it back.
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?

It depends on the function. They return things and are generally used for more advanced modding.
I suggest starting out with learning all the events in Transcendence and tinkering with xml before learning what functions are.
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.
andrewpen
Commonwealth Pilot
Commonwealth Pilot
Posts: 97
Joined: Thu May 31, 2012 12:35 pm
Location: In my lab

You say learn the events first. what else can events be used for other than stations?
I haven't been coding for to long I have made a few basic ships and weapons and 1 station
And I have only ever seen events and functions on the station.
when life throws you a curve ball catch it and throw it back.
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?

Oncreate work for ships and OnDestroy works as well. There's tons of underused events and kinks in Transcendence, you just have to keep looking ;)
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.
Post Reply