Axe Software Forums
  Quest Developer Forum
  Help with something


Author Topic:   Help with something
Newbie posted 27-08-2001 11:37 GMT     
well im trying to make it if you can have cash wheni tell it to decrease it i put dollar:-5 did i do this wrong?
Luridii posted 27-08-2001 12:04 GMT          
If your using Quest 3 then providing you have the dollar status variable set up then you do

set numeric <dollar; %dollar% - 5>

that help?

Newbie posted 28-08-2001 12:01 GMT          
What status Variable?
Computer Whizz posted 28-08-2001 01:04 GMT          
Right....

First off make sure that the "asl version" is 284 or 285! Then, in the define game block then put this:

define variable <dollar>
type numeric
value <10>
display <dollars -- !>
the ! is to display the amount of the variable.
end define

Now that should set up the status variable. They are just like collectables, but they can be set to do procedures when they change and can be handled just like normal variables!

Computer Whizz

Newbie posted 28-08-2001 02:20 GMT          
Okay i donno where this define block is and i donno how to check my version
Computer Whizz posted 28-08-2001 19:49 GMT          
Well, how did you put in "set <dollar; -5>" then?

To do this you should have some understanding of the language!?

Anyway, the define game block is what an area is called. This area is the text inbetween the "define game <game>" and "end define". Now this determines special parts of the game, eg.
What ASL version it uses, what its copyright info and commands are, and other such (universal) stuff. To check, or change, the ASL version, just go down to the piece of text that says "asl version <219>" or something like that and make sure it is 284 or 285!

You can find a useful document here:
http://www.members.aol.com/agbampton/q284a4.pdf . This is quite useful if you want to print out a copy for easy usage, to search for words easily, and is nicer to look at (for some reason!?!?) then the windows help file that comes with Quest 3.0.

This has encouraged me to venture into raw ASL programming and has gotton me into frequent trouble .

Computer Whizz

carlii posted 29-08-2001 07:00 GMT          
You guys are all freaks!
I know the solution to your problem.
You are trying to supply him with advice that he doesn't understand. He's a newbie for crying out loud (his bloody nickname is that!!)
Well if you make a money go down -5 well then you're shooting yourself in the foot.

You should instead say go down 5 NOT -5 because you don't have say its negative because it already is.

MATHEMATICALLY:

go down -5
= - -5
= 0

Newbie posted 29-08-2001 09:49 GMT          
Okay ive tried everything you guys say i start my game but it still doesnt lower it :(
Computer Whizz posted 29-08-2001 22:14 GMT          
You have to set a "trigger".

If you use QDK then go into the game/global settings (a globe picture should be in the main window.... click it!). Go into the global settings there and it should allow you to set "custom commands". In here set a command "buy #item#" (without the quote marks.). In the code put:
set the variable/collectable (or something similar) dollar; %dollar% - 5.
This should change the dollar whenever you type in "buy" followed by a word. Later on you can use the variable "item" to restrict the player so he only buy's the item you want, or it takes away different ammounts of money.
If you want some demo's then just ask, I'm sure me and Al wouldn't mind knocking up some 5 minute-ers!

Computer Whizz