[AL Plugin] Stevio Fab Supplier :: V3.02 :: 24/09/2006

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

What do you think?

Excellent
39
67%
Good
10
17%
OK
4
7%
Poor
2
3%
Not really my thing
3
5%
 
Total votes: 58

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 21:08

@DGNMaster

- i have added sheild and Weapon Production complex' as in the one's the NPC use E.g Light Sheild Prduction Complex. not a player complex E.g SPP, Cattle Ranch, CF, Cahoona B, SM, Weapon forge. i can't seem to be able to place a play complex into a Shipyard.

- i would imagine These weapons and Sheid fabs can be added to a player complex. if this is what you mean??

User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Post by Dgn Master » Sat, 28. Jan 06, 21:13

If not buyable from a shipyard (NPC facts), where would i get one? sorry haven't dled your scripts yet as i'm waiting for a more final version.

And the reason for the modification to an existing NPC model as a standalone SPP would be for if i wanted to add say a ton of food facts, for example, to it instead of weapons/shields
Could the parents of the little Argon girl, Suzie, please claim her sealed jar of remains?
She didn't mind the gap and ended up vapourized!

User avatar
Dioltas As Dia
Posts: 584
Joined: Fri, 9. Dec 05, 22:28
x3

Post by Dioltas As Dia » Sat, 28. Jan 06, 21:22

stevio wrote:*new problem*
S/Y has no sheilds, how many does it take

is it 4x 10gj
Yes it is.
= $shipyard -> install 4 units of 10GJ shields

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 21:31

This script only adds the said: Blizzard, cyclone, disruptor, hurricane, tornado, L/M/H Sheild, IRE/PAC/HEPT/PSG/FAA/PPC/PBE/Special weapons fabs to the shipyard in argon prime.

the script you are reffering to is my "Super Shipyard Script" [WIP]

and you can use my script as a template for the use you are reffering to quite simple really

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 21:32

Dioltas As Dia wrote:
stevio wrote:*new problem*
S/Y has no sheilds, how many does it take

is it 4x 10gj
Yes it is.
= $shipyard -> install 4 units of 10GJ shields
i can't find this line any where am i being stupid??

User avatar
Dioltas As Dia
Posts: 584
Joined: Fri, 9. Dec 05, 22:28
x3

Post by Dioltas As Dia » Sat, 28. Jan 06, 21:56

trade commands

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 22:09

i can't believe i didn't see that :oops:

Super shipyard script is coming along ok

testing self placed blizzard, cyclone, disruptor, hurricane, and tornado fabs. they might need sheilds as well :lol:

might have a BETA tonight :P .

User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Post by Dgn Master » Sat, 28. Jan 06, 22:28

Sorry if this isn't exactly on topic, but it's relevant, when you create an NPC weapon/shield factory, is it possible to change the ware produced?

What i mean is is it possible to buy say a factory from a shipyard that will produce argnu, cahoona, and xtals (still needing silicon) to make it a more of less internally independant standalone SPP? Although this would not work for say a XL SPP as you would have to make it ao that it incorperates the production of 5 crystal fabs, it might still be possible for a M SPP, unless you could add say 5 times the production needed of crystals.

Only asking because with all the problems ppl are having placing hubs and connections, i would prefer to just pay the extra and have it more compact before i start placing a ton of factories and littering the sectors again as i did in X2.
Could the parents of the little Argon girl, Suzie, please claim her sealed jar of remains?
She didn't mind the gap and ended up vapourized!

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 22:47

you can create a station, and tell it what it makes and what it uses.

*spspp [self producing solar power plant] or what ever you choose

Code: Select all

001 $spspp = create station: type= argon solar power plant owner= player addto= *sector* x= *coordinates* y= *coordinates* z= *coordinates*
002 $spspp -> add product to factory or dock: argnu beef
003 $spspp -> add product to factory or dock: crystals
004 $spspp -> add product to factory or dock: silicon wafers
005 = $spspp -> add 1 units of argnu beef
006 = $spspp -> add 1 units of crystals
007 = $spspp -> add 1 units of silicon wafers
008 = return null

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sat, 28. Jan 06, 23:11

