Ptalk problem and possible psolution

This is a discussion / support forum for the Hugo programming language by Kent Tessman. Hugo is a powerful programming language for making text games / interactive fiction with multimedia support.

Hugo download links: https://www.generalcoffee.com/hugo
Roody Yogurt's Hugo Blog: https://notdeadhugo.blogspot.com
The Hugor interpreter by RealNC: http://ifwiki.org/index.php/Hugor

Moderators: Ice Cream Jonsey, joltcountry

Johnny
Posts: 36
Joined: Sat Oct 15, 2005 4:30 pm
Location: Humble, Texas

Ptalk problem and possible psolution

Post by Johnny »

Setting USE_PLURAL_OBJECTS breaks Ptalk. It's the routine WordIsNumber in objlib.h, used by the plural object code.

I'm looking at ConverseMenu_no_menus in dialogue.hug of the Future Boy! source code and seeing how to adapt GetDial. If I come up with something good, I'll throw it on here.

UPDATE: I commented out the line "string(tempquip, parse$, 1)" in the GetDial routine. That's working for me. Also, a bug where I remove the character the player is speaking to in a Respond case was printing "You can't talk to that!" ten or fifteen times. Don't know why, don't know why it's not happening now.

Johnny
Posts: 36
Joined: Sat Oct 15, 2005 4:30 pm
Location: Humble, Texas

Additionally

Post by Johnny »

I didn't understand why that line was there as a variable was already set to the string array resulting from string(tempquip, parse$) a couple of lines up.

Working my way through the Hugo Book and this game is back on track.

Post Reply