Feature Report gear in terrarium

Bale

Minion
Right now, it is a little difficult (but does not require a server hit) to discover the items that are on familiars in the terrarium. Since weapons, hats and pants can all be in the terrarium along with familiar gear it would be nice to find out if they are there.

available_amount() returns a number that includes the gear in the terrarium. However, equipped_amount() only includes gear on the active familiar, not inactive familiars. The items that are counted by available_amount() vary based on various preferences, so in order to discover the contents of my terrarium I need to do this:

PHP:
int terrarium_amount(item it) {
	return available_amount(it) - equipped_amount(it) - item_amount(it)
		- (get_property("autoSatisfyWithCloset") == "true"? closet_amount(it): 0)	// Don't include Closet
		- (get_property("autoSatisfyWithStorage") == "true"? storage_amount(it): 0)	// Don't include Hangk's Storage
		- (get_property("autoSatisfyWithStash") == "true"? stash_amount(it): 0);	// Don't include Clan Stash
}

It might not be essential to have a function that does that, but it would sure be a lot less obscure. Note that the amount in the terrarium is the only missing function that counts locations we can have inventory. All other parts of inventory have associated functions so that I can subtract them from the total.

PS. It would be really nice to have a group of functions for changing/removing gear of unused familiars. It is obviously requires excessive server hits to have to change familiars to alter their gear. Right now retrieve_item() will unquip familiars in the terrarium, but only under certain circumstances (which vary depeding on closet etc). I need to do a bit of that in my OCD script and it is a little complicated. After seeing the response to this request I'll decide how/if to add the related feature request(s) so I appreciate feedback on that matter.
 
Last edited:
I have needed to do this exact thing, specifically my Stocking Mimic would be using the loathing legion helicopter at some point, then in rollover I would need the moondial but had no easy way to pull it off the mimic in my rollover script. Handily retrieve_item() works in this case, so thanks for pointing me to that function.

I did notice though of all the things retrieve_item() will try, it won't squeeze a foldable to get the requested item. That seems like it would be a handy addition
 
Back
Top