commandes:condition
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
commandes:condition [2007/12/17 23:53] – frostfall | commandes:condition [2022/09/25 19:11] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 3: | Ligne 3: | ||
La syntaxe est la suivante : | La syntaxe est la suivante : | ||
Condition(' | Condition(' | ||
+ | |||
===== Explications ===== | ===== Explications ===== | ||
- | Cette fonction permet | + | Cette fonction permet |
+ | |||
+ | Les conditions peuvent être aussi variées que les conditions de déclenchements basiques d'un évènement. | ||
+ | < | ||
===== Exemple ===== | ===== Exemple ===== | ||
< | < | ||
Ligne 20: | Ligne 24: | ||
< | < | ||
< | < | ||
- | < | + | < |
Appuie sur bouton | Appuie sur bouton | ||
- | %Name%=frostfall | + | Attaque |
- | // Ceci est un commentaire | + | |
</ | </ | ||
</td> | </td> | ||
Ligne 29: | Ligne 32: | ||
</td> | </td> | ||
<td> | <td> | ||
- | < | + | < |
- | Message(' | + | Condition(' |
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
</ | </ | ||
</td> | </td> | ||
Ligne 37: | Ligne 43: | ||
</ | </ | ||
+ | ===== Un autre exemple ===== | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <table cellspacing=2> | ||
+ | <tr height=25>< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | Appuie sur bouton | ||
+ | </ | ||
+ | </td> | ||
+ | <td width=20> | ||
+ | </td> | ||
+ | <td> | ||
+ | < | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | </ | ||
+ | </td> | ||
+ | </tr> | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ===== Particularités ===== | ||
+ | ==== Utilisation de Condition dans un OnResultQuery ==== | ||
+ | Si vous avez besoin d' | ||
+ | |||
+ | Variable[13]=%rand(2)% | ||
+ | InputQuery(' | ||
+ | OnResultQuery(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | QueryEnd | ||
+ | Variable[13]=0 | ||
+ | | ||
+ | Doit s' | ||
+ | Variable[13]=%rand(2)% | ||
+ | InputQuery(' | ||
+ | OnResultQuery(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | Message(' | ||
+ | Condition(' | ||
+ | QueryEnd | ||
+ | Variable[13]=0 |
commandes/condition.1197931993.txt.gz · Dernière modification : 2022/09/25 19:09 (modification externe)