HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Why the Condition and Action mechanism in jass?

12-14-2009, 03:02 PM#1
ioadong
What is the benefit of the Condition and Action mechanism in the jass trigger?
12-14-2009, 11:43 PM#2
grim001
It was originally created that way to reflect the design of GUI triggers.

Also, conditions don't start a new thread, so they take less time to run than an action does. People frequently put their actions inside conditions to take advantage of this fact.

However, conditions can't use TriggerSleepAction (the Wait action in GUI).
12-15-2009, 12:06 AM#3
ioadong
thanks
12-15-2009, 12:57 AM#4
Fledermaus
And must return a boolean.