Need help with word table search

tysonwillstysonwills Member, PRO Posts: 24
edited July 2012 in Working with GS (Mac)
I was wondering if someone out there could help with this problem
I need to have a table containing words and each word has a numerical value assosiated with it eg.
dog 10
cat 40
horse 60

I need to be able to search this table if someone types horse it show 60 etc,
then he searches for cat and gets 40.

then these figures are added together to get a total of 100.

I have tried to solve this for ages and it is doing my head in.
Any advice would be great.
Thanks

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    edited July 2012
    @tysonwills ... need to know a few things to see if I can help! 1. do you have a list of words that give 10 points, a list of words that give 40 points etc?

    how many words total do you have (or are you going to have in the finished game)?

    And are you generally familiar with tshirtbooths word checker demo that will likely form the basis of my thoughts on how to do this? www.gshelper.com
  • ericzingelerericzingeler Member Posts: 334
    @tysonwills ... need to know a few things to see if I can help! 1. do you have a list of words that give 10 points, a list of words that give 40 points etc?

    how many words total do you have (or are you going to have in the finished game)?
    Yes, please answer these questions. I may have some input as well.
  • tysonwillstysonwills Member, PRO Posts: 24
    Maybe about a few hundred words and yeah they are in lists containing the number.
    Any help would be great. I have went through tshirts tutorial but can fing how to search etc.
  • simo103simo103 Member, PRO Posts: 1,331
    @tysonwills ... since tables aren't searchable .. this is what i would do .... I would put al the ten point words in a text attribute say Game.TenPointsWords. they would need to be like this (which is in tshirtbooths word search demo and boggle step-by-step). !cat!ball!snow!bat!rat! etc and all the 20, 30 40 point words just like that in their own attribute then you compare the typed word (plus ! at each end - like !horse!) to each attribute and which one contains the typed word then if true add appropriate amount to score. Let me know if that makes any sense?
  • tysonwillstysonwills Member, PRO Posts: 24
    Thanks simo103 still new to gamesalad any chance you could mock up a demo using 3 or four words to give me a idea.
    Thanks again
  • simo103simo103 Member, PRO Posts: 1,331
    @tysonwills .. I'm at my day job right now so won't be able to make anything to much later today/maybe first thing tomorrow. If you can wait I will strip out tshirtbooths demo word search to have only a few words so it might be a little easier to see how to set it up .. in the meantime I just want to make sure you have watched and downloaded the right demo: http://gshelper.com/600000-word-checker-free-demo/

    post here later if you still need help and I'll try later as mentioned above
  • tysonwillstysonwills Member, PRO Posts: 24
    yeah simo103 have watched but dont know how to use this to search and show number, any more imput would be great.
    thanks again
  • simo103simo103 Member, PRO Posts: 1,331
    @tysonwills .... here you go: http://www.funkymunkygames.com/GameSalad/word_check_sm.gameproj.zip

    look in the word checker actor for the three attributes. TenLetterWords, ThirtyLetterWords etc and see how they are setup. The typed guess is wrapped in ! at both ends and compared with each attribute to determine if it is worth 10, 30 or 40 points.
  • tysonwillstysonwills Member, PRO Posts: 24
    Hi simo103
    thanks for the help man , just in work so will go through the demo later.

    Thanks again man
  • edhogshireedhogshire Member, PRO Posts: 12

    @simo103
    The problem with this is it only works in this set up. That is it only changes the answer from red to green. How can we make it so that it starts off blank (no color) and then changes to red or green depending of the users input?

    Thanks

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    this thread is almost 2 years old and the table functions have changed since then, you'll be better off starting a new thread

This discussion has been closed.