Help:Contents

From FusionWiki

Jump to: navigation, search

Contents

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.
1You can also comment your code.
2
  • Triggered conditions are red!
  • OR (logical)
  • File:Cross.png  A negated condition.

Object icons

[Active] evaluates to ([[File:Active.png|20px]]).
Here is a list of icons for integrated MMF objects:

1

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
1
  • leaves the play area
  •  : Bounce

2
  • File:Cross.png  Mouse pointer is over
  • Subtract 1 from Number of Lives

3Almost dead.
4
  • Number of lives of = 1
  • Only one action when event loops
  •  : Set alterable string to "Uh-oh, you're losing!"

5Game over!
6
  • Number of lives of reached 0
  •  : Restart the application

Personal tools