i wil finish the BETA tomorrow :D [YAWN]

User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Post by Dgn Master » Sun, 29. Jan 06, 00:39

stevio wrote:you can create a station, and tell it what it makes and what it uses.

*spspp [self producing solar power plant] or what ever you choose

Code: Select all

001 $spspp = create station: type= argon solar power plant owner= player addto= *sector* x= *coordinates* y= *coordinates* z= *coordinates*
002 $spspp -> add product to factory or dock: argnu beef
003 $spspp -> add product to factory or dock: crystals
004 $spspp -> add product to factory or dock: silicon wafers
005 = $spspp -> add 1 units of argnu beef
006 = $spspp -> add 1 units of crystals
007 = $spspp -> add 1 units of silicon wafers
008 = return null
Thanks for taking the time to include this snippit. The only problem i encountered is that although i can use this to create a station having all these items as primary, i can't seem to find out how (code) to make a station have intermediate products like are used in the complexes. Having the items as resources just makes the factory need them to create the end product.

Ok i'm confused now, maybe i should get some rest too. :)
Could the parents of the little Argon girl, Suzie, please claim her sealed jar of remains?
She didn't mind the gap and ended up vapourized!

The Cuban Nightmare
Posts: 332
Joined: Mon, 31. Oct 05, 22:28
x3

Post by The Cuban Nightmare » Sun, 29. Jan 06, 04:32

I wrote a script that adds a shipyard with all the ships in the game, just search for Ultimate Shipyard here and modify that script to save yourself some trouble, of course, feel free to edit the script itself. If you use it, you don't have to give me credit.
I'm your worst nightmare....

Apocalypse Incorporated; destroying a planet near you!

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sun, 29. Jan 06, 10:14

thanks cuban i just thought about that last night i was gonna check with you if it was alright before using it.

its going to be abit like the "ultimate shipyard" but i was going to add all the stations aswell.

i'll probably release it without the stations and add them later-on in a V1.20 or something

@dgnmaster

don't think you can script in intermediate products, you can only script in/out:
primary/secondary resources

and primary products

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sun, 29. Jan 06, 11:57

Code: Select all

Script a.shipyard
Version: 0
for Script Engine Version: 29

Description
Description
Arguments
Source Text

