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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old September 7th, 2007, 06:00 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 Fun with armor!

I decided to try a little experiment with a new armor type and I was shocked when this actually worked exactly as I intended it to. How ... unusual.

Code:

Name := Neutronium Armor
Description := Super dense armor that absorbs massive damage, but slows a ship down.
Picture Number := 280
Maximum Level := 11
Tonnage Space Taken Formula := 20 - trunc( [%Level%] / 2 )
Tonnage Structure Formula := 1000 + ( ( [%Level%] - 1 ) * 50 )
Cost Minerals Formula := 500 + ( ( [%Level%] - 1 ) * 10 )
Cost Organics Formula := 100 + ( ( [%Level%] - 1 ) * 5 )
Cost Radioactives Formula := 500 + ( ( [%Level%] - 1 ) * 10 )
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship
Can Be Placed In Ship Sections := Armor
Component Type List := Technological
General Group := Armor
Custom Group := 0
Number Of Requirements := 3
Requirements Evaluation Availability := 1, 3
Requirements Evaluation Allows Placement := 2
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 10 in Armor.
Requirement 1 Formula := Get_Empire_Tech_Level("Armor") >= (10 + ([%Level%] - 1))
Requirement 2 Description := This vehicle can only have half as many neutronium armor components as it has engines
Requirement 2 Formula := ( Get_Design_Specific_Component_Count("Neutronium Armor") * 2 ) < ( Get_Design_Ability_Component_Count("Movement Standard") - Get_Design_Specific_Component_Count("Neutronium Armor") )
Requirement 3 Description := Empire must have at least tech level 10 in Stellar Manipulation.
Requirement 3 Formula := Get_Empire_Tech_Level("Stellar Manipulation") >= (10 + ([%Level%] - 1))
Number Of Abilities := 2
Ability 1 Type := Component - Is Armor Type
Ability 1 Description := Armor protects the ship from damage.
Ability 1 Scope := Space Object
Ability 1 Range Formula := 0
Ability 1 Amount 1 Formula := "Normal Armor"
Ability 1 Amount 2 Formula := 0
Ability 2 Type := Movement Standard
Ability 2 Description := The massive density and weight of this armor reduces the movement of the ship
Ability 2 Scope := Space Object
Ability 2 Range Formula := 0
Ability 2 Amount 1 Formula := -5
Ability 2 Amount 2 Formula := 0
Weapon Type := None

__________________
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
  #2  
Old September 7th, 2007, 01:07 PM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default Re: Fun with armor!

Did you try this in a ship with no engines or a ship whose engines were destroyed?
I tried something similar in SE IV, but there the game crashed when the total movement got negative.
Reply With Quote
  #3  
Old September 7th, 2007, 04:11 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: Fun with armor!

Did you try that in the latest versions? Less than 0 movement was a problem in SE4 pre-1.60, but it was fixed in Gold.

SE5 doesn't tend to have any problems with negative values; better edge condition testing seems incorporated everywhere than SE4 started out with.
__________________
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 September 7th, 2007, 06:46 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: Fun with armor!

As of the last time I tried it (~1.30?), any ship that gets negative movement becomes extremely quick instead.

That is, the movement value wraps from 0 to the highest possible positive movement value.
__________________
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
  #5  
Old September 7th, 2007, 06:49 PM
Captain Kwok's Avatar

Captain Kwok Captain Kwok is offline
National Security Advisor
 
Join Date: Oct 2001
Location: Toronto, Canada
Posts: 5,623
Thanks: 1
Thanked 14 Times in 12 Posts
Captain Kwok is on a distinguished road
Default Re: Fun with armor!

Brad over at SE5.com made a mini-mod for Balance Mod that had weighted armor.

Link:
http://www.spaceempires5.com/en-US/node/4061
__________________
Space Empires Depot | SE:V Balance Mod
Reply With Quote
  #6  
Old September 8th, 2007, 01:31 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: Fun with armor!

The way that formula works, you can't get negative movement. Each engine has 5 move points and each piece of that armor added subtracts 5. The placement requirement limits you to 1/2 as many armor components (rounded down) as you have engines.

I suppose if someone did damage that skipped armor and destroyed your engines, it could have problems, though. I'll have to test that.

However, I did test that with a ship with no engines (wouldn't allow placement), a ship with partial engines and full engines. In each case, it would allow up to half as many armor pieces as you had engines and then it wouldn't allow more placed armor.
__________________
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
  #7  
Old September 8th, 2007, 01:45 AM
Q's Avatar

Q Q is offline
Colonel
 
Join Date: Jan 2001
Posts: 1,661
Thanks: 0
Thanked 0 Times in 0 Posts
Q is on a distinguished road
Default Re: Fun with armor!

Fyron I am not sure which was the version of SE IV that had problems with negative movement. It is good to hear that this was fixed in the final version and then probably it is no problem in SE V.
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 09:20 PM.


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