Results 1 to 10 of 10

Thread: Request: Reference of TWR2 Script Functions

  1. #1
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Icon5 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

  2. #2
    ~Seleukos.I.Nikator~'s Avatar Campidoctor
    Join Date
    Nov 2010
    Location
    The United Europe, currently residing in Norway
    Posts
    1,642

    Default Re: Request: Reference of TWR2 Script Functions

    Just check #1 and #12 posts in this thread.

  3. #3
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Default 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.

  4. #4
    ~Seleukos.I.Nikator~'s Avatar Campidoctor
    Join Date
    Nov 2010
    Location
    The United Europe, currently residing in Norway
    Posts
    1,642

    Default Re: Request: Reference of TWR2 Script Functions

    Might this be of any help to you?

  5. #5
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Default Re: Request: Reference of TWR2 Script Functions

    Yes, this is VERY good, thank you, and the info is all there, I would love more of this sort

    It is great, but it refers to some "old" functions that are replaced, and I know those functions from Rome 2 scripts, and a resource such as this but with all the Rome 2 functions also included would be golden :-)

    Thanks for your time
    Last edited by ♔Greek Strategos♔; October 06, 2018 at 06:34 AM. Reason: Merged posts.

  6. #6
    ~Seleukos.I.Nikator~'s Avatar Campidoctor
    Join Date
    Nov 2010
    Location
    The United Europe, currently residing in Norway
    Posts
    1,642

    Default 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.

  7. #7
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Default 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.

  8. #8
    ~Seleukos.I.Nikator~'s Avatar Campidoctor
    Join Date
    Nov 2010
    Location
    The United Europe, currently residing in Norway
    Posts
    1,642

    Default 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.

  9. #9
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Default Re: Request: Reference of TWR2 Script Functions

    Yes, I have doing that and noting it down in my own personal reference, but it is a LONG process

    I anyone knows about a reference for Rome 2 with parameters and other info, that would be very cool

  10. #10
    Civis
    Artifex

    Join Date
    Jun 2018
    Location
    Copenhagen, Denmark
    Posts
    156

    Default 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
  •