Talk:Revive

From NetHackWiki
Revision as of 16:22, 12 September 2010 by Qazmlpok (talk | contribs)
Jump to navigation Jump to search

I'm sure this has been posted many a time before, but I found this interesting block of code in zap.c, line 648:

			if (obj->oxlth && (obj->oattached == OATTACHED_M_ID)) {
			    unsigned m_id;
			    struct monst *ghost;
			    (void) memcpy((genericptr_t)&m_id,
				    (genericptr_t)obj->oextra, sizeof(m_id));
			    ghost = find_mid(m_id, FM_FMON);
		    	    if (ghost && ghost->data == &mons[PM_GHOST]) {
		    		    int x2, y2;
		    		    x2 = ghost->mx; y2 = ghost->my;
		    		    if (ghost->mtame)
		    		    	savetame = ghost->mtame;
		    		    if (canseemon(ghost))
		    		  	pline("%s is suddenly drawn into its former body!",
						Monnam(ghost));
				    mondead(ghost);
				    recorporealization = TRUE;
				    newsym(x2, y2);

It sounds like you can (or the code is in there for it to be done) for a ghost corpse (?) to be recorporealized? Is there any in game situation where this may happen? I tried using Turn Undead on ghosts - obviously this just did damage to them. I also tried turning stone to flesh on ghost figurines and statues, but that predictably created meatballs. Is this something for bone levels (is it possible to force a bones level in Wizard mode by chance?)

Thought that I'd share this. Strongsauce1 16:03, September 12, 2010 (UTC)

If you revive the corpse in a bones level, the ghost is removed as the former player revives. Interestingly, if you tame the ghost first, the game will attempt to tame the resulting player monster, although this will only make the monster peaceful if it was a human. This also doesn't create a player monster, but rather a generic human/elf/gnome/dwarf/orc.
This happened to me in my last SLASH'EM game. I encountered my ghost in a bones, and in the middle of fighting it, I suddenly got the "drawn into..." message and the ghost disappeared. I assume that what happened then was the corpse 'revived' as a mold, as I didn't zap do anything to revive the corpse myself. -- Qazmlpok 16:22, September 12, 2010 (UTC)