001   $a.shipyard =  create station: type=Argon Federal Argon Shipyard owner=Race 1 addto=Savage Spur x=26000 y=-20000 z=0
002   $a = Albatross
003   $b = Atlas
004   $c = Daedalus
005   $d = Elephant
006   $e = Hercules
007   $f = Mammoth
008   $g = Orca
009   $h = Caiman
010   $i = Caiman Hauler
011   $j = Caiman Super Freighter
012   $k = Caiman Super Freighter
013   $l = Caiman Tanker
014   $m = Caiman Tanker
015   $n = Demeter
016   $o = Demeter Hauler
017   $p = Demeter Miner
018   $q = Demeter Super Freighter
019   $r = Demeter Super Freighter
020   $s = Demeter Tanker
021   $t = Dolphin
022   $u = Dolphin Hauler
023   $v = Dolphin Super Freighter
024   $w = Dolphin Super Freighter
025   $x = Dolphin Tanker
026   $y = Dolphin Tanker
027   $z = Mercury
028   $aa = Mercury Hauler
029   $bb = Mercury Super Freighter
030   $cc = Mercury Super Freighter
031   $dd = Mercury Tanker
032   $ee = Mercury Tanker
033   $ff = Vulture
034   $gg = Vulture Hauler
035   $hh = Vulture Miner
036   $ii = Vulture Super Freighter
037   $jj = Vulture Super Freighter
038   $kk = Vulture Tanker
039   $ll = Express
040   $mm = Express Hauler
041   $nn = Hermes
042   $oo = Hermes Hauler
043   $pp = Iguana
044   $qq = Iguana Vanguard
045   $rr = Manta
046   $ss = Manta Hauler
047   $tt = Toucan
048   $uu = Toucan Hauler
049   $vv = Colossus
050   $ww = Condor
051   $xx = J
052   $yy = Raptor
053   $zz = Shark
054   $aaa = Zeus
055   $bbb = K
056   $ccc = Odysseus
057   $ddd = Phoenix
058   $eee = Python
059   $fff = Ray
060   $ggg = Titan
061   $hhh = Barracuda
062   $iii = Barracuda Raider
063   $jjj = Barracuda Sentinel
064   $kkk = Barracuda Vanguard
065   $lll = Falcon
066   $mmm = Falcon Hauler
067   $nnn = Falcon Sentinel
068   $ooo = Falcon Vanguard
069   $ppp = Fighter
070   $qqq = L
071   $rrr = Mamba
072   $sss = Mamba Raider
073   $ttt = Mamba Vanguard
074   $uuu = Nova
075   $vvv = Nova Raider
076   $www = Nova Sentinel
077   $xxx = Nova Vanguard
078   $yyy = Perseus
079   $zzz = Perseus Raider
080   $aaaa = Perseus Sentinel
081   $bbbb = Perseus Vanguard
082   $cccc = Pirate Falcon
083   $dddd = Pirate Falcon Vanguard
084   $eeee = Pirate Nova
085   $ffff = Pirate Nova Raider
086   $gggg = Susanowa
087   $hhhh = Susanowa Hauler
088   $iiii = Susanowa Raider
089   $jjjj = Xperimental Shuttle
090   $kkkk = Buster
091   $llll = Buster Raider
092   $mmmm = Buster Sentinel
093   $nnnn = Buster Vanguard
094   $oooo = Buzzard
095   $pppp = Buzzard Hauler
096   $qqqq = Buzzard Sentinel
097   $rrrr = Buzzard Vanguard
098   $ssss = Interceptor
099   $tttt = M
100   $uuuu = Mako
101   $vvvv = Mako Raider
102   $wwww = Mako Sentinel
103   $xxxx = Mako Vanguard
104   $yyyy = Pericles
105   $zzzz = Pericles Raider
106   $aaaaa = Pericles Vanguard
107   $bbbbb = Pericles Sentinel
108   $ccccc = Pirate Buster
109   $ddddd = Pirate Buster Hauler
110   $eeeee = Pirate Buzzard
111   $fffff = Pirate Buzzard Vanguard
112   $ggggg = Scorpion
113   $hhhhh = Scorpion Raider
114   $iiiii = Scorpion Sentinel
115   $jjjjj = Scorpion Vanguard
116   $kkkkk = Unknown Ship
117   $lllll = Arrow
118   $mmmmm = Discoverer
119   $nnnnn = Discoverer Hauler
120   $ooooo = Discoverer Raider
121   $ppppp = Discoverer Vanguard
122   $qqqqq = Harrier
123   $rrrrr = Harrier Hauler
124   $sssss = Harrier Vanguard
125   $ttttt = Harrier Sentinel
126   $uuuuu = Jaguar
127   $vvvvv = Jaguar Hauler
128   $wwwww = Jaguar Vanguard
129   $xxxxx = N
130   $yyyyy = Octopus
131   $zzzzz = Octopus Raider
132   $aaaaaa = Octopus Sentinel
133   $bbbbbb = Octopus Vanguard
134   $cccccc = Pegasus
135   $dddddd = Pegasus Raider
136   $eeeeee = Pegasus Sentinel
137   $ffffff = Pegasus Vanguard
138   $gggggg = Pirate Harrier
139   $hhhhhh = Pirate Harrier Hauler
140   $iiiiii = Pirate Harrier Raider
141   $jjjjjj = Pirate Harrier Vanguard
142   $kkkkkk = Raijin
143   $llllll = Raijin Raider
144   $mmmmmm = Raijin Sentinel
145   $nnnnnnn = Scout
146   $oooooo = Starburst
147   $pppppp = Unknown Ship
148   $qqqqqq = Centaur
149   $rrrrrr = Dragon
150   $ssssss = Hydra
151   $tttttt = Nemesis
152   $uuuuuu = Nemesis Raider
153   $vvvvvv = Nemesis Sentinel
154   $wwwwww = Nemesis Vanguard
155   $xxxxxx = Osprey
156   $yyyyyy = Osprey Raider
157   $zzzzzz = Osprey Vanguard
158   $aaaaaaa = Osprey Sentinel
159   $bbbbbbb = P
160   $ccccccc = Truelight Seeker
161   $ddddddd = Mobile Pirate Station 
162   $eeeeeee = Mobile Pirate Station 
163   $fffffff = Talon
164   $ggggggg = Talon
165   $hhhhhhh = Pirate Ship
166   $a.shipyard -> add product to factory or dock: $a
167   $a.shipyard -> add product to factory or dock: $aa
168   $a.shipyard -> add product to factory or dock: $aaa
169   $a.shipyard -> add product to factory or dock: $aaaa
170   $a.shipyard -> add product to factory or dock: $aaaaa
171   $a.shipyard -> add product to factory or dock: $aaaaaa
172   $a.shipyard -> add product to factory or dock: $aaaaaaa
173   $a.shipyard -> add product to factory or dock: $b
174   $a.shipyard -> add product to factory or dock: $bb
175   $a.shipyard -> add product to factory or dock: $bbb
176   $a.shipyard -> add product to factory or dock: $bbbb
177   $a.shipyard -> add product to factory or dock: $bbbbb
178   $a.shipyard -> add product to factory or dock: $bbbbbb
179   $a.shipyard -> add product to factory or dock: $bbbbbbb
180   $a.shipyard -> add product to factory or dock: $c
181   $a.shipyard -> add product to factory or dock: $cc
182   $a.shipyard -> add product to factory or dock: $ccc
183   $a.shipyard -> add product to factory or dock: $cccc
184   $a.shipyard -> add product to factory or dock: $ccccc
185   $a.shipyard -> add product to factory or dock: $cccccc
186   $a.shipyard -> add product to factory or dock: $ccccccc
187   $a.shipyard -> add product to factory or dock: $d
188   $a.shipyard -> add product to factory or dock: $dd
189   $a.shipyard -> add product to factory or dock: $ddd
190   $a.shipyard -> add product to factory or dock: $dddd
191   $a.shipyard -> add product to factory or dock: $ddddd
192   $a.shipyard -> add product to factory or dock: $dddddd
193   $a.shipyard -> add product to factory or dock: $ddddddd
194   $a.shipyard -> add product to factory or dock: $e
195   $a.shipyard -> add product to factory or dock: $ee
196   $a.shipyard -> add product to factory or dock: $eee
197   $a.shipyard -> add product to factory or dock: $eeee
198   $a.shipyard -> add product to factory or dock: $eeeee
199   $a.shipyard -> add product to factory or dock: $eeeeee
200   $a.shipyard -> add product to factory or dock: $eeeeeee
201   $a.shipyard -> add product to factory or dock: $f
202   $a.shipyard -> add product to factory or dock: $ff
203   $a.shipyard -> add product to factory or dock: $fff
204   $a.shipyard -> add product to factory or dock: $ffff
205   $a.shipyard -> add product to factory or dock: $fffff
206   $a.shipyard -> add product to factory or dock: $ffffff
207   $a.shipyard -> add product to factory or dock: $fffffff
208   $a.shipyard -> add product to factory or dock: $g
209   $a.shipyard -> add product to factory or dock: $gg
210   $a.shipyard -> add product to factory or dock: $ggg
211   $a.shipyard -> add product to factory or dock: $ggggg
212   $a.shipyard -> add product to factory or dock: $gggggg
213   $a.shipyard -> add product to factory or dock: $ggggggg
214   $a.shipyard -> add product to factory or dock: $h
215   $a.shipyard -> add product to factory or dock: $hh
216   $a.shipyard -> add product to factory or dock: $hhh
217   $a.shipyard -> add product to factory or dock: $hhhh
218   $a.shipyard -> add product to factory or dock: $hhhhh
219   $a.shipyard -> add product to factory or dock: $hhhhhh
220   $a.shipyard -> add product to factory or dock: $hhhhhhh
221   $a.shipyard -> add product to factory or dock: $i
222   $a.shipyard -> add product to factory or dock: $ii
223   $a.shipyard -> add product to factory or dock: $iii
224   $a.shipyard -> add product to factory or dock: $iiii
225   $a.shipyard -> add product to factory or dock: $iiiii
226   $a.shipyard -> add product to factory or dock: $iiiiii
227   $a.shipyard -> add product to factory or dock: $j
228   $a.shipyard -> add product to factory or dock: $jj
229   $a.shipyard -> add product to factory or dock: $jjj
230   $a.shipyard -> add product to factory or dock: $jjjj
231   $a.shipyard -> add product to factory or dock: $jjjjj
232   $a.shipyard -> add product to factory or dock: $jjjjjj
233   $a.shipyard -> add product to factory or dock: $k
234   $a.shipyard -> add product to factory or dock: $kk
235   $a.shipyard -> add product to factory or dock: $kkk
236   $a.shipyard -> add product to factory or dock: $kkkk
237   $a.shipyard -> add product to factory or dock: $kkkkk
238   $a.shipyard -> add product to factory or dock: $kkkkkk
239   $a.shipyard -> add product to factory or dock: $l
240   $a.shipyard -> add product to factory or dock: $ll
241   $a.shipyard -> add product to factory or dock: $lll
242   $a.shipyard -> add product to factory or dock: $lllll
243   $a.shipyard -> add product to factory or dock: $llll
244   $a.shipyard -> add product to factory or dock: $llllll
245   $a.shipyard -> add product to factory or dock: $m
246   $a.shipyard -> add product to factory or dock: $mmm
247   $a.shipyard -> add product to factory or dock: $mm
248   $a.shipyard -> add product to factory or dock: $mmmm
249   $a.shipyard -> add product to factory or dock: $mmmmm
250   $a.shipyard -> add product to factory or dock: $mmmmmm
251   $a.shipyard -> add product to factory or dock: $n
252   $a.shipyard -> add product to factory or dock: $nn
253   $a.shipyard -> add product to factory or dock: $nnn
254   $a.shipyard -> add product to factory or dock: $nnnn
255   $a.shipyard -> add product to factory or dock: $nnnnn
256   $a.shipyard -> add product to factory or dock: $nnnnnnn
257   $a.shipyard -> add product to factory or dock: $o
258   $a.shipyard -> add product to factory or dock: $oo
259   $a.shipyard -> add product to factory or dock: $ooo
260   $a.shipyard -> add product to factory or dock: $oooo
261   $a.shipyard -> add product to factory or dock: $ooooo
262   $a.shipyard -> add product to factory or dock: $oooooo
263   $a.shipyard -> add product to factory or dock: $p
264   $a.shipyard -> add product to factory or dock: $pp
265   $a.shipyard -> add product to factory or dock: $ppp
266   $a.shipyard -> add product to factory or dock: $pppp
267   $a.shipyard -> add product to factory or dock: $ppppp
268   $a.shipyard -> add product to factory or dock: $pppppp
269   $a.shipyard -> add product to factory or dock: $q
270   $a.shipyard -> add product to factory or dock: $qq
271   $a.shipyard -> add product to factory or dock: $qqq
272   $a.shipyard -> add product to factory or dock: $qqqqq
273   $a.shipyard -> add product to factory or dock: $qqqq
274   $a.shipyard -> add product to factory or dock: $qqqqqq
275   $a.shipyard -> add product to factory or dock: $r
276   $a.shipyard -> add product to factory or dock: $rr
277   $a.shipyard -> add product to factory or dock: $rrr
278   $a.shipyard -> add product to factory or dock: $rrrr
279   $a.shipyard -> add product to factory or dock: $rrrrr
280   $a.shipyard -> add product to factory or dock: $rrrrrr
281   $a.shipyard -> add product to factory or dock: $s
282   $a.shipyard -> add product to factory or dock: $ss
283   $a.shipyard -> add product to factory or dock: $sss
284   $a.shipyard -> add product to factory or dock: $ssss
285   $a.shipyard -> add product to factory or dock: $sssss
286   $a.shipyard -> add product to factory or dock: $ssssss
287   $a.shipyard -> add product to factory or dock: $t
288   $a.shipyard -> add product to factory or dock: $tt
289   $a.shipyard -> add product to factory or dock: $ttt
290   $a.shipyard -> add product to factory or dock: $tttt
291   $a.shipyard -> add product to factory or dock: $ttttt
292   $a.shipyard -> add product to factory or dock: $tttttt
293   $a.shipyard -> add product to factory or dock: $u
294   $a.shipyard -> add product to factory or dock: $uu
295   $a.shipyard -> add product to factory or dock: $uuu
296   $a.shipyard -> add product to factory or dock: $uuuu
297   $a.shipyard -> add product to factory or dock: $uuuuu
298   $a.shipyard -> add product to factory or dock: $uuuuuu
299   $a.shipyard -> add product to factory or dock: $v
300   $a.shipyard -> add product to factory or dock: $vv
301   $a.shipyard -> add product to factory or dock: $vvvv
302   $a.shipyard -> add product to factory or dock: $vvv
303   $a.shipyard -> add product to factory or dock: $vvvvv
304   $a.shipyard -> add product to factory or dock: $vvvvvv
305   $a.shipyard -> add product to factory or dock: $w
306   $a.shipyard -> add product to factory or dock: $ww
307   $a.shipyard -> add product to factory or dock: $www
308   $a.shipyard -> add product to factory or dock: $wwww
309   $a.shipyard -> add product to factory or dock: $wwwww
310   $a.shipyard -> add product to factory or dock: $wwwwww
311   $a.shipyard -> add product to factory or dock: $x
312   $a.shipyard -> add product to factory or dock: $xx
313   $a.shipyard -> add product to factory or dock: $xxx
314   $a.shipyard -> add product to factory or dock: $xxxx
315   $a.shipyard -> add product to factory or dock: $xxxxx
316   $a.shipyard -> add product to factory or dock: $xxxxxx
317   $a.shipyard -> add product to factory or dock: $y
318   $a.shipyard -> add product to factory or dock: $yy
319   $a.shipyard -> add product to factory or dock: $yyy
320   $a.shipyard -> add product to factory or dock: $yyyy
321   $a.shipyard -> add product to factory or dock: $yyyyy
322   $a.shipyard -> add product to factory or dock: $yyyyyy
323   $a.shipyard -> add product to factory or dock: $z
324   $a.shipyard -> add product to factory or dock: $zz
325   $a.shipyard -> add product to factory or dock: $zzzz
326   $a.shipyard -> add product to factory or dock: $zzz
327   $a.shipyard -> add product to factory or dock: $zzzzz
328   $a.shipyard -> add product to factory or dock: $zzzzzz
329   return null
right this is a copy of cuban's Ultimate shipyard script. :o !HELP!

