-
October 04, 2018, 09:23 PM
#1
Request: Reference of TWR2 Script Functions
Hello
I am an active modder, but I have hit a brick wall, because I don't know the game functions callable from scripts (lua and the mission scripts, and possibly others)
I would very much would like a list of game functions, something like this
SomeFunction(var1, var1) -- Does this and that and "var1" is for that and "var2" is for this
I other words, the game's Scripting API/SDK
There has been released a list of all lua functions and the is good, but there is no description of parameters, not even the number of parameters for each, just the names.
I would be very grateful if someone, anyone could help with this
Thank you very much in advance
Greets
Phazer
-
October 05, 2018, 05:12 AM
#2
Re: Request: Reference of TWR2 Script Functions
Just check #1 and #12 posts in this thread.
-
October 05, 2018, 07:11 AM
#3
Re: Request: Reference of TWR2 Script Functions
Thank you, but I have read that that thread, there is no info on parameters
SomeFunction(var1, var2) info on var1 or var 2
No even the NUMBER of parameter,
I really hope that there is such a list.
-
October 05, 2018, 08:27 AM
#4
Re: Request: Reference of TWR2 Script Functions
Might this be of any help to you?
-
October 05, 2018, 10:40 AM
#5
-
October 06, 2018, 02:36 AM
#6
Re: Request: Reference of TWR2 Script Functions
I'm glad you found it useful, Phazer. Unfortunately, I do not know of any other list that will be more up-to-date. I guess you just need to try these functions with different values and see how they work in the game.
-
October 06, 2018, 04:39 AM
#7
Re: Request: Reference of TWR2 Script Functions
Ok, thank you very much. Are there anyone out there with such a list? There are some mods that simply could have been made without a comprehensive reference.
-
October 06, 2018, 08:25 AM
#8
Re: Request: Reference of TWR2 Script Functions
I sadly don't know if there is any such list that is more up-to-date. The one I've linked here before is still very much valid and it contains quite an extensive number of functions.
Many scripters often achieve good results simply through trial and error.
Another good point of reference for you should be the scripts that currently are already in-game. They contain most of the functions in question. You may just simply browse through them and see how they are implemented. Or if you search for a specific function, then simply use the search function in Notepad++, go through different scripts and see if anyone has implemented it before and how. That includes obviously CA's scripts, as well.
-
October 06, 2018, 12:39 PM
#9
-
October 06, 2018, 12:48 PM
#10
Re: Request: Reference of TWR2 Script Functions
Is there nothing else?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules