kucingkucing Posted August 16, 2020 Share Posted August 16, 2020 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 More sharing options...
madmongo Posted August 16, 2020 Share Posted August 16, 2020 The GECK does not support functions like that in scripts. This was added later in Skyrim, but does not exist in Fallout New Vegas. Link to comment Share on other sites More sharing options...
kucingkucing Posted August 16, 2020 Author Share Posted August 16, 2020 The GECK does not support functions like that in scripts. This was added later in Skyrim, but does not exist in Fallout New Vegas.thank you for the answer, sad news, but thank you Link to comment Share on other sites More sharing options...
UnvalidUserName Posted August 16, 2020 Share Posted August 16, 2020 If you use NVSE you can create user defined functions that do work pretty similar Link to comment Share on other sites More sharing options...
kucingkucing Posted August 16, 2020 Author Share Posted August 16, 2020 If you use NVSE you can create user defined functions that do work pretty similarcan you show me? Link to comment Share on other sites More sharing options...
dubiousintent Posted August 16, 2020 Share Posted August 16, 2020 "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 More sharing options...
kucingkucing Posted August 16, 2020 Author Share Posted August 16, 2020 thank you Dubious, this is what i looking for Link to comment Share on other sites More sharing options...
Recommended Posts