View Single Post
  #33  
Old December 4th, 2006, 11:16 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

DMM is already reserved for Deathstalker's Mount Mod.

Ah, drop after several levels. Gotcha. Here is a horrible way to do it:

Note the if-else function:

iif(cond, A, B)

This means, if cond is true, return A. Else, return B. You can naturally put other functions in for A and/or B.

Now to apply it:

40 - iif([%Level%] >= 5, 20, iif([%Level] >= 3, 10, 0))

This will make it:

L1: 40
L2: 40
L3: 30
L4: 30
L5: 20
L6: 20
L7: 20
...


Hmm... a possibly less crazy way that gets the same progression:

iif([%Level] >= 5, 20, iif([%Level%] >= 3, 30, 40))

Or, as a purely aesthetic issue, if you want to see decreasing sizes, just invert:

iif([%Level] < 3, 40, iif([%Level%] < 5, 30, 20))
__________________
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