Skip to content

Opcode 326 on items

AquadrizztAquadrizzt Member Posts: 1,069
edited August 2016 in General Modding
Is it possible to have items use the Opcode 326 checks with a while equipped timing mode? If so, how would this be done?

The system I want to implement includes a spell state (Armored Caster). I want armor to be able to check if the wearer has the Armored Caster spell state active. If hte wearer does not have the state active, I want to apply an effect prevents arcane spellcasting (via 145) as long as the armor is equipped. Is this possible?

Comments

  • GrammarsaladGrammarsalad Member Posts: 2,582
    edited August 2016

    Is it possible to have items use the Opcode 326 checks with a while equipped timing mode? If so, how would this be done?

    The system I want to implement includes a spell state (Armored Caster). I want armor to be able to check if the wearer has the Armored Caster spell state active. If hte wearer does not have the state active, I want to apply an effect prevents arcane spellcasting (via 145) as long as the armor is equipped. Is this possible?

    I remember trying something like this and it didn't work...but i think i remember somebody on...gibberlings(?) describing how to do it...I'll see if i can find it (i may be misremembering)
  • GrammarsaladGrammarsalad Member Posts: 2,582
    Still looking, but...
    Crazy idea. No idea if it'll work: what if the armor uses effect 146 to cast spell ( at self, i assume) with a while equipped duration that uses 324 to protect those with the armored caster spell state from itself.
  • GrammarsaladGrammarsalad Member Posts: 2,582
    I can't find it...maybe it never existed.

    I'll try to experiment when i get the chance. I'm really curious about this too
  • GrammarsaladGrammarsalad Member Posts: 2,582

    Still looking, but...
    Crazy idea. No idea if it'll work: what if the armor uses effect 146 to cast spell ( at self, i assume) with a while equipped duration that uses 324 to protect those with the armored caster spell state from itself.

    I'm confident this will work IF
    1) the armor casts the spell when first equipped
    2) the while equipped duration holds

    Many iwd spells operate this way.
  • GrammarsaladGrammarsalad Member Posts: 2,582
    edited August 2016

    Still looking, but...
    Crazy idea. No idea if it'll work: what if the armor uses effect 146 to cast spell ( at self, i assume) with a while equipped duration that uses 324 to protect those with the armored caster spell state from itself.

    I'm confident this will work IF
    1) the armor casts the spell when first equipped
    2) the while equipped duration holds

    Many iwd spells operate this way.
    Just tested. I set leather armor to cast bless with a while equipped duration. The spell is cast when equipped, but it seems to be applied permanently. When i take off the armor, the spell is still in effect...bummer

    Edit: well, 326 works directly--i set it to affect non undead, to the bless spell--but it still doesn't respect the while equipped duration

    Edit2: so, this is doable in that one can apply the effect/spell and (presumably) protect against it (via cast spell or directly using 326) but, the effect seems to persist after the armor is taken off...
    Post edited by Grammarsalad on
  • The user and all related content has been deleted.
  • AquadrizztAquadrizzt Member Posts: 1,069
    I was hoping for something a bit more elegant than repeating effects... I'll poke around G3 and see if I can find what you're talking about GS.
  • The user and all related content has been deleted.
  • AquadrizztAquadrizzt Member Posts: 1,069
    Yeah but the issue with that is that one of my classes has a progression and I don't want to resort to hacky silent kit switching to let them upgrade.
  • AquadrizztAquadrizzt Member Posts: 1,069
    Another issue with your proposal is that granting immunity to opcode 145 will cause weird behavior with spells that prevent spell casting (e.g. Tenser's Transformation).

    Then again, that is a lot less bad than the fact that my Armored Casting currently has the potential to break many SoD encounters.
  • The user and all related content has been deleted.
  • AquadrizztAquadrizzt Member Posts: 1,069
    Getting the engine to do what I want is only fun when it actually does what I want without negatively impact other systems... *grumbles*.

    But yeah that feels like a decent solution. I feel like being able to cast divine spells in Tenser's would be next level cheese anyway.
Sign In or Register to comment.