Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
|
masques [2015/04/13 14:50] aale |
masques [2015/04/30 16:41] (Version actuelle) aale |
||
|---|---|---|---|
| Ligne 10: | Ligne 10: | ||
| - 620.6 : masque pour le joueur du kidnappeur -> l'otage s'est enfui | - 620.6 : masque pour le joueur du kidnappeur -> l'otage s'est enfui | ||
| + | ====== Visibilité ====== | ||
| + | A chaque ordre est associé un paramètre dit de visibilité, par exemple | ||
| + | <WRAP center round box 60%> | ||
| + | Visibility = 0003000000001000000000000 | ||
| + | </WRAP> | ||
| + | Ici, le résultat de l'ordre à retourner peut donc concerner potentiellement 25 nations. Suivant le rôle de chaque nation dans l'ordre initié, 7 qualités différentes d'implications sont énoncées : | ||
| + | |||
| + | - auteur | ||
| + | - cible ou allié | ||
| + | - témoin | ||
| + | - allié du témoin | ||
| + | - témoin indirect, infos limitées | ||
| + | - allié du témoin indirect | ||
| + | - rumeur | ||
| + | |||
| + | Suivant toujours l'exemple, on constate que seulement 2 nations ont une valeur différente de 0 (3 pour la 4ème et 1 pour la 13ème). En suivant les correspondances ci-dessus, on voit alors que la nation 4 est témoin de cette action alors que la nation 13 est celle du héros qui l'a initiée. | ||
| ====== Structure de contrôle : if ====== | ====== Structure de contrôle : if ====== | ||
| Le test principal permettant d'adapter le texte de magazine à une condition particulière est le //if//. A utiliser entre @...@ tel que : | Le test principal permettant d'adapter le texte de magazine à une condition particulière est le //if//. A utiliser entre @...@ tel que : | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| - | @if@mot-clé@condition@ | + | @if@mot-clé@condition@\\ |
| - | instructions | + | instructions\\ |
| @endif@ | @endif@ | ||
| </WRAP> | </WRAP> | ||
| Ligne 22: | Ligne 38: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| - | @if1@mot-clé@condition@ | + | @if1@mot-clé@condition@\\ |
| - | instructions si la condition de if1 est satisfaite | + | instructions si la condition de if1 est satisfaite\\ |
| - | @if2@mot-clé@condition@ | + | @if2@mot-clé@condition@\\ |
| - | instructions si les conditions de if1 et if2 sont satisfaites | + | instructions si les conditions de if1 et if2 sont satisfaites\\ |
| - | @endif2@ | + | @endif2@\\ |
| @endif1@ | @endif1@ | ||
| </WRAP> | </WRAP> | ||
| Ligne 35: | Ligne 51: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| - | @if@parametre-testé@exists@ | + | @if@paramètre-testé@exists@ |
| blabla | blabla | ||
| @endif@ | @endif@ | ||
| Ligne 43: | Ligne 59: | ||
| <WRAP center round box 60%> | <WRAP center round box 60%> | ||
| - | @if@previous_town_name@empty@ | + | @if@paramètre_testé@empty@ |
| blabla | blabla | ||
| @endif@ | @endif@ | ||
| Ligne 49: | Ligne 65: | ||
| - | ===== Mots-clés ===== | + | ====== Mots-clés ====== |
| Les mots-clés disponibles, à utiliser entre #...# : | Les mots-clés disponibles, à utiliser entre #...# : | ||
| Ligne 55: | Ligne 71: | ||
| * player : numéro de nation du joueur ([[troisieme_age_-_1650|module 1650]] : de 1 à 25) | * player : numéro de nation du joueur ([[troisieme_age_-_1650|module 1650]] : de 1 à 25) | ||
| * player_as__nation_name : nation of the player | * player_as__nation_name : nation of the player | ||
| + | * aera_name | ||
| + | * previous_area_name | ||
| * hero_nation : nation of the hero, from 1 to 25 | * hero_nation : nation of the hero, from 1 to 25 | ||
| * hero_nation_name : nation of the hero | * hero_nation_name : nation of the hero | ||
| Ligne 80: | Ligne 98: | ||
| * hex_terrain : current hexagon terrain type from 1 to 9 | * hex_terrain : current hexagon terrain type from 1 to 9 | ||
| * previous_hex_terrain : last turn hexagon terrain type from 1 to 9 | * previous_hex_terrain : last turn hexagon terrain type from 1 to 9 | ||
| - | * is_mine : returns yes, if reader is owner of hero/town, otherwise returns no | ||
| - | * is_allied : returns yes, if reader considers hero/town to be a friend, otherwise returns no | ||
| - | * is_enemy : returns yes, if reader considers hero/town to be an enemy, otherwise returns no | ||
| * is_hero_general : returns yes, if the hero generating the news is general of the army, otherwise returns no (meaning he would be a captain in the army) | * is_hero_general : returns yes, if the hero generating the news is general of the army, otherwise returns no (meaning he would be a captain in the army) | ||
| - | * is_target_me : returns yes, if the action is targeted at the reader, otherwise returns no | ||
| * army_general_name : returns the name of the hero leading the army | * army_general_name : returns the name of the hero leading the army | ||
| * fellowship_leader_name : returns the name of the hero leading the fellowship | * fellowship_leader_name : returns the name of the hero leading the fellowship | ||
| Ligne 97: | Ligne 111: | ||
| * parameter1_as_hero_bonus : returns the hero bonus based on the parameter value | * parameter1_as_hero_bonus : returns the hero bonus based on the parameter value | ||
| * parameter1_as_nation_bonus : returns the nation bonus based on the parameter value | * parameter1_as_nation_bonus : returns the nation bonus based on the parameter value | ||
| + | |||
| + | les mots clés liés à la visibilité | ||
| + | * is_mine : returns yes, if reader is owner of hero/town, otherwise returns no | ||
| + | * is_allied : returns yes, if reader considers hero/town to be a friend, otherwise returns no | ||
| + | * is_enemy : returns yes, if reader considers hero/town to be an enemy, otherwise returns no | ||
| + | * is_target_me : returns yes, if the action is targeted at the reader, otherwise returns no | ||
| + | * is_witness : pour les témoins de l'action (visibilité à 5 ou 6) | ||
| Pour les ordres les plus complexes (avec beaucoup d'entrées), il existe le mot-clé #long_parameter#. Pour un ordre de division d'armée, on aurait la possibilités de rendre compte du transfert des différentes troupes par ces instructions : | Pour les ordres les plus complexes (avec beaucoup d'entrées), il existe le mot-clé #long_parameter#. Pour un ordre de division d'armée, on aurait la possibilités de rendre compte du transfert des différentes troupes par ces instructions : | ||
| Ligne 104: | Ligne 125: | ||
| </WRAP> | </WRAP> | ||
| ici, le ~ permet de supprimer le type de troupe si aucune unité n'est présente. | ici, le ~ permet de supprimer le type de troupe si aucune unité n'est présente. | ||
| + | ===== Listes ===== | ||
| - | ==== Listes ==== | + | ==== Nation ==== |
| - | + | ||
| - | === Nation === | + | |
| 1: Woodmen, 2: Northmen, 3: Eothraim, 4: Arthedain, 5: Cardolan, 6: North Gondor, 7: South Gondor, 8: Dwarves, 9: Sinda Elves, 10: Noldo Elves, 11: Witch King, 12: Dragon Lord, 13: Dog Lord, 14: Cloud Lord, 15: Blind Sorcerer, 16: Ice King, 17: Quiet Avenger, 18: Fire King, 19: Long Rider, 20: Dark Lieutenants, 21: Corsairs, 22: Dunlendings, 23: Haradwaith, 24: Rhudaur, 25: Easterlings, | 1: Woodmen, 2: Northmen, 3: Eothraim, 4: Arthedain, 5: Cardolan, 6: North Gondor, 7: South Gondor, 8: Dwarves, 9: Sinda Elves, 10: Noldo Elves, 11: Witch King, 12: Dragon Lord, 13: Dog Lord, 14: Cloud Lord, 15: Blind Sorcerer, 16: Ice King, 17: Quiet Avenger, 18: Fire King, 19: Long Rider, 20: Dark Lieutenants, 21: Corsairs, 22: Dunlendings, 23: Haradwaith, 24: Rhudaur, 25: Easterlings, | ||
| - | === Statuts === | + | ==== Statuts ==== |
| general: Leading an army, hero: Hero alone, captain: Following an army, leader: Leading a fellowship, fellow: Following a fellowship, leech: Spying, hostage: Held hostage, dismissed: Has been dismissed, | general: Leading an army, hero: Hero alone, captain: Following an army, leader: Leading a fellowship, fellow: Following a fellowship, leech: Spying, hostage: Held hostage, dismissed: Has been dismissed, | ||
| - | === Terrain === | + | ==== Terrain ==== |
| 1: Plain, 2: Coast, 3: Forest, 4: Marsh, 5: Hill, 6: Mountain, 7: Desert, 8: Coastal sea, 9: Open sea, | 1: Plain, 2: Coast, 3: Forest, 4: Marsh, 5: Hill, 6: Mountain, 7: Desert, 8: Coastal sea, 9: Open sea, | ||
| Ligne 123: | Ligne 143: | ||
| 1: Leather, 2: Bronze, 3: Steel, 4: Mithril, 5: Food, 6: Timber, 7: Stone, 8: Mounts, 9: Gold, | 1: Leather, 2: Bronze, 3: Steel, 4: Mithril, 5: Food, 6: Timber, 7: Stone, 8: Mounts, 9: Gold, | ||
| - | === Wagon === | + | ==== Wagon ==== |
| 1: none, 2: bronze weapons, 3: steel weapons, 4: mithril weapons, 5: leather armors, 6: bronze armors, 7: steel armors, 8: mithril armors, 9: food rations, 10: war machines, | 1: none, 2: bronze weapons, 3: steel weapons, 4: mithril weapons, 5: leather armors, 6: bronze armors, 7: steel armors, 8: mithril armors, 9: food rations, 10: war machines, | ||
| - | |||
| - | ===== Visibilité ===== | ||
| - | A chaque ordre est associé un paramètre dit de visibilité, par exemple | ||
| - | <WRAP center round box 60%> | ||
| - | Visibility = 0003000000001000000000000 | ||
| - | </WRAP> | ||
| - | Ici, le résultat de l'ordre à retourner peut donc concerner potentiellement 25 nations. Suivant le rôle de chaque nation dans l'ordre initié, 7 qualités différentes d'implications sont énoncées : | ||
| - | |||
| - | - auteur | ||
| - | - cible ou allié | ||
| - | - témoin | ||
| - | - allié du témoin | ||
| - | - témoin indirect, infos limitées | ||
| - | - allié du témoin indirect | ||
| - | - rumeur | ||
| - | |||
| - | Suivant toujours l'exemple, on constate que seulement 2 nations ont une valeur différente de 0 (3 pour la 4ème et 1 pour la 13ème). En suivant les correspondances ci-dessus, on voit alors que la nation 4 est témoin de cette action alors que la nation 13 est celle du héros qui l'a initiée. | ||
