Restricting "GET ALL"

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

Bainespal
Posts: 151
Joined: Fri Jul 09, 2010 8:59 am

Restricting "GET ALL"

Post by Bainespal »

I imagine that this has probably come up before. A quick glance at HxE doesn't seem to show anything immediately relevant, so I guess I'll post here, if only to be pointed to an older discussion.

A betatester for "Tree and Star" did this:
>get all
Storyteller: The Storyteller probably wouldn’t be too big on that idea.
Veritas: Veritas probably wouldn’t be too big on that idea.
Here, both objects found by the command are NPCs. As there will probably be no kidnapping in any version of Tree and Star, it should be safe to disqualify any character or female_character class object from being found by "all."

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

The quick fix is to give both of those characters the exclude_from_all property and have it return true, but yeah, you make a good point that characters should probably default to being excluded.

Expect that behavior in the next Roodylib release!

Bainespal
Posts: 151
Joined: Fri Jul 09, 2010 8:59 am

Post by Bainespal »

I had a nagging suspicion that I had seen this issue covered somewhere before. I briefly looked on HxE and on this board, but I completely forgot to check the manual! *facepalm*
Roody_Yogurt wrote:Expect that behavior in the next Roodylib release!
Yay!

tufail123

Post by tufail123 »

thanks everyone for the help... i'll try them soon...

i guess text editor is all i need here :smile:

anyway, i'm not going to create payroll systems or what.. i just wanted to use hugo for creating simple program that uses input/output statement, and looping statements..i guess every programming language uses such statements before they can create games and what....

Roody_Yogurt
Posts: 2179
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt »

There's a list of usable text editors here:
http://hugo.gerynarsabode.org/index.php ... ed_Editors

Eventually, I mean to upload a standalone version of Notepad++ that'll compile Hugo stuff out of the box, but I haven't gotten around to it yet.

Post Reply