From FusionWiki
How do I display MMF code in the wiki?
The <events> tag parses simplistic code and renders it as MMF2 event list.
Basics
* This is a condition
[Active] : This is an action
| 1 | - This is a condition
: This is an action
|
Special conditions
# You can also comment your code.
! Triggered conditions are red!
OR (logical)
X A negated condition.
| 1 |
| 2 | - Triggered conditions are red!
- OR (logical)
A negated condition.
|
Object icons
[Active] evaluates to
([[File:Active.png|20px]]).
Here is a list of icons for integrated MMF objects:
For more icons, see Category:Object_Icon.
Full-fledged Example
! [Active] leaves the play area
[Active] : Bounce
X Mouse pointer is over [Active]
[Player 1] Subtract 1 from Number of Lives
# Almost dead.
* Number of lives of [Player 1] = 1
* Only one action when event loops
[String] : Set alterable string to "Uh-oh, you're losing!"
# Game over!
! Number of lives of [Player 1] reached 0
[Storyboard] : Restart the application