I was looking for a way to implement a skill where you can draw a card from a deck. I think it can totally be achieved through some tiny scripting and custom formula bar, but I just don't know how to properly code it as a ruby noob.
Here's the logic of what I want:
1. You randomize a number from a set of numbers
2. You pull out the randomized number from 1. out of the set
For example, you randomize 5 numbers(1,2,3,4,5), and you got 2. The 2 is pulled out of the set. The next time you use this randomize skill, you'll randomize from just 4 numbers(1,3,4,5) without number 2, as if that card has been pulled out.
I figured that I could just keep randomize the same set of number again and again without pulling any number out, but it kinda defeat the purpose of drawing from a deck a bit.
The reason I post this here is because it's not really a full blown script, and I know that it must be able to do with formula bar, but I just don't know how, so I'd love some help in this aspect.
Here's the logic of what I want:
1. You randomize a number from a set of numbers
2. You pull out the randomized number from 1. out of the set
For example, you randomize 5 numbers(1,2,3,4,5), and you got 2. The 2 is pulled out of the set. The next time you use this randomize skill, you'll randomize from just 4 numbers(1,3,4,5) without number 2, as if that card has been pulled out.
I figured that I could just keep randomize the same set of number again and again without pulling any number out, but it kinda defeat the purpose of drawing from a deck a bit.
The reason I post this here is because it's not really a full blown script, and I know that it must be able to do with formula bar, but I just don't know how, so I'd love some help in this aspect.