Restricting "GET ALL"

Hugo programming discussion. http://www.generalcoffee.com/hugo
Hugo By Example: http://hugo.gerynarsabode.org/index.php?title=Main_Page
Roody Yogurt's Hugo Blog: http://notdeadhugo.blogspot.com

Moderators: Ice Cream Jonsey, AArdvark

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

Restricting "GET ALL"

Post by Bainespal » Wed Jan 30, 2013 10:54 am

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: 1994
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt » Wed Jan 30, 2013 12:50 pm

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 » Wed Jan 30, 2013 2:11 pm

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 » Mon Oct 27, 2014 4:54 am

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: 1994
Joined: Mon Apr 29, 2002 6:23 pm
Location: Milwaukee

Post by Roody_Yogurt » Mon Oct 27, 2014 3:59 pm

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