I am trying to create a use script on a piece of chalk that will allow me to mark several different rooms with an increasing number.
So far I have this, which isn't working
<object name="chalk">
<inherit name="editor_object" />
<look>A lump of chalk, it could come in handy if you need to mark something.</look>
<take />
<drop type="boolean">false</drop>
<dropmsg>You feel this is too useful an item to leave behind, you might need to mark something with it.</dropmsg>
<use type="script">
if ((GetBoolean(game.pov.parent, "BaseRoom"))) {
msg ("You leave a mark upon the stone floor.")
}
else {
msg ("You see no reason to mark anything here.")
}
</use>
</object>
I have gotten as far as the first if statement so far, and obviously got it wrong

.
Somehow I need to set an attribute to rooms that are "markable". It just so happens that all rooms that I have deemed markable, inherit the name "BaseRoom" - jaynabonne will know why that is

.
There are 2 if statements that need to be returned before the room can be marked
[list=1][*]is the room markable? and[/*:m][*]has it already been marked?[/*:m][/list:o]
Presuming the answer to 1 is true and 2 false, we can mark the room.
I am envisaging this will be done by creating an object "a chalk mark", but also numbering that object so that when the room description is displayed, it will also say "a number "
n" has been scratched on the floor in chalk". This number will be taken from a counter associated with the chalk.
This number once marked, cannot be used again so the counter on the chalk is increased by 1.
The important thing is that when the chalks counter increase - the numbers already scribed do not.
HELP