there must be an easier way? and shouldn't i need to:

Code: Select all

= $a.shipyard -> add 10 units of $a
= $a.shipyard -> add 10 units of $aa
= $a.shipyard -> add 10 units of $aaa
Etc.....
or does it not apply to ships?

for 160-ish ships thats a big script and took me about half a day just to change

$a.shipyard

to

$s.shipyard
Last edited by Stevio on Sun, 29. Jan 06, 13:23, edited 1 time in total.

dwgh
Posts: 120
Joined: Wed, 6. Nov 02, 20:31
x4

Post by dwgh » Sun, 29. Jan 06, 13:22

Bit late now, but I'd have been sorely tempted to just add:

a.shipyard = s.shipyard

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sun, 29. Jan 06, 13:28

dwgh wrote:Bit late now, but I'd have been sorely tempted to just add:

a.shipyard = s.shipyard
B*censored*rd :evil: C*censored*nt :headbang: S*censored*it :evil: B*censored*ocks :headbang:

thank you for pointing that out :D

User avatar
Dioltas As Dia
Posts: 584
Joined: Fri, 9. Dec 05, 22:28
x3

Post by Dioltas As Dia » Sun, 29. Jan 06, 15:52

you could also just write

Code: Select all

$shipyard = create station: type=Argon Federal Argon Shipyard owner=Race 1 addto=Savage Spur x=26000 y=-20000 z=0

