SovietArctic
New Coder
I was making a infinite powers script for a game, powers is the items, and i just cant seem to get it to work. Can i have some help or idea's?
// ==UserScript==
// @name Test 2
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match Cellcraft.io
// ==/UserScript==
alert("Infinite Powers Script",
"Not Finished")
//powers
var powers = ["Recombine", "Speed", "Virus", "portal", "Freeze"]
Set.powers(Infinity);
powers.push[0].add(Recombine)
powers.push[1].add(Speed)
powers.push[2].add(Virus)
powers.push[3].add(portal)
powers.push[4].add(Freeze)
const Recombine = new Set(0);
const Speed = new Set(1);
const Virus = new Set(2);
const portal = new Set(3);
const Freeze = new Set(4);
Recombine.add(1000);
Speed.add(1000);
Virus.add(1000);
portal.add(1000);
Freeze.add(1000);
for (const item of Recombine) {
console.log(item);
// expected output: 1000
}
for (const item of Speed) {
console.log(item);
// expected output: 1000
}
for (const item of Virus) {
console.log(item);
// expected output: 1000
}
for (const item of portal) {
console.log(item);
// expected output: 1000
}
for (const item of Freeze) {
console.log(item);
// expected output: 1000
}
// ==UserScript==
// @name Test 2
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match Cellcraft.io
// ==/UserScript==
alert("Infinite Powers Script",
"Not Finished")
//powers
var powers = ["Recombine", "Speed", "Virus", "portal", "Freeze"]
Set.powers(Infinity);
powers.push[0].add(Recombine)
powers.push[1].add(Speed)
powers.push[2].add(Virus)
powers.push[3].add(portal)
powers.push[4].add(Freeze)
const Recombine = new Set(0);
const Speed = new Set(1);
const Virus = new Set(2);
const portal = new Set(3);
const Freeze = new Set(4);
Recombine.add(1000);
Speed.add(1000);
Virus.add(1000);
portal.add(1000);
Freeze.add(1000);
for (const item of Recombine) {
console.log(item);
// expected output: 1000
}
for (const item of Speed) {
console.log(item);
// expected output: 1000
}
for (const item of Virus) {
console.log(item);
// expected output: 1000
}
for (const item of portal) {
console.log(item);
// expected output: 1000
}
for (const item of Freeze) {
console.log(item);
// expected output: 1000
}