apricotslice wrote:Why?
Please answer the question.
caishow2 wrote:No.
Thank you
LOL!
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
No. Unfortunately, when the PHQ is dropped, whatever hq script is running is permanent for it.scoutster wrote:Hi,
about the Extended PHQ.. is there any way to decrease ship building times for an existing one?
Code: Select all
* $class = $ship-> get object class
if $ship-> is of type [Huge Ship]
* if $class == [Huge Ship]
= $ship-> add 10000 units of {Cargo Bay Extension}
$ship-> add default items to ship
* add money to player: -1000000
else
if $ship-> is of type [Big Ship]
* if $class == [Big Ship]
= $ship-> add 5000 units of {Cargo Bay Extension}
$ship-> add default items to ship
* add money to player: -500000
else
if $ship-> is of type [Fighter]
* if $class == [Fighter]
= $ship-> add 2000 units of {Cargo Bay Extension}
$ship-> add default items to ship
* add money to player: -200000
end
end
end
return null
The code looks ok at first glance.caishow2 wrote:apricot.outfit.jump.xml
Is this correct?
Modified
Code: Select all
* $class = $ship-> get object class if $ship-> is of type [Huge Ship] * if $class == [Huge Ship] = $ship-> add 10000 units of {Cargo Bay Extension} $ship-> add default items to ship * add money to player: -1000000 else if $ship-> is of type [Big Ship] * if $class == [Big Ship] = $ship-> add 5000 units of {Cargo Bay Extension} $ship-> add default items to ship * add money to player: -500000 else if $ship-> is of type [Fighter] * if $class == [Fighter] = $ship-> add 2000 units of {Cargo Bay Extension} $ship-> add default items to ship * add money to player: -200000 end end end return null
As far as it reads, it should add cargo bay extensions and then add in the normal fittings for the specific ship its run on. What is put in depends on the ship.caishow2 wrote:So effective?
This is the default equipment and then spend money?
Code: Select all
$race = [Argon]
$ware = {Microchips}
$psec = [PLAYERSHIP]-> get sector
$i = 0
while $i < 40
$factory = find station in galaxy: startsector=$psec class or type=[Factory] race=$race flags=[Find.Random] refobj=null serial=null max.jumps=100
if $factory-> exists
$factory-> add primary resource to factory: $ware
$c = $factory-> get amount of ware $ware in cargo bay
skip if $c > 0
= $factory-> add 1 units of $ware
end
inc $i
end
Depends. What are you trying to do?caishow2 wrote:Where is wrong?