View Single Post
  #26  
Old December 4th, 2006, 10:18 AM
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

Quote:
DeadMilkman said:
Ok, what I am attempting is to change master computers to be slightly like SEIV, meaning that as you reasearch them, the space used goes down. I have tried several variations to get the Tonnage to drop in 10Kt increments , but they do not seem to work. Here is an example:
40 - ((int(([%Level%] - 1)) / 7) * 10)
have also tried it using trunc(), and several variations of nesting.

The problem is that neither int() nor trunc() seem to actually work, so the tonnage is decreasing by 2 or 3 Kt increments, instead of 10Kt every few levels as intended.

Any suggestions?
Thanks!
Your question is a little confusing; before I can answer let me make sure I know what you want to do. You want the Master Computer to go up every level but you want the space taken to go down by 10kt every seven levels? Or do you want it to go down every level? What does the “int” you are using in your formula mean; Intelligence?

If you want it to go down every level than use: (40 – ([%Level%] * 10) but once you hit level 4 you will have a 0 ton component. You see why I am asking now?
__________________
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