1 -- Random Weapons, example for gameplay scripts |
1 -- Random Weapons, example for gameplay scripts |
2 |
2 |
3 -- Load the library for localisation ("loc" function) |
3 -- Load the library for localisation ("loc" function) |
4 loadfile(GetDataPath() .. "Scripts/Locale.lua")() |
4 HedgewarsScriptLoad("/Scripts/Locale.lua") |
5 |
5 |
6 -- Load the gear tracker |
6 -- Load the gear tracker |
7 loadfile(GetDataPath() .. "Scripts/Tracker.lua")() |
7 HedgewarsScriptLoad("/Scripts/Tracker.lua") |
8 |
8 |
9 -- List of available weapons |
9 -- List of available weapons |
10 local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, |
10 local weapons = { amGrenade, amClusterBomb, amBazooka, amBee, amShotgun, |
11 amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer, |
11 amMine, amDEagle, amDynamite, amFirePunch, amWhip, amPickHammer, |
12 amBaseballBat, amTeleport, amMortar, amCake, amSeduction, |
12 amBaseballBat, amTeleport, amMortar, amCake, amSeduction, |