VladYvhuce
Member
Nope... It just sits, there looking nice, but won't change familiars for me.
Nope. enthrone only works with a crown of thrones, not a bjorn.Looks like you can use enthrone_familiar to do that. You can check your familiars weights, as well as the weight adjustment, to figure out when to shift them, so...
void main ()
//Familiars.
if (my_familiar() != $familiar[astral badger] && (familiar_weight($familiar[astral badger]) < 20))
use_familiar($familiar[astral badger]);
if (my_familiar() == $familiar[astral badger] && (familiar_weight($familiar[astral badger]) >= 20))
use_familiar($familiar[fist turkey]);
if (my_familiar() == $familiar[fist turkey] && (familiar_weight($familiar[fist turkey]) < 20))
use_familiar($familiar[fist turkey]);
if (my_familiar() == $familiar[fist turkey] && (familiar_weight($familiar[fist turkey]) >= 20))
use_familiar($familiar[space jellyfish]);
if (my_familiar() == $familiar[space jellyfish] && (familiar_weight($familiar[space jellyfish]) < 20))
use_familiar($familiar[space jellyfish]);
if (my_familiar() == $familiar[space jellyfish] && (familiar_weight($familiar[space jellyfish]) >= 20))
use_familiar($familiar[restless cow skull]);
if (my_familiar() == $familiar[restless cow skull] && (familiar_weight($familiar[restless cow skull]) < 20))
use_familiar($familiar[restless cow skull]);
if (my_familiar() == $familiar[restless cow skull] && (familiar_weight($familiar[restless cow skull]) >= 20))
use_familiar($familiar[baby sandworm]);
if (my_familiar() == $familiar[baby sandworm] && (familiar_weight($familiar[baby sandworm]) < 20))
use_familiar($familiar[baby sandworm]);
if (my_familiar() == $familiar[baby sandworm] && (familiar_weight($familiar[baby sandworm]) >= 20))
use_familiar($familiar[intergnat]);
//Bjorned Familiars
if (my_bjorned_familiar() != $familiar[galloping grill] && (familiar_weight($familiar[galloping grill]) < 20))
bjornify_familiar($familiar[galloping grill]);
if (my_bjorned_familiar() == $familiar[galloping grill] && (familiar_weight($familiar[galloping grill]) >= 20))
bjornify_familiar($familiar[li'l xenomorph]);
if (my_bjorned_familiar() == $familiar[li'l xenomorph] && (familiar_weight($familiar[li'l xenomorph]) < 20))
bjornify_familiar($familiar[machine elf]);
if (my_bjorned_familiar() == $familiar[machine elf] && (familiar_weight($familiar[machine elf]) >= 20))
bjornify_familiar($familiar[golden monkey]);
if (my_bjorned_familiar() == $familiar[golden monkey] && (familiar_weight($familiar[golden monkey]) < 20))
bjornify_familiar($familiar[bloovian groose]);
if (my_bjorned_familiar() == $familiar[bloovian groose] && (familiar_weight($familiar[bloovian groose]) >= 20))
bjornify_familiar($familiar[blavious kloop]);
if (my_bjorned_familiar() == $familiar[blavious kloop] && (familiar_weight($familiar[blavious kloop]) < 20))
bjornify_familiar($familiar[green pixie]);
cli_execute("checkpoint clear");
familiar next_familiar() {
foreach f in $familiars[fist turkey, adventurous spelunker, machine elf, astral badger, baby sandworm, rogue program, green pixie, li'l xenomorph, llama lama, blavious kloop]
if (have_familiar(f) && f.drops_today < f.drops_limit)
return f;
if (have_familiar($familiar[intergnat])) return $familiar[intergnat];
return my_familiar();
}
void main() {
familiar next = next_familiar();
if (next != my_familiar()) use_familiar(next);
}
boolean setfam = false;
foreach f in $familars[astral badger, fist turkey, space jellyfish, restless cow skull, baby sandworm]
{
if (have_familiar(f) && familiar_weight(f) < 20)
{
if (my_familiar() != f) use_familiar(f);
setfam = true;
}
}
if (!setfam && have_familiar($familiar[intergnat] && my_familiar() != $familiar[intergnat]) use_familiar($familiar[intergnat]);
If that'll get the job done, then I'll be quite happy. I wasn't aware that "setfam" was a thing. I'll overhaul one of my "item drop" scripts and see how it works, tonight.That is a TON of wasted server hits. Wouldn't it be easier to do something like:Code:boolean setfam = false; foreach f in $familars[astral badger, fist turkey, space jellyfish, restless cow skull, baby sandworm] { if (have_familiar(f) && familiar_weight(f) < 20) { if (my_familiar() != f) use_familiar(f); setfam = true; } } if (!setfam && have_familiar($familiar[intergnat] && my_familiar() != $familiar[intergnat]) use_familiar($familiar[intergnat]);
boolean setfam = false;
foreach f in $familars[astral badger, fist turkey, space jellyfish, restless cow skull, baby sandworm]
{
if ([COLOR="#FF0000"]!setfam && [/COLOR]have_familiar(f) && familiar_weight(f) < 20)
{
if (my_familiar() != f)
use_familiar(f);
setfam = true;
}
}
if (!setfam && have_familiar($familiar[intergnat] && my_familiar() != $familiar[intergnat])
use_familiar($familiar[intergnat]);
//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]);
Finally! A working script that will change both regular familiar and bjornified familiar! Many thanks for the help, y'all.
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.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.
This is the right place. I'm just surprised that someone actually cared about them, is all.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.
No thanks. I think they're in the right place.VladYvhuce, would you like me to move the thread from the Repository to Discussion?