Here is a small script, requested by a friend. I'm posting it in case anyone else is interested.
The original request was to be able to specify a list of your custom titles from which a random one would be chosen and used on login.
- call it once like this:
	
	
	
		
This will create a data file called titles.txt in Mafia's /data folder.
You can remove the lines corresponding to titles you don't want to use.
- to see a list of titles it will pick from, simply call the script like this:
	
	
	
		
- When you want to use a random title among those in the data file (or among all of the titles you have if the data file doesn't exist), call the script like this:
	
	
	
		
You can add this to Mafia's login actions by adding "call titles.ash random;" in the "On Login:" line of Preferences -> Breakfast.
				
			The original request was to be able to specify a list of your custom titles from which a random one would be chosen and used on login.
- call it once like this:
		Code:
	
	call titles.ash refreshYou can remove the lines corresponding to titles you don't want to use.
- to see a list of titles it will pick from, simply call the script like this:
		Code:
	
	call titles.ash show- When you want to use a random title among those in the data file (or among all of the titles you have if the data file doesn't exist), call the script like this:
		Code:
	
	call titles.ash randomYou can add this to Mafia's login actions by adding "call titles.ash random;" in the "On Login:" line of Preferences -> Breakfast.
 
	 
 
		