Advertisement
Guest User

KSP mission generator

a guest
Aug 10th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.30 KB | None | 0 0
  1. dest = {"Moho", "Eve", "Gilly", "Kerbin", "Mun", "Minmus", "Duna", "Ike" "Dres", "Jool", "Laythe", "Vall", "Tylo", "Bop", "Pol", "Eeloo", " the Sun", "your choice of places"}
  2. mist = {"put an unmanned probe into orbit around", "land an unmanned probe at", "put a manned satellite around" "create a station around", "create a base on", "put an unmanned rover on", "put a manned rover on", "take a spaceplane to", "do whatever you want on"}
  3. sc = {"get in an equatorial orbit around your target.", "get in a polar orbit around your target ", "spend no more than ", "spend no more than", "return to Kerbin", "make a stop at", "stay away from nuclear engines", "leave no debris", "abstain from mechjeb"}
  4.  
  5. kspr = function()
  6. destnum = math.random(1, 18)
  7. mistnum = math.random(1, 10)
  8. scnum = math.random(1, 10)
  9.  
  10.  
  11. if scnum == 10 then
  12. print("We need you to "..mist{mistnum}.. " " ..dest{destnum}.. ")
  13. elseif scnum == 3 then
  14. print("We need you to "..mist{mistnum}.. " " ..dest{destnum}.. " making sure to " ..sc{scnum}.." $" ..math.random(1,10)*10000)
  15. elseif scnum ==4 then
  16. print("We need you to "..mist{mistnum}.. " " ..dest{destnum}.. " making sure to " ..sc{scnum}.." " ..math.random(1,10)*10.. "days." )
  17. else
  18.  
  19. print("We need you to "..mist{mistnum}.. " " ..dest{destnum}.. " making sure to " ..sc{scnum})
  20. end
  21. end
  22.  
  23. kspr()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement