Character Info Toolbox

Oh, also:

Code:
1173a1174,1196
> void pickPants() {
>               string pref = vars["chit.familiar.pants"];
>               if (pref != "") {
>                       string [int] pantsmap = split_string(pref, ",");
>                       item pants;
>                       foreach i in pantsmap {
>                               pants = to_item(pantsmap[i]);
>                               if ( allmystuff contains pants) {
>                                       addEquipment(pants, "inventory");
>                               } else if ( available_amount(pants) > 0 ) {
>                                       addEquipment(pants, "retrieve");
>                               } else {
>                                       foreach foldable in get_related(pants, "fold") {
>                                               if ( allmystuff contains foldable) {
>                                                       addEquipment(pants, "fold");
>                                               }
>                                       }
>                               }
>                       }
>               }
>       }
> 
> 
1266a1290,1294
>               case $familiar[fancypants scarecrow]:
>                       addLoader("Changing Pants...");
>                       pickPants();
>                       addSadFace("You don't have any pants for your " + myfam + ".");
>                       break;
3155a3187
>       setvar("chit.familiar.pants", "spangly mariachi pants,BRICKO pants");
 
Chez isn't around enough, so I thought I'd go ahead and toss this out there for those that want pantsrack support. Some minor code changes as well (just because I'm OCD) and you can put familiar in your stats section (felt the familiar brick was just too big and I wanted more space to see my effects)

EDIT:
Added a second familiar stat type for those that like pictures: "famicon"
Fixed my bug report re: counters not appearing with no active effects (though I couldn't do a complete fix, as I don't know how mafia gets its hashes for counters)
Option to condense cookie counters to a single effect implemented.
 

Attachments

Last edited:
What with chez' last post being in October I was going to include this into bUMRATSv0.9 but in principle would like to ask before I do that.

In anticipation of no reply being given, I'm going to start the work needed, but it'll be probably another week before it comes out so if it's not OK (I would of course give full credit) then let me know.
 
What with chez' last post being in October I was going to include this into bUMRATSv0.9 but in principle would like to ask before I do that.

In anticipation of no reply being given, I'm going to start the work needed, but it'll be probably another week before it comes out so if it's not OK (I would of course give full credit) then let me know.

Hi! Absolutely, please feel free to use any part of the script in any way you want.

FWIW, I'll also attach the latest copies of all my files. As far as I remember everything I was working on at the time was done, I just never got around to uploading it. It was a while back though, so consider this an "unofficial" release.

- Added links for HP/MP/Meat/Adv documentation
- Fixed Familiar annotations
- Add configurable margins to the top and bottom of the charpane (to make space for content added by GM scripts)
- Added support for the new Moveable Feast usage tracking preferences (_feastUsed, _feastedFamiliars) (mostly untested, since I don't have a Feast)
- Added support for bootsCharged preference

I'm not actively developing this script, or playing KoL for that matter, at the moment, but I'd be happy to answer any questions, or try to explain what the hell I was thinking/doing.

Thanks for picking this up in my absence. It's good to know people are still finding the script helpful.

Chez
 

Attachments

I checked this out for the first time today. I'd just like to say, "Holy crap! This is unbelievably amazing!"

You have notably increased the game's playability for me. I added the pantsrack to my version since your familiar gear switcher is amazing.
 
Last edited:
Since I swiftly became addicted to this script I found it rather troubling that it didn't work when I became an Avatar of Boris. I fixed that.

Since Chez says he is not currently supporting this script I'm attaching my fixed version to this post for the sake of everyone else who likes it. My unofficial version is 0.6.1

I've also added support for Fancypants Scarecrow, 'cause I thought that this script's hatrack support was awesome. Some of these fixes are kinda hacked in since I'm still getting used to how this script works.

Note: I might have changed around a few things to suit myself so if something is different from Chez's official version it was just my preferences. Mostly little things like removing the links from meat and adventures remaining since those links were kinda useless and annoying if clicked on. If you want my unofficial "Avatar of Boris" support, you'll have to deal with my unofficial mods.
 
Last edited:
Wow. This thing is sweet and definitely shouldn't be an orphan. I'm glad it's been adopted.

Also, mcd 6 = Horoscope of the Hermit .... nice touch.
 
Yeah, I also thought that was pretty funny. I figured though that it was best to leave that little easter egg to be be discovered by the user since it would be funniest when it is a surprise.
 
I notice that even though you removed the links from meat and so forth the mouse still turn into a hand when hovering over them indicating that I could click something. I feel that if you remove teh link then removing the indication of a link is probably also a good idea.
 
I hacked together a 2 column layout for buffs. I had to make so many CSS changes that I don't really remember most of what I changed. I suppose once bale and bumcheekcity are done restructuring things then I can see about starting over with a sane implementation (at least for the case of not displaying buff names), if other people care about it.
 
The script seems to have some trouble parsing intrinsics (I get "CHIT: Error parsing intrinsics" in the gcli), dunno if this has always been an issue, or if it's something that's popped up recently, with AoB or something. I'm using Bale's revision of the script, r10522 of mafia, and the intrinsic in question is "1337p4n7Z (∞)". I know this script strictly isn't maintained anymore, but it seems there still are a few people using/revising it, so if any of you wouldn't mind too much having a look at what could be causing it, I'd be very grateful :) Feel free to contact me if there was some info I forgot to include :)

When looking at the html for the page, I assume this is the part the script has trouble parsing:
Code:
<center><p><b><font size=2>Intrinsics:</font></b><br></center><center><table><tr><td><img src="[URL="http://kolmafia.us/view-source:http://127.0.0.1:60080/images/itemimages/whitepants.gif"]/images/itemimages/whitepants.gif[/URL]" class=hand onClick='eff("70679877d6ac73627d6576ca7cb72f62");'></td><td valign=center><font size=2>1337p4n7Z (∞)</font><br></td></tr></table><center><font size=2><p>
 
This is because of a change in KoLmafia r10538. It's a very good change since it allows counters to appear properly when there are no effects present. Anyway, I've fixed the problem. I noticed it as soon as I put on my 1337 pants today.

It's kinda interesting that I got hooked on this script just a few days before the new challenge path was released. If it wasn't for that timing I wouldn't be supporting this script now.


Here's my unofficial 0.6.2
 
Last edited:
This is because of a change in KoLmafia r10538. It's a very good change since it allows counters to appear properly when there are no effects present. Anyway, I've fixed the problem. I noticed it as soon as I put on my 1337 pants today.

It's kinda interesting that I got hooked on this script just a few days before the new challenge path was released. If it wasn't for that timing I wouldn't be supporting this script now.


Here's my unofficial 0.6.2

This version isn't working for me with a juju mask on and gaze of the volcano god.
 
I cannot test that, but perhaps if you copy/pasted the html I might have a clue why it doesn't work. Or maybe someone else will be able to fix it.
 
I changed line 3009 to
Code:
endwith = "</td></tr></table></center>";
and it works both with and without an intrinsic effect active (tested with leather chaps).
 
Stardock and lost, are you in an Avatar of Boris run? My guess is that you are not. lost's code does not work for me in a Boris run and I suspect that must be the difference.

Try changing line 3009 to

Code:
endwith = "</td></tr></table>";

I think that should work for all cases.
 
Last edited:
Back
Top