Force player to be wearing an item

Hi,

I need to force the player to wear a particular item at one point, 'e.g. the monk tells you to put on the habit, and you do as your are told.' I know the expression is habit.worn, but how do I force this to be true?

(using online editor)


K.V.

WearGarment(habit) to have the player wear the garment.

RemoveGarment(habit) to have the player take it off.


To check if it's worn:

if (habit.worn) {
   msg ("The player is wearing the habit!")
}
else {
  msg ("The player is not wearing the habit.")
}

K.V.

image
image
image


K.V.

http://docs.textadventures.co.uk/quest/wearables.html


Or, you can do like me and create your own custom equip #object# or unequip #object#, that is designed to have more features than the builtin function call.


This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums