Results 1 to 5 of 5

Thread: Populate familiar names from Manage Familiar Names page

  1. #1
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,618

    Lightbulb Populate familiar names from Manage Familiar Names page

    For whatever reason -- Bad Moon, Pokefam -- you may own a familiar which is not currently accessible from your Terrarium, and therefore have_familiar() returns false. The easiest way to figure out whether you own a given familiar is whether or not you've already named it, which is visible on the Manage Familiar Names page. Mafia does not visit this page by default as part of its initialization, so some of the familiar name proxy records are left unpopulated, despite the familiars having been previously named. This is fine, but I would like to request that those fields be populated when we visit the familiar names page.

    This would enable scripts to simply visit the Manage Familiar Names page once per session to be able to determine which familiars you own. It would also mean more of mafia's data is correct, which is always nice.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  2. #2
    Developer
    Join Date
    Apr 2010
    Posts
    4,932

    Default

    It isn't quite that simple, I think.

    The names are in a Familiar Data record, which only exists for Familiars in your terrarium. So we haven't got an entry we can add them too.

    So it's either add all the familiars to the familiar lists, whether accessible or not, and add an accessible record, and change every familiar check to use that.

    Or add an inaccessible familiar list, and update it when changing path, unprisming king or dropping path etc.

  3. #3
    Senior Member zarqon's Avatar
    Join Date
    Nov 2007
    Location
    Seoul, Korea
    Posts
    3,618

    Default

    Hmmm. The "inaccessible familiar list" seems too fiddly, but adding all familiars to the lists seems like it introduces other problems. Perhaps storing the names elsewhere (like in a preference or text file) would be better? The names are after all semi-permanent -- once they exist, they never go away and can only be edited, presumably only in places where we also would parse those edits. And in that case, scripts might not have to visit the Manage Names page at all.
    Last edited by zarqon; 11-20-2018 at 03:18 PM.
    Sig by JakAtk
    My scripts: Prefref Plus | Skillref Plus | One-Click Wossna | Om*****st (??) | Psychose-a-Matic | RandBot
    Combat suite: Best Between Battle | Mercenary Mood | SmartStasis | BatMan | BatMan RE
    For script authors: ASH Wiki | ZLib | BatBrain | CLI Links | Drag-n-Drop Inventories | CanAdv | Script Registry | Map Manager
    If you appreciate my work, help me become BAT KING OF THE WORLD! Thanks to all donators!

  4. #4
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,515

    Default

    You could name ALL of your familiars "Silence", in case the mimes invade again. That would make things Real Simple.

  5. #5
    Developer fronobulax's Avatar
    Join Date
    Feb 2009
    Location
    Central Virginia, USA
    Posts
    4,204

    Default

    You could name ALL of your familiars "Silence", in case the mimes invade again. That would make things Real Simple.
    Originally Posted by Veracity View Post
    I have a character where all the familiars are named Peggy Lee and no intention of changing that ;-)
    You just vehemently agreed with me
    Originally Posted by Veracity View Post
    I agree with frono.
    Originally Posted by Veracity View Post

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •