So I wanted to make a dedicated thread for each script but found the Doomy's thread and decided to make the same thing. So here we go:
These scripts are used just like any other Hedgewars scripts.
This is a simple logger that will output text if debugging is set. Usage:
local logger = DebugLogger(true); --false to disable logging logger.Output("Hi!");
Modular game style framework
Modular game style is a special game style that allows you to load any number of specially designed scripts (called modules) at once.
These scripts can be loaded by modular game style. You need to create a custom scheme and use the "script parameter" to activate them. You can activate any number of modules at once. Separate script parameters with spaces. For example: "CakeZooka NapalmNade".
Executes a function after the specified delay. Usage:
function Foo() AddCaption("Hi!"); end local timer = Timer(500, Foo); --Execute Foo after 500 milliseconds
Periodically spawns gears from the other gear.
Multiplayer game styles
No Water Death
Script parameter: NoWaterDeath
This script makes hogs respawn if they drown and still have health left. They keep the health they had before drowning so if 100 hp hog took 45 damage and drowned, he will respawn with 55 hp. There are modular version and standalone.
Script parameter: ExplosiveDeath
Hogs will die with a big explosion.
Demo video no.1
One MILLION damage video
Script parameter: CakeZooka
Bazooka that spawns cakes while in air.
Script parameter: UltimateMudball
Mudball that spawns any useful weapon while in air. Use timer keys to change weapon. 3 prints current weapon, 4 goes one step forward, 5 goes 2 steps forward, 2 goes one step back and 1 goes 2 steps back.
Script parameter: NapalmNade
Grenade that spawns molotovs while ticking.
Script parameter: MineCheese
Limburger that spawns mines while ticking.
Script parameter: EvilPoison
Poison cloud that spawns sticky mines while active.
Script parameter: Hellish Pistol
Pistol that spawns hellish bomb upon impact.
Script parameter: NuclearMelon
The melon which spawns more melons on explosion which spawn more melons which spawn more melons...
Script parameter: MineCake
Cake that spawns mines while ticking.
Script parameter: PoisonMine
Mines will create a poison cloud on detonation.
Script parameter: MelonStrike
The air strike with melons. Lots of damage.
The latest versions are available on GitLab.