EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCR] CODEA Weapon System [13th May 2010 X³:TC 3.1.14]
Post new topic Reply to topic Goto page Previous  1, 2, 3 ... 130, 131, 132
View previous topic :: View next topic
Author Message
Mates31cz





Joined: 24 Aug 2010
Posts: 19 on topic
Location: Èeská republika
Thank you for registering your game
PostPosted: Mon, 9. Oct 17, 15:51    Post subject: Reply with quote Print

Nice tnx for help

Back to top
View user's profile Send private message
Deniskos





Joined: 11 Jun 2008
Posts: 31 on topic

Thank you for registering your game
PostPosted: Tue, 9. Jan 18, 17:46    Post subject: Reply with quote Print

CODEA Weapon System Version 3.3.12
error in the script - plugin.codea.config.part.personnel
Code:

$While = 0
$WhileMax = size of array $Array.Ship
while $While < $WhileMax
 $Ship = $Array.Ship[$While]
 inc $While
 skip if $Ship-> exists
   continue

 $Equipment = $Ship-> get amount of ware {Boost Extension} in cargo bay
 skip if not $Equipment
   $Equipment = $Ship-> get amount of ware {Video Enhancement Goggles} in cargo bay

 skip if not $Equipment
   $Equipment = $Ship-> get amount of ware {Singularity Engine Time Accelerator} in cargo bay

 skip if not $Equipment
   continue

 skip if not $Ship-> get local variable: name='pilot.union.name'
   continue

 if size of array $Array.Passenger
   $Passenger = $Array.Passenger[0]
   = [THIS]-> call script 'lib.le.passenger.move.to.pilot' : argument1=$Ship argument2=$Passenger
   = [THIS]-> call script 'plugin.codea.ship.admin' : ShipThis=$Ship Task=4 Value=null
   remove element from array $Array.Passenger at index 0
 else
   break
 end
end

play sample 985
goto label PersonnelAdminMove:

the right version -
Code:

$Equipment = $Ship-> get amount of ware {Boost Extension} in cargo bay
 skip if not $Equipment
   $Equipment = $Ship-> get amount of ware {Video Enhancement Goggles} in cargo bay

 skip if not $Equipment
   $Equipment = $Ship-> get amount of ware {Singularity Engine Time Accelerator} in cargo bay

 skip if $Equipment
   continue


because of this error, you can not move the pilot to another ship

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic Goto page Previous  1, 2, 3 ... 130, 131, 132
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Fri, 19. Jan 18, 15:19

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2018
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.05313 seconds, sql queries = 16