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 2 users and 158 guests online.

Online users

  • marhawkman
  • bigoo

Languages

  • English English
  • French French

Browse archives

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

MATH!!!

Submitted by Gideon on Mon, 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! ›
» 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

Linear

Submitted by Gideon on Mon, 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%]

» login or register to post comments
Mod Designer

Linear Cont

Submitted by Gideon on Mon, 2006-11-20 18:01.

Simplified formulas:

iif([%Range%]

» login or register to post comments
Mod Designer

DANGIT!!!

Submitted by Gideon on Mon, 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.

» login or register to post comments
SysOp's picture
Strategy First Staff

New content type

Submitted by SysOp on Mon, 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.
» login or register to post comments
Rilbur's picture

Math formulas

Submitted by Rilbur on Mon, 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.

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

  • I am so impressed!
  • Space Empires V 1.74
  • Stuipd Question
  • Neutral pack 1.10 released, now adds three neutral races.
  • Research By Percentage SUCKS

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:

  • adding resources
  • Space Empires V 1.63
  • After 1.58
  • map decompiler
  • An Interview with Aaron Hall (creator of Space Empires) at stargamer.net
(c) Strategy First, Inc. All rights reserved.