Zho:事件类积木

Events blocks is one of the ten categories of Scratch 2.0 blocks. They are color-coded brown and are used to sense events, which trigger scripts to run. Event blocks are essential for every project: without the hat blocks from this category, a project would not be able to begin except by manually running scripts. There are currently six Hat blocks and two Stack blocks in this category, making it the smallest category of blocks.

History
Prior to Scratch 2.0, all of the Events blocks that were in Scratch 1.4 were under the Control blocks category. Initially after being given their own category, it was called "Triggers" in the Experimental Viewer and early versions of Scratch 2.0. However, the name was changed by Scratch Day 2012 to "Events". Events originally also included "scene" blocks, in which a script could trigger a new scene to begin and sprites or the stage could respond to the new scene. However, these were very similar to the broadcasting blocks, and were most likely removed due to repetition and confusion.

Blocks
Scratch 2.0 has the following six Event Hat blocks:


 * 當 @greenflag 被點擊
 * 當 [空白 v] 鍵被按下
 * 當角色被點擊
 * 當背景換成 [背景1 v]
 * 當 [聲音響度 v] > (10)
 * 當收到訊息 [訊息1 v]

Scratch 2.0 has the following two Event Stack blocks:


 * 廣播訊息 [訊息1 v]
 * 廣播訊息 [訊息1 v] 並等待