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 2 utilisateurs et 134 invités en ligne.

Utilisateurs en ligne

  • GambitUK
  • Thy Reaper

Languages

  • English English
  • French French

Parcourir les archives

« Août 2008  
Lu Ma Me Je Ve Sa Di
        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

MATH!!!

Soumis par Gideon le Lun, 2006-11-20 17:57 SE:V MODs

So, I'm working on my own personal mod (it started as a simple change in numbers of engines in relation to ship size and has...grown...)

I thought that some of the work I've done might be of use to other modders. I've tried to define things for everyone, and present it in a coherant format. There are two falloff systems, first a linear dropoff, which is a sloping line. Second is an exponential decay curve, which is a sloping curve-thing (ooohhh! technical words!.

So, here is some notes on math for weapon dropoff:

WARNING, THE FOLLOWING MAY CAUSE HEADACHES, ANGER, FRUSTRATION, DIZZYNESS, AND/OR A FUNNY FEELING IN YOUR SHORTS!
PROCEED AT YOUR OWN RISK!

‹ Space Empires V Editor 1.0 Released Balance Mod v0.97 Available! ›
» 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

Linear

Soumis par Gideon le Lun, 2006-11-20 17:59

This is the math for a weapon to drop off in damage according to linear dropoff.

Definitions:

m is damage modifier from levels.

p is percentage of m which applies, as expressed by a number from 0.00 (for 0%) to 1.00 (for 100%).

r is the percentage of the range of the weapon as it relates to its maximum possible range, as expressed by a number from 0.00 (for 0%)
to 1.00 (for 100%). Example: Max range is 60, then 30 is 50% of 60 (one half), so r = 0.5.

f(m) = damage by level * (p)

f(p) = 1 - (a * r)

f(r) = range formula

Notes:

a is the point where the ammount of damage delta floor. a = 0.5 = 50% damage.

Script function definitions:

Power is the formula command for exponents. Power (A, B) means A to the power of B. Squareing something would be Power (A, 2).
Cubing would be Power (A, 3). Another text notation for this would be A^B.

iif is an if - then - else command. iif(A, B, C) = if A is true, do B, otherwise do C.

Min is take the minimum of two values. Min(A, B) = take the minimum of A or B, whichever is lower.

So, iif([%Range%] Min(90, (([%Level%] - 1) * 10) + 30), 10000, 0)
(23 + (([%Level%] - 1) * 5)) - (([%Range%] / 10) * 1.67) - iif([%Range%] > Min(90, (([%Level%] - 1) * 10) + 30), 10000, 0)

Simplified formulas:

iif([%Range%]

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

Linear Cont

Soumis par Gideon le Lun, 2006-11-20 18:01

Simplified formulas:

iif([%Range%]

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

DANGIT!!!

Soumis par Gideon le Lun, 2006-11-20 18:14

I can't continue this post because the text does not show up for some reason.

I guess it will wait, or I can put this up as a .txt file if someone will host.

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de SysOp
Strategy First Staff

New content type

Soumis par SysOp le Lun, 2006-11-20 18:54
Greetings, I see there are a number of posts with math notation that gets filtered out by our posting system. I've included a new input format, called "Escaped HTML" which can be selected for use for just such a purpose. Now when you type <this> <sort> <of> <thing>, the greater-than and less-than signs will be converted to a benign form. Below your comment box, you should see a new "input format" link, which displays 2 options. Filtered HTML is still the default, which allows certain common codes to be used, as described below. BBCode, for those familiar with it, will work with either input format selection.
» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Rilbur

Math formulas

Soumis par Rilbur le Lun, 2006-11-20 23:13

To get the < and > signs to show properly, please type the following without any spaces:

< is & l t ;
> is & g t ;

Or use the new mode the admin has FINALLY provided us.
_______________________
There are 10 types of people in the world:

Those that understand binary, and those that don't.

» 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 :

  • Any chance of different setup options for each player?
  • Ok What am I missing
  • Balace Mod for Stock SEV Petition
  • Space Empires V 1.74
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List

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 :

  • Upgrading Weapon Platforms, Troops, Fighters, Sattelites, ...
  • Space Empires V Editor 1.58.0-0
  • Balance Mod 1.11 Ground Combat Issues
  • DevnullMod 1.0.0
  • Custom Empires beta v0.1 ready!
(c) Strategy First, Inc. All rights reserved.