Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Advanced Gambling Event, kids, gambling is bad. Much like this submission
Alt_Jack
post Jul 10 2010, 01:24 PM
Post #1


Level 19
Group Icon

Group: Revolutionary
Posts: 377
Type: Event Designer
RM Skill: Skilled
Rev Points: 40




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.

CODE
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
If Yes
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
If No:
text: too bad
Branch End
Else:
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. pinch.gif

This post has been edited by RzrBladeMontage: Oct 1 2010, 12:36 PM


__________________________

the Alternate Jacks event demo
As well as all of my images in one place, free for use.
Most of my images will be there, since this site takes too long to approve stuff and VX.net has no bulk uploader.
Go to the top of the page
 
+Quote Post
   
 
Start new topic
Replies
Alt_Jack
post Jul 11 2010, 09:19 AM
Post #2


Level 19
Group Icon

Group: Revolutionary
Posts: 377
Type: Event Designer
RM Skill: Skilled
Rev Points: 40




Thanks. Gambling is bad, but it's an easy alternative to killing a couple thousand monsters just for a new sword.


__________________________

the Alternate Jacks event demo
As well as all of my images in one place, free for use.
Most of my images will be there, since this site takes too long to approve stuff and VX.net has no bulk uploader.
Go to the top of the page
 
+Quote Post
   



Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 19th May 2013 - 12:05 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker