.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

Reply
 
Thread Tools Display Modes
  #1  
Old December 4th, 2006, 04:05 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default Re: Component.txt Knowledge Base

It looks like he wants it to stay the same for several levels, THEN drop 10kt..
__________________
Phoenix-D

I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
-Digger
Reply With Quote
  #2  
Old December 4th, 2006, 04:18 PM
President_Elect_Shang's Avatar

President_Elect_Shang President_Elect_Shang is offline
Brigadier General
 
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
President_Elect_Shang is on a distinguished road
Default Re: Component.txt Knowledge Base

That was my impression, but how many levels till the next drop 7? I don’t know why he is dividing level minus one by seven or what the int is for. Maybe he is thinking he has to tell SE5 it is an integer before he declares it? Integer or Intelligence?

Thank you for helping out Imperator Fyron. Is that what you were looking for DeadMilkMan? I dub thee DMM!
__________________
President Elect Shang; Tal-Re Republic of Free Worlds
Welcome to Super Vegeta’s Big Bang Attack… Welcome to OBLIVION!
“Don Panoz made an awesome car and… an incinerator” Bill Auberlen
Reply With Quote
  #3  
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
Reply

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:34 PM.


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