help with Varabiles please
spacemonk
27 Jan 2007, 23:21I 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?
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?
paul_one
28 Jan 2007, 04:50Well, 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.
#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.
Alex
29 Jan 2007, 14:03Actually, objects can have spaces in their names - although please let me know if you've had any problems doing this.
paul_one
29 Jan 2007, 16:52I'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").
It *may* add complications for certain scripting (may meaning "at your own risk").