Can't Weigh Eggs in Tutorial
Elfhelm
29 Oct 2012, 12:42Noob here. Was following all of the steps in the Quest Tutorial Wiki, until I hit a wall here http://quest5.net/wiki/Custom_commands.
I am trying to weigh eggs with a weigh command. The eggs have a weight attribute of 250. The game output is: "It weighs " + object.weight + " grams."
The tutorial wants to read the attribute when the player weighs eggs.
weigh #object#
Print expression "It weighs " + object.weight + " grams."
The script is: If Object has attribute Object [then type in the word object] Attribute Name [weight].
Hope someone can help, because I really dig what I learned so far.
I am trying to weigh eggs with a weigh command. The eggs have a weight attribute of 250. The game output is: "It weighs " + object.weight + " grams."
The tutorial wants to read the attribute when the player weighs eggs.
weigh #object#
Print expression "It weighs " + object.weight + " grams."
The script is: If Object has attribute Object [then type in the word object] Attribute Name [weight].
Hope someone can help, because I really dig what I learned so far.
The Pixie
29 Oct 2012, 13:17It is the bit:
Print expression "It weighs " + object.weight + " grams."
What you have actually put is this:
Print message "It weighs " + object.weight + " grams."
A message is printed out "as is", complete with quotes and plus, an expression is worked out first them printed. If you look at the description for the egg object, you did it correct there.
Print expression "It weighs " + object.weight + " grams."
What you have actually put is this:
Print message "It weighs " + object.weight + " grams."
A message is printed out "as is", complete with quotes and plus, an expression is worked out first them printed. If you look at the description for the egg object, you did it correct there.
Elfhelm
29 Oct 2012, 14:26Thank you for the quick reply!
I changed the script from Print Text to Print Expression:
"\"It weighs \" + object.weight + \" grams.\""
Still no go.
> WEIGH EGGS
"It weighs " + object.weight + " grams."
Wondering if it's due to quotes or object.weight is not defined properly?
I changed the script from Print Text to Print Expression:
"\"It weighs \" + object.weight + \" grams.\""
Still no go.
> WEIGH EGGS
"It weighs " + object.weight + " grams."
Wondering if it's due to quotes or object.weight is not defined properly?

Pertex
29 Oct 2012, 14:43It should look like this:


Elfhelm
29 Oct 2012, 14:48Got it now. I retyped it out and works fine.
Now I can move forward, thanks to you both.
Now I can move forward, thanks to you both.