J'espère que je vais m'exprimer assez clairement.
Sans une routine de combat j'utilise l'action "Attacking it with" qui vient de "Lanista 2", documentation 7.5.
Sans modifications autres qu'un peu de francisation, comme ceci :
- Code: Tout sélectionner
Attacking it with is an action applying to one visible thing and one carried thing. Understand "attack [someone] avec [something preferably held]" as attacking it with.
Le joueur a une épée, décrite comme ceci :
- Code: Tout sélectionner
Sword1 is a weapon.
The printed name of Sword1 is "votre épée".
The MaximumDamage of Sword1 is 6.
Understand "épée/epee" as Sword1.
Now the player carries Sword1;
Juste avant le combat je fais un "showme sword1" et j'obtiens ceci :
- Code: Tout sélectionner
>showme sword1
votre épée - weapon
location: in Rue du Pot d'Etain
singular-named, proper-named; unlit, inedible, portable, handled; male
list grouping key: none
printed name: "votre épée"
printed plural name: "weapons"
indefinite article: none
grammatical gender: genre masculin
description: none
initial appearance: none
MaximumDamage: 6
Pour moi, tout est normal. Mais si au coup suivant je lance le combat, j'obtiens ceci :
- Code: Tout sélectionner
>attaquer royaliste avec épée
Là où vous êtes, il n'y a rien de tel. [ Message standard modifié ]
( L'action se passe pendant la Révolution, d'où le vocabulaire )
Ajouter "now the player holds sword1" ne change rien.
"Attaquer royaliste avec sword1" ne marche pas.
"Attack royaliste with épée" ne marche pas non plus.
Par contre, "try attacking Royaliste with sword1;" marche parfaitement.
Comprends rien du tout. Ça doit être bête comme chou. Pouvez-vous aider ? Merci.