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

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 4 utilisateurs et 237 invités en ligne.

Utilisateurs en ligne

  • Lastdreamer
  • goduranus
  • Randallw
  • BlueTemplar

Languages

  • English English
  • French French

Parcourir les archives

« December 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 31        
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Custom formulas with parameters?

Image de ekolis
Soumis par ekolis le Mar, 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 ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.
Mod Designer

Hmmm...

Soumis par Gideon le Mar, 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.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Custom formulas with parameters?

Soumis par Mylon le Lun, 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!)

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Re: Custom formulas with parameters?

Soumis par Fallen Haven le Mar, 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...

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • Babylon 5 Wars SEV Mod Update
  • Known SE5 v1.74 Bugs
  • Research By Percentage SUCKS
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Bad Bookkeeping

Depuis toujours :

  • 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

Dernier accès :

  • Another Question
  • Retreat shall cost more movement points
  • Tactical Combat graphics glitch
  • IRM v 0.54d is released.
  • Map decompiler
(c) Strategy First, Inc. All rights reserved.