This site is in archival mode. A replacement is being developed. In the meantime, please use the PBW2 Forums for community discussions. The replacement software for this site will use a unified account system with PBW2, and any newly created threads will carry over.
Welcome to Spaceempires.net
Login or Register

Search
Modules
· Content
· Downloads
· Forums
· Game Info
· Image Gallery
· Links
· Shipyards
· Topics
· Staff

User Info
· Welcome, Anonymous
Membership:
· New: Astorre
· New Today: 0
· New Yesterday: 0
· Overall: 3155

People Online:
· Visitors: 135
· Members: 0
· Total: 135

  

Spaceempires.net :: Variable component performance :: View topic
Forum FAQ :: Search :: Memberlist :: Usergroups :: Profile :: Log in to check your private messages :: Log in


Variable component performance

 
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEV Modding Discussion
View previous topic :: View next topic  
Author Message
jflorea
Space Emperor


Joined: Feb 03, 2015

PostPosted: Tue Feb 03, 2015 8:05 pm    Post subject: Variable component performance Reply with quote

I'm trying to find out if it's possible to have a component's performance vary with damage. For example, say a supply storage component is 50% damaged so the amount of supply it can hold is reduced 50%.

Thanks!


Back to top
Fyron
Galactic Guru


Joined: Aug 04, 2003
Location: CA, USA

PostPosted: Thu Feb 05, 2015 6:25 am    Post subject: Reply with quote

One way to achieve such an effect would be to make individual components smaller. Try not to go too far, though, lest you end up needing 200 components to design a frigate. Cool

Smarter than your average Texrak.


Back to top
jflorea
Space Emperor


Joined: Feb 03, 2015

PostPosted: Sat Feb 07, 2015 6:32 am    Post subject: Reply with quote

I did figure out I can control the amount of an ability based on the count of the components on the ship. Not a pretty formula but it works. Smile

Ability 1 Type := Combat Modifier
Ability 1 Description := Required for accurate weapons lock
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := 0 + iif(get_design_specific_component_count("Sensors") > 4, 0, iif(get_design_specific_component_count("Sensors") = 4, -17, iif(get_design_specific_component_count("Sensors") = 3, -50, iif(get_design_specific_component_count("Sensors") = 2, -83, -1000))))

I also just discovered I can set the Shield Generation ability in the vehiclesizes.txt


Back to top
ekolis
Virtual Guru


Joined: Aug 04, 2003
Location: Cincinnati, OH, USA

PostPosted: Sat Feb 07, 2015 5:00 pm    Post subject: Reply with quote

That will only get the count of components on the design, not the count of undamaged components on the ship.

That's no space station - it's a spreadsheet!


Back to top
Display posts from previous:   
Post new topic   Reply to topic    Spaceempires.net Forum Index -> SEV Modding Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
All logos and trademarks used on this site, all comments and stories posted for reading, all files hosted for download,
and all art work hosted for viewing are property of their respective owners; all the rest copyright 2003-2010 Nolan Kelly.
Syndicate news: SpaceEmpires.net News RSS Feed - Syndicate forums: SpaceEmpires.net Forums RSS Feed
Page Generation: 0.85 Seconds