- What permissions do you give others to modify and/or maintain your submission?
- Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
- I made sure my file(s) follow the Submissions Guidelines
- Yes
- I named my file(s) correctly (see Filename Conventions)
- Yes
Randomizes shields on spawn
example:
functions:
RandomMonitorAddShield(MT)
RandomMonitorAddPowerup(MT)
MT being the mobj type for your monitor
local randommonitoradded = false
addHook("ThinkFrame", function()
if (RandomShieldMonitors ~= nil and randommonitoradded == false)
RandomMonitorAddShield(MT_YOURSHIELD)
RandomMonitorAddPowerup(MT_YOURPOWERUP)
randommonitoradded = true
end
end)
if you wanna stop your golden monitor from being randomized into what most likely will be a not golden monitor, there's this
local randommonitoradded = false
addHook("ThinkFrame", function()
if (RandomShieldMonitors ~= nil and randommonitoradded == false)
RandomShieldGoldenMonitors[MT_YOURGOLDSHIELDMONITOR] = MT_YOURGOLDSHIELDMONITOR
randommonitoradded = true
end
end)