nemesis password in ash

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?
 

Bale

Minion
In my preferences file I find this:

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
It wouldn't be too hard to put that together.
 
If that's the only option then that is what I am going to have to do. I just figured since mafia already does this with the nemesis password command it would be nice if there was a way to access it.
 
Last edited:
In case anyone is interested I decided to script this. Here is the function I came up with:

Code:
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;
}

I'm sure there is probably a better way to do this, but this works as long as you already have all eight paper strips.


In my preferences file I find this:

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
It wouldn't be too hard to put that together.

Now that I know my way around ash a little better it wasn't "too hard", but it's not at all simple either! I wouldn't have been able to come up with that a month ago.
 
Last edited:
Top