- Joined
- Oct 1, 2018
- Messages
- 63
Hi guys. I have 2 problems with my slotmachine. A map i have worked on for long time now. First i will explane, how i made it, since not everyone nows how a slotmachine works.
-Me too. So i've come up with this idea:
I wanted to create a slotmachine with 5 wheels and 3 symbols (units). I wanted a scatter and an increasing jackpot. More than just 5 winning lines and some day maybe a bonus game when something special happens.
So i created a unity-type variable with an array of 33 to create a wheel. When you write it on a paper and put the ends together you know what i mean.
When the player does a spin, 5 random-numbers for each wheel 1, will be created and the units spawn. That was quit much if/then/else stuff, since i had to check wich unit comes before and after. To increase the thrill, i let 'em spawn backwards to crush all hopes when the last unit is spawned. (Not when 3 wheels have stoped. Thats kind of dumb from the originals)
So far so good. I made trigger to check if a there is a win, by unit-type comparison of the units building the winning lines. Then i added specialeffect triggers using blitz effects.
I have also managed to save and load the jackpot via gamecache!
The problems i have is, that not each time the win is recognized and the slot runs just through. I have this problem also by manual spinn. When that happens, the special effects does not accour. (What is right so far, but not when ther IS a win -.-)
The second problem is the defense value of my dummy unit. I have tried everithing to clean the Interface from unused stuff, but this stupid zero (also tried 9999999999) does not disappear. I cant overlap it with an bigger blp in black for the Armor type eather. That tiny little zero realy sucks!
Hope someone can help me with this 2 problems. Please download it, check it out and tell me where i am wrong.
-Me too. So i've come up with this idea:
I wanted to create a slotmachine with 5 wheels and 3 symbols (units). I wanted a scatter and an increasing jackpot. More than just 5 winning lines and some day maybe a bonus game when something special happens.
So i created a unity-type variable with an array of 33 to create a wheel. When you write it on a paper and put the ends together you know what i mean.
When the player does a spin, 5 random-numbers for each wheel 1, will be created and the units spawn. That was quit much if/then/else stuff, since i had to check wich unit comes before and after. To increase the thrill, i let 'em spawn backwards to crush all hopes when the last unit is spawned. (Not when 3 wheels have stoped. Thats kind of dumb from the originals)
So far so good. I made trigger to check if a there is a win, by unit-type comparison of the units building the winning lines. Then i added specialeffect triggers using blitz effects.
I have also managed to save and load the jackpot via gamecache!
The problems i have is, that not each time the win is recognized and the slot runs just through. I have this problem also by manual spinn. When that happens, the special effects does not accour. (What is right so far, but not when ther IS a win -.-)
The second problem is the defense value of my dummy unit. I have tried everithing to clean the Interface from unused stuff, but this stupid zero (also tried 9999999999) does not disappear. I cant overlap it with an bigger blp in black for the Armor type eather. That tiny little zero realy sucks!
Hope someone can help me with this 2 problems. Please download it, check it out and tell me where i am wrong.