Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: gamemaka on Fri 01/04/2005 09:02:54

Title: Random Events
Post by: gamemaka on Fri 01/04/2005 09:02:54
Hello,

I am currently developing an RPG with turn based fighting. When the character finishes the fight, is there a way to have an event afterwards that randomly chooses what to give the player as a prize. Sort of a like a 1 out of 2 chance they get a potion or 2 out of 3 times they'll get money. I was currently looking at Asporia, and realized they have random events as well. If the creator is reading this, how did you do it? and How do I do it for my setup that I have explained? Thanx.
Title: Re: Random Events
Post by: Radiant on Fri 01/04/2005 09:22:11
Look up the Random() function in the manual.
Title: Re: Random Events
Post by: gamemaka on Fri 01/04/2005 09:43:46
Will do. Thanx.