Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Dr Snark on Mon 04/08/2003 18:28:46

Title: Random # at the Begining
Post by: Dr Snark on Mon 04/08/2003 18:28:46

I need some help.

I need to call up a random Number at the Begining of the Game

then call it with a Scrpit from a inventory item.
Title: Re:Random # at the Begining
Post by: Spyros on Mon 04/08/2003 20:35:50
in the start up function put a
rand_num=Random(100); // if you want a number from 0 to 100

then in the inventory interaction you can call the rand_num
Title: Re:Random # at the Begining
Post by: Dr Snark on Tue 05/08/2003 03:51:51
Thanks Spyros it worked like a Charm :D