• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
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 881 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.
  • T
    Tempest Rose
    last edited by 12 Feb 2020, 08:35

    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
    • S
      SpiffyMeister
      last edited by Echo 12 Feb 2020, 19:00

      #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
      • K
        Kingsman
        last edited by 12 Feb 2020, 22:53

        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
        • T
          Tempest Rose
          last edited by 12 Feb 2020, 23:44

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

          1 Reply Last reply Reply Quote
          • K
            Kingsman
            last edited by Kingsman 13 Feb 2020, 02:55

            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
            • E
              Echo
              last edited by 8 Mar 2020, 20:34

              @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
              • E
                Echo
                last edited by 8 Mar 2020, 21:58

                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
                • S
                  StrawMan
                  last edited by 9 Mar 2020, 00:21

                  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
                  • E
                    Echo
                    last edited by Echo 3 Sept 2020, 00:30 9 Mar 2020, 00:29

                    @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.

                    S 1 Reply Last reply 9 Mar 2020, 00:33 Reply Quote
                    • S
                      StrawMan @Echo
                      last edited by 9 Mar 2020, 00:33

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

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

                      ? 1 Reply Last reply 9 Mar 2020, 01:50 Reply Quote
                      • ?
                        A Former User @StrawMan
                        last edited by A Former User 3 Sept 2020, 02:21 9 Mar 2020, 01:50

                        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
                        • T
                          Tempest Rose
                          last edited by 9 Mar 2020, 01:56

                          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
                          • E
                            Echo
                            last edited by 1 Apr 2020, 19:15

                            @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
                            • E
                              Echo
                              last edited by 2 Apr 2020, 19:39

                              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
                              1 / 1
                              • First post
                                6/14
                                Last post