arithmetic

ramtha
Asl 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.

Elexxorine
to 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.

paul_one
http://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.

paul_one
Did that file help you any?

This topic is now closed. Topics are closed after 60 days of inactivity.

Support

Forums