Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: am on Fri 13/06/2003 14:55:18

Title: Help with creating search
Post by: am on Fri 13/06/2003 14:55:18
I'm working on an ecyclopedia-like feature within the game (it'll be divided into several sections, each with a few subjects).
I'm thinking to implement it much like the help in the demo game - have one screen (screen instead of a GUI) where the data is displayed, and the data itself is changed depending on a global int when entering the screen.

I would like to implement a "search" function to display the name of all titles containing the word searched for, but I'm cluless as to how to do that.
any ideas?
Title: Re:Help with creating search
Post by: Pumaman on Sat 14/06/2003 15:43:00
Well, it depends how you implement your encyclopedia, really. Some sort of StrInString command could be helpful here though so I'll look into it.
Title: Re:Help with creating search
Post by: Dorcan on Sat 14/06/2003 20:59:34
I juste have made a function FindStr(str1, str2).
It's case insensitive.

http://host.deluxnetwork.com/~dorcan/script.php?langue=en&id=5
Title: Re:Help with creating search
Post by: am on Sat 14/06/2003 21:49:21
Thanks, it loks like it'll work.