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 - Slots

View previous topic View next topic Go down

Casino Game - Slots

Post by Zkyo on Thu Jul 22, 2010 2:42 pm

Personally, i hate the misc_slotmachine entity. Yes, its convenient, but i find it really boring. So, i made my own slots Very Happy With these slots, you actually have to try to line up three symbols (-. =. or +).

Payouts:
Cost to play: 5 Cr
- - -: 50 Cr
= = =: 100 Cr
+ + +: 200 Cr

The Slot Terminal
Code:
/place misc_model_breakable 0 model,map_objects/imperial/con1,spawnflags,8385,message,Slot Machine,count,5,target,slots

Target_random used to get random results
Code:
/place target_random * targetname,slots,target,slots_random

Relays to winning messages/credits
Code:
/place target_relay * targetname,slots_random,target,slots_-
/place target_relay * targetname,slots_random,target,slots_=
/place target_relay * targetname,slots_random,target,slots_+

Messages for winnings and credits
Code:
/place target_print * targetname,slots_-,spawnflags,4,message,- - -
/place target_print * targetname,slots_-,spawnflags,20,message,^4You got - - -! You win 50 Cr!
/place target_credits * targetname,slots_-,count,50
/place target_print * targetname,slots_=,spawnflags,4,message,= = =
/place target_print * targetname,slots_=,spawnflags,20,message,^4You got = = =! You win 100 Cr!
/place target_credits * targetname,slots_=,count,100
/place target_print * targetname,slots_+,spawnflags,4,message,+ + +
/place target_print * targetname,slots_+,spawnflags,20,message,^4You got + + +! You win 200 Cr!
/place target_credits * targetname,slots_+,count,200

Losing messages. Basically just change the message key to match all of the possible outcomes.
Code:
/place target_print * targetname,slots_random,spawnflags,4,message,[Insert Outcome]

Losing Outcomes
Code:
- - =
- - +
- = -
- + -
= - -
+ - -
= = -
= = +
= - =
= + =
- = =
+ = =
- = +
- + =
= + -
+ = -
= - +
+ - =

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

Re: Casino Game - Slots

Post by Zkyo on Thu Jul 22, 2010 2:45 pm

sorry its a bit late prince. more to come... eventually -_-


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

Re: Casino Game - Slots

Post by Prince on Mon Jul 26, 2010 4:03 am

Thx awsome guide. make more xD

Prince
New User
New User

Posts : 19
Join date : 2010-05-16
Age : 22

View user profile

Back to top Go down

Re: Casino Game - Slots

Post by Pierry on Sat May 12, 2012 1:10 pm

Updated. Fixed some messes in the codes.

_________________

Geth will take this easily.

Total Eclipse wrote:yes they do take this ass beating easily. Clone army vs Geth is like Pacquiao vs a 80 year old man with polio

Pierry
Admin
Admin

Posts : 154
Join date : 2010-04-26
Age : 24
Location : Cybertron

View user profile

Back to top Go down

Re: Casino Game - Slots

Post by Sponsored content Today at 1:18 pm


Sponsored content


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