system halt when there is other attribute in expression of tableCellValue
zellhuang
Member, PRO Posts: 79
Hi GSers, thx for checking my problem!
I have creat 2 tables, one is called PlayerStatus the other one is called SystemInfo. Plus, i alse created 2 global attributes called Number1 and ActingPlayer, both of them are real.
In my game, i have to use the rule with expression just as "tableCellValue(PlayerStatus,2,tablecCellValue(SystemInfo,4,1))" or "tableCellValue(PlayerStatus,2,ActingPlayer+1). You see, in the expression of tableCellValue, whenever I use attribute in the place of row or column,the system will halt.
Does anybody know how to fix it? Is my expression wrong?
Thank you in advance!
I have creat 2 tables, one is called PlayerStatus the other one is called SystemInfo. Plus, i alse created 2 global attributes called Number1 and ActingPlayer, both of them are real.
In my game, i have to use the rule with expression just as "tableCellValue(PlayerStatus,2,tablecCellValue(SystemInfo,4,1))" or "tableCellValue(PlayerStatus,2,ActingPlayer+1). You see, in the expression of tableCellValue, whenever I use attribute in the place of row or column,the system will halt.
Does anybody know how to fix it? Is my expression wrong?
Thank you in advance!
Comments
Are all of the attributes in those two expressions selected (and highlighted in blue) from the expression editor? If not, or if you typed them in, try selecting them again from the expression editor. If you can post a screenshot of your rules, it may help speed a resolution to this issue.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
< img src="http://m1.img.libdd.com/farm4/2013/0108/18/12D6987E015B70D529325363F4A3B909A890D45CDA014_697_128.PNG">
I tried your methods before, but it couldn't solve the problem Do u have any other idea?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
You can use DisplayText actors to debug this by watching the values as they change in your game.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User