.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #19  
Old December 4th, 2006, 03:19 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Component.txt Knowledge Base

Technically, it was SJ.

Take a look at a snippet from the DUC:

Weapon Space At Range Distance Increment := 10.0
Weapon Space Min Damage At Range := 0.0
Weapon Space Max Damage At Range := 0.0
...
Weapon Space Min Damage Modifier Formula := blah formula we don't care about
Weapon Space Max Damage Modifier Formula := blah formula 2

The Damage At Range lines are exactly like SE4, except you can use decimals. They are a space-delimited listing of damage values. The range increment is moddable, as you can see from the first line. IIRC, the first value is used at ranges up to the distance increment, the second value is used at ranges up to 2x the distance increment, and so on.

Damage done at any range is the sum of the appropriate value from the Damage At Range list and the result of the Damage Modifier Formula (the damage is random between the Min and Max values).

Let's take an example:

Weapon Space At Range Distance Increment := 20.0
Weapon Space Min Damage At Range := 50.0 40.0 30.0
Weapon Space Max Damage At Range := 50.0 40.0 30.0
...
Weapon Space Min Damage Modifier Formula := iif([%Range%] < 60, (5 * ([%Level%] - 1)), 0)
Weapon Space Max Damage Modifier Formula := iif([%Range%] < 60, (5 * ([%Level%] - 1)), 0)

This is a range 60 weapon that increases damage by 5 per level. A short chart of resultant damage at range values (taken at increments of 10 to look like SE4 damages):

L1: 50 50 40 40 30 30
L2: 55 55 45 45 35 35
L3: 60 60 50 50 40 40
L4: 65 65 55 55 45 45
L5: 70 70 60 60 50 50
...
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:54 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.