Page 4 of 5 FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 of 42

Thread: Vlad's Familiar Changing Frankenscript

  1. #31
    Senior Member VladYvhuce's Avatar
    Join Date
    Feb 2016
    Location
    Kansas
    Posts
    215

    Cool

    Finally! A working script that will change both regular familiar and bjornified familiar! Many thanks for the help, y'all.

    Behold!
    Code:
    //Fam
    boolean setfam = false;
    foreach f in $familiars[astral badger, fist turkey, space jellyfish, restless cow skull, baby sandworm, rogue program, robortender, bark scorpion, el vibrato megadrone]
    {
    if (!setfam && have_familiar(f) && familiar_weight(f) < 20)
    {
    if (my_familiar() != f) use_familiar(f);
    setfam = true;
    }
    }
    if (!setfam && have_familiar($familiar[robot reindeer]) && my_familiar() != $familiar[robot reindeer]) use_familiar($familiar[robot reindeer]);
    
    //Bjorn
    boolean setbjorn = false;
    foreach f in $familiars[unconscious collective, golden monkey, grim brother, bloovian groose, baby mutant rattlesnake, blavious kloop, galloping grill, rockin' robin, optimistic candle]
    {
    if (!setbjorn && have_familiar(f) && familiar_weight(f) < 20)
    {
    if (my_bjorned_familiar() != f) bjornify_familiar(f);
    setbjorn = true;
    }
    }
    if (!setbjorn && have_familiar($familiar[piano cat]) && my_bjorned_familiar() != $familiar[piano cat]) bjornify_familiar($familiar[piano cat]);

  2. #32
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    220

    Default

    Finally! A working script that will change both regular familiar and bjornified familiar! Many thanks for the help, y'all.
    Originally Posted by VladYvhuce View Post
    Is there an SVN, or a file we can download? I would like to try this, but I'm not exactly sure which part of the code I'm supposed to use.

  3. #33
    Senior Member VladYvhuce's Avatar
    Join Date
    Feb 2016
    Location
    Kansas
    Posts
    215

    Cool

    Is there an SVN, or a file we can download? I would like to try this, but I'm not exactly sure which part of the code I'm supposed to use.
    Originally Posted by Pazleysox View Post
    Oh, wow. I didn't expect anyone would care about my tinkering with other people's script to get them to do my bidding... These scripts work best if used as pre-adventure scripts. You'll want to customize them to fit with your own familiars.

    "famchanger" is the one what will change the familiars based on weight. I've added a section so that now it covers familiar, bjorned familiar, and enthroned familiar. If you lack a bjorn and/or a crown of thrones, then comment out or delete the part you don't need. It assumes you have both a bjorn and a crown equipped.

    "DropFams" is the one what changes familiars once they reach their daily item drop limits, and then switches to one without drop limits, if you have adventures to spare after farming. It's a lot simpler than "famchanger".

    DropFams4-6.ashfamchanger1-1.ash
    In KOL: VladYvhuce (#1798867)

  4. #34
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,713

    Default

    FYI, if you're posting for your own interest and not meaning it to be released, Scripting Discussion would be the place for those questions. The Repository is where you keep scripts that you want people to use.

  5. #35
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,268

    Default

    VladYvhuce, would you like me to move the thread from the Repository to Discussion?

  6. #36
    Senior Member VladYvhuce's Avatar
    Join Date
    Feb 2016
    Location
    Kansas
    Posts
    215

    Default

    FYI, if you're posting for your own interest and not meaning it to be released, Scripting Discussion would be the place for those questions. The Repository is where you keep scripts that you want people to use.
    Originally Posted by Theraze View Post
    This is the right place. I'm just surprised that someone actually cared about them, is all.

    VladYvhuce, would you like me to move the thread from the Repository to Discussion?
    Originally Posted by Bale View Post
    No thanks. I think they're in the right place.
    In KOL: VladYvhuce (#1798867)

  7. #37
    Senior Member Pazleysox's Avatar
    Join Date
    Feb 2009
    Posts
    220

    Default

    Not sure if this is a bug or not, but...

    I used part of Vlad's script on a script that I'm using. It's designed to look for things that can still be done.

    I added all familiars that have item drops.

    "Miniature Sword & Martini Guy" isn't recognized by mafia.

    I get the error: Bad familiar value: Miniature Sword & Martini Guy
    but if I remove the "Martini Guy", Mafia says to use "Miniature Sword & Martini Guy", and continues on with the script anyways

  8. #38
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,713

    Default

    Probably needs &amp; or something similar, but... try it in gCLI? Just running ash $familiar[miniature sword &amp; martini guy] should show if that's right or if you need to keep looking for the right value on that name...

  9. #39

    Default

    Doesn't look like there's a good way to use the full familiar name, so that's a mafia issue.

  10. #40
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,713

    Default

    Yep, your only current option is combining the &amp; with to_familiar, like so:
    to_familiar("Miniature Sword &amp; Martini Guy")

Posting Permissions

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