application for modder status

Status
Not open for further replies.

defacube

Member
Apr 7, 2024
4
1
130
Pronouns
he/him
i make mods, i wanna be a modder here

here's my best mod so far:
a bunch of something

here's part of the code for it:

Code:
function onhudrender()
        if nearLObject == true and (gNetworkPlayers[0].currLevelNum == LEVEL_FAKE_LLL) then
                djui_hud_set_font(FONT_HUD)
                djui_hud_set_resolution(RESOLUTION_DJUI)
                local scale = 4
                local width = djui_hud_measure_text("IT IS NOT REAL") * scale
                local x = (djui_hud_get_screen_width() - width) * 0.5
                local randval = math.random(0,1)
                local height = djui_hud_get_screen_height()
                if randval == 0 then
                        djui_hud_print_text("IT IS NOT REAL", x,height/2, scale)
                end
        end
        if nearLObject == true and (gNetworkPlayers[0].currLevelNum == LEVEL_CCH) then
                djui_hud_set_font(FONT_HUD)
                djui_hud_set_resolution(RESOLUTION_DJUI)
                local scale = 4
                local width = djui_hud_measure_text("DO NOT DELIVER THE PENGUIN") * scale
                local x = (djui_hud_get_screen_width() - width) * 0.5
                local randval = math.random(0,1)
                local height = djui_hud_get_screen_height()
                if randval == 0 then
                        djui_hud_print_text("DO NOT DELIVER THE PENGUIN", x,height/2, scale)
                end
                if gMarioStates[0].action == ACT_HOLD_IDLE or gMarioStates[0].action == ACT_HOLD_JUMP or gMarioStates[0].action == ACT_HOLD_JUMP_LAND or gMarioStates[0].action == ACT_HOLD_WALKING or gMarioStates[0].action == ACT_HOLD_BUTT_SLIDE or gMarioStates[0].action == ACT_HOLD_BUTT_SLIDE_AIR then
                        warp_to_warpnode(LEVEL_WDW, 2, 99, 241)
                end
        end
        if nearLObject == true and (gNetworkPlayers[0].currLevelNum == LEVEL_DDW) then
                djui_hud_set_font(FONT_HUD)
                djui_hud_set_resolution(RESOLUTION_DJUI)
                local scale = 4
                local width = djui_hud_measure_text("GO BACK") * scale
                local width2 = djui_hud_measure_text("IT IS NOT REAL") * scale
                local x = (djui_hud_get_screen_width() - width) * 0.5
                local x2 = (djui_hud_get_screen_width() - width2) * 0.5
                local randval = math.random(0,3)
                local height = djui_hud_get_screen_height()
                if randval == 0 then
                        djui_hud_print_text("GO BACK", x,height/2, scale)
                end
                if randval == 2 then
                        djui_hud_print_text("IT IS NOT REAL", x2,height/2, scale)
                end
        end
        if closetoLObject == true and (gNetworkPlayers[0].currLevelNum == LEVEL_DDW) then
                warp_to_level(math.random(2,38), 1, math.random(-32768, 32767))
                play_sound(SOUND_MARIO_WAAAOOOW, gMarioStates[0].pos)
        end
        if nearLObject == true and (gNetworkPlayers[0].currLevelNum == LEVEL_EERIE_HMC) then
                djui_hud_set_font(FONT_HUD)
                djui_hud_set_resolution(RESOLUTION_DJUI)
                local scale = 4
                local width = djui_hud_measure_text("GO BACK") * scale
                local width2 = djui_hud_measure_text("STOP LOOKING AT IT") * scale
                local x = (djui_hud_get_screen_width() - width) * 0.5
                local x2 = (djui_hud_get_screen_width() - width2) * 0.5
                local randval = math.random(0,3)
                local height = djui_hud_get_screen_height()
                if randval == 0 then
                        djui_hud_print_text("GO BACK", x,height/2, scale)
                end
                if randval == 2 then
                        djui_hud_print_text("STOP LOOKING AT IT", x2,height/2, scale)
                end
        end
end
hook_event(HOOK_ON_HUD_RENDER, onhudrender)
 
Status
Not open for further replies.

Users who are viewing this thread