So I have a problem I can't solve and reading the documentation when I'm not sure what I'm looking after have been ineffective. I have a room(guild hall) the player enters with two variables set $Introduction is 1 and $StarterGear is 0. This is a room the player is going to be entering multiple times, but the first time the player is collecting some gear.
So what I want is for the player to enter get some text have a click/button for picking up the gear and giving them some new text. Then after that they are allowed to leave through the [[head west]] passage.
Now the code below shows the "you need to pick up your gear" part and clicking on that does nothing. There was more to the code, but after fumbling around with <<replace>> and <<display>> and some <span> it wasn't working out and I decided to rebuild. 2:am is probably not the best time to learn new things :P
<<if $Introduction eq 1>>
<<if $StarterGear eq 0>>
<<click "You need to pick up your gear">><<set $StarterGear = 1>>
<</click>>
<</if>>
<<if $StarterGear eq 1>>
[[Head West]]
<</if>>
<</if>>
So what I want is for the player to enter get some text have a click/button for picking up the gear and giving them some new text. Then after that they are allowed to leave through the [[head west]] passage.
Now the code below shows the "you need to pick up your gear" part and clicking on that does nothing. There was more to the code, but after fumbling around with <<replace>> and <<display>> and some <span> it wasn't working out and I decided to rebuild. 2:am is probably not the best time to learn new things :P
<<if $Introduction eq 1>>
<<if $StarterGear eq 0>>
<<click "You need to pick up your gear">><<set $StarterGear = 1>>
<</click>>
<</if>>
<<if $StarterGear eq 1>>
[[Head West]]
<</if>>
<</if>>