Mini Mods for Scenarios

Hello together, feel free to share your own "bits" and "pieces" you made for your adventures. Maybe even daid will find the one or another idea to implement it on the Game itself.

(On this Point, thanks daid for the Game! Awesomework!)

Sry for my ugly Scripting, I`m not a programmer and I`m only trying to make it work somehow.


Here my idea for "Coolant Venting":
-- Name: TEST
-- Description: TEST
-- Type: Basic

function init()
player = PlayerSpaceship():setFaction("Human Navy"):setTemplate("Atlantis"):setPosition(0, 0):setCallSign("Cerberus")
coolant = 0
coolant_lvl = nil

addGMFunction("Coolant", function() -- Reset Coolant
coolant = 0
coolant_lvl = nil
end)
end

function update(delta)
--player:addCustomButton("engineering", "Coolant_Venting", "Allow coolant venting", function()
player:addCustomButton("science", "Coolant_Override", "Venting coolant", function()
if coolant == nil then coolant = 0 end
coolant = coolant + 1
if coolant == 1 then
coolant_lvl = 3
for _, system in ipairs({"reactor", "beamweapons", "missilesystem", "maneuver", "impulse", "warp", "jumpdrive", "frontshield", "rearshield"}) do
player:setSystemHeat(system, 0.0)
player:removeCustom("Coolant_Override")
end
x_player, y_player = player:getPosition()
Nebula():setPosition(x_player, y_player)
--player:removeCustom("Coolant_Override")
end
if coolant == 2 then
coolant_lvl = 6
for _, system in ipairs({"reactor", "beamweapons", "missilesystem", "maneuver", "impulse", "warp", "jumpdrive", "frontshield", "rearshield"}) do
player:setSystemHeat(system, 0.0)
player:removeCustom("Coolant_Override")
end
x_player, y_player = player:getPosition()
Nebula():setPosition(x_player, y_player)
--player:removeCustom("Coolant_Override")
end
if coolant == 3 then
coolant_lvl = 9
for _, system in ipairs({"reactor", "beamweapons", "missilesystem", "maneuver", "impulse", "warp", "jumpdrive", "frontshield", "rearshield"}) do
player:setSystemHeat(system, 0.0)
player:removeCustom("Coolant_Override")
end
x_player, y_player = player:getPosition()
Nebula():setPosition(x_player, y_player)
--player:removeCustom("Coolant_Override")
end
end)
--end)

player:commandSetSystemCoolantRequest("warp", coolant_lvl)

end
By "venting" the coolant the Science Officer get`s an Active Role in Combat, for once, you can instantly get rid off all heating at your System and you create a nebula to hide in and flee if you want to. As a trade off you loose a part of your coolant.

In case Science Officer gets to "trigger happy" with his new power you can put Engineering inbetween to give Science the allowance to vent his precious coolant.

This will work for "Jumpdrive"-Ships. If you have a warp ship, swap out the last "warp" with "jumpdrive".
(Of course most of you will know this already...)

Maybe someone can figureout a way to "autorecharge" coolant on a Station without the stupid GM-Button,... I`ll work on it but again, I`m more of an Ape trying to figure out how to work with a calculator then a programmer...

Comments

  • Since I have no better Idea this is an alternative to the GMFunction giving back the coolant
    if coolant > 0 then
    local x0,y0 = player:getPosition()
    local dummy_station = 0
    for _, obj in ipairs(getObjectsInRadius(x0,y0,1000)) do
    if obj.typeName == "SpaceStation" then dummy_station = 1 end
    end
    if dummy_station == 1 then
    player:addCustomButton("relay","Coolant_Intake", "Taking in coolant", function()
    coolant = 0
    coolant_lvl = nil
    player:removeCustom("Coolant_Intake")
    end)
    end
    end
    Maybe someone can tell how to make Docking or beeing Docked on ANY Station a valid if case for a button prompt.
  • edited December 6
    Another mini Mod. Make any Ship a "ShipCarrier" like Battlestar Galactica.

    You will need to change the setTemplate ships since I use my own models and templates.

    https://github.com/TolotosRhodan/EE-MotU/blob/Test/scenario_carrier.lua

    Ship will drop Warpability at 5 U range to enemy and Deploys First Squadron. At 4,5 U Range it will deploy second Squadron around the Carrier.

    Alls Squadrons are set to "Defend the Carrier".

    If alle Enemys are kill/out of Range (5 U) the Squadrons get Dockingorder, as soon they Dock they disappear. If there are losses they will not spawn at next Enemy Contact.

    Is there no Fighter left the Carrier regains Warpability. (That way the Carrier won`t Warpaway before all Fighter are back in the Hangar.

    Have fun!
  • Love the carrier idea. I'm looking at GMing some scenarios for a group of players, and having the ability to have some of them as fighters would be pretty cool.
  • edited December 7
    There you go Heinz!

    You can make up to 10 "player controlled" small Crafts. You need Relay to manage it.

    You will also need to change or create your own setTemplate Ships to make it work.
    You need a normal "Fighter" aka "Jäger" and a "Fighter P" aka "Jäger P" variant for playership. The same for Bombers.
    Have fun!

    https://github.com/TolotosRhodan/EE-MotU/blob/Test/scenario_playercarrier.lua

    Sry for the German input, making these for German audience. If anyone needs help on translation. Just ask =)



    btw anyone have an idea why I get a >"camera_position" not found in shader< ?
    In Single Pilot I don`t get the additional "main screen".
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!