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 3 users and 183 guests online.

Online users

  • mudshark
  • Tedss
  • Captain Kwok

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

Unit scripting ?

crimson's picture
Submitted by crimson on Fri, 2007-11-16 21:19. SE:V MODs

Hi, I got a few questions about unit that I can't test because I'm at work and wanted to see if any one could answer them.

1. Can U found out if a specific unit was in combat the last turn?

2. Can U found the location of a specific unit the last turn even if it was in the cargo of a ship?

3. Can U replace a comp. or change any properties of a comp. in a unit by using a script event?

Thanks in advance for any answers you guys have...

He ponders the dangers inherent in the advantages, and advantages inherent in the dangers. - Ts'ao Ts'ao

Crimson

‹ Making AI Use My Corvette Vehicle Class with New Tech Too Function to check if Intelligence is allowed? ›
» 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: Unit scripting ?

Submitted by Gideon on Sat, 2007-11-17 22:19.

In order to get information about units from a previous turn, you need to set up your scripts to store and recal data from a Datafile.

I'm not sure how to do this, but I will probably have to figure it out myself eventually.

As for replacing a component on an already existing unit...boy...that one I don't have the foggiest on, sorry.

"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
Isopsyco's picture
Mod Designer

Re: Unit scripting ?

Submitted by Isopsyco on Sat, 2007-11-24 11:18.

Sys_Get_Event_Storage_Long and Sys_Set_Event_Storage_Long are the two script commands from the script docs you will need to store data from one turn to the next. Its the only output method for scripting using retained data.

It sounds possible to get specific units from cargo and other locations, haven't tried that specific way with units but I have done it with components and event messages.

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

  • I am so impressed!
  • Stuipd Question
  • Neutral pack 1.10 released, now adds three neutral races.
  • Space Empires V 1.74
  • Space Dock suggestion

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:

  • Ship Structure
  • help plz
  • My Wish List: Smarter Ministers
  • Stuipd Question
  • Unable to Save
(c) Strategy First, Inc. All rights reserved.