It looks like you're new here. If you want to get involved, click one of these buttons!
(if: $blacksmithSkill <= 25)[You have collected your coins from the blacksmith for a job well done.(set: $coins to $coins + (random: 1,5))(set: $blacksmithSkill to blacksmithSkill + 1)
Eutherial's Blacksmith
Eutherial
|options>[stats]
(click-replace: "stats")[(display: "View Your Stats")]]
(if: $blacksmithSkill > 25)[You have collected your coins from the blacksmith for a job well done. (set: $coins to $coins + (random: 6,10)) (set: $blacksmithSkill to $blacksmithSkill + 1)
Eutherial's Blacksmith
Eutherial
|options>[stats]
(click-replace: "stats")[(display: "View Your Stats")]]
. I'm not sure what I'm doing wrong, especially considering I have a code extremely similar to this in another part of the game.missing ) after argument list
Comments
The second blacksmithSkill in your first (set: $blacksmithSkill to blacksmithSkill + 1) is missing a $ (dollar sign) at the start of the variable name, which is causing your error.
As explained in Harlowe's (set:) macro documentation you can use the it keyword when changing the current value of a variable. ... so the first $coins and $blacksmithSkill (set:) macros in your example could be written like so: