Accessing Telescope in ASH file

bumcheekcity

Active member
Pretty much as it sounds really. I can check my telescope through the command line, but is there a way I can find out what telescope items I need through an ASH file, without having to parse the telescope page myself?
 

jasonharper

Developer
The available data is stored in preferences, for example here's my current set:

telescope1=a cowardly-looking man
telescope2=see a fancy-looking tophat
telescope3=see some sort of bronze figure holding a spatula
telescope4=see a periscope
telescope5=see some amber waves of grain
telescope6=see a flash of albumen
telescope7=see a pair of horns
telescopeUpgrades=7

The tables for turning those strings into the effect or item you need are in SorceressLairManager.java, and aren't externally accessible. However, it would be fairly simple to munge the tables into ASH maps you could include in your script. Here's the raw data:
Code:
	// Gates, what they look like through the Telescope, the effects you
	// need to pass them, and where to get it

	public static final String[][] GATE_DATA =
	{
		// The first gate: Miscellaneous effects
		{
			"gate of hilarity",
			"a banana peel",
			"Comic Violence",
			"gremlin juice"
		},
		{
			"gate of humility",
			"a cowardly-looking man",
			"Wussiness",
			"wussiness potion"
		},
		{
			"gate of morose morbidity and moping",
			"a glum teenager",
			"Rainy Soul Miasma",
			"thin black candle",
			"picture of a dead guy's girlfriend"
		},
		{
			"gate of slack",
			"a smiling man smoking a pipe",
			"Extreme Muscle Relaxation",
			"Mick's IcyVapoHotness Rub"
		},
		{
			"gate of spirit",
			"an armchair",
			"Woad Warrior",
			"pygmy pygment"
		},
		{
			"gate of the porcupine",
			"a hedgehog",
			"Spiky Hair",
			"super-spiky hair gel"
		},
		{
			"twitching gates of the suc rose",
			"a rose",
			"Sugar Rush",
			"Angry Farmer candy",
			"Tasty Fun Good rice candy",
			"marzipan skull"
		},
		{
			"gate of the viper",
			"a coiled viper",
			"Deadly Flashing Blade",
			"adder bladder"
		},
		{
			"locked gate",
			"a raven",
			"Locks Like the Raven",
			"Black No. 2"
		},

	// Guardians, what they look like through the Telescope, and the items
	// that defeat them

	public static final String[][] GUARDIAN_DATA =
	{
		{
			"beer batter",
			"tip of a baseball bat",
			"baseball"
		},
		{
			"best-selling novelist",
			"writing desk",
			"plot hole"
		},
		{
			"big meat golem",
			"huge face made of Meat",
			"meat vortex"
		},
		{
			"bowling cricket",
			"fancy-looking tophat",
			"sonar-in-a-biscuit"
		},
		{
			"bronze chef",
			"bronze figure holding a spatula",
			"leftovers of indeterminate origin"
		},
		{
			"collapsed mineshaft golem",
			"wooden beam",
			"stick of dynamite"
		},
		{
			"concert pianist",
			"long coattails",
			"Knob Goblin firecracker"
		},
		{
			"the darkness",
			"strange shadow",
			"inkwell"
		},
		{
			"el diablo",
			"neck of a huge bass guitar",
			"mariachi G-string"
		},
		{
			"electron submarine",
			"periscope",
			"photoprotoneutron torpedo"
		},
		{
			"endangered inflatable white tiger",
			"giant white ear",
			"pygmy blowgun"
		},
		{
			"enraged cow",
			"pair of horns",
			"barbed-wire fence"
		},
		{
			"fancy bath slug",
			"slimy eyestalk",
			"fancy bath salts"
		},
		{
			"the fickle finger of f8",
			"giant cuticle",
			"razor-sharp can lid"
		},
		{
			"flaming samurai",
			"flaming katana",
			"frigid ninja stars"
		},
		{
			"giant bee",
			"formidable stinger",
			"tropical orchid"
		},
		{
			"giant desktop globe",
			"the North Pole",
			"NG"
		},
		{
			"giant fried egg",
			"flash of albumen",
			"black pepper"
		},
		{
			"ice cube",
			"moonlight reflecting off of what appears to be ice",
			"hair spray"
		},
		{
			"malevolent crop circle",
			"amber waves of grain",
			"bronzed locust"
		},
		{
			"possessed pipe-organ",
			"pipes with steam shooting out of them",
			"powdered organs"
		},
		{
			"pretty fly",
			"translucent wing",
			"spider web"
		},
		{
			"tyrannosaurus tex",
			"large cowboy hat",
			"chaos butterfly"
		},
		{
			"vicious easel",
			"tall wooden frame",
			"disease"
		},
	};
Note that a couple of the outer gate possibilities can be met with more than one item!
 

jasonharper

Developer
The available data is stored in preferences, for example here's my current set:

telescope1=a cowardly-looking man
telescope2=see a fancy-looking tophat
telescope3=see some sort of bronze figure holding a spatula
telescope4=see a periscope
telescope5=see some amber waves of grain
telescope6=see a flash of albumen
telescope7=see a pair of horns
telescopeUpgrades=7

The tables for turning those strings into the effect or item you need are in SorceressLairManager.java, and aren't externally accessible. However, it would be fairly simple to munge the tables into ASH maps you could include in your script. Here's the raw data:
Code:
	// Gates, what they look like through the Telescope, the effects you
	// need to pass them, and where to get it

	public static final String[][] GATE_DATA =
	{
		// The first gate: Miscellaneous effects
		{
			"gate of hilarity",
			"a banana peel",
			"Comic Violence",
			"gremlin juice"
		},
		{
			"gate of humility",
			"a cowardly-looking man",
			"Wussiness",
			"wussiness potion"
		},
		{
			"gate of morose morbidity and moping",
			"a glum teenager",
			"Rainy Soul Miasma",
			"thin black candle",
			"picture of a dead guy's girlfriend"
		},
		{
			"gate of slack",
			"a smiling man smoking a pipe",
			"Extreme Muscle Relaxation",
			"Mick's IcyVapoHotness Rub"
		},
		{
			"gate of spirit",
			"an armchair",
			"Woad Warrior",
			"pygmy pygment"
		},
		{
			"gate of the porcupine",
			"a hedgehog",
			"Spiky Hair",
			"super-spiky hair gel"
		},
		{
			"twitching gates of the suc rose",
			"a rose",
			"Sugar Rush",
			"Angry Farmer candy",
			"Tasty Fun Good rice candy",
			"marzipan skull"
		},
		{
			"gate of the viper",
			"a coiled viper",
			"Deadly Flashing Blade",
			"adder bladder"
		},
		{
			"locked gate",
			"a raven",
			"Locks Like the Raven",
			"Black No. 2"
		},

	// Guardians, what they look like through the Telescope, and the items
	// that defeat them

	public static final String[][] GUARDIAN_DATA =
	{
		{
			"beer batter",
			"tip of a baseball bat",
			"baseball"
		},
		{
			"best-selling novelist",
			"writing desk",
			"plot hole"
		},
		{
			"big meat golem",
			"huge face made of Meat",
			"meat vortex"
		},
		{
			"bowling cricket",
			"fancy-looking tophat",
			"sonar-in-a-biscuit"
		},
		{
			"bronze chef",
			"bronze figure holding a spatula",
			"leftovers of indeterminate origin"
		},
		{
			"collapsed mineshaft golem",
			"wooden beam",
			"stick of dynamite"
		},
		{
			"concert pianist",
			"long coattails",
			"Knob Goblin firecracker"
		},
		{
			"the darkness",
			"strange shadow",
			"inkwell"
		},
		{
			"el diablo",
			"neck of a huge bass guitar",
			"mariachi G-string"
		},
		{
			"electron submarine",
			"periscope",
			"photoprotoneutron torpedo"
		},
		{
			"endangered inflatable white tiger",
			"giant white ear",
			"pygmy blowgun"
		},
		{
			"enraged cow",
			"pair of horns",
			"barbed-wire fence"
		},
		{
			"fancy bath slug",
			"slimy eyestalk",
			"fancy bath salts"
		},
		{
			"the fickle finger of f8",
			"giant cuticle",
			"razor-sharp can lid"
		},
		{
			"flaming samurai",
			"flaming katana",
			"frigid ninja stars"
		},
		{
			"giant bee",
			"formidable stinger",
			"tropical orchid"
		},
		{
			"giant desktop globe",
			"the North Pole",
			"NG"
		},
		{
			"giant fried egg",
			"flash of albumen",
			"black pepper"
		},
		{
			"ice cube",
			"moonlight reflecting off of what appears to be ice",
			"hair spray"
		},
		{
			"malevolent crop circle",
			"amber waves of grain",
			"bronzed locust"
		},
		{
			"possessed pipe-organ",
			"pipes with steam shooting out of them",
			"powdered organs"
		},
		{
			"pretty fly",
			"translucent wing",
			"spider web"
		},
		{
			"tyrannosaurus tex",
			"large cowboy hat",
			"chaos butterfly"
		},
		{
			"vicious easel",
			"tall wooden frame",
			"disease"
		},
	};
Note that a couple of the outer gate possibilities can be met with more than one item!
 

mredge73

Member
I have done this already on my scripts:
http://kolmafia.us/showthread.php?t=2113

You will find it in the NS closetier script and the Item Support script.
My NS closetier script will check the telescope properties and link the phrase to the item needed. Then it will add that item to the hardcore checklist and closet it when you get it.
 

bumcheekcity

Active member
I'm going to steal that because I'm a terrible code-stealy person :D

By the way, for the disease, you have:

Telescope[$item[disease]]="ssee part of a tall wooden frame";

Not sure if that double s is deliberate.
 
Top