I know... did this allready but know i need a command or Mod to make them spawn when "The Ai" drops below 50% .
this also usable for other mods/mission :)
function onSectorChanged()
if onServer() then
local stations = {Sector():getEntitiesByType(EntityType.Station)}
local ships = {Sector():getEntitiesByType(EntityType.Ship)}
playerShip = Entity()
player = Player()
if playerShip.factionIndex == player.index then
addRenameScriptToEntities(stations)
addRenameScriptToEntities(ships)
if touched then
print("***================================***")
if craftTouched == 1 then
print("RenameShips Migrator: Added ShipRename to 1 craft in this Sector.\n")
else
print("RenameShips Migrator: Added ShipRename to "..tostring(craftTouched).." craft in this Sector.\n")
local craftTouched = 0
end
end
end
end
end
someone knows how to change this
if playerShip.factionIndex == player.index then
for Alliance ships ? if this is the matter ?
Hello ,
I wanna set some Minions for The Ai when it becomes 50% Damage of Shield or Hull. I got allready a The_ai_Minion.xml , but no clue how to get it done ;D
error constructing Player: no player found in script context at [C]:-1: in function Player
mods/RenameShips/scripts/player/shipRenameMigrator.lua:32: in function ?
could not execute function 'onSectorChanged' in '"mods/RenameShips/scripts/player/shipRenameMigrator.lua"':
mods/RenameShips/scripts/player/shipRenameMigrator.lua:34: attempt to index global 'player' (a nil value)
stack traceback:
mods/RenameShips/scripts/player/shipRenameMigrator.lua:34: in function <mods/RenameShips/scripts/player/shipRenameMigrator.lua:26>
maybe a Problem with Alliance ships ? but it´s still working
As the mods have their own files they should still work in 0.15.8.
well i did tested it... 562.000.000 Credits for a common bi-weaveshield seems a little bit buggy ? ^^ and the common weaponthing with +3 a little bit overpowered ?
I got allready a Mega big Modpack in work for 0.15.8 , but i screwed it up with my last try to fix it :-/ wanna take a look at it ?
Close to drop it away...
edit : maybe i get it to run... a little ^^
Can Somebody tell me where i can change the values for the sector "guards/defenders" ?
because i modded the Pirates but they screw now the whole faction xD
Found it in the Shipgenerator.lua i think