Jump to content


Photo

unable to learn spell


  • Please log in to reply
7 replies to this topic

#1 Lord-Jyssev

Lord-Jyssev

    LĪJ

  • Member
  • 451 posts

Posted 03 July 2005 - 03:55 PM

how would you make it so that your character can not learn a single invocation spell without being an enchanter? i am using an item to do so but i need to know what command would enable me to do this, i am using dltcep...

#2 -Guest-

-Guest-
  • Guest

Posted 07 July 2005 - 03:31 AM

Altering the spells to exclude that particular spell school?
But why would you disable invokers to learn their own spells???

#3 Lord-Jyssev

Lord-Jyssev

    LĪJ

  • Member
  • 451 posts

Posted 07 July 2005 - 08:14 AM

no, i meant how could you not learn a single evocation spell while being a different school besides enchanter. example: a necromance that can cast illusion spells but cannot cast evocation spells...

#4 NiGHTMARE

NiGHTMARE
  • Member
  • 2328 posts

Posted 07 July 2005 - 08:26 AM

It would be fairly easy to make it so *all* necromancers can't cast evocation spells, but doing it for only a specific character would be extremely difficult indeed.

Here's the code for the former:

COPY_EXISTING_REGEXP ~^SPWI[1-7].+\.spl$~ ~override~
READ_SHORT 0x1e "exclusion_school"
PATCH_IF ("%exclusion_school%" = 512) THEN BEGIN // only affect Invocation/Evocation spells
 WRITE_SHORT 0x1e 4608 // Exclude Encanters and Necromancers
PATCH_IF ("%exclusion_school%" = 4096) THEN BEGIN // only affect Illusion/Phantasm spells
 WRITE_SHORT 0x1e 0 // No longer excludes Necromancers

Enchanters are excluded in the above code because they are in normal BG2 :).

You can read up on how the game handles all the exclusion stuff in this thread: http://forums.gibber...?showtopic=2146

EDIT: added code to allow necromancers access to illusion/phantasm spells

Edited by NiGHTMARE, 07 July 2005 - 08:30 AM.


#5 Lord-Jyssev

Lord-Jyssev

    LĪJ

  • Member
  • 451 posts

Posted 07 July 2005 - 08:28 AM

this is for a single npc... ysuran to be exact...

#6 NiGHTMARE

NiGHTMARE
  • Member
  • 2328 posts

Posted 07 July 2005 - 08:31 AM

Then the only way I can think of would be to create an incredibly long and rather complicated script.

#7 Lord-Jyssev

Lord-Jyssev

    LĪJ

  • Member
  • 451 posts

Posted 07 July 2005 - 08:43 AM

the current way i am doing it is putting ysuran as an enchanter and just changing the title of the kit to necromancer, but i can't change description...

#8 Idobek

Idobek

    Pocket Plane Gibberling

  • Member
  • 429 posts

Posted 07 July 2005 - 10:34 AM

Create a new kit.