Objects Properties and assigning them dynamically.
Sphinx
10 Jan 2005, 20:44A few further questions on object properties:
I am using body,head,legs properties on character objects and have thought about using variables, in the properties value field, to allocate objects to these specific NPC properties.
I am using rooms for the inventory of each NPC object. Should I be doing some kind of look command to show the contents of the room when looking at a character?
Also i'd like to make objects dynamically replace their property variable when given another object with that same variable. Thus meaning an NPC can only wear one top or one pair of trousers.
Something along the lines of:
If an NPC is given an object with the property top, replace object with property top with #object#. Can you do if statements on object properties in QDK?
With your help, that's as far as i've got. Any help would be appreciated.
Thank you,
Mark
I am using body,head,legs properties on character objects and have thought about using variables, in the properties value field, to allocate objects to these specific NPC properties.
I am using rooms for the inventory of each NPC object. Should I be doing some kind of look command to show the contents of the room when looking at a character?
Also i'd like to make objects dynamically replace their property variable when given another object with that same variable. Thus meaning an NPC can only wear one top or one pair of trousers.
Something along the lines of:
If an NPC is given an object with the property top, replace object with property top with #object#. Can you do if statements on object properties in QDK?
With your help, that's as far as i've got. Any help would be appreciated.
Thank you,
Mark