[MOD] Player Shipyards and more
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
M... It isn't so easy... I just checked and found the same code in the same files in CWIR 1.60 RC (from nexus):
But... This code is senseless. The second ELSEIF condition in the example abowe will work never because first ELSEIF condition is more generalized.
Really the issue I described prove to be ralated to LostSectors mod, not to PlayerShipyards mod. Buggy code in the PlayerShipyards mod is never executed due to messy ELSEIF conditions...
Sorry for that...
Thank you for you great work.
Code: Select all
<do_elseif value="$soldship2.primarypurpose == objectpurpose.mine and $soldship2.availableunits.{unitcategory.orecollector}.count gt 0">
<start_script object="$soldship2.pilot" name="'mining.ship.free'">
<param name="basketoverride" value="[ware.ice, ware.ore, ware.silicon, ware.nividium]"/>
</start_script>
</do_elseif>
<do_elseif value="$soldship2.primarypurpose == objectpurpose.mine and $soldship2.isclass.[class.ship_m, class.ship_s] and $soldship2.availableunits.{unitcategory.orecollector}.count gt 0">
<start_script object="$soldship2.pilot" name="'mining.ship.free'">
<param name="basketoverride" value="[ware.ice, ware.ore, ware.silicon, ware.nividium]"/>
<param name="range" value="'cluster'"/>
</start_script>
</do_elseif>
Really the issue I described prove to be ralated to LostSectors mod, not to PlayerShipyards mod. Buggy code in the PlayerShipyards mod is never executed due to messy ELSEIF conditions...
Sorry for that...
Thank you for you great work.