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

This Month's Specials

Air Assault Task Force- Save $8.00
Bronze- Save $10.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old November 11th, 2006, 12:31 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: Research by population?

I spent some time looking over this one. To make it happen you would need the research ability and the formula you would use would have to call on a manner to count the current population of the planet. Let’s call it Get_Current_Planet_Population. Now once you have that you will need to build it into a series of if statements. Something like this:

iif(Get_Current_Planet_Population() <= 100, 500, iif(Get_Current_Planet_Population() <= 200, 600, 100) and so on and so forth.

Note that I am using multiples of 1 million; so 100 equals 100 million population. You could use a straight formula with a multiplier too; however, I am willing to bet that after some play testing you will prefer the “step” increments that an if statement can give.

A straight formula example:

500 + (Get_Current_Planet_Population() * 50)

So now you need to email Aaron with a request.
__________________
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
 

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 07:41 PM.


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