Sugarcube 2.1.3
This is all code that should be affecting the problem:
First passage:
<<set $u = {
soldier: 100,
moral: 80,
hunger: 30,
food: 250,
fight: 0,
recruit: 0
}>>
<<set $R = {
soldier: 0
}>>
Passage 2
Your soldier count <<print $u.soldier>>.
Your soldier's moral <<print $u.moral>>%.
Your soldier's hunger <<print $u.hunger>>%.
Your amount of food <<print $u.food>>.
<<set $R.soldier = Math.round($soldier / 3)>>
How many fights you have been in <<print $u.fight>>.
How many days it has been since you last recruited from a village or town <<print $u.recruit>>.
Your options:
[[Celebrate]] - <<print $R.soldier>>
<<if $u.recruit <= 0>>
[[Look for towns nearby]]
<<endif>>
For some reason the code <<print $R.soldier>> doesn't print anything. And in test mode it doesn't show a '<<print>> #' at all. and there is no red errors anywhere. Did I mess up on something?