Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 0 users and 274 guests online.

Languages

  • English English
  • French French

Browse archives

« November 2008  
Mo Tu We Th Fr Sa Su
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Custom formulas with parameters?

ekolis's picture
Submitted by ekolis on Tue, 2006-12-19 13:01. SE:V MODs

I know you can put formulas in Formulas.txt, but those seem to be only formulas which take no parameters... Is it possible to put custom formulas anywhere that DO take parameters, such that I could define a formula

miniaturize(amount) := [%amount%] * (1 - 0.05 * ([%Level%] - 1))

for instance, that I could call as follows:

Tonnage Space Taken := miniaturize(100)

and the component would take up 100 spaces at level 1, 95 spaces at level 2, 90 spaces at level 3, reducing by 5 for each level, but then I could do

Cost Minerals := miniaturize(5000)

and it would cost 5000 minerals at level 1, 4750 at level 2, 4500 at level 3, etc.?

‹ System Type Mod for Heavy Fighters ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mod Designer

Hmmm...

Submitted by Gideon on Tue, 2006-12-19 13:05.

An interesting question you pose...

I know you can do this with the AI scripting (it's nessesary, actually).

I am uncertain whether the Data files allow for this...

It would depend on how and when the program calls the files. This is definatly worth of experimentation.

» login or register to post comments

Re: Custom formulas with parameters?

Submitted by Mylon on Mon, 2007-02-12 13:31.

I'm pretty sure that this isn't possible. There is a formula list text file, but only certain files seem to take inputs from that.

Your best bet is to go down the component list and add, "* (1 - 0.05 * ([%Level%] - 1))" to the end of every Tonnage Space Taken line (and probably tonnage structure, too!)

» login or register to post comments

Re: Custom formulas with parameters?

Submitted by Fallen Haven on Tue, 2007-02-13 00:24.

Mylon wrote:
I'm pretty sure that this isn't possible. There is a formula list text file, but only certain files seem to take inputs from that.

Your best bet is to go down the component list and add, "* (1 - 0.05 * ([%Level%] - 1))" to the end of every Tonnage Space Taken line (and probably tonnage structure, too!)

Tonnage structure is what you want to increase as it is what is taking damage. The other tonnage is used to know how much you can fit on the design... Also take note that making stuff too light may create the problem that you have more space than you can fill due to all the slots being filled with low tonnage items. This is what happen in my mod when the larger ships reach high tonnage capacity...

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Research By Percentage SUCKS
  • Star Trek Trailers.....
  • Space Dock suggestion
  • drone combat?!
  • Balance Mod v1.15 Available!

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • FUnction to see what shipset an Empire is using?
  • More fighter supply bugginess
  • SE5_20060929-49.jpg
  • Highlighter User define lang for NOTEPAD plus plus
  • A few wishes for SE V
(c) Strategy First, Inc. All rights reserved.