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 5 users and 180 guests online.

Online users

  • GambitUK
  • Firzen_Zero
  • Randallw
  • Kenquinn
  • Brad

Languages

  • English English
  • French French

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

Formula Help

Submitted by StaticDet5 on Fri, 2006-11-24 12:41. SE:V MODs

I'm attempting to mod some different types of weapon damage. I'm working on a weapon that increases damamge over distance. I'm not looking for help on that score, but I can't seem to get this formula to work (Three iterations below):

Weapon Space Min Damage Modifier Formula := [%Level%] / (2 + 4 * (2.3 ^ (-.01 * ([%Range%]) - 50))))
Weapon Space Min Damage Modifier Formula := ([%Level%] / (2 + 4 * (2.3 ^ (-.01 * (([%Range%] + 1) - 50)))))
Weapon Space Min Damage Modifier Formula := (([%Level%] + 1) / (2 + 4 * (2.3 ^ (-.01 * (([%Range%] + 1) - 50)))))
Weapon Space Min Damage Modifier Formula := (([%Level%] + 1) / (2 + 4 * (2.3 ^ (-.01 * (([%Range%] + 1) - 50))))) + 1

I've even tried cutting and pasting the range limiting forumula from other weapons (The iif, min function) to the end of the forumula, to limit the range to 500.
The error I'm getting is "Cannot Parse". I know there are a ton of parentheses in the forumula, but I had to use an exponential curve instead of a logistic curve.

Anyway, I'm looking for some syntax help. Anyone see anything overtly wrong with the forumula itself?

‹ Weapon Modding: Lessons Learned Modding Manual? ›
» 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

Parse

Submitted by Phoenix-D on Fri, 2006-11-24 14:41.

"Cannot parse" is a generic error that means it couldn't read the formula. Usually if you messed up the parentheses it'll tell you.

In this case it probably doesn't like the -.01. Try -0.01.

» login or register to post comments

That was it!

Submitted by StaticDet5 on Fri, 2006-11-24 15:48.

That was it!

Thanks a ton.

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

  • Trouble with fleet joining in simultaneous
  • Star Wars SEV ship set available
  • Understanding Tactical Combat and Strategies
  • Questions on Lan-play Setup
  • Fighter Bays working oddly

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:

  • Population Bug and minor annoyance
  • Can't save game anymore :(
  • 1.33 bug query
  • Replacement player needed for 1st place empire on Play-By-Web
  • SE5_20060929-51.jpg
(c) Strategy First, Inc. All rights reserved.