I am trying to make a slot machine with AGS but for some reason the reward system isn't working.
my script looks somewhat like this, what is wrong with it?
int cash; // your money
int reward1 =20; // the prize you win for three cherry's in a row
int slot1; // the first slot
int slot2; // the second slot
int slot3; // the third slot
slot1 = random(3); //gives the slot a number in wich 0 = bar, 1 = cherry, 2 = lime etc.
slot2 = random(3);
slot3 = random(3);
if(slot1 == 1 && slot2 == 1 && slot3 ==1) //three cherry's in a row
{
cash = (cash + reward1); // the prize added to your money
return cash; // your new amount of money
}
my script looks somewhat like this, what is wrong with it?
int cash; // your money
int reward1 =20; // the prize you win for three cherry's in a row
int slot1; // the first slot
int slot2; // the second slot
int slot3; // the third slot
slot1 = random(3); //gives the slot a number in wich 0 = bar, 1 = cherry, 2 = lime etc.
slot2 = random(3);
slot3 = random(3);
if(slot1 == 1 && slot2 == 1 && slot3 ==1) //three cherry's in a row
{
cash = (cash + reward1); // the prize added to your money
return cash; // your new amount of money
}