$shiplist = alloc new array size: 0 

append Nova Raider to array $shiplist 
append Nova Vanguard to array $shiplist 
....[all ships wanted here]

$shiplist.size = get size of array $shiplist 
$count = 0... 

while $count < $shiplist.size 
  $ship = $shiplist [$count] 
  $shipyard -> add product $ship 
  = $shipyard -> add 1 units of $ship 
  inc= $count 
end
was in the original "Ultimate Shipyard" thread in a post by nuclear_eclipse

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sun, 29. Jan 06, 17:40

Dioltas As Dia wrote:you could also just write

Code: Select all

$shipyard = create station: type=Argon Federal Argon Shipyard owner=Race 1 addto=Savage Spur x=26000 y=-20000 z=0

$shiplist = alloc new array size: 0 

append Nova Raider to array $shiplist 
append Nova Vanguard to array $shiplist 
....[all ships wanted here]

$shiplist.size = get size of array $shiplist 
$count = 0... 

while $count < $shiplist.size 
  $ship = $shiplist [$count] 
  $shipyard -> add product $ship 
  = $shipyard -> add 1 units of $ship 
  inc= $count 
end
was in the original "Ultimate Shipyard" thread in a post by nuclear_eclipse
which bits need changing other than the sector to place/coords

User avatar
Dioltas As Dia
Posts: 584
Joined: Fri, 9. Dec 05, 22:28
x3

