share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 12048 76285ad6fa7f
parent 12047 5a7563df9264
child 12049 75f56c1198c3
equal deleted inserted replaced
12047:5a7563df9264 12048:76285ad6fa7f
   123 
   123 
   124 -- [high] 	waypoints don't reload yet
   124 -- [high] 	waypoints don't reload yet
   125 
   125 
   126 -- [high] 	add missing weps/utils/gears as they appear
   126 -- [high] 	add missing weps/utils/gears as they appear
   127 --			some gameflags and settings are probably missing, too (diff border types etc)
   127 --			some gameflags and settings are probably missing, too (diff border types etc)
   128 --			some themes are also probably missing: cake, hoggywood?
   128 --			and also ScriptParam
   129 -- 			the ongameinit stuff is probaably missing something akin to numAirMines
       
   130 --			and also probably scriptParam and gravity etc.
       
   131 
   129 
   132 -- [med] 	add a limited form of save/load within level before mass-output
   130 -- [med] 	add a limited form of save/load within level before mass-output
   133 
       
   134 -- [med] 	rework gameflag handling to use the newer API methods (done?)
       
   135 
   131 
   136 -- [med]	maybe incorporate portal effects / ufo tracking into the template generated script if
   132 -- [med]	maybe incorporate portal effects / ufo tracking into the template generated script if
   137 -- 			you want the missions to use it
   133 -- 			you want the missions to use it
   138 
   134 
   139 -- [med]	improve ammo handling (if possible, take more scheme settings into account)
   135 -- [med]	improve ammo handling (if possible, take more scheme settings into account)
  1583 	WriteLnToConsole("	ClearGameFlags()")
  1579 	WriteLnToConsole("	ClearGameFlags()")
  1584 	WriteLnToConsole(temp .. ")")
  1580 	WriteLnToConsole(temp .. ")")
  1585 
  1581 
  1586 	WriteLnToConsole("	Map = \"" .. Map .. "\"")
  1582 	WriteLnToConsole("	Map = \"" .. Map .. "\"")
  1587 	WriteLnToConsole("	Seed = \"" .. Seed .. "\"")
  1583 	WriteLnToConsole("	Seed = \"" .. Seed .. "\"")
  1588 	WriteLnToConsole("	Theme = " .. Theme .. "\"")
  1584 	WriteLnToConsole("	Theme = \"" .. Theme .. "\"")
  1589 	WriteLnToConsole("	MapGen = " .. MapGen)
  1585 	WriteLnToConsole("	MapGen = " .. MapGen)
  1590 	WriteLnToConsole("	MapFeatureSize = " .. MapFeatureSize)
  1586 	WriteLnToConsole("	MapFeatureSize = " .. MapFeatureSize)
  1591 	WriteLnToConsole("	TemplateFilter = " .. TemplateFilter)
  1587 	WriteLnToConsole("	TemplateFilter = " .. TemplateFilter)
  1592 	WriteLnToConsole("	TemplateNumber = " .. TemplateNumber)
  1588 	WriteLnToConsole("	TemplateNumber = " .. TemplateNumber)
  1593 	WriteLnToConsole("	TurnTime = " .. TurnTime)
  1589 	WriteLnToConsole("	TurnTime = " .. TurnTime)
  1608 
  1604 
  1609 	WriteLnToConsole("	Ready = " .. Ready)
  1605 	WriteLnToConsole("	Ready = " .. Ready)
  1610 	WriteLnToConsole("	AirMinesNum = " .. AirMinesNum)
  1606 	WriteLnToConsole("	AirMinesNum = " .. AirMinesNum)
  1611 	--WriteLnToConsole("	ScriptParam = " .. ScriptParam)
  1607 	--WriteLnToConsole("	ScriptParam = " .. ScriptParam)
  1612 	WriteLnToConsole("	GetAwayTime = " .. GetAwayTime)
  1608 	WriteLnToConsole("	GetAwayTime = " .. GetAwayTime)
       
  1609 	WriteLnToConsole("	WorldEdge = " .. WorldEdge)
  1613 
  1610 
  1614 	WriteLnToConsole("")
  1611 	WriteLnToConsole("")
  1615 
  1612 
  1616 	SaveHogData()
  1613 	SaveHogData()
  1617 
  1614 
  3396 end
  3393 end
  3397 
  3394 
  3398 function onGameInit()
  3395 function onGameInit()
  3399 
  3396 
  3400 	-- perhaps we can get some of this better info in parsecommandoverride
  3397 	-- perhaps we can get some of this better info in parsecommandoverride
  3401 	--Map = "Islands"
       
  3402 	--Theme = "Deepspace"
       
  3403 	--Seed = "{bacb2f87-f316-4691-a333-3bcfc4fb3d88}"
       
  3404 	--MapGen = 0 -- 0:generated map, 1:generated maze, 2:hand drawn map
       
  3405 	--TemplateFilter = 5	-- small=1,med=2,large=3,cavern=4,wacky=5
       
  3406 
  3398 
  3407 	if mapID == nil then
  3399 	if mapID == nil then
  3408 		mapID = 1
  3400 		mapID = 1
  3409 	end
  3401 	end
  3410 
  3402