View Single Post
  #15  
Old September 6th, 2007, 03:59 AM

Devnullicus Devnullicus is offline
Sergeant
 
Join Date: Feb 2001
Location: Belmont, CA USA
Posts: 285
Thanks: 0
Thanked 0 Times in 0 Posts
Devnullicus is on a distinguished road
Default Re: DevnullMod for SEV

OK, next question: Is there a way to specifically limit a component or facility so that only 1 is effective? Like spaceyards, excepts using requirements/abilities/etc instead of being hardcoded in the game?

Edit: Never mind - I figured it out.
Code:

Number Of Requirements := 2
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := 1
Requirements Evaluation Allows Usage := 2
Requirement 1 Description := Empire must have at least tech level 1 in Resupply.
Requirement 1 Formula := Get_Empire_Tech_Level("Resupply") >= 1 + (([%Level%] - 1) * 4)
Requirement 2 Description := This vehicle can only have one emergency resupply component on it.
Requirement 2 Formula := Get_Design_Ability_Component_Count("Emergency Resupply") = 0



__________________
How's my Programming? Call 1-800-DEV-NULL
Get the Space Empires V Editor and DevnullMod at http://www.devnullsoftware.com/se5
Reply With Quote