- Oct 30, 2018
- 14
- 19
Hey there,
I am fairly new to Sugarcube and twine but have "attempted" making 1 or 2 games in the past and as such have picked up a few things. I am currently stumped by this however and cannot get a rent system to work. So, first question :
How do I implement a way that each Sunday at 'Pre bed' passage the player gets paid X amount. In this example I want it to increase depending on the number of tenants in the players building. Currently I tried this way as I got it to work the first Sunday but not the following weeks:
And the sleep system I have is this:
The second question I have is minor in terms of importance to the game but more of a nice to have, Is there a way to set my images to expand when clicked, pop up box that shows them bigger.
Any help is much appreciated and if you need any more info or I have left something out, let me know!
I am fairly new to Sugarcube and twine but have "attempted" making 1 or 2 games in the past and as such have picked up a few things. I am currently stumped by this however and cannot get a rent system to work. So, first question :
How do I implement a way that each Sunday at 'Pre bed' passage the player gets paid X amount. In this example I want it to increase depending on the number of tenants in the players building. Currently I tried this way as I got it to work the first Sunday but not the following weeks:
Code:
<<if $day == 7>>
<<if $tenant == 1>>
<<set $day == 0>>
<<set $money += 100>>
<<speech "You" "$name">>
Rent should be in the account today!
<</speech>>
<<elseif $tenant == 2>>
<<set $day == 0>>
<<set $money += 200>>
<<speech "You" "$name">>
Rent should be in the account today!
<</speech>>
<<elseif $tenant == 3>>
<<set $day == 0>>
<<set $money += 300>>
<<speech "You" "$name">>
Rent should be in the account today!
<</speech>>
<<elseif $tenant == 4>>
<<set $day == 0>>
<<set $money += 400>>
<<speech "You" "$name">>
Rent should be in the account today!
<</speech>>
<<elseif $tenant == 0>>
<<set $day == 0>>
<<speech "You" "$name">>
Rent should be in the account today!
<</speech>>
<</if>>
<</if>>
Code:
<<if $period == 6 and passage() != "Pre Bed">><<goto [[Pre Bed]]>><</if>>
Any help is much appreciated and if you need any more info or I have left something out, let me know!