diff --git a/untitledHeistGame.inf b/untitledHeistGame.inf index b340f97..f64807b 100644 --- a/untitledHeistGame.inf +++ b/untitledHeistGame.inf @@ -71,6 +71,8 @@ Include "help.h"; Attribute hint_given; +Attribute scanned; + Attribute heavy; Attribute bulky; @@ -207,19 +209,31 @@ with 'security' 'scanner' [; Examine: "The scanner's lights blink expectantly for your security fob. Good job! Now this appears to be an object that you can interact with, requesting this security fob. If you type I or INVENTORY it will display the items you are currently carrying! There is no limit on the number of items you may hold, but some items are heavy or bulky which means you can only carry one of them. Try opening your inventory and looking at the security fob."; Receive: - if(noun==securityCard && securityCard hasnt heavy){ - print "You insert the fob into the scanner. The green lights happily flash a few times, and the door opens! You have completed the tutorial. To enter the game proper type ~north~ or ~n~. If you ever need help try the commands help or intro!"; - give elevatorDoor open; - give elevatorDoor ~locked; - return true; + + if(noun==securityCard && + securityCard hasnt heavy && + elevatorDoor has scanned) { + + print "You've already scanned your fob. Enter 'n' to proceed!"; } + if(noun==securityCard && securityCard has heavy){ print "Oops, you fumble the fob and drop it on the floor of the elevator! Use ~take [object]~ to pick up an object. Try grabbing the fob and try again!"; give securityCard ~heavy; move securityCard to Tutorial; return true; } + if(noun==securityCard + && securityCard hasnt heavy){ + + print "You insert the fob into the scanner. The green lights happily flash a few times, and the door opens! You have completed the tutorial. To enter the game proper type ~north~ or ~n~. If you ever need help try the commands help or intro!"; + + give elevatorDoor open; + give elevatorDoor ~locked; + give elevatorDoor scanned; + return true; + } ], before [; Go: @@ -274,6 +288,10 @@ has heavy; print "You see nothing to scan..."; return false; } + if(noun==securityCard && securityCard hasnt heavy && elevatorDoor has scanned) { + + print "You've already scanned your fob. Enter 'n' to proceed!"; + } ! (Almost) Same action as 'Receive' in Tutorial if (noun == securityCard && securityCard hasnt heavy) { @@ -284,6 +302,7 @@ has heavy; print "(first taking the Security Key Fob)"; new_line; } + give elevatorDoor scanned; "You insert the fob into the scanner. The green lights happily flash a few times, and the door opens! You have completed the tutorial. To enter the game proper type ~north~ or ~n~. If you ever need help try the commands help or intro!"; give elevatorDoor open; give elevatorDoor ~locked; diff --git a/untitledHeistGame.test b/untitledHeistGame.test index e1cce3a..4344666 100644 --- a/untitledHeistGame.test +++ b/untitledHeistGame.test @@ -111,6 +111,52 @@ You insert the fob into the scanner. (first taking the Security Key Fob) You insert the fob into the scanner. + + +* scan fob thrice +> scan fob +> scan fob +(first taking the Security Key Fob) +You insert the fob into the scanner. +> scan fob +You've already scanned your fob. +> n +> The Lobby + +* scan id thrice + +> scan id +> scan id +(first taking the Security Key Fob) +You insert the fob into the scanner. +> scan id +You've already scanned your fob. +> n +> The Lobby + +* show id to scanner thrice + +> show id to scanner +> show id to scanner +(first taking the Security Key Fob) +You insert the fob into the scanner. +> show id to scanner +You've already scanned your fob. +> n +The Lobby + +* insert card into scanner twice + +> insert card into scanner +> insert card into scanner +(first taking the Security Key Fob) +You insert the fob into the scanner. +> insert card into scanner +You've already scanned your fob. +> n +The Lobby + + * insert card (fob) into scanner in Tutorial > insert card into scanner > take card