Resource icon

[Open Assets] Random Monitor v3.2.3

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
  1. Yes
I named my file(s) correctly (see Filename Conventions)
  1. Yes
Randomizes shields on spawn
srb20135.png

srb20136.png

srb20137.png

srb20140.png


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)
Author
TheLastKitchenGun
Downloads
2,497
Views
4,520
Extension type
lua
File size
3.4 KB
MD5 Hash
67531946263e9088cf96b1434b0ad8d6
First release
Last update

More resources from TheLastKitchenGun

Share this resource

Latest updates

  1. fix

    apparently I messed up ring randomization and never noticed, fixed
  2. thing

    ring monitors now randomize, you'll have to use a custom monitor for these added function...
  3. thing

    it now prints a message when a monitor is added to the list that's it

Latest reviews

this works VERY well with mario
Upvote 0
A small mod, but works as intended.
Upvote 0
Back
Top