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 1 user and 129 guests online.

Online users

  • Faithful

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

Scripting problem

Isopsyco's picture
Submitted by Isopsyco on Thu, 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 ›
» 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.
Isopsyco's picture
Mod Designer

Re: Scripting problem

Submitted by Isopsyco on Fri, 2008-03-28 11:42.

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

» 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!
  • Space Empires V 1.74
  • Neutral pack 1.10 released, now adds three neutral races.
  • Stuipd Question
  • Research By Percentage SUCKS

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:

  • Babylon 5 Space Empires V mod?
  • Attacking a Planet
  • Tech tree, Levels
  • Cristaline, organic an normal hulls
  • Quest for Glory: Preparing to Invade
(c) Strategy First, Inc. All rights reserved.