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 193 guests online.

Online users

  • Crian
  • Pham Nuwen

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

Found planets in system

crimson's picture
Submitted by crimson on Mon, 2008-04-07 20:48. SE:V MODs

Hi, Is there a easy way to write a script that creates a list of planets that a player OWNS in a system. Thanks for any help.

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

highlighter/User define lang for NOTEPAD++ for SEV
Crimson Concept Mod for SEV

Crimson

‹ Upcoming Mod, Now taking requests Ancient Galaxies ›
» 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: Found planets in system

Submitted by Captain Kwok on Mon, 2008-04-07 21:21.

Cross reference the player's list of colonies by returning their system location versus the system in question. For any matches, add them to a new list.


Space Empires Depot | SE:V Balance Mod

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

Re: Found planets in system

Submitted by crimson on Tue, 2008-04-08 11:12.

Thanks for the answering, I miss that function somehow. Oh, do some one happen to know how to find the relation, emotion, between two empire with a function. I've only seen one to SET, not GET. Thank for any help.

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

highlighter/User define lang for NOTEPAD++ for SEV
Crimson Concept Mod for SEV

Crimson

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

Re: Found planets in system

Submitted by Captain Kwok on Tue, 2008-04-08 11:27.

Are you doing this as part of the main empire scripts or as part of the event/intel scripts?

If you're doing this as part of a function for an AI, then the longlist variable lst_AI_Our_Colonies already contains the planet IDs of an empire's colonies. The values are added in the Examine_System function in Script_AI_Lists. You can then use Sys_Get_Space_Object_System_Location(planet_id) to return planet's system location, which can be compared to the system in question. Any matches you can throw into a new longlist variable.

If you're doing this as an event or intel operation, then you have to return all the objects in the system in question. Then check if they are planets and if they are owned.


Space Empires Depot | SE:V Balance Mod

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

Re: Found planets in system

Submitted by crimson on Tue, 2008-04-08 11:39.

I'm using the event script and figured that's what I have to do, Sad But I'm hoping for a function that GETs the relation between 2 empires, else I'll have to write a lot of the same code from the AI script that does it into the event script. Thank for the help and your time.

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

highlighter/User define lang for NOTEPAD++ for SEV
Crimson Concept Mod for SEV

Crimson

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

Re: Found planets in system

Submitted by Captain Kwok on Tue, 2008-04-08 11:43.

The Sys_Empire_Politics_Get_Political_Status_Between_Players(plrA, plrB) returns the status between two empires. It will return one of the 4 constants:

POLITICAL_STATUS_TYPE_UNKNOWN = 1
POLITICAL_STATUS_TYPE_KNOWN = 2
POLITICAL_STATUS_TYPE_WAR = 3
POLITICAL_STATUS_TYPE_TREATY = 4


Space Empires Depot | SE:V Balance 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:

  • Starting with custom empires
  • Babylon 5 Wars SEV Mod Update
  • Need Help (like all the others)
  • SEV 1.74 misc. Issues and Suggestions
  • 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:

  • SEV5.jpg
  • IRM 0.99 Multiplayer
  • Mine damage goes to shields now?
  • Bug with colonization?
  • SE5_20060929-56.jpg
(c) Strategy First, Inc. All rights reserved.