Custom item idea HELP

Posts 1–7 of 7 · Page 1 of 1
Custom item idea HELP
Hey guys, I have a nice concept idea for an custom item. I thought of an armor that has no defense but can give you a unique effect which negates any armor breaking shots, making this the perfect armor for some end game dungeons. The problem is that I found out that a "immune to armor break" effect is not in the source code. So do I have to code this effect manually? or how do I start? Help is appreciated.
Which source you are using?

- - - Updated - - -

Anyway it should be ArmorBreakImmune.
Quote Originally Posted by Stone2405 View Post
Which source you are using?

- - - Updated - - -

Anyway it should be ArmorBreakImmune.
I'm using Cake's Domain, so basically FSOD. Also found out that ArmorBreakImmune is in the source code I just didn't search correctly. Tho, my question now is how do I apply this effect on the armor itself?
Code:
 if (CheckArmorBreakImmune())
                {
                    ApplyConditionEffect(new ConditionEffect
                    {
                        Effect = ConditionEffectIndex.ArmorBreakImmune,
                        DurationMS = -1
                    });
                }
Code:
private bool CheckArmorBreakImmune()
        {
            for (var i = 0; i < 4; i++)
            {
                var item = Inventory[i];
                if (item == null || !item.ArmorBreakImmune)
                    continue;
                return true;
            }
            return false;
        }
Both in player.cs
and you should put <ArmorBreakImmune/> on item you want to have it. Should work. If not, write.
Quote Originally Posted by Stone2405 View Post
Code:
 if (CheckArmorBreakImmune())
                {
                    ApplyConditionEffect(new ConditionEffect
                    {
                        Effect = ConditionEffectIndex.ArmorBreakImmune,
                        DurationMS = -1
                    });
                }
Code:
private bool CheckArmorBreakImmune()
        {
            for (var i = 0; i < 4; i++)
            {
                var item = Inventory[i];
                if (item == null || !item.ArmorBreakImmune)
                    continue;
                return true;
            }
            return false;
        }
Both in player.cs
and you should put <ArmorBreakImmune/> on item you want to have it. Should work. If not, write.
only covers the armor defense not the base defense
Quote Originally Posted by what_a_fucking_Bridge View Post
only covers the armor defense not the base defense
Could you explain what you mean?
Quote Originally Posted by Stone2405 View Post
Could you explain what you mean?
seems like im retardet

it works fine lul
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us