Q = (my) question
A = (your) answer
R = (my) response
lol
R1. unless you've got a reason to use the online~web version, as of right now, the offline~computer~desktop~downloaded version has much more functionality~capability (and noob-friendly at that, too), making it easier for you do what you want and also for us to help you too!). Though, you can certainly keep working with the online~web version, we'll get you learning to use quest, eventually (hopefully sooner rather than later, of course, lol).
I believe that the online~web version doesn't have the details on the right side~pane, right? ie, it doesn't look like this:
http://quest5.net/wiki/File:Blankgame.pngso, if I remember right about the online~web version, you only got the:
haha (I got such bad memory!), as I re-looked up this thread:
viewtopic.php?f=10&t=3914anyways, for the online~web version, you only got the (and we'll be using Jayna's post to guide you through this too):
(you're going to have to do some slight coding, ie typing in some code~script lines, but it's not too difficult *hopefully* as can be seen below)
Jayna wrote:To initialize an attribute in the online version, you can do this:
- Click on the "game" object.
- Click on "Script"
- Click the "+ Add new script" button
- In what pops up, click "Variables" on the left.
- Then, on the right, click "Set a variable or attribute"
- Hit OK
- In the box beside "set variable", type:
player.cash
- In the box to the right of "expression", type:
0
That should help a bit. You can do the same for any other variables you wish to add - just assign them yourself in the game start script.
Can you follow Jayna's instructions~steps? This will create (add) an attribute to an object. We need to do this, as we can't add, subtract, multiply, and~or divide upon an attribute's value, when there is no such attribute and its value to do so upon, lol.
Do note:
we are *NOT* using the "IncreaseObjectCounter" Script choice, as this can only change it by "+1" amount, when you want to change it by a greater amount, lol.
In Jayna's example:
player.cash
player.cash=0
an explanation of the code lines above:
Object (Name Attribute of Object; it's ID tag for game engine to recognize): player
Object <connector> Attribute: . (period~dot)
Attribute (of "player" Object): cash
Operator (for~of the Value; Attribute <connector> Value): = (equals sign)
Value (of "cash" Attribute): 0 (your starting amount)
I haven't used the online~web version at all (too lazy to do so ~ have to create an account ~ too much work ~ lol), but hopefully you can do this (where ever or whenever you want~need it to be done):
to now add, subtract, multiply, and~or divide upon your Attribute's Value:
(Run as a script ~ if this first option choice exists) -> Add a~new script -> Variables -> Set a variable or attribute ->
Type this in (still using~continuing with Jayna's example):
the [ ]'s is what should already be there on the quest screen, so you don't type in what is inside the [ ]'s below
the ( )'s is what you choose to select as your choice for this drop down box, so you don't type in what is inside the ( )'s below, as well, lol
you can change the "100" to whatever amount you want, I'm just using it as an example amount.
Addition:
[Set variable] player.cash [=] (EXPRESSION) player.cash + 100
Subtraction:
[Set variable] player.cash [=] (EXPRESSION) player.cash - 100
Multiplication:
[Set variable] player.cash [=] (EXPRESSION) player.cash * 100
Division:
[Set variable] player.cash [=] (EXPRESSION) player.cash / 100
Conceptually (using Addition as the example equation):
the "0" can be changed to whatever amount you want, it is just used as an example amount by Jayna and me.
player.cash (starting or old amount) = 0
player.cash (starting or old amount) = 0
player.cash (new amount) = player.cash (starting or old amount) + 100
player.cash (new amount) = 0 + 100
player.cash (new amount) = 100
player.cash (new amount) = 100
-----------------------------------------------------
R2. You should go through the tutorial (well of what you can do in~with the offline~web version), and even if you can't do most of it, still go through all of it, reading it, as it'll help you to understand how to do a lot of this stuff that you're having trouble with right now.
-----------------------------------------------
R3. the GUI (Graphical User Interface) is simply windows~screens with buttons, folders, icons, and etc stuff for you to use (mostly with~via~for being able to use your mouse or fingers), making it easier and simplier to do stuff. All modern computers and mobile devices (via their OS ~ operating system: windows xp, windows vista, windows 7, windows 8, MacOs, and etc) utilize a GUI. Very old computers could only use "command line prompts" (coding ~ typing in commands of what you want to do), which obviously is very intimidating for many people. Command line prompts still exist for a good reason: they are even much more powerful, than their prototype of MS-DOS, but it takes coding~programming skill~knowledge to use them properly (as with that power, comes danger: you can completely make your computer or other electronic device not ever work again).
the GUI (Graphical User Interface) ~ Editor (for game making) mode is simply this stuff (windows with buttons and etc making it easy to do stuff):
http://quest5.net/wiki/File:Blankgame.pngand this is what the Game Play mode looks like (on the offline~computer~desktop~downloaded version, using the text adventure choice, not the game book choice), the GUI~Editor ~ Game Play:
http://quest5.net/wiki/File:Playblankgame.pngAnd, in-Code (or Quest's Code View mode), it looks like this (example of~using a newly created game of the downloaded~offline~computer~desktop version, using text adventure game choice):
<asl version="540">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="Testing Game Stuff">
<gameid>d83ba5bb-2e3c-4f31-80c9-3e88a2dc082c</gameid>
<version>1.0</version>
<firstpublished>2013</firstpublished>
</game>
<object name="room">
<inherit name="editor_room" />
<object name="player">
<inherit name="editor_object" />
<inherit name="editor_player" />
</object>
</object>
</asl>
if you're willing, I can teach you to learn to use~work with~do coding, and it might be useful for you. Let my know if you want to learn to code with quest games. It's really not too terribly hard to learn, Alex did an incredible job, making it very noob-friendly to learn and use, despite how it seems right now to you. I'm sure you can learn it quickly, you'll surprise yourself, hehe.
---------------
R4. let's first get you able to change (addition, subtraction, multiplication, division) an object's (integer) attribute's value in the sections above on this post, and then afterwards, we'll help you with how to change an object itself's amount. To begin:
it involves at the most basical level:
CloneObject, CreateObject, RemoveObject, DestroyObject, and~or MoveObject
-----------------
R5. Errors are "scary" because they attempt to tell you what the problem is (and thus how to fix it), but this can be cryptic, and thus "scary". It does take some effort to be able to learn and understand what an error is trying to say~tell you about what the problems are that you've got, hehe. I still am trying learn the error messages myself, sighs.