Page 1 of 1

LUA: How to reset damage bonus to what it was before

Posted: Thu Jun 21, 2012 1:41 pm
by Parcae2
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

Posted: Thu Jun 21, 2012 1:50 pm
by marvalis
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

Posted: Thu Jun 21, 2012 2:10 pm
by Parcae2
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

Posted: Thu Jun 21, 2012 9:50 pm
by marvalis
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=nil

Re: LUA: How to reset damage bonus to what it was before

Posted: Thu Jun 21, 2012 11:02 pm
by Sirrocco
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

Posted: Fri Jun 22, 2012 12:04 pm
by Parcae2
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.