My "ghost mode" thing was a bit lack-lustre (until you get about 5 posts down, when I make it into an actual skill), so I decided to submit this. There's already a similar gambling system, but apparently it had some problems. All you have to do is make sure your event code reads like this (ready?):
You'll need to make 3 aptly-named variables: Gold, Payout and Results.
text: Wanna play?
Condition Branch: Gold >1 [note](doesn't have to be 1. It's just to make sure you even [i]have [/i]money to gamble with, as the "else" value will comment to that effect)[/note]
Show choices: Yes/No
Input number: X digits-Variable: Gold [note](this can be as many digits as you want. All you're doing is setting a value for the "Gold" variable which will be subtracted if you lose)[/note]
Control Variable: Results> set Random number (1...3) [note](personally, I think that's reasonable. You can have it so that the higher the gold the player puts down, the worse the odds.I 'll talk about that after)[/note]
Condition Branch: If results =1
text: You Win!
Mood Bubble: Player, Exclamation Mark
Control Variable: Payout-set random number (1...100) [note] (also, whatever you want it to be. The randomness is based on the idea that they've got cash from other people)[/note]
Change Gold: + variable: Payout
text: too bad
text: you lose!
Mood Bubble: Player-Anger
change gold: - Gold [note](remember that number you put in earlier? It just got subtracted from your total gold. Quel domage)[/note]
Else: you don't have any money [note](going back to the top[/note])
That should be most, if not all of it. There's probably an error in there, but that's the gist of it (let me know what I screwed up). Anyways, for the variable odds, you need to make a bunch of similar condition branches that have "condition: < = X " then a different odds as your Results value. Ex: say you have "condition: Gold variable less than or = to 10" and another that had " < = 100" you could have 1/3 for the 10 value and 1/5 for the 100 value. This creates a higher risk (but with a higher payout) if you put down more gold, since the odds are worse.
This post has been edited by RzrBladeMontage: Oct 1 2010, 12:36 PM