Random Variable with table tie-in?

wdfarmerwdfarmer Member Posts: 2
edited August 2012 in Working with GS (Mac)
Hey all!

I hope I'm posting this in the correct area... I have been working on moving my logic from inside the actors to a table - so I can tweak and test more efficiently... I jumped in, made a few extra columns to hold my data points, and wrote this to locate it...

random((tableCellValue(table,1,10),(tableCellValue(table,1,11))

After the change.... nothing is working with the random location spawn... Am I doing something wrong or does the random(min,max) function not support embedded table values?

Any help would be appreciated, Thanks in advance!

Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    It should work. I just tested it and it ran fine. Did you select the table name from the drop-down menu in the expression editor? If not, you need to do that instead of typing in the name or just leaving "table" there).

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • wdfarmerwdfarmer Member Posts: 2
    Perfect - thanks so much for looking into it. I'm not sure if its just my copy being buggy or not - It just gave me a script error too (win beta) so I guess I'll keep hunting around. I'll reset it all to being just a random function and see if I can find it from there.

    Thanks Again!
Sign In or Register to comment.