Game Won Message: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 1 revision imported
Andrew Branscom (talk | contribs)
No edit summary
 
Line 18: Line 18:
# If you have any hidden points use equal to or greater than.<br />&nbsp;
# If you have any hidden points use equal to or greater than.<br />&nbsp;
# 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.
# 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.
&nbsp;
&nbsp;
[[Category:Score]]
[[Category:Score]]
[[Category:SCI Score]]
[[Category:Events]]
[[Category:Events]]
[[Category:SCI Events]]
[[Category:Examples]]
[[Category:Examples]]
[[Category:SCI Examples]]

Latest revision as of 20:18, 28 April 2025

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.