arithmetic
ramtha
21 Mar 2006, 21:15Asl confuses me. I'll say that now. I feel much more comfortable working with Qdk, but I still cant get it where i can add, subtract, multiply, or divide status variables.
I keep getting a run time error 13.
If you would be willing to tell me how to fix this, or to give me a better description on how to put it in with ASL coding I would be very happy.
I keep getting a run time error 13.
If you would be willing to tell me how to fix this, or to give me a better description on how to put it in with ASL coding I would be very happy.
Elexxorine
23 Mar 2006, 08:12to add codes in asl, open up your game with notepad. find the bit that look's similar to where you want it in QDK. when learning asl a used to use QDK to make a message of something that'd stand out, go into notepad, find it and replace it with whatever code i was given. that's how i learnt how asl worked, by using QDK and seeing what the code looks like.
working with numbers is easy: in QDK go to variables/set a numeric and type the name of the variable you want the result to be in. in the 'set to what?' box put something like '%num1% / %num2%'. this means that %num1% would be divided by %num2% and put into whatever variable you wanted.
in asl it'll look like this: set numeric <whatever; %num1% / %num2%>
don't put % or # in the first bit as you've set it by saying 'numeric'.
i hope this helps.
working with numbers is easy: in QDK go to variables/set a numeric and type the name of the variable you want the result to be in. in the 'set to what?' box put something like '%num1% / %num2%'. this means that %num1% would be divided by %num2% and put into whatever variable you wanted.
in asl it'll look like this: set numeric <whatever; %num1% / %num2%>
don't put % or # in the first bit as you've set it by saying 'numeric'.
i hope this helps.
paul_one
23 Mar 2006, 20:35http://www.compwhizz.freeserve.co.uk/asldemos/multi.asl
Gives two examples in room commands.
Load it into QDK and you should be able to see how it works.
Gives two examples in room commands.
Load it into QDK and you should be able to see how it works.
paul_one
29 Mar 2006, 10:25Did that file help you any?