Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------
- -- Girders (v1.01)
- -- Randomly placed girders? Golly!
- -- I suck at lua, So girder stats is very very buggy
- -------------------------------------------
- -- General Library Loading
- HedgewarsScriptLoad("/Scripts/Locale.lua")
- HedgewarsScriptLoad("/Scripts/Tracker.lua")
- -- Game flag setup
- function onGameInit()
- EnableGameFlags(gfDivideTeams, gfSharedAmmo)
- girdersacitvie = TotalRounds + 1
- -- Game scheme setup
- MinesNum = 0
- MinesTime = 3000
- MinesDudPercent = 30
- Explosives = 0
- HealthCaseProb = 0
- CrateFreq = 0
- SuddenDeathTurns = 50
- WaterRise = 47
- HealthDecrease = 0
- end
- -- Display Missiom/Script
- function onGameStart()
- ShowMission(loc("Girders"), loc("Golly!"), loc("Randomly spawning girders! Golly!"), -amGirder, 0)
- end
- -- Random girder placement system + Girder Stats system
- -- girdersacitvie = Mispelt variable that tracks randomly placed (not hog placed) girders
- -- coord1, coord2 = Variable with random coordinates
- -- girdertype = Variable that sets a random girder orientation
- function onNewTurn()
- girdersacitvie = TotalRounds + 1
- coord1 = GetRandom(2048)
- coord2 = GetRandom(1024)
- girdertype = GetRandom(7)
- PlaceGirder(coord1, coord2, girdertype)
- PlaySound(sndPlaced)
- ShowMission(loc("Girders"), loc("Girder Stats"), loc("Number of Girders " .. girdersacitvie .. "."), -amGirder, 0)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement