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

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #11  
Old June 21st, 2007, 08:44 PM
Suicide Junkie's Avatar
Suicide Junkie Suicide Junkie is offline
Shrapnel Fanatic
 
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
Suicide Junkie is on a distinguished road
Default Re: Question on SEV

The formulae are pretty straight forward.
The game just plugs in the values for [%Range%] and [%Level%], and out comes the number.
The range at which the weapon does zero damage is its maximum range.

So if you said a formula of := 35
The weapon would do 35 damge period, independent of range or tech level. (Although there is a hardcoded limit of range 500)

:= 35 - [%Range%]
would make a weapon which does 35 at range zero, and fades linearly to nothing at range 35.

More common is to use the iif(condition, true, false) structure.
:= iif ([%Range%] < 80, 100, 0)
So the weapon deals 100 damage out to range 80, then drops to zero beyond that.

Nest your iifs, use square roots, whatever you like.
Reply With Quote
  #12  
Old June 24th, 2007, 05:19 AM

se5a se5a is offline
First Lieutenant
 
Join Date: Aug 2003
Location: New Zealand
Posts: 776
Thanks: 0
Thanked 0 Times in 0 Posts
se5a is on a distinguished road
Default Re: Question on SEV

don't worry about trying to understand aaron's forumulas, they are unnessasrily complex.
__________________
[img]/threads/images/Graemlins/Flag_NewZeland.gif[/img]
Reply With Quote
Reply

Bookmarks


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 09:16 AM.


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