Difference between revisions of "Game Won Message"

From SCI Wiki
Jump to navigationJump to search
m (1 revision)
 
Line 5: Line 5:
  
 
<div class="CodeBlockHeader">Code:</div>
 
<div class="CodeBlockHeader">Code:</div>
<syntaxhighlight lang="sci" class="cs">
+
<syntaxhighlight lang="sci">
 
(if(== gScore  gMaxScore) //  
 
(if(== gScore  gMaxScore) //  
 
  (Display "You've done it you are a winner.")
 
  (Display "You've done it you are a winner.")

Latest revision as of 12:52, 11 August 2013

By Cloudee1

To inform the player that he has won the game once a certain score has been reached:


Code:
(if(== gScore  gMaxScore) // 
 (Display "You've done it you are a winner.")
)


Notes:

  1. If you have any hidden points use equal to or greater than.
     
  2. A print statement will go away if if the player hits enter. A display might be better such as a new room that says congratulations or use a changestate method with animations.