when i amended the code to
Code: Select all
//this.shipWillLaunchFromStation = function()
this.shipWillExitWitchspace = function()
{
system.addShipsToRoute(this.role, 1, 0.7, "ws");
//system.legacy_addSystemShips(this.role, this.count, 1.0);
log("testscript.spawn", "Generated " + this.count + " " + this.role + " for testing purposes." + this.kwgal + this.kwsys);
//log("gal" + this.kwgal + " planet " + this.kwsys);
}
edit - meh, it's printing the same no matter where i jump to, so i guess my
this.kwgal = galaxyNumber;
this.kwsys = system.ID;
isn't right?