Jump to content

xspetre007x

Members
  • Posts

    7
  • Joined

  • Last visited

Posts posted by xspetre007x

  1. First ship I've designed that I felt like its worth sharing. Ive slowly been building up  ships id want to share.

     

    This is one of my recent ship designs,based out of my imagination,straight to the game. Slightly influenced by sword of the stars human ships,I don't know what I'm going to do with the front cavity yet, as there are no super weapons in game to fit it. Im pretty happy with it. sorry if image quality is rough

     

    https://imgur.com/gallery/cKSZ9x6

  2. Have a poke around the "InventoryItemPrice.LUA"

     

    There are two sections in there which add price if they're miner or salvager...both of them take the raw 'VALUE' variable and then add additional price to it

    The raw 'value' has a reach calculation on it...but you don't want to mess with it there...you only want the miner/salvager. So the trick is to reduce it within those sections by a proportion to how much you added it on in the turretgenerator

     

        if object.stoneEfficiency > 0 then
            costFactor = 3.0
    
            local materialFactor = material.strengthFactor * 5.0
            local efficiencyFactor = object.stoneEfficiency * 8.0
    
            value = value * materialFactor
            value = value * (1.0 + efficiencyFactor)  --Put some kind of divide here for Miner
        end
    
        if object.metalEfficiency > 0 then
            costFactor = 3.0
    
            local efficiencyFactor = object.metalEfficiency * 8.0
            value = value * (1.0 + efficiencyFactor) --Put some kind of divide here for salvager
        end

     

     

    Thank you Havoc ill mess with it today i dont code much other than messing around here and there,but have fun learning whats what. so i appreciate you taking time to explain and showing example.

  3. Wow...I never thought this thread would be resurrected

     

    Hello Havoc i was wondering if you know how to make it to were the cost does t scale so high with this script. I really dont have time to play the game how it was meant but still want to work towards an empire so dont want to play creative i modified the dmg and efficiency  but now the turrets are 6mil so kinda defeat purpose thank you for any reply.

×
×
  • Create New...