Jump to content

function in geck script


kucingkucing

Recommended Posts

hi, I not native English, sorry if there any mistake,

 

I want to ask if the new vegas geck script support the "function with return value" like c++?

somehow like this (i test it and working) :

#include <iostream>

using namespace std;

int main()
{
    int x = 30, y = 20;
    cout<<"the highest value is : "<<max(x, y);
    return 0;
}

int max(int a, int b)
{
    if(a>=b)
    {return a;}
    else
    {return b;}
}

if it can, please show me the "converted" of that code into geck script!!.

 

anyway, thanks for reading, and have a nice day.

Link to comment
Share on other sites

"User Defined Functions" are typically used by "Eventhandlers" which are described and the tutorial on them is linked in the "TIP Do not overlook EventHandlers" entry under the "Scripting" section of the wiki "Getting started creating mods using GECK" article.

"NVSE" adds library functions to the GECK. The original version, which has not been updated for several years, is "here"; and the latest, backwards compatible "community fork" and updated version by a different team is "here". The community based "GECKWiki" has the updated documentation on the NVSE functions, which the "official" Bethesda site version does not.

 

There is also the "GECK Extender": which provides missing, and corrects some broken, functionality of the GECK itself.

 

There are some additional tools and libraries designed to supplement NVSE with additional functions by other authors you may want to use such as:

* "JIP LN NVSE plugin".

* "JohnnyGuitar NVSE".

* "lStewieAl's Tweaks".

 

-Dubious-

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...