Quantcast
Channel: Help! with 2.0 - Twine Forum
Viewing all articles
Browse latest Browse all 1844

How to refresh passage

$
0
0
Just like the title said, how i can refresh current passage without go to another passage ? here's my scenario:

i have button to fast forward time by 1 hour and its show current time in here
::StoryCaption
<<button "">>
<<set $gameDate.setHours($gameDate.getHours() + 1)>>
<<display "Clock">>
<</button>>

and here's in passage home, the WORK menu will be visible if current time is between 06:00 AM and 08:30 AM
::Home
<<set $today = GameDays[$gameDate.getDay()]>>
<<if $today neq "Sunday" and $today neq "Saturday">>
	<<if $gameDate.getHours() gte 6>>
		<<if$gameDate.getHours() lte 8 and $gameDate.getMinutes() lte 30>>
			<span class="block-menu">
				[[Work|Office]]
			</span>
		<<endif>>
	<<endif>>
<<endif>>

this thing is really works but i must go to another passage and back to home when time is match, how i can show the WORK menu whenever i press the fast forward button and the time is match without leaving current passage?

thx before, and sorry for my bad english.

Viewing all articles
Browse latest Browse all 1844

Trending Articles