Expected at least one row

*stat_chart
 text Name
 text Surname
 text Gender
 text Power
 
Stats

*stat_chart
 percent buff
*if (boo = true)
  percent time
  percent allure
  percent disgust


Ok this is my stat screen and it says that line 41 which is percent buff is a invalid under expected at least one row it looks fine to me but maybe not could someone help.

It looks like your spacing/indentation is off

1 Like

But where… if you use an *if you add a indent right?

*stat_chart command also doesn’t accept *if command. You have to add separate *stat_chart inside the check.


Yes. But in your case – ignoring the validity of the code – you stepped down one indent from percent buff. Thus, *if boo should have one indent on its child, not two as you have right now.

I’m sorry If I sound stupid but what do you mean?

Something like...

*if (some = 0)
 *stat_chart
   Percent random
   Percent random
1 Like

Yes.

*stat_chart
 percent A
*if some
 *stat_chart
  percent b
  percent c

Thanks for the help I must annoy you often😖

Well, if you put it that way, yeah. Spending your time not doing your own work can be annoying, but that is the risk you have to take when you help others.

There’s nothing wrong with it. It’s just how it works, so take it easy.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.