Advertisement - Why am I seeing ads? Report
   
 

MadStatus.lua

Sort:
Previous Thread :: Next Thread 
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 02:22 PM
TROLLOL.
I timed myself. This took exactly one minute, three seconds to port. Well, just the generator. I could make the start and stop fields, with a hint that pops up, but I is lazy. So here you are. The original MadStatus.js (roblox.com/js/MadStatus.js):
MadStatus = {
// Usage:
//MadStatus.init('MadStatusField','MadStatusBackBuffer', 2000, [1000]);
//MadStatus.start();

running: false,
init: function (field, backBuffer, updateInterval, fadeInterval) {
this.timeout = null;
this.running = true;
this.field = field;
this.backBuffer = backBuffer;
this.updateInterval = updateInterval ? updateInterval : 2000;
this.fadeInterval = fadeInterval ? fadeInterval : 1000;
this.field.show();
this.backBuffer.hide();
},
participle: [
"Accelerating",
"Aggregating",
"Allocating",
"Aquiring",
"Automating",
"Backtracing",
"Bloxxing",
"Bootstraping",
"Calibrating",
"Correlating",
"De-noobing",
"De-ionizing",
"Deriving",
"Energizing",
"Filtering",
"Generating",
"Indexing",
"Loading",
"Noobing",
"Optimizing",
"Oxidizing",
"Queueing",
"Parsing",
"Processing",
"Rasterizing",
"Reading",
"Registering",
"Re-routing",
"Resolving",
"Sampling",
"Updating",
"Writing"
],
modifier: [
"Blox",
"Count Zero",
"Cylon",
"Data",
"Ectoplasm",
"Encryption",
"Event",
"Farnsworth",
"Bebop",
"Flux Capacitor",
"Fusion",
"Game",
"Gibson",
"Host",
"Mainframe",
"Metaverse",
"Nerf Herder",
"Neutron",
"Noob",
"Photon",
"Profile",
"Script",
"Skynet",
"TARDIS",
"Virtual"
],
subject: [
"Analogs",
"Blocks",
"Cannon",
"Channels",
"Core",
"Database",
"Dimensions",
"Directives",
"Engine",
"Files",
"Gear",
"Index",
"Layer",
"Matrix",
"Paradox",
"Parameters",
"Parsecs",
"Pipeline",
"Players",
"Ports",
"Protocols",
"Reactors",
"Sphere",
"Spooler",
"Stream",
"Switches",
"Table",
"Targets",
"Throttle",
"Tokens",
"Torpedoes",
"Tubes"
],
newLib: function () {
return libString = this.participle[Math.floor(Math.random() * (this.participle.length))] + " " +
this.modifier[Math.floor(Math.random() * (this.modifier.length))] + " " +
this.subject[Math.floor(Math.random() * (this.subject.length))] + "...";
},
start: function () {
if (MadStatus.timeout == null)
MadStatus.timeout = setInterval("MadStatus.update()", MadStatus.updateInterval);
},
stop: function (msg) {
if (MadStatus.running) {
clearInterval(MadStatus.timeout);
MadStatus.timeout = null;
if (typeof (msg) != typeof (undefined))
MadStatus.field[0].innerHTML = msg;
else
MadStatus.field[0].innerHTML = "";
}
},
manualUpdate: function (staticMsg, resumeAfterUpdate, animate) {
if (MadStatus.timeout)
MadStatus.stop();

this.update(staticMsg, animate);

if (resumeAfterUpdate)
setTimeout("MadStatus.start()", 1000);
},
update: function (staticMsg, animate) {
if (typeof (staticMsg) != typeof (undefined))
MadStatus.backBuffer[0].innerHTML = staticMsg;
else
MadStatus.backBuffer[0].innerHTML = this.newLib();

if (typeof (noAnim) != typeof (undefined) && animate == false)
return;

this.field.hide();
this.backBuffer.fadeIn(this.fadeInterval + 2, function () {
MadStatus.field[0].innerHTML = MadStatus.backBuffer[0].innerHTML
MadStatus.field.show();
MadStatus.backBuffer.hide();
});
}
}


