Trouble Again

I’m having trouble again. As some of you know I’m creating a battle-system but my latest problem is that when I have similarly named weapons the gamealways assumes the one the player is talking about is the one he’s carrying. For example there are to bronze swords, Both carried by the player. If he attempts to equip them the game always tries to equip the same one. Is their code to tell the game to always equip the unequipped one?

yes

More helpfully, you’re going to want to use a “does the player mean…” I don’t know how you’ve set your system up, but the below might be something to start with. Adapt it to fit your system. Also, I actually doubt it will work perfectly without any fixes, but it’s intended more as something to get you thinking.

Does the player mean wearing an unworn sword: it is likely. Does the player mean wearing a worn sword: it is unlikely.

You can also use the more general form and have similar rules for taking off.

[code]Does the player mean wearing something:
if the player wears the noun begin;
it is unlikely;
otherwise;
it is likely;
end if.

Does the player mean taking off something:
if the player wears the noun begin;
it is likely;
otherwise;
it is unlikely;
end if.[/code]

These will pretty much work straight out of the box without any further modifications.

Hope this helps.