LUA: How to reset damage bonus to what it was before
Moderator: Moderator
LUA: How to reset damage bonus to what it was before
I had killed a boss in an extremely protracted fight, but then the NaN bug returned and I couldn't save. Rather than go through that experience again, I increased my damage bonus (to 1000, I think?) in LUA and killed him that way. I didn't realize that the game would remember the damage bonus when I returned to normal! How do I set it back to what it was before?
Re: LUA: How to reset damage bonus to what it was before
figure out what the damage bonus should be (look at your equipment) then simply set the damage bonus to that number
Re: LUA: How to reset damage bonus to what it was before
I don't think I had any damage bonus from equipment, so I set it to 1 - is that right?
Re: LUA: How to reset damage bonus to what it was before
Setting it to zero or nil would work. Setting it at 1 would give you 1% bonus damage. I doubt you would notice the difference.
Code: Select all
game.player.inc_damage.all=nilRe: LUA: How to reset damage bonus to what it was before
Might want to strip down, turn off sustains, and make sure you don't have any applicable passives first, just to be sure.
Re: LUA: How to reset damage bonus to what it was before
Thanks! I checked the character sheet to make sure and I'm fairly certain I got it back to where it was supposed to be.