+allskills passive without crash on death?

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

User avatar
Cypress
Moderator
Champion of the Light
Posts: 452
Joined: Fri Dec 01, 2017 2:08 am

+allskills passive without crash on death?

Post by Cypress » Sun Feb 26, 2023 5:03 pm

I have a passive skill that gives +1 or -1 'item_allskills'. This is used to constantly update the player's passives, allowing for the useful behavior where calcs can be used on passive skills. It works perfectly, except that the game crashes on death. Even if I make the 'item_allskills' give only +1 all skills, it still crashes on death, so it has nothing to do with hitting negative skill levels. Does anyone know what causes this crash to happen, and if it is possible to fix?

EDIT:
Found a fix, although it will likely only be useful for me. I made it so that the +allskills of the passive is only given if the player has a certain aura activated. Since auras turn off when you die, the passive's allskills will become =0 when you die, resulting in no crash.

Return to “General Mod Making”