Latest topics
» Help with trigger_usescript
Thu Sep 22, 2016 8:16 am by flanagon

» New Lugormod U# (Windows + Linux)
Thu Sep 22, 2016 7:03 am by Ufo

» Single Round Team Quest
Thu Jul 23, 2015 10:39 pm by agent6141

» iobject terminal
Thu Sep 25, 2014 2:39 pm by flanagon

» Usefull Downloads
Thu Aug 07, 2014 12:35 am by Kimmeh

» Television
Thu Jan 09, 2014 2:25 am by Mr. Swister

» Lugormod U# on server
Wed Jan 08, 2014 11:08 pm by Shadow

» Teleporter with effects
Thu Jan 02, 2014 5:51 am by Pierry

» Some possibly useful addons
Thu Jan 02, 2014 5:50 am by Pierry


Casino Game - Blackjack

View previous topic View next topic Go down

Casino Game - Blackjack

Post by Zkyo on Tue Jul 27, 2010 12:42 pm

This basically just prints a random message for drawing the blackjack cards. It is player-run, so you will need 2 players. You can set your own wagers, or whatever you want.

Terminal for drawing cards. Option 1: Draw (Draw 2 cards), Option 2: Hit (Draw 1 card), Option 3: Stay (Stick with what you have)
Code:
/place lmd_terminal 0 model,map_objects/imperial/controlpanel,spawnflags,2,message,Blackjack - Player 1,cmd,Draw,cmd2,Hit,cmd3,Stay,target,player1_draw,target2,player1_hit,target3,player1_stay,modelscale,.5

Drawing
Code:
/place target_delay * targetname,player1_draw,target,player1_draw2,wait,0.5
/place target_delay * targetname,player1_draw2,target,player1_draw3,wait,0.5
/place target_print * targetname,player1_draw,spawnflags,8,message,^3Player 1 is drawing...
/place target_relay * targetname,player1_draw2,target,player_random
/place target_relay * targetname,player1_draw3,target,player_random

Hitting
Code:
/place target_delay * targetname,player1_hit,target,player_random,wait,0.5
/place target_print * targetname,player1_hit,spawnflags,8,message,^3Player 1 is hitting...

Staying
Code:
/place target_print * targetname,player1_stay,spawnflags,8,message,^3Player 1 is staying.

The Cards (2-10 A K Q J)
Code:
/place target_random * targetname,player_random,target,player_card
-----------------------
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^02
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^03
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^04
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^05
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^06
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^07
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^08
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^09
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^010
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew an ^0Ace
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^0Jack
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^0Queen
/place target_print * targetname,player_card,spawnflags,8,message,^3Drew a ^0King

Zkyo
Admin
Admin

Posts : 384
Join date : 2010-03-29
Age : 23
Location : Grand Rapids, Michigan, USA

View user profile http://lugorhelp.forumotion.com

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum