Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Cards random

alfaren
Registered User
Quote
2023-04-09 22:33:47

Good afternoon. Please tell me which script is best used for the accidental loss of one of the cards in the deck?
There are several cards, you need to select one by pressing the button. Have there been similar projects for our engine? Thank you in advance for the answers.


Aiming_bullets
Guest
Quote
2023-04-10 03:58:35

I think you can use the action that sets random numbers for a variable in between two. for example if you want to check in deck of 53 card then you can use a min value of 0 and max value of 53, and use that variable to get the card you required. Each time you execute the action you will get a random number. means you get a random card.

you can along with this use if a variable has a value do something action, to execute if the number is 1 then change the texture of the card or do whatever you want to do there.


alfaren
Registered User
Quote
2023-04-10 19:51:23

Thank you for the answer. I am still very poorly versed in variables, I will study further. Thanks.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact