pasmon79 Posted July 15, 2020 Author Share Posted July 15, 2020 I want to update a variable on regular basis and display it like âStockpile.Food etcâ Link to comment Share on other sites More sharing options...
qmjs Posted July 15, 2020 Share Posted July 15, 2020 Try putting something like this in the output code after the calculations, where Status.Var3 is your variable. <EventLog DisplayType="FateCard" EventFlags="General" Icon="House" IconId="10"> <NameText Flags="" Notes="" Text="Your description" /> <Descriptions> <EventLogDesc> <DescriptionText Flags="" Notes="" Text="%Status.Var3" /> <SummaryText Flags="" Notes="" Text="Your explanation" /> </EventLogDesc> </Descriptions> </EventLog> That will drop it in the ledger's log. Link to comment Share on other sites More sharing options...
pasmon79 Posted July 15, 2020 Author Share Posted July 15, 2020 Wow, thanks. Link to comment Share on other sites More sharing options...
pasmon79 Posted July 15, 2020 Author Share Posted July 15, 2020 Well it did not work. Link to comment Share on other sites More sharing options...
qmjs Posted July 15, 2020 Share Posted July 15, 2020 What part? Did the message not appear, or the variable value not show up? Link to comment Share on other sites More sharing options...
pasmon79 Posted July 15, 2020 Author Share Posted July 15, 2020 (edited) The message showed up without value of variable. It just reads plainly %...... I have tried &, $ too but to no effect. Edited July 15, 2020 by pasmon79 Link to comment Share on other sites More sharing options...
qmjs Posted July 15, 2020 Share Posted July 15, 2020 Try this: <EventRewardStat ExludeFromSummary="false" Icon="HappyFace" OutputAmount="Status.Var3" OutputId="DummyVar" RewardList="General" IconId="11"> <DescriptionText Flags="" Notes="" Text="%+d" /> </EventRewardStat> <EventLog DisplayType="FateCard" EventFlags="General" Icon="House" IconId="10"> <NameText Flags="" Notes="" Text="Your description" /> <Descriptions> <EventLogDesc> <DescriptionText Flags="" Notes="" Text="%d" /> <SummaryText Flags="" Notes="" Text="Your explanation" /> </EventLogDesc> </Descriptions> </EventLog> Link to comment Share on other sites More sharing options...
pasmon79 Posted July 15, 2020 Author Share Posted July 15, 2020 (edited) Well i got a numerical value and i.e 0 each time(using a fatecard to test), no matter what value i assign to my variable. Edited July 15, 2020 by pasmon79 Link to comment Share on other sites More sharing options...
qmjs Posted July 16, 2020 Share Posted July 16, 2020 Progress is progress. If it is always 0, is it defined in the rtsdata? Link to comment Share on other sites More sharing options...
pasmon79 Posted July 16, 2020 Author Share Posted July 16, 2020 (edited) No it was defined 1 in rtsdata. I understand that %d is throwing null value after not finding any desired value in memory. I guess that I have to invent a new C routine just for bypassing this issue. :) Edited July 16, 2020 by pasmon79 Link to comment Share on other sites More sharing options...
Recommended Posts