ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Thu Dec 13, 2018 12:57 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Mon Feb 15, 2010 4:02 pm 
Offline
Halfling

Joined: Sun Dec 20, 2009 7:21 pm
Posts: 112
Does that actually work? I failed the fourth quest because of mixup with the automatizer (the relic piece wasn't inscribed with quest for some reason), and now I'm wondering if I can salvage this. On a related note, can I get the last quest using potions of lose memories?


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 5:56 pm 
Offline
Thalore

Joined: Thu Aug 20, 2009 3:26 pm
Posts: 120
If you don't find the relic piece, there is nothing you can do to salvage that (at least nothing I know of). Yeah, drink a potion of lose memories (you won't remember me giving you this bad advice! :D ).... no, kidding, don't.

_________________
-The Bigfoot

I really do exist.


Top
 Profile  
 
PostPosted: Mon Feb 15, 2010 11:06 pm 
Offline
Wayist

Joined: Sun Jan 31, 2010 3:55 pm
Posts: 23
Now lib/scpt/god.lua provides three possible statuses for quest(GOD_QUEST).status.

  • QUEST_STATUS_UNTAKEN: You might get a god quest when you gain a character level.
  • QUEST_STATUS_TAKEN: You have a god quest. You might get a piece of the relic at a lost temple.
  • QUEST_STATUS_FAILED: You missed the relic!

There is a hook for HOOK_GET (getting an item). To get your reward, the item is a piece of the relic of the correct god, and the status must be QUEST_STATUS_TAKEN.

If your god says, 'Thou art a fool! I told thee to look carefully for the relic. It appears thou has missed the opportunity...', then the status becomes QUEST_STATUS_FAILED, and all relic pieces become useless, with the wish being a waste because your god ignores the relic piece. Your god only says this if you enter a level of the lost temple after you miss the relic. So if you lose the relic piece, and you recall out of (or leave) the lost temple without entering any more levels of the lost temple, and you stay out of the lost temple, then you might still be at QUEST_STATUS_TAKEN.

You can probably press Ctrl+Q to check your quest status. If the god quest is not in the list, then you are at QUEST_STATUS_UNTAKEN. This happens after you get the relic.

About potions of lose memories, and other ways to lose experience: the Lua code is careful to give only one chance per character level for a god quest.

Code:
            -- roll for chance of quest
            local give_god_quest = magik(god_quest.CHANCE_OF_GOD_QUEST)

            -- check player is worshipping a god, not already on a god quest.
            if (player.astral ~= FALSE) or (player.pgod <= 0)
            or (quest(GOD_QUEST).status == QUEST_STATUS_TAKEN) or (quest(GOD_QUEST).status == QUEST_STATUS_FAILED)
            or (god_quest.quests_given >= god_quest.MAX_NUM_GOD_QUESTS) or (give_god_quest == FALSE)
            or ((current_dungeon_idx == god_quest.DUNGEON_GOD) and (dun_level > 0)) or (player.lev <= god_quest.dun_minplev) then
               -- Don't let a player get quests with trickery
               if player.lev > god_quest.dun_minplev then
                  god_quest.dun_minplev = player.lev
               end


In the code, god_quest.dun_minplev remembers your maximum character level. You never get a god quest unless you exceed that maximum. (You must also have no current god quest, have never failed a quest, and be outside the god temple.) So the regaining of levels gives no quests, but the delaying of levels might give a quest.

So this is what you would do:

  1. After the automatizer destroys the relic piece, you recall out of the lost temple.
  2. Stay out of the lost temple! You MUST NOT get the failure message from your god!
  3. Never gain any new character levels! Drain your experience to avoid new character levels. You probably need an equipment or a junkart that drains experience.
  4. Find a wish.
  5. Wish for 'Piece of the Relic of Melkor' (or whomever is your god). I assume that such wish is possible.
  6. Start gaining levels to get the last god quest.

This might not be the correct way; I might misunderstand lib/scpt/god.lua. The Lua code seems to inscribe every relic piece with {quest}, but you have said otherwise.

There is perhaps an easier way. You can edit lib/scpt/god.lua to somehow give you a free relic piece. This is cheating, but you can justify the cheat because your automatizer destroyed the relic piece.


Top
 Profile  
 
PostPosted: Tue Feb 16, 2010 3:54 am 
Offline
Reaper

Joined: Sun Jan 26, 2003 11:49 pm
Posts: 1715
Location: West Virginia
I cannot imagine using a wish to get a relic piece. That would come way, way down on my list.


Top
 Profile  
 
PostPosted: Tue Feb 16, 2010 10:24 pm 
Offline
Halfling

Joined: Sun Dec 20, 2009 7:21 pm
Posts: 112
I know nothing about Lua, or C for that matter, but I just added this to the beginning of add_quest, started up the game, deleted this, restarted...
Code:
quest(GOD_QUEST).status = QUEST_STATUS_TAKEN
...and it seems to have let me take the quest again with no errors. I backed up my save file in case this screws it up or is considered cheating, but I'd still like to see what other people think before I try playing. Would you consider this ethical? I don't know why, but the relic piece was not inscribed with quest. I cast Vision, examined the little purple tilde, and it said Piece of the Relic of Melkor, so I Recalled it to me. But there was no {quest} inscription, so my automatizer killed it. I seems like kind of gray area, but I am sure that that was the relic. I stupidly forgot to note it (is there any way to access messages beyond ^P?), but I am certain that was it.


Top
 Profile  
 
PostPosted: Wed Feb 17, 2010 3:20 am 
Offline
Wayist

Joined: Sun Jan 31, 2010 3:55 pm
Posts: 23
Ithulta wrote:
is there any way to access messages beyond ^P?


I believe that ^P shows all available messages. If you set compress_savefile to no in Efficiency Options (press '=' then '4'), then the game will include the ^P messages in the save file. There is still some limit; I opened my save file and the ^P screen has only 2047 lines.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group