I seem to be missing something here, using the standard wearable setup; I can use a script to change what the player is wearing (WearGarment(garment)). Is there an equivalent that lets you specify which object should be wearing something?
http://docs.textadventures.co.uk/quest/wearables.html lists functions like: ListWornFor (char) but gives no hints on how to get a NPC to wear an item in the first place, or to change it.
I figured out how the library does it, can just make a function like:
<function name="NpcWear" parameters="npc, obj">
if (not obj.worn) {
obj.worn = true
obj.parent = npc
}
Obviously this does not do any checking or anything, but it does mean that functions like GetOuterFor will return the correct value
Wearable attributes should already be in the game. I don't know how it works though.
I thought you would either have to make and/or set a boolean or a string. For the funcfions to work. Something like...
armor.wearable = true
or....
armor.wearable = "wearable"
or....
armor.wearable1 = true
or...
armor.wearable1 = "wearable"