About wizmode

G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

Is there a way to check one's current hunger value in wizmode ?

(running slash'em if that make any difference).

If needed, I'm able to recompile with an appropriate option.

Hypocoristiquement,
Jym.
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

Jym <moyen@loria.fr> writes:
> Is there a way to check one's current hunger value in wizmode ?
>
> (running slash'em if that make any difference).
>
> If needed, I'm able to recompile with an appropriate option.

No, but adding it to ^X and other sources of enlightenment is fairly
trivial:

--- nethack-3.4.3/src/cmd.c Wed Mar 30 10:11:17 2005
+++ nethack-3.4.3bis/src/cmd.c Tue Jul 5 17:07:53 2005
@@ -1044,6 +1044,12 @@
if (u.twoweap) you_are("wielding two weapons at once");

/*** Miscellany ***/
+#ifdef WIZARD
+ if (wizard) {
+ Sprintf(buf, " %d", u.uhunger);
+ enl_msg("Your nutrition value ", "is", "was", buf);
+ }
+#endif
if (Luck) {
ltmp = abs((int)Luck);
Sprintf(buf, "%s%slucky",


Should work just as well with SLASH'EM.

--
: Dylan O'Donnell http://www.spod-central.org/~psmith/ :
: "Hi! I'm Prozac the Bear!" :
: -- Prozac the Bear, "Triangle and Robert" :
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

> Is there a way to check one's current hunger value in wizmode ?

Not yet.

> If needed, I'm able to recompile with an appropriate option.

You can add the following line in botl.c at line 371:
Sprintf(nb = eos(nb), " H:%ld", u.uhunger);

That will always print the current hunger on the bottom line.


Greetings,
Benjamin

--
The Nethack IdleRPG! Idle to your favorite Nethack messages!
http://pallas.crash-override.net/nethackidle/
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

On Tue, 5 Jul 2005, Benjamin Schieder wrote:

> > Is there a way to check one's current hunger value in wizmode ?
>
> Not yet.
>
> > If needed, I'm able to recompile with an appropriate option.
>
> You can add the following line in botl.c at line 371:
> Sprintf(nb = eos(nb), " H:%ld", u.uhunger);
>
> That will always print the current hunger on the bottom line.

That does not seems to work with the X11 interface... I'll try to find
where the "bottom area" of the X11 interface is defined and fixe that...

Hypocoristiquement,
Jym.
 
G

Guest

Guest
Archived from groups: rec.games.roguelike.nethack (More info?)

On Tue, 5 Jul 2005, Dylan O'Donnell wrote:

> Jym <moyen@loria.fr> writes:
> > Is there a way to check one's current hunger value in wizmode ?
> >
> > (running slash'em if that make any difference).
> >
> > If needed, I'm able to recompile with an appropriate option.
>
> No, but adding it to ^X and other sources of enlightenment is fairly
> trivial:
>
> --- nethack-3.4.3/src/cmd.c Wed Mar 30 10:11:17 2005
> +++ nethack-3.4.3bis/src/cmd.c Tue Jul 5 17:07:53 2005
> @@ -1044,6 +1044,12 @@
> if (u.twoweap) you_are("wielding two weapons at once");
>
> /*** Miscellany ***/
> +#ifdef WIZARD
> + if (wizard) {
> + Sprintf(buf, " %d", u.uhunger);
> + enl_msg("Your nutrition value ", "is", "was", buf);
> + }
> +#endif
> if (Luck) {
> ltmp = abs((int)Luck);
> Sprintf(buf, "%s%slucky",
>
>
> Should work just as well with SLASH'EM.

Yep. Just figured that out after a bit of diving and made almost the same
thing (I also had the global hunger status in usual enlightenment, rather
useless, I agree).

Hypocoristiquement,
Jym.