Too Heavy

MatCauthon137
29 May 2012, 05:21
I am probably over thinking this, but. Here is what I want to happen. I have a "rickety old table" in the room that the editor calls table1. Also, in the room are several objects of different volumes that you can place on the table. What I want to happen is...
If the table contains objects totalling more than 50 in "volume" the table will collapse. I can get all of that EXCEPT how to check for current volume on the table. I don't think I quite understand how to use the getvolume function correctly. Thanx in advance. I have attatched a copy of my code so far. table in question is in spellroom1

Pertex
29 May 2012, 07:36
The function GetVolume needs 2 parameter. You can see it here: http://quest5.net/wiki/GetVolume

MatCauthon137
29 May 2012, 13:54
Ok so I changed that line to getvolume (table1 , false inclusiveobject)

I am getting the error:
Error running script: Error compiling expression 'GetVolume ( table1 , false inclusiveobject)': Unknown object or variable 'false inclusiveobject'

I have even tried using a separate function to call the getvolume.

No luck.

Pertex
29 May 2012, 14:58
try getvolume (table1 , false )

MatCauthon137 wrote:Ok so I changed that line to getvolume (table1 , false inclusiveobject)

I am getting the error:
Error running script: Error compiling expression 'GetVolume ( table1 , false inclusiveobject)': Unknown object or variable 'false inclusiveobject'

I have even tried using a separate function to call the getvolume.

No luck.

MatCauthon137
29 May 2012, 15:06
You are genius. That worked, thanx