# HG changeset patch # User Wuzzy # Date 1518824040 -3600 # Node ID ca7fdb431b34d0034e9be8c9f9f6e951fe8db540 # Parent 261b8fd142359a977c0f0139b81d013605ddfed5 Construction Mode, Space Invasion: Add example script param in default schems to make editing more convenient diff -r 261b8fd14235 -r ca7fdb431b34 QTfrontend/model/ammoSchemeModel.cpp --- a/QTfrontend/model/ammoSchemeModel.cpp Sat Feb 17 00:06:34 2018 +0100 +++ b/QTfrontend/model/ammoSchemeModel.cpp Sat Feb 17 00:34:00 2018 +0100 @@ -615,7 +615,8 @@ << QVariant(100) // rope modfier 40 << QVariant(100) // get away time 41 << QVariant(0) // world edge 42 - << QVariant() // scriptparam 43 + // NOTE: If you change this, also change the defaults in the Construction Mode script + << QVariant("initialenergy=550, energyperround=50, maxenergy=1000, cratesperround=5") // scriptparam 43 ; QList spaceinvasion; @@ -663,7 +664,8 @@ << QVariant(100) // rope modfier 40 << QVariant(100) // get away time 41 << QVariant(0) // world edge 42 - << QVariant() // scriptparam 43 + // NOTE: If you change this, also change the defaults in the Space Invasion script + << QVariant("rounds=3, shield=30, barrels=5, pings=2, barrelbonus=3, shieldbonus=30, timebonus=4") // scriptparam 43 ; QList hedgeeditor; diff -r 261b8fd14235 -r ca7fdb431b34 share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Sat Feb 17 00:06:34 2018 +0100 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Construction_Mode.lua Sat Feb 17 00:34:00 2018 +0100 @@ -128,6 +128,7 @@ local amCMObjectPlacer = amNapalm -- Config variables (script parameter) +-- NOTE: If you change this, also change the default game scheme “Construction Mode” local conf_initialEnergy = 550 local conf_energyPerRound = 50 local conf_maxEnergy = 1000 diff -r 261b8fd14235 -r ca7fdb431b34 share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua --- a/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Sat Feb 17 00:06:34 2018 +0100 +++ b/share/hedgewars/Data/Scripts/Multiplayer/Space_Invasion.lua Sat Feb 17 00:34:00 2018 +0100 @@ -363,6 +363,7 @@ local RoundHasChanged = true -- for script parameters +-- NOTE: If you change this, also change the default “Space Invasion” game scheme local startBarrels = 5 -- "barrels" local startShield = 30 -- "shield" local startRadShots = 2 -- "pings"