Created
November 3, 2012 18:45
Revisions
-
Brianetta revised this gist
Dec 23, 2012 . 1 changed file with 9 additions and 19 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,8 @@ local ui = Engine.ui local CheatList = ui:VBox() local cheatMission = function (loaded) local cheats = { @@ -19,28 +16,21 @@ local cheatMission = function (loaded) {'Destroy combat target', function () if Game.player:GetCombatTarget() then Game.player:GetCombatTarget():Explode() end end}, } for key,cheat in pairs(cheats) do local cheatButton = ui:Button():SetInnerWidget(ui:Label(cheat[1])) cheatButton.onClick:Connect(cheat[2]) CheatList:PackEnd(cheatButton) end local missionData = { type = 'cheats', client = Character.New({name = 'Alpha Tester'}), } if Game.time < 5 then Timer:CallAt(5,function () Mission.New(missionData) end) end end Mission.RegisterType('cheats','Cheats!', function () return CheatList end) Event.Register("onGameStart", cheatMission) -
Brianetta revised this gist
Dec 18, 2012 . 1 changed file with 1 addition and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,6 @@ Translate:Add({ }) local ui = Engine.ui local cheatMission = function (loaded) @@ -38,12 +37,9 @@ local cheatMission = function (loaded) local missionData = { type = 'cheats', client = Character.New({name = 'Alpha Tester'}), } if Game.time < 5 then Timer:CallAt(5,function () Mission.New(missionData) end) end end -
johnbartholomew revised this gist
Dec 15, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ local t = Translate:GetTranslator() local cheatMission = function (loaded) local cheats = { {'Add cash', function () Game.player:AddMoney(100000) end}, {'Refuel (prop tank)', function () Game.player:SetFuelPercent() end}, {'Refuel (1t H)', function () Game.player:AddEquip('HYDROGEN') end}, {'Refuel (1t Mil)', function () Game.player:AddEquip('MILITARY_FUEL') end}, -
Brianetta revised this gist
Nov 17, 2012 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Translate:Add({ local ui = Engine.ui local t = Translate:GetTranslator() local cheatMission = function (loaded) local cheats = { {'Add cash', function () Game.player:SetMoney(Game.player:GetMoney() + 100000) end}, @@ -43,7 +43,7 @@ local cheatMission = function () status = 'ACTIVE', } if Game.time < 5 then Timer:CallAt(5,function () Mission.Add(missionData) end) end end -
Brianetta revised this gist
Nov 4, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -17,7 +17,7 @@ local cheatMission = function () {'Repair hull', function () Game.player:SetHullPercent() end}, {'Fit autopilot', function () Game.player:AddEquip('AUTOPILOT') end}, {'Fit atmospheric shield', function () Game.player:AddEquip('ATMOSPHERIC_SHIELDING') end}, {'Destroy combat target', function () if Game.player:GetCombatTarget() then Game.player:GetCombatTarget():Explode() end end}, } local CheatList = ui:VBox() -
Brianetta revised this gist
Nov 4, 2012 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -14,6 +14,7 @@ local cheatMission = function () {'Refuel (prop tank)', function () Game.player:SetFuelPercent() end}, {'Refuel (1t H)', function () Game.player:AddEquip('HYDROGEN') end}, {'Refuel (1t Mil)', function () Game.player:AddEquip('MILITARY_FUEL') end}, {'Repair hull', function () Game.player:SetHullPercent() end}, {'Fit autopilot', function () Game.player:AddEquip('AUTOPILOT') end}, {'Fit atmospheric shield', function () Game.player:AddEquip('ATMOSPHERIC_SHIELDING') end}, {'Destroy combat target', function () Game.player:GetCombatTarget():Explode() end}, -
Brianetta revised this gist
Nov 4, 2012 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ local cheatMission = function () local cheats = { {'Add cash', function () Game.player:SetMoney(Game.player:GetMoney() + 100000) end}, {'Refuel (prop tank)', function () Game.player:SetFuelPercent() end}, {'Refuel (1t H)', function () Game.player:AddEquip('HYDROGEN') end}, {'Refuel (1t Mil)', function () Game.player:AddEquip('MILITARY_FUEL') end}, {'Fit autopilot', function () Game.player:AddEquip('AUTOPILOT') end}, -
Brianetta revised this gist
Nov 3, 2012 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,9 @@ local cheatMission = function () local cheats = { {'Add cash', function () Game.player:SetMoney(Game.player:GetMoney() + 100000) end}, {'Refuel (prop tank)', function () Game.player:SetFuel() end}, {'Refuel (1t H)', function () Game.player:AddEquip('HYDROGEN') end}, {'Refuel (1t Mil)', function () Game.player:AddEquip('MILITARY_FUEL') end}, {'Fit autopilot', function () Game.player:AddEquip('AUTOPILOT') end}, {'Fit atmospheric shield', function () Game.player:AddEquip('ATMOSPHERIC_SHIELDING') end}, {'Destroy combat target', function () Game.player:GetCombatTarget():Explode() end}, -
Brianetta renamed this gist
Nov 3, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Brianetta renamed this gist
Nov 3, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
Brianetta created this gist
Nov 3, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,47 @@ Translate:Add({ English = { cheats = 'Cheats!', } }) local ui = Engine.ui local t = Translate:GetTranslator() local cheatMission = function () local cheats = { {'Add cash', function () Game.player:SetMoney(Game.player:GetMoney() + 100000) end}, {'Refuel', function () Game.player:SetFuel() end}, {'Fit autopilot', function () Game.player:AddEquip('AUTOPILOT') end}, {'Fit atmospheric shield', function () Game.player:AddEquip('ATMOSPHERIC_SHIELDING') end}, {'Destroy combat target', function () Game.player:GetCombatTarget():Explode() end}, } local CheatList = ui:VBox() for key,cheat in pairs(cheats) do local cheatButton = ui:Button():SetInnerWidget(ui:Label(cheat[1])) cheatButton.onClick:Connect(cheat[2]) CheatList:PackEnd(cheatButton) end local cheats = function (ref) return CheatList end Mission.RegisterClick('cheats', function (ref) return CheatList end) local missionData = { type = 'cheats', client = Character.New({name = 'Alpha Tester'}), due = Game.time, reward = 0, status = 'ACTIVE', } Timer:CallAt(5,function () Mission.Add(missionData) end) end Event.Register("onGameStart", cheatMission)