Page 1 of 1

Help please - where is the code for autocast?

Posted: Fri Feb 01, 2013 7:58 am
by jenx
I want to adjust it as an addon. But I can't find the code that controls autocast. Any help?

Re: Help please - where is the code for autocast?

Posted: Fri Feb 01, 2013 7:05 pm
by tiger_eye
See:

"automaticTalents" in tome/class/Player.lua
"setTalentAuto" and "checkSetTalentAuto" in tome/class/Actor.lua
"use" in tome/dialogs/UseTalents.lua

Also see: http://te4.org/games/addons/tome/safer- ... ic-talents

Re: Help please - where is the code for autocast?

Posted: Fri Feb 01, 2013 7:09 pm
by Hachem_Muche
It's all kicked off each turn in mod.class.Actor.lua:act() line 650.