Jump to content


Photo

BG: selectable familiars via ITM


  • Please log in to reply
2 replies to this topic

#1 StrixO

StrixO
  • Member
  • 21 posts

Posted 07 February 2010 - 11:59 AM

Hi folks. First post. I just wrote my first little mod, tweaking the familiars into mini-clerics, mini-thieves, and mini-mages. I thought about writing a second, but I wanted opinions on if this was possible...

Familiars are selected based on alignment, and this is hardcoded by opcode 192
http://iesdp.gibberl...g2tob.htm#op192

I haven't done any scripting before, but I thought it might be possible to create an item (tome/scroll) that when used 1) records PC alignment as some VAR, 2) opens a dialogue tree that lists familiars as answers, 3) changes PC alignment to match chosen familiar according to opcode 192, 4) forces spell Find Familiar, 5) changes alignment back to that recorded in 1).

If this is possible, I'd like to do it myself and package it with my familiars tweak. But I'd appreciate a reality check from the members here.

Thanks!

#2 Jarno Mikkola

Jarno Mikkola

    The Imp in his pink raincoat.

  • Member
  • 10911 posts

Posted 07 February 2010 - 12:34 PM

...

There was such idea in the Spell Revision mod, it wasn't completed, but it was on it's way, so ask Demivrgvs on how it was supposed to happen... I think it was to use a different opcode, one that is used in the Spell Immunity spells, as there are multiple spells casted from one...

Deactivated account. The user today is known as The Imp.


#3 StrixO

StrixO
  • Member
  • 21 posts

Posted 07 February 2010 - 12:59 PM

I didn't see any similar component listed in spell revisions, but I didn't look very hard. I'll look through the forum.

But I had another thought, that might be simpler? How about a custom find familiar scroll for each familiar, with an added temporary effect of Change Alignment? I'm going to test a custom find familiar scroll with a Change Alignment effect as "duration: limited" now, and see if alignment reverts back after duration expires.

EDIT: Well, I have my scroll of temporary Lawful Evil-ness, after which it successfully reverts back! Just having trouble getting the summon familiar casting to play along.

EDIT #2: Success! I may a custom scroll which changed alignment, summoned a familiar according to new alignment, and then changed alignment back. As an example, I had a CN mage summon an imp! Mage reverted to CN after spell was cast. I'll make a scroll for each familiar and stick it in the misc released mods later.

Should I give them to Sorcerous Sundries for Tutu and Lady Yuth for SoA?

EDIT #3: Err, I just had a thought. How does BG2 handle upgrading familiars for ToB? If it refers back to alignment (and not the FAMxxx.CRE or FAMxxx.ITM the PC currently has), players may find their familiars suddenly changing...help? There's a familiar offset in the GAM file, but I'm not sure how to interpret it.

EDIT #4: Final update: imported a char with non-aligned familiar into ToB, and familiar was maintained, i.e. I imported my CN mage with LE imp into ToB, and I got a CN mage with upgraded LE imp. Gimme a little time and I'll package the scrolls into Tutu/BG2 merchants.

EDIT #5: Uhhh, I finished this mod and added the scrolls to Lady Yuth and Sorcerous Sundries, but I can't post it in misc mods because I can't get the archived version under 512 kb...my version is ~600kb. Help?

I'm an idiot! It's posted and available for downloads in Misc Mods forum.

Edited by StrixO, 07 February 2010 - 05:45 PM.