:: DemoActions[private indoors noEvents]
<h2>Actions</h2>
<<image 'locations/gadukino/forest/blueberry_picking_1.jpg'>>
<!--
	You already learned about the difference between act and actCLA.
	Here we'll take a closer look at the additional flags those macros could have.
 -->

<<act 'Minimum arousal' undefined `{arousal:10}`>>
	<<refresh>>
<</act>>
<!--
	This action is only available if your arousal is high enough (in this case: >=10).
 -->

<<act 'Minimum mood' undefined `{mood:60}`>>
	<<refresh>>
<</act>>
<!--
	This action is only available if your mood is high enough (in this case: >=60).
 -->

<<act 'Pay 1000 cash' undefined `{cost:{cash:1000}}`>>
	<<refresh>>
<</act>>
<<act 'Pay 2000 from bank' undefined `{cost:{bank:2000}}`>>
	<<refresh>>
<</act>>
<<act 'Pay 3000 from either' undefined `{cost:{both:3000}}`>>
	<<refresh>>
<</act>>
<!--
	The cost-flag checks if you have the required amount of money.
	It also automatically substracts the money from your purse or bank account if you select the action.
	Note that the both-option is a shorthand for creating two actions.
 -->

<<act 'Incest-stuff' undefined `{fetish:['incest']}`>>
	<<refresh>>
<</act>>
<!--
	This action leads to bdsm-content.
	If the user selected his character to be appalled by this, this action is disabled.
 -->

<<act 'Smart action' undefined `{skillRequirment:{intelligence:50}}`>>
	<<refresh>>
<</act>>
<!--
	This action requires a specific skill to have a specific level.
 -->

<<act 'Waste 10 minutes' undefined `{time:10}`>>
	<<refresh>>
<</act>>
<!--
	Obvious
 -->

<<for _demoCounter=0;_demoCounter<3;_demoCounter=_demoCounter+1>>
	<<actCLA `'Option '+_demoCounter+' (capture)'` undefined `{capture:['_demoCounter']}`>>
		You hit option _demoCounter.
		<<act 'Back'>>
			<<refresh>>
		<</act>>
	<</actCLA>>
	<<actCLA `'Option '+_demoCounter+' (no capture)'`>>
		You hit option _demoCounter.
		<<act 'Back'>>
			<<refresh>>
		<</act>>
	<</actCLA>>
<</for>>
<!--
	The code of each action is executed when the action is clicked, NOT when it is defined.
	Therefore, _democounter is set to 3 when any one of the six actions defined above is clicked.
	Sugarcube has the capture-macro for similiar cases. This won't help us here!
	You need to set the capture-flag to tell the action which variables it needs to create local copies of.
	Try out the actions above: the capturing options will show the correct number, while the other three will always display 3.
 -->