share/hedgewars/Data/Scripts/Multiplayer/HedgeEditor.lua
changeset 13277 c15af5a5f458
parent 13170 98a0edb4bb5a
child 13282 b13071610c07
equal deleted inserted replaced
13276:2709572ed815 13277:c15af5a5f458
    25 
    25 
    26 ---------------------------------------
    26 ---------------------------------------
    27 -- CORE FEATURES as of latest version
    27 -- CORE FEATURES as of latest version
    28 ---------------------------------------
    28 ---------------------------------------
    29 -- togglable help (press PRECISE + 1, while you have a tool (e.g. airstrike) selected)
    29 -- togglable help (press PRECISE + 1, while you have a tool (e.g. airstrike) selected)
    30 -- you can also the set the ScriptParameter in scheme, e.g: helpDisabled="true"
       
    31 
    30 
    32 -- place girders, rubberbands and custom sprites anywhere on the map.
    31 -- place girders, rubberbands and custom sprites anywhere on the map.
    33 -- the above objects may be destructible, indestructible, icy, or bouncy.
    32 -- the above objects may be destructible, indestructible, icy, or bouncy.
    34 
    33 
    35 -- place mines, sticky mines, air mines, barrels, weapon crates, utility crates,
    34 -- place mines, sticky mines, air mines, barrels, weapon crates, utility crates,
    71 -- place/remove waypoints/special points
    70 -- place/remove waypoints/special points
    72 -- use the ScriptParameter in the frontend scheme editor to set additional options, e.g.
    71 -- use the ScriptParameter in the frontend scheme editor to set additional options, e.g.
    73 -- ufoFuel=1000 (Flying Saucer will start with half the normal fuel. A value of 2000 is infinite fuel)
    72 -- ufoFuel=1000 (Flying Saucer will start with half the normal fuel. A value of 2000 is infinite fuel)
    74 -- portalDistance=15 (This is the distance portals can travel before fizzling)
    73 -- portalDistance=15 (This is the distance portals can travel before fizzling)
    75 -- m=3 (load a particular map from the map library of Data/Scripts/TechMaps
    74 -- m=3 (load a particular map from the map library of Data/Scripts/TechMaps
    76 -- helpDisabled="true" (the help pop-up overlay will be disabled by default)
       
    77 
    75 
    78 -- when saving data, points for conversion to HWMAP are also generated and placed inside block comments.
    76 -- when saving data, points for conversion to HWMAP are also generated and placed inside block comments.
    79 -- copy paste/these points at the START of a converted HWMAP and then convert the map back to HWMAP format.
    77 -- copy paste/these points at the START of a converted HWMAP and then convert the map back to HWMAP format.
    80 -- following the above procedure it is then possible to load the map in frontend and play it using a
    78 -- following the above procedure it is then possible to load the map in frontend and play it using a
    81 -- script like TechRacer (or HedgeEditor itself) that can interpret the points using InterpretPoints()
    79 -- script like TechRacer (or HedgeEditor itself) that can interpret the points using InterpretPoints()
  3449 
  3447 
  3450 	if portalDistance == nil then
  3448 	if portalDistance == nil then
  3451 		portalDistance = 5000
  3449 		portalDistance = 5000
  3452 	end
  3450 	end
  3453 
  3451 
  3454 	if params["helpDisabled"] == "true" then
       
  3455 		helpDisabled = true
       
  3456 	end
       
  3457 
       
  3458 	if mapID == nil then
  3452 	if mapID == nil then
  3459 		mapID = 1
  3453 		mapID = 1
  3460 	end
  3454 	end
  3461 
  3455 
  3462 end
  3456 end