Anonymous user
Module:Splash: Difference between revisions
m
Added BTA birthday and Halloween splashes and updated New Year splash
imported>Ttv pedro270707 m (Now checks the width for each character. I don't really know if this was needed but it helps make it more accurate.) |
imported>Ttv pedro270707 m (Added BTA birthday and Halloween splashes and updated New Year splash) |
||
(9 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
['!'] = 2, ['.'] = 2, [','] = 2, [':'] = 2, ['\''] = 2, ['i'] = 2, -- width 1 characters | ['!'] = 2, ['.'] = 2, [','] = 2, [':'] = 2, ['\''] = 2, ['i'] = 2, -- width 1 characters | ||
['l'] = 3, -- width 2 characters | ['l'] = 3, -- width 2 characters | ||
['I'] = 4, ['t'] = 4, -- width 3 characters | ['I'] = 4, ['t'] = 4, [' '] = 4, -- width 3 characters | ||
['k'] = 5, ['<'] = 5, ['>'] = 5, ['f'] = 5, -- width 4 characters | ['k'] = 5, ['<'] = 5, ['>'] = 5, ['f'] = 5, -- width 4 characters | ||
['A'] = 6, ['B'] = 6, ['C'] = 6, ['D'] = 6, ['E'] = 6, ['F'] = 6, ['G'] = 6, ['H'] = 6, ['J'] = 6, ['K'] = 6, ['L'] = 6, ['M'] = 6, ['N'] = 6, ['O'] = 6, ['P'] = 6, ['Q'] = 6, ['R'] = 6, ['S'] = 6, ['T'] = 6, ['U'] = 6, ['V'] = 6, ['W'] = 6, ['X'] = 6, ['Y'] = 6, ['Z'] = 6, | ['A'] = 6, ['B'] = 6, ['C'] = 6, ['D'] = 6, ['E'] = 6, ['F'] = 6, ['G'] = 6, ['H'] = 6, ['J'] = 6, ['K'] = 6, ['L'] = 6, ['M'] = 6, ['N'] = 6, ['O'] = 6, ['P'] = 6, ['Q'] = 6, ['R'] = 6, ['S'] = 6, ['T'] = 6, ['U'] = 6, ['V'] = 6, ['W'] = 6, ['X'] = 6, ['Y'] = 6, ['Z'] = 6, | ||
Line 31: | Line 31: | ||
elseif os.date("*t", os.time()).month == 5 and os.date("*t", os.time()).day == 17 then | elseif os.date("*t", os.time()).month == 5 and os.date("*t", os.time()).day == 17 then | ||
randomSplash = "Happy birthday, Minecraft!" | randomSplash = "Happy birthday, Minecraft!" | ||
elseif os.date("*t", os.time()).month == 7 and os.date("*t", os.time()).day == 20 then | |||
randomSplash = "Happy birthday, Better than Adventure!" | |||
elseif os.date("*t", os.time()).month == 12 and os.date("*t", os.time()).day == 24 then | elseif os.date("*t", os.time()).month == 12 and os.date("*t", os.time()).day == 24 then | ||
randomSplash = "Merry X-mas!" | randomSplash = "Merry X-mas!" | ||
elseif os.date("*t", os.time()).month == 1 and os.date("*t", os.time()).day == 1 then | elseif os.date("*t", os.time()).month == 1 and os.date("*t", os.time()).day == 1 then | ||
randomSplash = "Happy | randomSplash = "Happy Halloween!" | ||
elseif os.date("*t", os.time()).month == 10 and os.date("*t", os.time()).day == 31 then | |||
randomSplash = "Happy New Year!" | |||
else | else | ||
randomSplash = splashes.splashes[math.random(#splashes.splashes)] | randomSplash = splashes.splashes[math.random(#splashes.splashes)] | ||
Line 46: | Line 50: | ||
local charWidth = charWidths[char] | local charWidth = charWidths[char] | ||
if not charWidth then | if not charWidth then | ||
charWidth = | charWidth = 6 -- Default width | ||
end | end | ||