Skip to content

[(BG2) bug] Spell power levels redux

CamDawgCamDawg Member, Developer Posts: 3,438
edited November 2012 in Fixed
Since summoning spells are technically targeted at the caster, many could fail due to spell protections such as (minor) globes of invulnerability. Changing them to power 0 avoids this.

Secret Word explicitly states it should work against MGOI, so we bump up its power level to do so.
//Set power of summoning spells to 0, otherwise they can get blocked if the caster is under (M)GoI (code by Wisp; general idea by lotsa people)
COPY_EXISTING
spcl621.spl override //Summon Spirit Animal
sppr301.spl override //Animate Dead
sppr402.spl override //Animal summoning I
sppr410.spl override //Call Woodland Beings
sppr501.spl override //Animal summoning II
sppr601.spl override //Aerial Servant
sppr602.spl override //Animal summoning III
sppr604.spl override //Conjure Animals
sppr605.spl override //Conjure Fire Elemental
sppr702.spl override //Conjure Earth Elemental
sppr703.spl override //Gate
spra304.spl override //Animal summoning I
spra305.spl override //Animal summoning II
spra306.spl override //Animal summoning III
spwi309.spl override //Monster summoning I
spwi407.spl override //Monster summoning II
spwi423.spl override //Spider Spawn
spwi501.spl override //Animate Dead
spwi504.spl override //Monster summoning III
spwi516.spl override //Conjure Lesser Fire Elemental
spwi520.spl override //Conjure Lesser Air Elemental
spwi521.spl override //Conjure Lesser Earth Elemental
spwi601.spl override //Invisible Stalker
spwi619.spl override //Wyvern Call
spwi620.spl override //Conjure Fire Elemental
spwi621.spl override //Conjure Air Elemental
spwi622.spl override //Conjure Earth Elemental
spwi623.spl override //Carrion Summons
spwi624.spl override //Summon Nishruu
spwi707.spl override //Cacofiend
spwi716.spl override //Mordenkainen's Sword
spwi717.spl override //Summon Efreeti
spwi718.spl override //Summon Djinni
spwi719.spl override //Summon Hakeashar
spwi807.spl override //Summon Fiend
spwi905.spl override //Gate
spwm154.spl override //Cacofiend
FOR (READ_LONG 0x6a fx_off ELSE 0;fx_off
Post edited by Tanthalas on

Comments

  • SethDavisSethDavis Member Posts: 1,812
    Potentially fixed - @CamDawg's or @Wisp's or @aVENGER's fix has been applied
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    @CamDawg if a spell is 'not dispel/bypass resistance' why would you need to remove its power level
    I really, really, really hope that summons don't check the power level for the number of creatures or such.
  • BhryaenBhryaen Member Posts: 2,874
    edited September 2012
    Confirmed fixed (Power = 0 for all effects):


    sppr301.spl override //Animate Dead
    sppr402.spl override //Animal summoning I
    sppr410.spl override //Call Woodland Beings
    sppr501.spl override //Animal summoning II
    sppr601.spl override //Aerial Servant
    sppr602.spl override //Animal summoning III
    sppr604.spl override //Conjure Animals
    sppr605.spl override //Conjure Fire Elemental
    sppr702.spl override //Conjure Earth Elemental
    sppr703.spl override //Gate
    spra304.spl override //Animal summoning I
    spra305.spl override //Animal summoning II
    spra306.spl override //Animal summoning III
    spwi309.spl override //Monster summoning I
    spwi407.spl override //Monster summoning II
    spwi423.spl override //Spider Spawn
    spwi501.spl override //Animate Dead
    spwi504.spl override //Monster summoning III
    spwi516.spl override //Conjure Lesser Fire Elemental
    spwi520.spl override //Conjure Lesser Air Elemental
    spwi521.spl override //Conjure Lesser Earth Elemental
    spwi601.spl override //Invisible Stalker
    spwi619.spl override //Wyvern Call
    spwi620.spl override //Conjure Fire Elemental
    spwi621.spl override //Conjure Air Elemental
    spwi622.spl override //Conjure Earth Elemental
    spwi623.spl override //Carrion Summons
    spwi624.spl override //Summon Nishruu
    spwi707.spl override //Cacofiend
    spwi716.spl override //Mordenkainen's Sword
    spwi717.spl override //Summon Efreeti
    spwi718.spl override //Summon Djinni
    spwi719.spl override //Summon Hakeashar
    spwi807.spl override //Summon Fiend
    spwi905.spl override //Gate
    spwm154.spl override //Cacofiend



    Confirmed Fixed (Power = 5 for all effects):
    spwi419.spl~ ~override~ // Secret Word


    Confirmed Not Fixed:
    spcl621.spl override //Summon Spirit Animal
    Power = 4... Should be Power = 0.

    But with the hopefully pending adoption of a new SPCL621.SPL in the works, I suppose I can fix that myself. I'll pass this one forward...
  • CamDawgCamDawg Member, Developer Posts: 3,438

    @CamDawg if a spell is 'not dispel/bypass resistance' why would you need to remove its power level
    I really, really, really hope that summons don't check the power level for the number of creatures or such.

    Power level interacts with immunity to spell level (opcode 102). The dispel/resist field determines if it bypasses magic resistance.
  • BhryaenBhryaen Member Posts: 2,874
    @Avenger_teambg
    Had you checked this one out as well or just looked over the fixcode?
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    edited September 2012
    @CamDawg well, if you ever need the power level but still want to bypass level immunity, you can add 4 to the resist field. (the 4 bit will absolutely bypass the power check)
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    @Bhryaen not yet.
  • Humanoid_TaifunHumanoid_Taifun Member Posts: 1,055
    @Avenger_teambg

    (the 4 bit will absolutely bypass the power check)

    Wouldn't that make Liches and Rakshasa vulnerable to the spell?
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862

    @Avenger_teambg

    (the 4 bit will absolutely bypass the power check)

    Wouldn't that make Liches and Rakshasa vulnerable to the spell?
    These are summoning, the goal is to make the target "vulnerable".
  • Humanoid_TaifunHumanoid_Taifun Member Posts: 1,055
    edited September 2012
    I'm speaking about Secret Word. I guess you were excluding that from your suggestion.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Yeah, secret word is good as it is now. It wouldn't work vs minor globe, though it should.
  • BhryaenBhryaen Member Posts: 2,874
    edited September 2012
    Confirmed Fixed

    Power = 0 for all "Use EFF file" effects (and any other effects that were present):


    spcl621.spl override //Summon Spirit Animal
    sppr301.spl override //Animate Dead
    sppr402.spl override //Animal summoning I
    sppr410.spl override //Call Woodland Beings
    sppr501.spl override //Animal summoning II
    sppr601.spl override //Aerial Servant
    sppr602.spl override //Animal summoning III
    sppr604.spl override //Conjure Animals
    sppr605.spl override //Conjure Fire Elemental
    sppr702.spl override //Conjure Earth Elemental
    sppr703.spl override //Gate
    spra304.spl override //Animal summoning I
    spra305.spl override //Animal summoning II
    spra306.spl override //Animal summoning III
    spwi309.spl override //Monster summoning I
    spwi407.spl override //Monster summoning II
    spwi423.spl override //Spider Spawn
    spwi501.spl override //Animate Dead
    spwi504.spl override //Monster summoning III
    spwi516.spl override //Conjure Lesser Fire Elemental
    spwi520.spl override //Conjure Lesser Air Elemental
    spwi521.spl override //Conjure Lesser Earth Elemental
    spwi601.spl override //Invisible Stalker
    spwi619.spl override //Wyvern Call
    spwi620.spl override //Conjure Fire Elemental
    spwi621.spl override //Conjure Air Elemental
    spwi622.spl override //Conjure Earth Elemental
    spwi623.spl override //Carrion Summons
    spwi624.spl override //Summon Nishruu
    spwi707.spl override //Cacofiend
    spwi716.spl override //Mordenkainen's Sword
    spwi717.spl override //Summon Efreeti
    spwi718.spl override //Summon Djinni
    spwi719.spl override //Summon Hakeashar
    spwi807.spl override //Summon Fiend
    spwi905.spl override //Gate
    spwm154.spl override //Cacofiend


    Power = 5 for all effects:
    ~spwi419.spl~ ~override~ // Secret Word

    NOTES:
    SPWI501.SPL (Animate Dead) appears to have only one EFF at 15th lvl- i.e., only summons one undead. Not sure if that's intended...

    Oh no... I already bloody did this one!
  • TanthalasTanthalas Member Posts: 6,738
    @Bhryaen

    Its intended because at level 15 you start summoning a more powerful skeleton.
  • BhryaenBhryaen Member Posts: 2,874
    @Tanthalas
    Just one though? Well, I'll take your word for it... I wouldn't know...
  • BhryaenBhryaen Member Posts: 2,874
    Well, having just discovered that I ended up confirming this twice myself, I'll send this on. *sigh*
  • TanthalasTanthalas Member Posts: 6,738
    @Bhryaen

    Doesn't the spell description mention it?

    If not, the BG2 description needs to be used for the spell.
  • BhryaenBhryaen Member Posts: 2,874
    @Tanthalas
    From the spell description:
    "However, at 15th level the caster will be able to summon a Skeleton Warrior (only one), a very powerful ally indeed..." lol Actually states "(only one)" as if to answer my own question.
  • Avenger_teambgAvenger_teambg Member, Developer Posts: 5,862
    Level 15, haha. We stop at level 10.
Sign In or Register to comment.