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 1 user and 147 guests online.

Online users

  • GambitUK

Languages

  • English English
  • French French

Browse archives

« August 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

Getting an Object's or Fleet's Current movement left???

Submitted by unnamed on Tue, 2007-11-27 16:17. SE:V MODs

Hey,

Is there a way to get a Object's or Fleet's current movement left??

I see a function for getting an space_object's max speed. Does this return its available movement whatever that is, or does it return its max conceivable speed assuming it has supplies and such (or before executing previous orders).

Also is there a function for getting a Fleet's max speed or current movement points left? (I havent seen one so far).

Any help would be greatly appreciated.

-Unnamed

‹ Can the limit for space yard's be removed? How are space objects numbered ›
» 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.
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by Gideon on Tue, 2007-11-27 16:27.

That is how fast it can currently go, not how much movement is left.

To get a fleet's max movement, you would need to do a search through all of the space objects in that fleet, and find the one with the lowest max movement.

I don't think there is a way to get remaining movement, but I could be wrong.

"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod

» login or register to post comments
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by unnamed on Tue, 2007-11-27 19:10.

Thanks Gideon,

Thats what I was afraid of; but at least its doable.

-Unnamed

Unnamed Mod

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by Isopsyco on Tue, 2007-11-27 20:24.

Couldn't you do a compare on the distance to destination and the computed movement points for the ship by component (since it only gives max). I know most mod functions don't work in the script portion so I don't think you can use those.

hhmm, I think you would have to set a bunch of constants for the ship size versus engine movement, but that gets messy and tedious.

» login or register to post comments
Isopsyco's picture
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by Isopsyco on Tue, 2007-11-27 20:29.

Sys_Get_Vehicle_Design_Space_Movement will give the space movement by design...Sys_Get_Space_Object_Maximum_Movement gives the current object...Sys_Get_System_Distance_Between_Solar_Systems will give the distance in a weird value, not sure if thats what your looking for...
If I see something I'll post it here for you

Not too many AI modders around, Kwok, Gideon and yourself seem the bulk of them (limited resource pool...)

» login or register to post comments
Captain Kwok's picture
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by Captain Kwok on Tue, 2007-11-27 20:32.

As Gideon suggested is how I did in the Balance Mod.


Space Empires Depot | SE:V Balance Mod

» login or register to post comments
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by Gideon on Tue, 2007-11-27 20:42.

Isopsyco wrote:
Sys_Get_Vehicle_Design_Space_Movement will give the space movement by design...Sys_Get_Space_Object_Maximum_Movement gives the current object...Sys_Get_System_Distance_Between_Solar_Systems will give the distance in a weird value, not sure if thats what your looking for... If I see something I'll post it here for you

Not too many AI modders around, Kwok, Gideon and yourself seem the bulk of them (limited resource pool...)

Try using Sys_Get_Hex_Distance_Between_Sectors to get the distance between two...uhhh...sectors.

"Only by being constantly at war with evil in all things, including yourself, can you truely know peace."
Download my mod here: GidMod

» login or register to post comments
Mod Designer

Re: Getting an Object's or Fleet's Current movement left???

Submitted by unnamed on Wed, 2007-11-28 08:58.

Thanks Everyone,

I ended up doing what Gideon suggested and Capt. Kwok did. It would be nice to have a function that returns the actual movement points left, but we work with what we have.

-Unnamed

Unnamed Mod

» 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:

  • Bigger Map as in Bigger :)
  • Known SE5 v1.74 Bugs
  • Wepons Mod
  • Editing max systems in settings.txt
  • Space Empires V 1.74

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:

  • Malicious code in 1.74 upgrade?
  • How do I get more races?
  • Evilhamburger's EvilMod
  • Too Funny
  • Antares Mod
(c) Strategy First, Inc. All rights reserved.