Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: on Sat 31/05/2003 07:43:43

Title: Multiplying and Dividing
Post by: on Sat 31/05/2003 07:43:43
Is there any functions to ultiply and divide or do I have to write my own functions to do it
Title: Re:Multiplying and Dividing
Post by: Proskrito on Sat 31/05/2003 15:21:00
use * and /
if you want (for example) multiply variables 'first' and 'second', and store the result in variable 'third', just write:
third=first*second;
it´s the same for dividing, but with / instead of *.
i´m not sure, but it should be in the manual.

(i think this should be in the begginers technical forum) ;)
Title: Re:Multiplying and Dividing
Post by: Scorpiorus on Sat 31/05/2003 15:40:12
I had opened the manual and couldn't find anything about *, / operators. Yeah those operators functions are trivial but anyway.... Chris are they missing or maybe I just can't find their description.

-Cheers
Title: Re:Multiplying and Dividing
Post by: on Sat 31/05/2003 18:47:05
oops i didn't think it would be so easy. sorry.
Title: Re:Multiplying and Dividing
Post by: Pumaman on Sun 01/06/2003 16:30:42
Hmm you're right, these aren't mentioned anywhere... I could have sworn I put them in the scripting tutorial, but obviously not. I'll update it for the next version.