I am working on a deck of cards script based on the Italian deck. I was planning on making the final version of it a plugin. So far, I only have a random card generator. I need to remove a card from being drawn again after it has been drawn. I am not sure if this is even possible based on the way I have scripted my card generator. Any help would be greatly appreciated.
Version 4.72 and I apologize for the length.
Thanks!
Version 4.72 and I apologize for the length.
<aliases>
<alias
match="draw card"
enabled="y"
send_to="12"
sequence="100"
>
<send>
local total = 0
for i = 1, 1 do
result = math.floor (MtRand () * 40)
end
if result == 0 then
Send (" ")
Note ("Ace of Swords")
end
if result == 1 then
Send (" ")
Note ("Two of Swords")
end
if result == 2 then
Send (" ")
Note ("Three of Swords")
end
if result == 3 then
Send (" ")
Note ("Four of Swords")
end
if result == 4 then
Send (" ")
Note ("Five of Swords")
end
if result == 5 then
Send (" ")
Note ("Six of Swords")
end
if result == 6 then
Send (" ")
Note ("Seven of Swords")
end
if result == 7 then
Send (" ")
Note ("Page of Swords")
end
if result == 8 then
Send (" ")
Note ("Knight of Swords")
end
if result == 9 then
Send (" ")
Note ("King of Swords")
end
if result == 10 then
Send (" ")
Note ("Ace of Coins")
end
if result == 11 then
Send (" ")
Note ("Two of Coins")
end
if result == 12 then
Send (" ")
Note ("Three of Coins")
end
if result == 13 then
Send (" ")
Note ("Four of Coins")
end
if result == 14 then
Send (" ")
Note ("Five of Coins")
end
if result == 15 then
Send (" ")
Note ("Six of Coins")
end
if result == 16 then
Send (" ")
Note ("Seven of Coins")
end
if result == 17 then
Send (" ")
Note ("Page of Coins")
end
if result == 18 then
Send (" ")
Note ("Knight of Coins")
end
if result == 19 then
Send (" ")
Note ("King of Coins")
end
if result == 20 then
Send (" ")
Note ("Ace of Cups")
end
if result == 21 then
Send (" ")
Note ("Two of Cups")
end
if result == 22 then
Send (" ")
Note ("Three of Cups")
end
if result == 23 then
Send (" ")
Note ("Four of Cups")
end
if result == 24 then
Send (" ")
Note ("Five of Cups")
end
if result == 25 then
Send (" ")
Note ("Six of Cups")
end
if result == 26 then
Send (" ")
Note ("Seven of Cups")
end
if result == 27 then
Send (" ")
Note ("Page of Cups")
end
if result == 28 then
Send (" ")
Note ("Knight of Cups")
end
if result == 29 then
Send (" ")
Note ("King of Cups")
end
if result == 30 then
Send (" ")
Note ("Ace of Clubs")
end
if result == 31 then
Send (" ")
Note ("Two of Clubs")
end
if result == 32 then
Send (" ")
Note ("Three of Clubs")
end
if result == 33 then
Send (" ")
Note ("Four of Clubs")
end
if result == 34 then
Send (" ")
Note ("Five of Clubs")
end
if result == 35 then
Send (" ")
Note ("Six of Clubs")
end
if result == 36 then
Send (" ")
Note ("Seven of Clubs")
end
if result == 37 then
Send (" ")
Note ("Page of Clubs")
end
if result == 38 then
Send (" ")
Note ("Knight of Clubs")
end
if result == 39 then
Send (" ")
Note ("King of Clubs")
end</send>
</alias>
</aliases>
Thanks!