Fearless Forums
/card command to draw a random card - Printable Version

+- Fearless Forums (https://fearlessrp.net)
+-- Forum: CityRP Server (https://fearlessrp.net/forumdisplay.php?fid=6)
+--- Forum: Suggestions (https://fearlessrp.net/forumdisplay.php?fid=7)
+---- Forum: Finished (https://fearlessrp.net/forumdisplay.php?fid=26)
+---- Thread: /card command to draw a random card (/showthread.php?tid=93402)

Pages: 1 2 3


/card command to draw a random card - Zodin - 07-23-2019

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.


RE: /card command to draw a random card - Conn - 07-23-2019

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.php?tid=80520&highlight=code)


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





RE: /card command to draw a random card - Ryan - 07-23-2019

It's this just /dice though?


RE: /card command to draw a random card - Conn - 07-23-2019

(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.


RE: /card command to draw a random card - Jonas - 07-23-2019

+Support


RE: /card command to draw a random card - Pollux - 07-23-2019

May as well make it a deck system for it to be more accurate to actual blackjack and justify a unique command.


RE: /card command to draw a random card - Forgee - 07-23-2019

Yes please! and also a poker system!


RE: /card command to draw a random card - Ducktard - 07-23-2019

big +support. Will allow for splitting cards in BJ etc


RE: /card command to draw a random card - Ranger - 07-23-2019

+support


RE: /card command to draw a random card - Woodi0 - 07-23-2019

+Support