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

Connexion utilisateur

  • Créer un nouveau compte
  • Demander un nouveau mot de passe

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • agrégateur de nouvelles

Rechercher

Qui est en ligne

Il y a actuellement 3 utilisateurs et 118 invités en ligne.

Utilisateurs en ligne

  • marhawkman
  • Myrath
  • Lastdreamer

Languages

  • English English
  • French French

Parcourir les archives

« Juillet 2008  
Lu Ma Me Je Ve Sa Di
  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      
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Found planets in system

Image de crimson
Soumis par crimson le Lun, 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 ›
» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.
Image de Captain Kwok
Mod Designer

Re: Found planets in system

Soumis par Captain Kwok le Lun, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de crimson
Mod Designer

Re: Found planets in system

Soumis par crimson le Mar, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Re: Found planets in system

Soumis par Captain Kwok le Mar, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de crimson
Mod Designer

Re: Found planets in system

Soumis par crimson le Mar, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires
Image de Captain Kwok
Mod Designer

Re: Found planets in system

Soumis par Captain Kwok le Mar, 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

» Vous devez vous identifier ou créer un compte pour écrire des commentaires

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur "Sauvegarder les paramètres" pour activer vos changements.

Now on STEAM

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

Contenu populaire

Aujourd'hui :

  • Research By Percentage SUCKS
  • Cloaked Warp Points
  • Capturing suicidal colony ships of Balance Mod AI empires
  • Space Empires V 1.74
  • Space Empires V

Depuis toujours :

  • 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

Dernier accès :

  • system display
  • Specialisation of starships
  • UI Mod: Division of Light
  • Devnullmod
(c) Strategy First, Inc. All rights reserved.