ToME: the Tales of Maj'Eyal
http://forums.te4.org/

The unlockables
http://forums.te4.org/viewtopic.php?f=41&t=21547
Page 5 of 12

Author:  Final Master [ Thu Oct 07, 2010 11:17 pm ]
Post subject:  Re: The unlockables

Code:
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 .

Author:  yufra [ Fri Oct 08, 2010 12:41 am ]
Post subject:  Re: The unlockables

Take a gander at modules/tome/data/achievements/talents.lua... but no tweaking! :D

Author:  vstat [ Fri Oct 08, 2010 1:31 am ]
Post subject:  Re: The unlockables

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:)

Author:  yufra [ Fri Oct 08, 2010 2:08 am ]
Post subject:  Re: The unlockables

Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code:
=world.achievement_data.PYROMANCER

Author:  Hedrachi [ Fri Oct 08, 2010 3:52 pm ]
Post subject:  Re: The unlockables

yufra wrote:
Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code:
=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?

Author:  Zaive [ Fri Oct 08, 2010 4:00 pm ]
Post subject:  Re: The unlockables

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. >.>

Author:  Final Master [ Tue Oct 12, 2010 8:18 pm ]
Post subject:  Re: The unlockables

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?

Author:  Gwai [ Thu Oct 21, 2010 12:22 am ]
Post subject:  Re: The unlockables

yufra wrote:
Ah, gotcha... open the Lua console and look at the "world.achievement_data" table. For example:
Code:
=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!)

Author:  Hedrachi [ Thu Oct 21, 2010 1:35 am ]
Post subject:  Re: The unlockables

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:
=world.achievement_data.PYROMANCER

(replace PYROMANCER with any class that requires an unlock for that class unlock data)

Author:  Gwai [ Thu Oct 21, 2010 1:48 am ]
Post subject:  Re: The unlockables

Thanks!

Author:  Gwai [ Thu Oct 21, 2010 2:57 pm ]
Post subject:  Re: The unlockables

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?

Author:  Gwai [ Thu Oct 21, 2010 3:15 pm ]
Post subject:  Re: The unlockables

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.

Author:  darkgod [ Thu Oct 21, 2010 3:18 pm ]
Post subject:  Re: The unlockables

Hum weird, you do not kill tome process do you ?

Author:  darkgod [ Thu Oct 21, 2010 3:18 pm ]
Post subject:  Re: The unlockables

Hum ? I do not understand what's the log supposed to show?

Author:  Gwai [ Thu Oct 21, 2010 3:22 pm ]
Post subject:  Re: The unlockables

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. :D)

Page 5 of 12 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/