Results 1 to 5 of 5

Thread: Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

    Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

  2. #2
    Flikitos's Avatar Campidoctor
    Join Date
    Dec 2009
    Location
    France
    Posts
    1,661

    Default Re: Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

    Well well well I don't think the title is accuracy enough.

  3. #3

    Default Re: Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

    Quote Originally Posted by Flikitos View Post
    Well well well I don't think the title is accuracy enough.
    My bad. I was going to put the title this instead:

    Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod. For the fact that such a list would help me and other modders mod the game, via scripting as much as possible because a full list of pre-defined functions would be a sort of "reference-sheet" for scripting in ETW. ETW, the greatest TW game to-date, considering its scope and the work done by modding teams. I love pizza! OJ Simpson did do it.

  4. #4
    wangrin's Avatar Unguibus et Rostro
    Patrician Artifex

    Join Date
    Feb 2005
    Location
    France
    Posts
    4,397

    Default Re: Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

    LUA functions from CA.
    Be careful, some of them only work with NTW.
    Attached Files Attached Files


    « Le courage, c’est de ne pas subir la loi du mensonge triomphant qui passe, et de ne pas faire écho de notre âme, de notre bouche et de nos mains aux applaudissements imbéciles et aux huées fanatiques.. » Jean JAURES

  5. #5
    Ducenarius
    Join Date
    Aug 2010
    Location
    Poland --> Upper Silesia region (pl=Górny Śląsk).
    Posts
    920

    Default Re: Looking for ETW lua pre-defined functions in the game. I heard there is a list of functions that modders can use to mod.

    Quote Originally Posted by wangrin View Post
    LUA functions from CA.
    Be careful, some of them only work with NTW.
    Hello Wangrin,

    i would like to use one of the functions listed in the scripting.txt file:

    Command: set_zoom_limit
    Description: Limit the max camera angle. The higher the number the lower the camera.
    Usage: set_zoom_limit(max_radian_from_vertical, min_radian_from_vertical)
    Author:

    I would like to use this function in the Empire: Total War grand campaign mode to force the human player to be able to lower the campaign camera only to a certain level.

    I don't want to see the grand campaign strenghtbar above buildings and units - i noticed, that it could be seen only from a certain distance (i want to limit the possibility of zoom-in to a set range above campaign map).

    Is this possible change to implement? How i could get this function to work in the grand campaign?


    Thank You in advance for any help

    ==================================================================================

    EDIT: I figured it out, i changed one value in the scripting.lua file from data/campaigns/main folder.
    I set max_radian_from_vertical from 1,0 (default) to 0,9. Now there is no strenghtbar visible above land and naval units. Campaign textures and models are still big enough to be seen on the campaign map.

    Thank You very much Wangrin for the attached informations about LUA functions, +REP
    Last edited by p.jakub88; January 26, 2014 at 04:59 PM.
    Remember of the Alamo!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •