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 1 utilisateur et 161 invités en ligne.

Languages

  • English English
  • French French

Parcourir les 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      
Accueil » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Scripting problem

Image de Isopsyco
Soumis par Isopsyco le Jeu, 2008-03-27 21:42 SE:V MODs

Anyone know whats wrong with this script:

if (salvage_operation_occured) then
    call Sys_Get_List_Of_All_Players(player_list)
    set player_count := player_list.count()
    for index4 := 1 to player_count do
      set this_player := player_list.get(index4)
      call ship_list.clear()
      set ship_count := Sys_Get_List_Of_Space_Objects_Of_Type(5,ship_list,TRUE,FALSE,this_player)  
      set ship_count1 := ship_list.count()
   // Test Value Insert
      call Sys_Set_Event_Storage_Long(11,ship_count)
      call Sys_Set_Event_Storage_Long(12,ship_count1)

I've tried several options with the sys_get_space_object_of_type(), 5 is the constant for ship, the this_player cycles through the player IDs and ship_list should fill with the ID of all the player ships (it doesn't) and I should get a number count with the function (I don't), the boolean value does get a TRUE to execute the IF statement.
I check the obvious, I have two ships owned by player 1 but I get 0 in return. Is there something wrong with the function that I'm not aware of?[/code]

‹ V1.6x broke the tutorial/scenario? Help with AI, Getting it to react to player/ other empires Tech advancements ›
» 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 Isopsyco
Mod Designer

Re: Scripting problem

Soumis par Isopsyco le Ven, 2008-03-28 11:42

It must be a self fixing script because I didn't do anything and now it works....

» 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
  • Balance Mod suggestion
  • Babylon 5 Wars SEV Mod Update
  • 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 :

  • Pre-Built Stellar Constructs
  • Shield Depleter, Massive Shield Depleter, Shield Disruptor and Shields in general
  • AI ship design needs lots of help
  • Improvement to unit (mainly satellite) launch
  • Space Empires V Editor 1.4
(c) Strategy First, Inc. All rights reserved.