City of Arabel
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Aura of Shadows broken

    Scheduled Pinned Locked Moved Closed Bugs
    14 Posts 6 Posters 861 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tempest RoseT
      Tempest Rose
      last edited by

      Area name:
      Issue Location:
      Quest Name:
      Store Name:
      NPC Name:
      NPC Location:
      Server Version:
      Screen Shot:

      Aura of Shadows says it provides 100% cold immunity and 1d6 bonus cold damage. It does not say what the 1d6 cold damage is -to- though. It did not apply cold damage to weapon, or to spell damage, or as a damage shield. It also didn't apply the 100% cold immunity either. The forum says it absorbs up to 12xlevel cold damage, like a protection from elements specifically for the cold element, but the in game description doesn't mention that.

      Needs its effects, and a better description of what the effects are.

      1 Reply Last reply Reply Quote
      • SpiffyMeisterS
        SpiffyMeister
        last edited by Echo

        #include "x2_inc_spellhook"
        #include "x0_i0_spells"
        /***1d6 cold damage, cold immunity until 12 points / caster level
        damage has been taken. 2 turns per level***/
        void AuraOfShadows(object oPC, int iSpell) {
            int nDuration = 2 * GetAdjustedCasterLevel(oPC);
            int nMetaMagic = GetMetaMagicFeat();
            int nCasterLvl = GetAdjustedCasterLevel(oPC);
            object oTarget = GetSpellTargetObject();
        
            if(nCasterLvl > 5) nCasterLvl = 5;
        
            if (nMetaMagic == METAMAGIC_EXTEND) {
                nDuration = nDuration * 2;
            }
        
            float fDur = TurnsToSeconds(nDuration);
            int iDamAmt = 12 * nCasterLvl;
        
            if(iDamAmt > 120) iDamAmt = 120;
        
            effect eVis = EffectVisualEffect(VFX_IMP_MAGBLUE);
            effect eLink = EffectDamageIncrease(DAMAGE_BONUS_1d6, DAMAGE_TYPE_COLD);
            eLink = EffectLinkEffects(eLink, EffectDamageResistance(DAMAGE_TYPE_COLD, 100, iDamAmt));
            eLink = EffectLinkEffects(eLink, EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE));
            ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eLink, oPC, fDur);
            ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC);
        }
        
        
        void main() {
            object oPC = OBJECT_SELF;
            int iSpell = GetSpellId();
            AuraOfShadows(oPC, iSpell);
        }
        

        This is the script for it. If people can translate it, by all means.

        Puffy's bumbling Scum-goblin minion.

        1 Reply Last reply Reply Quote
        • KingsmanK
          Kingsman
          last edited by

          If the problem is purely with the visuals (meaning you didn't see the effect take place), currently 28th line ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC) uses the default length of that function, which is 0.0f.

          Latok: Controls the council.... controls Oldtown, Controls the Purple Dragons... contols the militia...
          Latok: In the immortal words of Emperor Palpatine... I AM THE SENATE

          1 Reply Last reply Reply Quote
          • Tempest RoseT
            Tempest Rose
            last edited by

            It isn't just visual. It doesn't apply anything when cast.

            1 Reply Last reply Reply Quote
            • KingsmanK
              Kingsman
              last edited by Kingsman

              Alright, fair enough. Also, after looking at the script more carefully, I realized that part was supposed to be set on default anyway >_>

              I don't see anything wrong with the script itself! It works if you change GetAdjustedCasterLevel(oPC) to the vanilla script GetCasterLevel(oPC). Could be a problem with the GetAdjustedCasterLevel-script, where it's setting the nDuration and nCasterLvl to 0 automatically.

              Latok: Controls the council.... controls Oldtown, Controls the Purple Dragons... contols the militia...
              Latok: In the immortal words of Emperor Palpatine... I AM THE SENATE

              1 Reply Last reply Reply Quote
              • EchoE
                Echo
                last edited by

                @Tempest-Rose said in Aura of Shadows broken:

                It does not say what the 1d6 cold damage is -to- though

                It's supposed to be your weapon according to this https://www.dandwiki.com/wiki/Aura_of_Shade_(5e_Spell)

                "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                1 Reply Last reply Reply Quote
                • EchoE
                  Echo
                  last edited by

                  I know what's wrong with it but not yet how to fix it. I'll get back with you on it next weekend when I have time to delve into it.

                  "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                  1 Reply Last reply Reply Quote
                  • StrawManS
                    StrawMan
                    last edited by

                    Could be something in our haks.

                    Haks have highest priority concerning content overrides.

                    I had the same problem initially with the poison application system. Server side 2da vs hak with embedded 2da.

                    …Little Gods, In The Spaces Of Spiders...

                    1 Reply Last reply Reply Quote
                    • EchoE
                      Echo
                      last edited by Echo

                      @StrawMan - it's missing lines that tell it what to target (ie, weapon) and who to protect.

                      This spell affects the caster directly AND the weapon carried.

                      It's supposed to make the caster 100% immune to cold until 12 * caster level damages is absorbed AND give 1d6 cold damage to the weapon wielded.

                      Currently it's doing neither.

                      "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                      StrawManS 1 Reply Last reply Reply Quote
                      • StrawManS
                        StrawMan @Echo
                        last edited by

                        @Echo
                        Aha! I see.
                        Makes sense. :thumbs_up_light_skin_tone:

                        …Little Gods, In The Spaces Of Spiders...

                        ? 1 Reply Last reply Reply Quote
                        • ?
                          A Former User @StrawMan
                          last edited by A Former User

                          object oRWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND,oPC);
                          
                          itemproperty ipDamage = ItemPropertyDamageBonus(IP_CONST_DAMAGETYPE_COLD, IP_CONST_DAMAGEBONUS_1d6);
                          
                          if(GetIsObjectValid(oRWeapon)){
                                          IPSafeAddItemProperty(oRWeapon,ipDamage,fDur,X2_IP_ADDPROP_POLICY_KEEP_EXISTING);
                          }
                          

                          That needs to be added separately for the weapons and gloves to add the damage property. I dunno how merging for animal shapes works, which is what I imagine Rose is looking for.

                          Also, where in the spell hook is the spell actually identified? Is it one of those naming convention things? As far as I'm reading it this spell hook won't fire. It needs something like

                          if(spellID == 2DA_ID_FOR_AURAOFSHADOWS){
                          

                          Above the last line. I could be wrong about all that but I don't think I am.

                          1 Reply Last reply Reply Quote
                          • Tempest RoseT
                            Tempest Rose
                            last edited by

                            This is a sorc/wizard only spell. Though how it applies if Polymorph spell is used.. shrug Dunno! Probably won't work since bows and gloves were made able to be buffed but creature weapons were not, though could just check for property and transfer it over.

                            1 Reply Last reply Reply Quote
                            • EchoE
                              Echo
                              last edited by

                              @Sljppers I'll leave this one to you

                              "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                              1 Reply Last reply Reply Quote
                              • EchoE
                                Echo
                                last edited by

                                Fix imported v6748

                                "You can complain if you weren't asked; you can't complain if you were asked but didn't contribute." ~ Professor.

                                1 Reply Last reply Reply Quote
                                • 1 / 1
                                • First post
                                  Last post