Page 5 of 12
Re: The unlockables
Posted: Thu Oct 07, 2010 11:17 pm
by Final Master
Code: Select all
newAchievement{
name = "Pyromancer",
desc = [[Unlocked Archmage class and done over two million fire damage (with any item/talent/class).]],
mode = "world",
can_gain = function(self, who, dam)
self.nb = (self.nb or 0) + dam
return self.nb > 2000000 and profile.mod.allow_build.mage
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_pyromancer", true)
end,
}
newAchievement{
name = "Cryomancer",
desc = [[Unlocked Archmage class and done over two million cold damage (with any item/talent/class).]],
mode = "world",
can_gain = function(self, who, dam)
self.nb = (self.nb or 0) + dam
return self.nb > 2000000 and profile.mod.allow_build.mage
end,
on_gain = function(_, src, personal)
game:setAllowedBuild("mage_cryomancer", true)
end,
}
It's located at data/achievements/talents .
Re: The unlockables
Posted: Fri Oct 08, 2010 12:41 am
by yufra
Take a gander at modules/tome/data/achievements/talents.lua... but no tweaking!

Re: The unlockables
Posted: Fri Oct 08, 2010 1:31 am
by vstat
Maybe I didn't clarify my question enough, because I did see that. Where is self.nb information store cummulatively? In other words, where can I check and see how close (or in my case, far away) from the achievement.
And no, I won't be changing the source to cheat:)
Re: The unlockables
Posted: Fri Oct 08, 2010 2:08 am
by yufra
Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code: Select all
=world.achievement_data.PYROMANCER
Re: The unlockables
Posted: Fri Oct 08, 2010 3:52 pm
by Hedrachi
yufra wrote:Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code: Select all
=world.achievement_data.PYROMANCER
Er... Lua console is cheat-mode only, isn't it? Is there any way planned to show unlock info like that through a keybind, or is this info viewed as "spoily" to the player?
Re: The unlockables
Posted: Fri Oct 08, 2010 4:00 pm
by Zaive
Dunno if this has already been said, but maybe at half-way to the unlock/achievement you could see what it is and how close you are to getting it under achievements. That way, you can kinda keep track without spoiling it to new people.
On another note, I probably would be well on my way to unlocking the cyromancer... if I hadn't been getting distracted by Dissidia final fantasy. >.>
Re: The unlockables
Posted: Tue Oct 12, 2010 8:18 pm
by Final Master
Can we maybe get this topic stickied as it seems to be a relatively popular and semi important topic on a good area of discussion?
Re: The unlockables
Posted: Thu Oct 21, 2010 12:22 am
by Gwai
yufra wrote:Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code: Select all
=world.achievement_data.PYROMANCER
Okay, I think I am being dense here, but how do I do that? Where do I go to find world.achievement_data? (Ironic that it would be much easier, at least for me, to cheat and unlock the class than it is to see how close I am to doing so legally!)
Re: The unlockables
Posted: Thu Oct 21, 2010 1:35 am
by Hedrachi
To enable cheat mode...
Shoob in a general discussions thread wrote:To enable it add a file named "tome.cheat.cfg" in your HOME/.t-engine/4.0/settings/ directory with the following line:
tome.cheat = true. (highlight if you *have* to know, otherwise ignore)
(highlight to read)
Then to enable the lua console...
The keybind list wrote:"Ctrl-l" (Ell, not Eye)
Then in the lua console...
Code: Select all
=world.achievement_data.PYROMANCER
(replace PYROMANCER with any class that requires an unlock for that class unlock data)
Re: The unlockables
Posted: Thu Oct 21, 2010 1:48 am
by Gwai
Thanks!
Re: The unlockables
Posted: Thu Oct 21, 2010 2:57 pm
by Gwai
Now that I'm checking regularly, I am beginning to distrust how the unlocking works. I started a fire-obsessed archmage and got him to at least level 8 before completely casual playing killed him. Then when I checked my unlock, it said I had only done a couple hundred fire damage. Erm, I used flame to kill almost every single monster thus far. I definitely did more than a couple hundred damage. I thought dying did not reset this anymore?
Re: The unlockables
Posted: Thu Oct 21, 2010 3:15 pm
by Gwai
Indeed, tested:
[LOG] Gwai killed Gwai!
[THREAD] registering table: 0E609C10 userdata: 0E60A718 1
[THREAD] Thread join 1 table: 0E609C10
[ONLINE PROFILE] async rpc called
http://te4.org/lua/profilesrpc.ws/SetConfigs
326 frames in 10.021 seconds = 32.5317 FPS
[LOG] #LIGHT_BLUE#You resurrect! CHEATER !
[LOG] Gwai stops burning.
findFreeGrid using 40 6
[MOVE] actor moved without a starting position Gwai 40 6
[CHAT] loaded welcome table: 14E201C0
[CHAT] loaded jewelry table: 14E1E4B0
[CHAT] loaded artifact_jewelry table: 14E1B198
[CHAT] loaded quest table: 14E20508
[LOG] #LIGHT_GREEN#Personal New Achievement: Unstoppable!
66 ticks in 10.191 seconds = 6.4763 TPS
[CHAT] selected Sorry I have to go! nil nil
Lua Error: /engine/HotkeysDisplay.lua:158: attempt to index local 'o' (a nil value)
At [C]:-1
At /engine/HotkeysDisplay.lua:158 onMouse
At /mod/class/Game.lua:858 fct
At /engine/Mouse.lua:51
and just to clarify, error caused by trying to check my pyromancer progress after killing self.
Re: The unlockables
Posted: Thu Oct 21, 2010 3:18 pm
by darkgod
Hum weird, you do not kill tome process do you ?
Re: The unlockables
Posted: Thu Oct 21, 2010 3:18 pm
by darkgod
Hum ? I do not understand what's the log supposed to show?
Re: The unlockables
Posted: Thu Oct 21, 2010 3:22 pm
by Gwai
It shows that death resets all progress toward unlocking the pyromancer class. (And that doing damage to yourself could be a Really cheesy way to make progress.

)