Defining and checking a variable (SOLVED)
gollummen
13 Aug 2016, 13:42I am pretty ned to Quest, but I am making a game that is comming along nicely and I am enjoying it alot!
But I have a very simple issue that I can“t solve and looking in the help sections have not, well, helped.
I need to define a variable and check it using only the online GUI.
In the game my hero has a spaceship and can travel to different planets. So I am thinking if I could have a simple variable and assing each planet a number, then when the player try to travel to a planet I could check if the ship is already there, and if it is not, move it there and change the variable to the new planets number.
Any help will be much appriciated.
hegemonkhan
13 Aug 2016, 19:20see if this helps you:
http://textadventures.co.uk/forum/samples/topic/5559/attributes-and-if-script-guide-by-hk (scroll down a bit to the 'two super scripts: set a variable or attribute script and if script' section)
I don't know the online quest, but it should have / be-able-to 'add new script' for whatever Elements it has (the 'game' Game Object's 'start' Script Attribute/ Objects' Script Attributes / Verbs, Functions, Commands, Turnscripts, Timers, etc).
ask if you need any help, or need explanation, are confused with anything, etc, laughs (I'm not the best at explaining/helping with stuff, sighs).
gollummen
15 Aug 2016, 10:16I found out that only the Windows version of Quest has the attributes tab. I am now using the Windos version and now the help files makes sense :-)
LadySnowflake
17 Aug 2016, 04:09The thing that I don't understand is that the web version doesn't have an "attributes" tab and isn't supposed to be able to support custom attributes at this time. And yet, if you run a script, a "variables" tab shows up, and it gives you three different options under that tab that are related to setting attributes.
The Pixie
17 Aug 2016, 07:26The online version does support custom attributes, it just has no "Attributes" tab, so it is awkward to do. That means you can set attributes in scripts, but not in the UI. Makes you wonder why there is no "Attributes" tab...
LadySnowflake
17 Aug 2016, 11:08I knew there had to be a way. I bet it's a clever ploy to get people to download the desktop version. ;)