Сенк за скрипт. Жаль, что он, кажется, для локализованной версии. Мои ошибки были такие: вместо $ship = $ship -> add 1 units of Trading System Extension надо $ship = $ship -> install 1 units of Trading System Extension и не присваивать результат, т.е. окончательный вариант такой: = $ship -> install 1 units of Trading System Extension
В предложенном от Unknown_pilot, на мой взгляд, есть пара недостатоков, в первую очередь для меня - он для русской локализации. Для себя запилил вариант, где: 1. перед запуском не нужно редактировать скрипт - все нужные переменные вынесены в параметры 2. можно указывать не только сектор, но и позицию для создаваемой армии. Можно создавать много интересных ситуаций :) Кстати, если хотим агрессивных врагов, указываем в качестве овнера ксенонов - хааки и пираты не всегда нападают первыми. 3. Rudder Optimisation, Cargo Bay Extension и Engine Tuning рассчитываются автоматически. Сам скрипт:
Arguments 1: number , Number , 'number of ships' 2: type , Var/Ship Type , 'ship type' 3: owner , Var/Race , 'owner' 4: position , Var/Sector Position , 'position'
001 while $number 002 |$x = $position[0] 003 |$y = $position[1] 004 |$z = $position[2] 005 |$sector = $position[3] 006 |$ship = create ship: type=$type owner=$owner addto=$sector x=$x y=$y z=$z 007 | 008 |$freeRudder = $ship -> get free volume of ware Rudder Optimisation in cargo bay 009 |$freeCargo = $ship -> get free volume of ware Cargo Bay Extension in cargo bay 010 |$freeEngine = $ship -> get free volume of ware Engine Tuning in cargo bay 011 |= $ship -> install $freeRudder units of Rudder Optimisation 012 |= $ship -> install $freeCargo units of Cargo Bay Extension 013 |= $ship -> install $freeEngine units of Engine Tuning 014 | 015 |= $ship -> install 1 units of Singularity Engine Time Accelerator 016 |= $ship -> install 1 units of Boost Extension 017 |= $ship -> install 1 units of Trading System Extension 018 |= $ship -> install 1 units of Trade Command Software MK1 019 |= $ship -> install 1 units of Trade Command Software MK2 020 |= $ship -> install 1 units of Trade Command Software MK3 021 |= $ship -> install 1 units of Best Buys Locator 022 |= $ship -> install 1 units of Best Selling Price Locator 023 |= $ship -> install 1 units of Fight Command Software MK1 024 |= $ship -> install 1 units of Fight Command Software MK2 025 |= $ship -> install 1 units of Special Command Software MK1 026 |= $ship -> install 1 units of Navigation Command Software MK1 027 |= $ship -> install 1 units of Explorer Command Software 028 |= $ship -> install 1 units of Supply Command Software 029 |= $ship -> install 1 units of Carrier Command Software 030 |= $ship -> install 1 units of Patrol Command Software 031 |= $ship -> install 1 units of Ore Collector 032 |= $ship -> install 1 units of Jumpdrive 033 |= $ship -> install 1 units of Jumpdrive Components 034 |= $ship -> install 1 units of Unfocussed Jumpdrive 035 |= $ship -> install 1 units of Docking Computer 036 |= $ship -> install 1 units of Duplex Scanner 037 |= $ship -> install 1 units of Triplex Scanner 038 |= $ship -> install 1 units of Freight Scanner 039 |= $ship -> install 1 units of Mineral Scanner 040 |= $ship -> install 1 units of Bioscanner 041 |= $ship -> install 1 units of Transporter Device 042 |= $ship -> install 1 units of Cargo Lifesupport System 043 |= $ship -> install 1 units of System Override Software 044 |= $ship -> install 1 units of System Override Software 045 |= $ship -> install 1 units of Video Enhancement Goggles 046 |= $ship -> install 1 units of Software Signature Scrambler 047 |= $ship -> install 1 units of Spacefly Collector 048 |= $ship -> install 1 units of Argon Law Enforcement License 049 |= $ship -> install 1 units of Boron Law Enforcement License 050 |= $ship -> install 1 units of Split Police License 051 |= $ship -> install 1 units of Paranid Police License 052 |= $ship -> install 1 units of Teladi Company Security License 053 | 054 |$ship ->add default items to ship 055 | 056 |dec $number = 057 end 058 return null
Единственное, найден баг - строка "$freeCargo = $ship -> get free volume of ware Cargo Bay Extension in cargo bay", видимо, не отрабатывает, как надо. Это значит, что корабли создаются с прокачанными до максимума скоростью и "ловкостью", но со стартовым грузовым отсеком. Может у кого-то есть соображения? В конце концов, я написал "get free volume of ware" ткнув пальцем в небо, хз, как делать по трушному, может есть предназначенные для этого функции. Юзал сей замечательный ресурс: |