That FN Ninja
Member
The nemesis password command is very helpful, but is there a way to access the password in ash? Some method to save the password to a string?
lastPaperStrip3144=rough\:KOF\:jagged
lastPaperStrip4138=jagged\:PSHOO\:zig-zaggy
lastPaperStrip4139=zig-zaggy\:ZZZZ\:curved
lastPaperStrip4140=curved\:ABRA\:careful
lastPaperStrip4141=funny\:ALA\:fuzzy
lastPaperStrip4142=dangly\:MOO\:funny
lastPaperStrip4143=careful\:MEEP\:wibbly
lastPaperStrip4144=fuzzy\:TANG\:rough
string nem_pass(){
string temp,pass;
int[string] left,right;
int[int] order;
cli_execute("nemesis strips");
foreach num in $ints[3144,4138,4139,4140,4141,4142,4143,4144]{
temp = to_string(get_property("lastPaperStrip"+num));
left[substring(temp,0,index_of(temp,":"))] = num;
right[substring(temp,last_index_of(temp,":")+1)] = num;
}
foreach st in left
if(!(right contains st))
order[1] = left[st];
for num from 2 upto 8{
foreach st in left{
temp = to_string(get_property("lastPaperStrip"+order[num - 1]));
if(st == substring(temp,last_index_of(temp,":")+1))
order[num] = left[st];
}
}
foreach num,itm in order{
temp = to_string(get_property("lastPaperStrip"+itm));
pass = pass + substring(temp,index_of(temp,":")+1,last_index_of(temp,":"));
}
return pass;
}
In my preferences file I find this:
It wouldn't be too hard to put that together.Code:lastPaperStrip3144=rough\:KOF\:jagged lastPaperStrip4138=jagged\:PSHOO\:zig-zaggy lastPaperStrip4139=zig-zaggy\:ZZZZ\:curved lastPaperStrip4140=curved\:ABRA\:careful lastPaperStrip4141=funny\:ALA\:fuzzy lastPaperStrip4142=dangly\:MOO\:funny lastPaperStrip4143=careful\:MEEP\:wibbly lastPaperStrip4144=fuzzy\:TANG\:rough