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 2 users and 208 guests online.

Online users

  • Qcontinuum
  • Randallw

Languages

  • English English
  • French French

Browse archives

« November 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
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Please help a scripting beginner

Submitted by Ixal on Fri, 2007-06-08 15:16. SE:V MODs

I tried to alter the Ship Order script a bit so that space yard ships automatically build fighters till their cargo is half full. (I know, that would make mure sense on carriers but I do not know if it causes problems when a carrier has no space yard). When I know that it works I will move those lines to the carrier ships and add a check for ship space yard components.

I compiled it with the default AI but in my current game this script doesn't seem to be working as my space yard ships are rahter inactive (not moving and not building). Now I don't know if my script is not working or if I have forgotten a step to activate them.

1. Do I have to compile it to the default AI or to a racial AI to match my race?
2. DO I have to restart the game?
3. Do I have to delete a original file somewhere to make my script work?

The important line of my script change is:
set design_id := Sys_Get_Latest_Vehicle_Design_Of_AI_Type(sys_long_Player_ID,
AI_DESIGN_TYPE_FIGHTER)
set orders_given := Sys_Add_Vehicle_Design_To_Construction_Queue(ship_id, design_id, 1)

‹ Shipset requests Unnamed's Upgraded Stock AI Mod version 1.03 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.
Mod Designer

Re: Please help a scripting beginner

Submitted by unnamed on Mon, 2007-06-11 16:16.

Hey Ixal,

Compile it to the default race if you want user created races to have this added ability. Make sure all the ministers are on. If you wanted it for one of the stock races (such as the xiati, etc) then you would need to compile those races also. Make sure that you move the file from the scripts folder to the appropriate folder under in the empires folder. THen I suggest using the cheat 'runtuns x' (x being the number of turns you want the computer to play) and see if it does anything. If not then you can use the debug feature and look at what the scripts are actually doing.

Offhand, there may be a difference between the ship_id that you are using and that same ship's queue_id. Not sure, just a possibility.

-unnamed

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

  • The mod simply knowns as "New Stuff"
  • Research By Percentage SUCKS
  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • drone combat?!
  • Star Trek Trailers.....

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:

  • how to change mod for ship sizes
  • ? on Race - Happiness
  • Migration?
  • Atmospheric Modification Plant takes to long
  • Fighters wont fight more than once! Help!
(c) Strategy First, Inc. All rights reserved.