Tracks all the performances of the supermarket store like Customers, Profit and all sorts of costs. This will help the player to have a clean view on his store during the day to improve the store for the next day
Open DT_StoreStats
To create a new statistic for your supermarket, you need to open ShopSimulator -> Main -> Statistics -> "DT_StoreStats". This uses the S_StoreStats structure.
New statistic
Click “Add” in the Data Table and then fill in all the information:
StatName: The name of the statistic. To add a new name, add a new entry in "E_StoreStats".
StatCategory: The categories name for the stat. In this row will the stat be displayed later on. To add a new category, add a new entry in "_StoreStatsCategory".
StatValue: The current value of the stat. This should be 0 at the beginning as you want to add value later on.
ShouldBeNegativ: Should be the value of the stat negative at the end when it gets displayed, for example when showing how much something costs.
AddMoneyPrefix: Should be the "$" prefix added to the shown value stat.
Change the value of a statistic
To change a value of a statistic, call the "GetGameState" function and from this output call "F_ChangeStat". Here you can add a value to the statistic of the enum.
StoreStat: The name of the statistic you want to change.
ValueToAdd: Enter the value you want to be added to the old value. If you want to decrease your value, just use a negative value.