Jump to content

Photo

list known spells in dialogue?


4 replies to this topic

#1 subtledoctor

subtledoctor
  • Modders
  • 2741 posts
  • Gender:Male

Posted 12 September 2018 - 05:42 AM

As the title says.  Can I generate a list of known wizard spells of level x through level y in a dialogue?

 

EDIT - or alternatively, create a list of spell scrolls currently in your inventory?  That one should be possible... isn't it what Cromwell does?


Edited by subtledoctor, 12 September 2018 - 05:57 AM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#2 kjeron

kjeron
  • Members
  • 131 posts

Posted 12 September 2018 - 06:17 AM

As the title says.  Can I generate a list of known wizard spells of level x through level y in a dialogue?

 

EDIT - or alternatively, create a list of spell scrolls currently in your inventory?  That one should be possible... isn't it what Cromwell does?

Use Response/State Triggers?

HaveKnownSpell()/HaveKnownSpellRES() (EE only)

 

HasItem()



#3 subtledoctor

subtledoctor
  • Modders
  • 2741 posts
  • Gender:Male

Posted 12 September 2018 - 07:56 AM

Nice. I'll probably use the latter, so that there is a material component cost. This is gonna be kind of cool.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE


#4 CamDawg

CamDawg

    ALL GLORY TO THE HYPNOTOAD

  • Gibberling Poobah
  • 9723 posts
  • Gender:Not Telling

Posted 12 September 2018 - 08:20 AM

It\s fairly easy--take a look at the code I submitted for aTweaks to include scrolls from IWDification for scribing, or the Tweaks components that deal with IWD's random treasure tables. Both run a regexp against item files to dynamically build dialogue files.


Why is this Hypnotoad video so popu... ALL GLORY TO THE HYPNOTOAD.


#5 subtledoctor

subtledoctor
  • Modders
  • 2741 posts
  • Gender:Male

Posted 12 September 2018 - 09:32 AM

Both run a regexp against item files to dynamically build dialogue files.

 

That's great, it will be useful, since I'll be operating from a list of learnable spell scrolls, which may be different from install to install. 

 

The idea, by the way, is to allow mages to empower their familiar to cast spells, at a cost of sacrificing their own daily spell slots.  Mage takes a spell slot penalty, the familiar gets an innate ability cloned from the spell in the scroll, and the scroll gets used up.  You get the advantage of more casters casting simultaneously, while the number of spells you can actually cast each day remains the same.  And familiars get something to do besides sitting in backpacks.

 

It's not exactly channeling your spells through a familiar, but it's close enough.  It would be interesting, but more complicated, to do something similar with Wizard Eye.

 

Only difficulties I foresee are 1) hacking into the player-initiated familiar dialogue (I'm not good with that sort of thing) and 2) making sure the spell slot penalty gets cancelled if the familiar dies.  Both solvable problems, to be sure.

 

EDIT - forgot to say, at the moment I'm calling this "Pooky's Mod."


Edited by subtledoctor, 12 September 2018 - 09:34 AM.

Faiths & Powers: Spell spheres and kit pack for priests and paladins
Might & Guile: Tweaks and kits for warriors and rogues
Scales of Balance: Game tweaks and rule overhauls
NPC_EE: More options for NPCs in BGEE, SoD, & BG2EE




Reply to this topic



  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users