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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V > SEV Modders Knowledge Base

Reply
 
Thread Tools Display Modes
  #1  
Old October 16th, 2006, 02:22 PM
Ed Kolis's Avatar

Ed Kolis Ed Kolis is offline
General
 
Join Date: Apr 2001
Location: Cincinnati, Ohio, USA
Posts: 4,547
Thanks: 1
Thanked 7 Times in 5 Posts
Ed Kolis is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old October 16th, 2006, 02:26 PM

Phoenix-D Phoenix-D is offline
National Security Advisor
 
Join Date: Nov 2000
Posts: 5,085
Thanks: 0
Thanked 0 Times in 0 Posts
Phoenix-D is on a distinguished road
Default 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
Reply With Quote
Reply

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 05:06 AM.


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