var/newkey = ""//this is for the new betakey setup
verb
AddKey()//randomizes a key for you to use
var/num = input("How many keys do you want? Max of 100")as num//how many keys do you want?
if(num>>100)
num=100
else if(num <= 0)
num = 1
while(num)
RandomBetaKey()
betakeylist+=newkey
proc
RandomBetaKey()//the process for making a new betakey
var/html = ""
var/n = rand(1,26)//randomize n
var/char = ""
loop//set a link for a looping later
spawn()
switch(n)//randomize n again
if(1)//if n == 1 the char var will be A
char = "A"
else if (2)//repeat for each letter of alphabet, increasing n by 1
char = "B"
else if (3)
char = "C"
else if (4)
char = "D"
else if (5)
char = "E"
else if (6)
char = "F"
else if (7)
char = "G"
else if (8)
char = "H"
else if (9)
char = "I"
else if (10)
char = "J"
else if (11)
char = "K"
else if (12)
char = "L"
else if (13)
char = "M"
else if (14)
char = "N"
else if (15)
char = "O"
else if (16)
char = "P"
else if (17)
char = "Q"
else if (18)
char = "R"
else if (19)
char = "S"
else if (20)
char = "T"
else if (21)
char = "U"
else if (22)
char = "V"
else if (23)
char = "W"
else if (24)
char = "X"
else if (25)
char = "Y"
else if (26)
char = "Z"
if(length(html)==4)//after 4 chars
html+="-"//add a -
goto loop//loop this
else if(length(html)==9)//after the second set of 4
html+="-"//add -
goto loop//loop
else if(length(html)==14)//after the third set
html+="-"
goto loop
else if(length(html)==19)//after the fourth set
html+="-"
else if(length(html)>=23)//when we finish
goto end
else//if the length is not specified and we haven't ended yet
html+=char//add the char to html
goto loop//loop
end//link for end
newkey = html//make the variable newkey as html (so we can have the verb make the new key and such)
Problem description:
When I run the AddKey Verb, it literally crashes the world. The window turns non responding, I waited 15 minutes but it never finished, and I only tried making one (1) key.
In your RandomBetaKey():
The correct method would be:
http://www.asciitable.com/