/card command to draw a random card
#1
Title of Suggestion: /card command to draw a random card

Description
A very simple system where the player can type /card and it draws a random card with a suit. For example **NoidZ draws an Ace of Spades**

Why?
With the new rule in place that games have to remain in-game to be wholesomely monitored for legitimacy and safety purposes, I feel it would be exceptional to implement a very simple command similar to the dice command to draw a random card with a suit to open up more possibilities and to enhance the current state of card game RP.

This is a good step up to improving what we currently have available. This will not only benefit Blackjack but it supports any card game.
The following 2 users Like Zodin's post:
  • Jessixa, Slaint
#2
Big +Support

Really easy to do too, something like this?



Spoiler :
Code:
-- Command to print a random playing card
cityrp.command.add("card", "b", 0, function(ply)

   local suits = {"Spades", "Clubs", "Hearts", "Diamonds"}
   local value = {"Ace", "2", "3", "4", "5", "6", "7", "8", "9", "10", "Jack", "Queen", "King"}

   local card = table.Random(value) .. "of " .. table.Random(suits)

   -- output to players

end, "Commands", "<none>", "Picks a random card")

(basing it off Snowred's comment on https://www.fearlessrp.net/showthread.ph...light=code)


Check second post, bit better done with /deck command for 1-6 decks.


Regards,
Connnnnnnn

Consider giving me a rep point here.

The following 7 users Like Conn's post:
  • Zodin, Devon, Lewwings, Rossi, Flame.., RoCKy, Slaint
#3
It's this just /dice though?
Ryannnnnn
Fearless Full-Time Roleplayer

[Image: qVdVN2yh.jpg]
#4
(07-23-2019, 04:13 PM)Ryan Wrote: It's this just /dice though?

No, dice shows a number.
This would display something like **The card is the Ace of Hearts**

Quite different as there is the possibility to show the character values (Ace, Jack, Queen, King) and also the suits.
Regards,
Connnnnnnn

Consider giving me a rep point here.

#5
+Support
[Image: edfa8a344463b04e45f386ad4525099e.png]
#6
May as well make it a deck system for it to be more accurate to actual blackjack and justify a unique command.
Pollux
Fearless Management
bork
__________________________________________________________________
The following 1 user Likes Pollux's post:
  • Chumps
#7
Yes please! and also a poker system!
The following 1 user Likes Forgee's post:
  • Chumps
#8
big +support. Will allow for splitting cards in BJ etc
Where am I?
#9
+support
#10
+Support
[Image: YgVtJQA.png]


Forum Jump:


Users browsing this thread: 1 Guest(s)