Jump to content

nysisyn

Members
  • Posts

    2
  • Joined

  • Last visited

Posts posted by nysisyn

  1. Thanks both of you for your answers.

    20 hours ago, Jarno Mikkola said:

    And possibly remove the possible exclusion flags in offset 0x001e.

    So if for example the spell has an exclusion flag with value :

    image.png.faf5b7450d455bedf48e3dc9f5bbe68b.png

    Then only druid will access to the spell? Didn't know that. Thanks a lot.

    19 hours ago, subtledoctor said:

    You need to level up in game (or create a new character) in order for a spell to show up in the spellbook. It might be working and you just don't see it.

    it's now working with new character. Thanks

     

  2. Hello,

    I'm used to ADD_SPELL function in order to add new arcane spell.
    I tried to use it for adding a new divine spell for druid with following code :

    ADD_SPELL ~%MOD_FOLDER%/spell/rayofsickness/ny#ros1.spl~ 1 1 ~RAY_OF_SICKNESS~  
            SPRINT current_spell_res "%DEST_RES%"
            SAY NAME1 @31  
            SAY NAME2 @31
            SAY UNIDENTIFIED_DESC @32
            SAY DESC @32
            WRITE_ASCII 0x3a ~ny#ros1C~ //Change spell book icon
            LPF ALTER_SPELL_HEADER STR_VAR icon = ~ny#ros1b~ END  //Change Icon & projectile

    It seem to be working as the spell is added and get an SPPR ID (1

    image.png.41604cb626b857f80430e878a75c5981.png

    But then I don't see the spell in the druid or priest spell book.

    I know the first number after spell file on ADD_SPELL represent the spell type (1 for divine, 2 for wizard). But I suppose I should do something more if I want to add the spell to druid or cleric spell list.
    Could someone enlight me?

    I checked several existing mod that add divine spell (Like SR) and they seem to just add their spell the way I do. I don't get what make the spell available for druid or cleric.

    Thanks

     

     

×
×
  • Create New...