.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 December 7th, 2006, 08:34 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: Component-dependant engines

iifs might not work in that file, then. :/ Did you try just the AI tag?
__________________
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
  #2  
Old December 7th, 2006, 08:37 PM

Raapys Raapys is offline
First Lieutenant
 
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Re: Component-dependant engines

Uhuh, think I might have made a mistake.

Yah, looks like it's working now, thanks. Would be nice if there could be a function that looked for a specific ability description, so we could just use the 'Description Only' ability instead of wasting the AI tags and such.
Reply With Quote
  #3  
Old December 7th, 2006, 09:44 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Component-dependant engines

Actually, there is. Kwok made much use of it in Balance Mod, such as this "ability" on the SDD:

Ability 2 Type := Description Only
Ability 2 Description := Automatically used if a ship is successfully boarded, destroying the ship and the attacking ship.
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := 0
Ability 2 Amount 2 Formula := 0
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old December 7th, 2006, 09:54 PM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Component-dependant engines

Quote:
Raapys said:
Would be nice if there could be a function that looked for a specific ability description, so we could just use the 'Description Only' ability instead of wasting the AI tags and such.
Something like that would really open up our modding options and eliminate the need for the AI tags.

I was thinking about something like this:
Code:
Ability 1 Type                        := Unique String
Ability 1 Description :=
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := "UW Basketweaving"
Ability 1 Amount 2 Formula := 0



Then have a functions like Get_Design_Ability_Unique_String("UW Basketweaving") or some such.

Of course, the best thing would be if we could simply add do-nothing abilities to the Main_Strings.txt file!
Reply With Quote
  #5  
Old December 7th, 2006, 10:10 PM

Raapys Raapys is offline
First Lieutenant
 
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Re: Component-dependant engines

That's what I was thinking, would make it all much easier.

Fyron: Yeah, the description only ability is there; unfortunately there's not a Get_Design_Ability_Description_Component_Count("Description here")'ish function. If there was we could add unique 'identifying' abilities to all components we wanted, we'd just need to have a unique description.
Reply With Quote
  #6  
Old December 7th, 2006, 11:17 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,624
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Component-dependant engines

You can actually give an ability any name you want and use formulas for amount1 or amount2 to produce different sorts of data for display purposes. Not sure, but I would think you could use the Get... function with it since it returns just the string.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #7  
Old December 7th, 2006, 11:39 PM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Component-dependant engines

When I try to use "Test" as an ability on a component I get an "Unknown Value" error.

I don't think I'm following what you're saying, CK.
Reply With Quote
  #8  
Old December 7th, 2006, 11:47 PM

Raapys Raapys is offline
First Lieutenant
 
Join Date: Jan 2005
Posts: 689
Thanks: 0
Thanked 0 Times in 0 Posts
Raapys is on a distinguished road
Default Re: Component-dependant engines

Yeah, I don't think that works CK. That's what I tried to do the first time basically, although I even added the ability name in the mainstrings file. The game wont start as it doesn't recognize it or some such.
Reply With Quote
  #9  
Old December 7th, 2006, 11:49 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,624
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Component-dependant engines

My post was sort of incorrect. You can use a blank name for the ability and use amount1 and amount2 to produce formula results such as seeker speed.

I guess you can't just put in any name.
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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:18 AM.


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