|
|
|
 |

October 16th, 2006, 12:52 PM
|
 |
Brigadier General
|
|
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
|
|
Re: Modding SEV Thread Questions
The component; how does a space yard in space fix a facility on a planet? You do have a good point though!
__________________
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
|

October 16th, 2006, 12:59 PM
|
Sergeant
|
|
Join Date: Jun 2004
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Modding SEV Thread Questions
Construction crews shuttle down to the planet and repair the facilities using supplies from the planet?
|

October 16th, 2006, 01:08 PM
|
 |
Colonel
|
|
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Modding SEV Thread Questions
A basic repair for colonies is essential IMO. Otherwise damaged facilities will never be repaired and it is quite unlogical that you can build new facilities, upgrade facilities but not repair them!
|

October 16th, 2006, 01:14 PM
|
 |
Brigadier General
|
|
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
|
|
Re: Modding SEV Thread Questions
Is there a way to build a component which has a restriction that limits the total number that can be carried? For example:
The Mega Toaster
The mega toaster can toast all bread in the blink of an eye; however, due to the power draw only 1 per 100 hull spaces can be used.
*Mega Toaster Inc. is not responsible for burnt slices or charring of crust. 
__________________
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
|

October 16th, 2006, 02:22 PM
|
 |
General
|
|
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
|
|
Re: Modding SEV Thread Questions
Quote:
President_Elect_Shang said:
Is there a way to build a component which has a restriction that limits the total number that can be carried? For example:
The Mega Toaster
The mega toaster can toast all bread in the blink of an eye; however, due to the power draw only 1 per 100 hull spaces can be used.
*Mega Toaster Inc. is not responsible for burnt slices or charring of crust.
|
Sure, I guess you'd have to give it some unique ability that does nothing (like "AI Tag 1"), then do a requirement that Get_Component_Ability_Count("AI Tag 1") <= Get_Vehicle_Hull_Tonnage() / 100... (not entirely sure about the names of those functions)
Now if you could just restrict based on component NAME that would be much easier... but I never tried that and don't have the function list handy, so it might already be possible 
__________________
The Ed draws near! What dost thou deaux?
|

October 16th, 2006, 02:26 PM
|
National Security Advisor
|
|
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Modding SEV Thread Questions
Note: depending on where you use it, Get_Vehicle_Hull_Tonnage has a tendancy to return 0.
It works in the weapon enhancement file, but I've yet to have it work in components.txt.
__________________
Phoenix-D
I am not senile. I just talk to myself because the rest of you don't provide adequate conversation.
- Digger
|

October 16th, 2006, 02:40 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Modding SEV Thread Questions
Quote:
President_Elect_Shang said:
Is there a way to build a component which has a restriction that limits the total number that can be carried?
|
You must have missed this thread:
http://www.shrapnelcommunity.com/thr...&Number=447917
|

October 16th, 2006, 02:59 PM
|
 |
Brigadier General
|
|
Join Date: Nov 2001
Location: WA
Posts: 1,894
Thanks: 5
Thanked 3 Times in 3 Posts
|
|
Re: Modding SEV Thread Questions
Quote:
Imperator Fyron said:You must have missed this thread:
|
I do not want to force a ship type to have x many of weapon Toaster. If the designing player wants to put toasters on his ship I want to restrict how many they can emplace based upon the total tonnage; one per 100 tons to be exact. I did miss that thread and after scanning it I can see where you made 50% of the hull dedicated to fighter bays; however, as I mentioned this is not the type of restriction I want.
__________________
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
|

October 16th, 2006, 03:28 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Feb 2001
Location: Waterloo, Ontario, Canada
Posts: 11,451
Thanks: 1
Thanked 4 Times in 4 Posts
|
|
Re: Modding SEV Thread Questions
If you know the size of the hull, (which you do) then you know how many are allowed simply by doing the X per 100kt math.
Limit to that many. Done.
Restrictions are each an equation. If the equation evaluates to false, then the design is illegal. If it is true, the design is OK.
__________________
Things you want:
|

October 16th, 2006, 03:34 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Modding SEV Thread Questions
President_Elect_Shang said:
I did miss that thread and after scanning it I can see where you made 50% of the hull dedicated to fighter bays; however, as I mentioned this is not the type of restriction I want.
Well good, cause that is not at all what the thread is talking about.  The 50% fighter bay requirement is already a part of SE5. The thread is about how to set up a max number or percentage of space you can use for specific types (or groups) of components (eg: weapons); it is in fact exactly what you want to do. You can't do it from the component itself, it has to be a restriction on each hull.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|