Jump to content

[Question] Where is GenerateFighterTemplate()?


SerB

Recommended Posts

Hello everyone:

 

I am a new player to this game and I love it a lot. In my experience of gaming, I found fighters are somehow too weak and easy to be destroyed. Hence I plan to do some modification.

 

I read post from FeelSoMoon:

 

https://www.avorion.net/forum/index.php?topic=2300.0

 

and noticed that we need to call function

 

GenerateFighterTemplate(seed, weaponType, dps, tech, rarity, material)

 

to finally generate the fighter from some template.

 

I believe the hitpoint, shield and speed are calculated according to what is generated from that function, and I plan to modify some parameters of such function. However I browsed all files but I cannot find any .lua contains such function.

 

Does anyone has clue about where such function is?

Link to comment
Share on other sites

You want to have a look in the API for

FighterTemplate to get an overview of what is theoretically possible to achieve.

 

/data/scripts/lib/fightergenerator.lua does most of the ingame related fighter-stuff.

 

/data/scripts/lib/story/xsotan.lua and

/data/scripts/lib/shipgenerator.lua

utilize fightergenerator.lua

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...