Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 0 users and 148 guests online.

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

How does this work?? (Get function)

Deathstalker's picture
Submitted by Deathstalker on Fri, 2008-02-01 19:32. SE:V MODs

Ok, I'm trying to make a component for a ship that adds 'space' to the ships hull (ie, tonnage). I call it 'External Hull Enhancement'. I've used the negative tonne forumula up until now (ie make a component that just subtracts away from the total tonnage so as to 'trick out' more space) but now I'd like to try using the 'Get_Vehicle_Size_Tonnage' function to add 20% of the hulls total tonnage back into the ship.

Question one: Would this mean that for each component it would re-calc the tonnage of the ship (ie, each successive comp would not be 20% of the original ships size added but 20% of the new total successively).??

Question two: Why does this not work (what dumb thing am I not doing, it keeps giving me a 'cannot parse' error when loading the mod.)
I figure someone with waaayyy more experience can answer this easier than I could figure out in probally 3 hours of racking my brain (while I chase my 3yr old around and try to give her a bath in between, lol, Eye-wink..)
Comp:

Name := External Hull Enhancement
Description := Additions to the outside of the hull to increase the 'space' of a ship or base. (uses negative number formula).
Picture Number := 268
Maximum Level := 5
Tonnage Space Taken Formula := 0 - (0 + ((Get_Vehicle_Size_Tonnage("")) * 0.20))
Tonnage Structure Formula := 100 * (1 + ((Get_Empire_Tech_Level("Armor")) * 0.1)) * (1 + (([%Level%] -1) * 0.05))
Cost Minerals Formula := 500 - ([%Level%] * 25)
Cost Organics Formula := 200 - ([%Level%] * 25)
Cost Radioactives Formula := 300 - ([%Level%] * 25)
Supply Amount Used Formula := 0
Ordnance Amount Used Formula := 0
Can Be Placed On Vehicle Types := Ship, Base
Can Be Placed In Ship Sections := Armor
Component Type List := Technological
General Group := Vehicle Control
Custom Group := 0
Number Of Requirements := 2
Requirements Evaluation Availability := AND
Requirements Evaluation Allows Placement := TRUE
Requirements Evaluation Allows Usage := TRUE
Requirement 1 Description := Empire must have at least tech level 1 in Construction.
Requirement 1 Formula := Get_Empire_Tech_Level("Construction") >= (1 + ([%Level%] - 1))
Requirement 2 Description := There is a limit of four external hull additions per vehicle.
Requirement 2 Formula :=Get_Design_Specific_Component_Count("Space Yard")

‹ AI surrender Dark Nova 5 RELEASED! ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Captain Kwok's picture
Mod Designer

Re: How does this work?? (Get function)

Submitted by Captain Kwok on Fri, 2008-02-01 19:41.

Get_Vehicle_Size_Tonnage does not work in Components.txt.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Deathstalker's picture

Re: How does this work?? (Get function)

Submitted by Deathstalker on Fri, 2008-02-01 19:53.

ah darn it Sad

Don't suppose there is a work around for what I'm trying to do? or maybe something arcane that I obviously havn't thought of?

» login or register to post comments
Mod Designer

Re: How does this work?? (Get function)

Submitted by Fyron on Sat, 2008-02-02 15:46.

You could use a mount for each vehicle size to scale the "size" of the component..


SpaceEmpires.net | Space Empires Wiki

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Starting with custom empires
  • Babylon 5 Wars SEV Mod Update
  • SEV 1.74 misc. Issues and Suggestions
  • Need Help (like all the others)
  • BattleStar Galactica Mod Available

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Is it possible in a mod to have ships not start with full supplies?
  • SE:V History v1.70
  • PBW Upgrades - Pardon our dust...
  • Creating the Peace
  • Descriptions of Race/Government/Society abilities
(c) Strategy First, Inc. All rights reserved.