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

Everything about ToME 4.x.x. No spoilers, please

Moderator: Moderator

Post Reply
Message
Author
Parcae2
Uruivellas
Posts: 709
Joined: Sat Jan 14, 2012 12:02 am

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

#1 Post 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?

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

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

#2 Post by marvalis »

figure out what the damage bonus should be (look at your equipment) then simply set the damage bonus to that number

Parcae2
Uruivellas
Posts: 709
Joined: Sat Jan 14, 2012 12:02 am

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

#3 Post by Parcae2 »

I don't think I had any damage bonus from equipment, so I set it to 1 - is that right?

marvalis
Uruivellas
Posts: 683
Joined: Sun Sep 05, 2010 5:11 am

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

#4 Post 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

Sirrocco
Sher'Tul
Posts: 1059
Joined: Fri Apr 23, 2010 4:56 am

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

#5 Post 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.

Parcae2
Uruivellas
Posts: 709
Joined: Sat Jan 14, 2012 12:02 am

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

#6 Post 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.

Post Reply