Custom script on wear

Is there someway where I can run a script where I can check if the player has a variable within a certain range, for example, if the player weighs too much, then they can't wear something.

Also click


I was trying to do the same thing but couldn't quite figure out how so I got around this by making a turn script that removes the inventory/display verbs for wearing items based on an attribute value.
This way each turn it checks that value and determines what items are still able to be worn and if the cannot be the wear verb is removed from it.


If you want to run a script when an object is worn, give it a script attribute named changedworn. That will be run whenever its worn changes, so you'd start it with if (this.worn) { to check if the item has been worn or removed.


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

Support

Forums