My port in Lua (MadStatus.lua):
--MadStatus.lua
_G.MadStatus = {
Participle = {
"Accelerating",
"Aggregating",
"Allocating",
"Aquiring",
"Automating",
"Backtracing",
"Bloxxing",
"Bootstraping",
"Calibrating",
"Correlating",
"De-noobing",
"De-ionizing",
"Deriving",
"Energizing",
"Filtering",
"Generating",
"Indexing",
"Loading",
"Noobing",
"Optimizing",
"Oxidizing",
"Queueing",
"Parsing",
"Processing",
"Rasterizing",
"Reading",
"Registering",
"Re-routing",
"Resolving",
"Sampling",
"Updating",
"Writing"
},
Modifier = {
"Blox",
"Count Zero",
"Cylon",
"Data",
"Ectoplasm",
"Encryption",
"Event",
"Farnsworth",
"Bebop",
"Flux Capacitor",
"Fusion",
"Game",
"Gibson",
"Host",
"Mainframe",
"Metaverse",
"Nerf Herder",
"Neutron",
"Noob",
"Photon",
"Profile",
"Script",
"Skynet",
"TARDIS",
"Virtual"
},
Subject = {
"Analogs",
"Blocks",
"Cannon",
"Channels",
"Core",
"Database",
"Dimensions",
"Directives",
"Engine",
"Files",
"Gear",
"Index",
"Layer",
"Matrix",
"Paradox",
"Parameters",
"Parsecs",
"Pipeline",
"Players",
"Ports",
"Protocols",
"Reactors",
"Sphere",
"Spooler",
"Stream",
"Switches",
"Table",
"Targets",
"Throttle",
"Tokens",
"Torpedoes",
"Tubes"
},
Generate = function()
return _G.MadStatus.Participle[math.random(1, #_G.MadStatus.Participle)] .. " " ..
_G.MadStatus.Modifier[math.random(1, #_G.MadStatus.Modifier)] .. " " ..
_G.MadStatus.Subject[math.random(1, #_G.MadStatus.Subject)] .. "..."
end
}

No I do not know why I made this.
ReplyReport Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
11 May 2011 02:23 PM
was there any need for the overuse of the global table?
ReplyReport Abuse
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 02:24 PM
Nope.
ReplyReport Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
11 May 2011 02:25 PM
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.
______________________
Executing Untitled...

Aquiring Noob Matrix...

Script finished.



Hm, that worked well...
ReplyReport Abuse
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 02:26 PM
lol, wut?
It works fine in roblox and it works fine in my Lua interperiter.
Is your random() function borked?
maybe it works off of the time since execution and not some other time system.
ReplyReport Abuse
MrBlockson is not online. MrBlockson
Joined: 31 Aug 2008
Total Posts: 14276
11 May 2011 02:28 PM
Yeah, BD doesn't like random :P
ReplyReport Abuse
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 02:29 PM
BD?
ReplyReport Abuse
Nikolas5411 is not online. Nikolas5411
Joined: 03 Apr 2010
Total Posts: 2117
11 May 2011 02:42 PM
He problemly just wanted it to be cool.

It is too.
ReplyReport Abuse
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 02:53 PM
I want to be cool? I could care less lol.
And I still don't know what BD is.
ReplyReport Abuse
LocalChum is not online. LocalChum
Joined: 04 Mar 2011
Total Posts: 6905
11 May 2011 03:03 PM
hai dark :3
ReplyReport Abuse
Anaminus is not online. Anaminus
Top 100 Poster
Forum Moderator
Joined: 29 Nov 2006
Total Posts: 5947
11 May 2011 03:04 PM
@MrBlockson, the seed resets every time you run it. Just add [[ math.randomseed(os.time()) ]] or something.
ReplyReport Abuse
DarkShadow6 is not online. DarkShadow6
Joined: 05 Jan 2008
Total Posts: 688
11 May 2011 03:13 PM
hai walty
Also Ana is right.
ReplyReport Abuse
Piedude777 is not online. Piedude777
Joined: 01 Oct 2008
Total Posts: 10013
11 May 2011 03:21 PM
math.randomseed(tick())

?
ReplyReport Abuse
sircfenner is not online. sircfenner
Joined: 29 Aug 2008
Total Posts: 2242
11 May 2011 03:57 PM
BD=Brain Damage?

Lua environment?
ReplyReport Abuse
Shayla1104 is not online. Shayla1104
Joined: 22 Nov 2011
Total Posts: 138
22 Jun 2012 01:21 PM
bow chika wow wow
ReplyReport Abuse
SN0X is not online. SN0X
Joined: 24 Oct 2011
Total Posts: 7277
22 Jun 2012 02:36 PM
I hate this new loader thing I'd much rather have it as just a loading, blah percent complete.
ReplyReport Abuse
RA2lover is not online. RA2lover
Joined: 09 Nov 2008
Total Posts: 956
22 Jun 2012 04:17 PM
I've never managed to get a "Bloxxing Blox Blocks".

-truestory
ReplyReport Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 16083
22 Jun 2012 07:16 PM
@Ra2
I did once, it amused me.

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
ReplyReport Abuse
lilyseee22 is not online. lilyseee22
Joined: 22 Sep 2011
Total Posts: 1
03 Aug 2012 01:38 PM
hey
ReplyReport Abuse
Prehistoricman is not online. Prehistoricman
Joined: 20 Sep 2008
Total Posts: 12031
03 Aug 2012 02:02 PM
2ND NECROBUMP TODAY I MIGHT HAVE TO QUIT TEMPORARILY IF THIS CARRIES ON
ReplyReport Abuse
lucas668 is not online. lucas668
Joined: 18 Jun 2008
Total Posts: 6183
03 Aug 2012 02:59 PM
Why is this bumped...
ReplyReport Abuse
MrChickens is not online. MrChickens
Joined: 21 Feb 2009
Total Posts: 1077
25 Aug 2012 07:18 PM
Cool

☜▬▬▬▬▬▬☜☆☞▬▬▬▬▬▬☞
MrChickens, another bird which doesn't fly.
ReplyReport Abuse
EMAN381 is not online. EMAN381
Joined: 27 Nov 2007
Total Posts: 4301
25 Aug 2012 08:36 PM
>One minute

Gee, you type fast.. :l
ReplyReport Abuse
tylan52 is not online. tylan52
Joined: 23 Jun 2012
Total Posts: 1
05 Aug 2013 02:09 PM
MLOL
ReplyReport Abuse
booing is not online. booing
Joined: 04 May 2009
Total Posts: 5540
05 Aug 2013 02:21 PM
GRRRRRRRRRRRRRRRRRR
ReplyReport Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
Add a Reply
 
   
 
Advertisement Report