Post by Dioltas As Dia » Sun, 29. Jan 06, 18:11

$shipyard = create station: type=Argon Federal Argon Shipyard owner=Race 1 addto=Savage Spur x=26000 y=-20000 z=0

$shiplist = alloc new array size: 0

append Nova Raider to array $shiplist
append Nova Vanguard to array $shiplist
....[continue as above for as many ships as you want] ....

$shiplist.size = get size of array $shiplist
$count = 0...

while $count < $shiplist.size
$ship = $shiplist [$count]
$shipyard -> add product $ship
= $shipyard -> add 1 units of $ship
inc= $count
end

------------------------

anything in bold, you can change
for example, rather than $shipyard, you'll want $s.shipyard
etc etc

User avatar
Stevio
Posts: 2271
Joined: Sat, 4. Jun 05, 10:36
x3tc

Post by Stevio » Sun, 29. Jan 06, 18:34

thanks very much

at this rate i might have a Beta and a finished piece tommorow

the only problem i think will be the adding:

= $s.shipyard -> add 10 unit of $ship (i need for M5/4/3/TP/TS)

= $s.shipyard -> add 1 units of $ship (i need for M1/2/6/TL)

will 10 units of Cap ships fit?

Post Reply

Return to “X³: Reunion - Scripts and Modding”