help with Varabiles please

I am trying to give an object a varabile called condition.

so here is what I did.

under advanced tab for object I went to edit properties and actions. I then added a this

condition=0

then went to setup tab for object and added a verb called check

I selected run script and heres what I have in the script block.


print"The condition of this Viper is #(Viper01):condition#"

now all I really want at this point is when the player types "check viper 01"

they get

The condition of this Viper is 00

but instead I get nothing at all, no I cant see that error or anything.
can someone please give me a hint at what im doing wrong?

Well, first off you're surrounding "viper01" with brackets... try:
#viper01:condition#

.. Secondly, you're using this command:
"check viper 01"
Objects shouldn't have spaces in their names.
Try using underscores, dots, or nothing in the name, so the commands would then be;
"check viper_01",
"check viper.01", and
"check viper01" respectively.

Actually, objects can have spaces in their names - although please let me know if you've had any problems doing this.

I'm mostly saying "object names shouldn't have spaces" due to the fact it changes it from one name into a multi-worded tag... Which should be the Alias.

It *may* add complications for certain scripting (may meaning "at your own risk").