the infamous error...
what this error means is that you got your two things as different Attribute Types, and quest~computer can't comprehend:
for an example:
string + integer
(or as is your error: object + integer)
to quest: an integer is an actual amount
to quest: a string a merely a collection of characters~symbols
to quest: an object is a physical entity~thing within quest's game world (during game play, though it may be hidden to the peson playing the game, hehe, such as making 'storage or dumping' Objects~Rooms, aka 'data objects' as is used as a coding term by coders).
so, how do you (or quest), combine these two things ? both humans and quest~computers have absolutely no idea how to do this.
one of your things is an (Attribute Type: OBJECT) and the other thing is (Attribute Type: INTEGER)
or... your thing(s) doesn't exist, you never created the attribute~object~whatever
-------
I might have messed up.... my apologizes!
try using this as your script instead to create your initial Attribute's settings (it's name, type, and value):
http://docs.textadventures.co.uk/quest/scripts/set.html
set (object, string attribute name, any type value)
so for example:
set (player, strength, 0)
then, see if this script works:
player.strength = player.strength + 1
-------
or... try this as well...
http://docs.textadventures.co.uk/quest/ ... toint.html
http://docs.textadventures.co.uk/quest/ ... tring.html
http://docs.textadventures.co.uk/quest/ ... ouble.html
in your 'start' script:
(for example only)
player.strength_integer = ToInt (50)
or
game.strength_integer = ToInt (50)
vs (the reverse conversion)
player.strength_string = ToString (50)
or
game.strength_string = ToString (50)---------------------
numbers (etc, -1, 0, 1, 1.4, etc) can be EITHER a String (the character symbol for~of that number) or an Integer (the physical amount of~for that number)
so we got the 'ToXXX' Scripts to convert between these two (three with double) attribute types:
(conceptually, not actual syntax)
Type:String = ToString (any Value: letters and~or numbers symbols~characters: alphanumeric)
Type:Integer = ToInt (a number symbol~character value only: numeric)
Type:Double = ToDouble (a number symbol~character value only: numeric)
---------------------
when you're using this script:
Object.Attribute = Value_or_Expression
there's a few special pre-defined values:
('ball' is just an example, you can use any collection of characters~symbols that you want)
Object.Attribute = ball // no quotes on ball, tells quest that this is Attribute Type: Object (aka an Object)
Object.Attribute = "ball" // quotes on ball, tells quest that this is Attribute Type: String (aka merely a collection of characters~symbols)
Object.Attribute = 5 // quest knows that numeric characters~symbols are integers, but as we both learned, you must SET the Attribute as being an integer (via either the 'set' script or via the 'ToInt' script), before this type of code line can work properly.
Object.Attribute = "5" // quotes on 5, tells quest that this is Attribute Type: String (aka merely a collection of characters~symbols)
Object.Attribute = true~false // 'true' or 'false' values, are understood as being boolean~flag values.
Object.Attribute = result // 'result' is a special default variable, which will be set to: 'result = your_input_or_choice' for the 'get input' and the 'show a menu' Scripts
and maybe there's a few more special value cases... meh.
------------------------
in the online version, do you have these windows~options in the GUI~Editor ??? :
http://docs.textadventures.co.uk/quest/ ... butes.htmlas I'm not familiar with the online version (I've only used offline + Text Adventure)
HK edit... err nvm... the link tells me (unless it hasn't been updated yet) this already:
"Note: The attributes editor is currently only available in the Windows desktop version of Quest"