Author Topic: Need help with a dart game script  (Read 516 times)

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« on: March 15, 2011, 08:03:10 am »


               Greetings,

I am by no means a scripter.  I can read them, sometimes.  But I know little to nothing about writing them.

I had this idea for a Dart Game script and was hoping someone can write this up - assuming all the elements detailed below can be done in a script.  What follows is the details as I thing the game would work. (sorry if the formatting gets a little quirky - copied from spreadsheet.






Dart Game














Script to be added to the "on hit" or "on damaged" script of a plot item Dart Board placeable
















Large Section

1-20 as numbered






Outer Ring


Double as numbered







Inner Ring


Triple as numbered






Outer Bull

25






Bull's Eye!

50






 







Factors determining if and where dart hits the board







3d20

range 3-60






Add Dex Bonusx2

range 0-12+






Add Int Bonus

range 0-6+






add random 1-10

range 1-10







Total range 4-88+













Roll to hit on 1 AC - always hits something - at least floor - verify weapon that hit is a standard non-magical dart


Roll a one and hit their own foot doing 1 HP damage - dart returned to inventory




 









Points





Miss

4 to 22

0

Drop single dart on floor below board


Large section

23 to 40

Random from 1-20

put single dart in board inventory


Outer Ring

41 to 48

Random from 1-20 x2

put single dart in board inventory


Inner Ring

49 to 57

Random from 1-20 x3

put single dart in board inventory


Outer Bull

58 to 64

25

put single dart in board inventory


Bull's Eye!

65 and over

50

put single dart in board inventory









Message broadcast on points from that dart and what area was hit








 




Any hit adds single dart to dartboard inventory





Any miss drops a single dart on the floor below board
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #1 on: March 15, 2011, 08:06:39 am »


               Wow, talk about quirky formatting.  Sorry. '<img'>

In the "Points" section.  First entry is the range from the calc - if it falls into that
The second entry in Points is the points that hit is worth
the third entry is what happens as a result with the physical dart
               
               

               
            

Legacy_GhostOfGod

  • Hero Member
  • *****
  • Posts: 1490
  • Karma: +0/-0
Need help with a dart game script
« Reply #2 on: March 15, 2011, 08:57:21 am »


               Just a bit of curiosity....what if the player has weapon focus dart or epic weapon focus dart. Or even weapon specialization dart. Would/should these feats help the player as well?
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #3 on: March 15, 2011, 09:02:21 am »


               I'm sure it would help them avoid getting hit in the foot at least.  I had not considered it, but I suppose it would be a good RP hook at least.  Sure, it should add a plus for those as well.  

I have been thinking since posting about replacing the random 1-10 with something, just not sure what.  The three d20's seem like enough random, adding in another 10 does not seem to fit.  Dex score? Some other fixed number?  Reflex Save? (althought that might get kind of high and would have to up all ranges) Suggestions welcomed.  Eliminate that random 1-10 entirely?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need help with a dart game script
« Reply #4 on: March 15, 2011, 11:01:33 am »


               You may want to look at the dart game in Amulet of Zeran v2.2
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #5 on: March 15, 2011, 11:45:45 am »


               As a general rule, I don't download or play modules.  I play and dev on a persistent world.  The concept of downloading a whole module and then tracking down and decyphering a game script is a bit ... well, just not looking forward to it is all.  I probably will because you've got my curiosity piqued.  Is the Dart game itself anywhere else?  I'm pretty happy with the way I've got this set up, but if there's a better one.....
               
               

               
            

Legacy_ehye_khandee

  • Hero Member
  • *****
  • Posts: 1415
  • Karma: +0/-0
Need help with a dart game script
« Reply #6 on: March 15, 2011, 06:21:07 pm »


               those are standard dart rules mostly - but you don't mention scoring of which there are several styles (games such as 301, 501, etc.)  What were your thoughts on this?

Be well.Game on.
GM_ODA

P.S. I'm working on a pile of gambling games.
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #7 on: March 15, 2011, 07:03:12 pm »


               Well, on the scoring I thought to leave it open to the players.  Scoring could be done any way they want as regards to what type of game.  They could just take the best total from three darts etc.  I know that's not thourough, but it provided some variety without it being a convoluted scripting process.  Again suggestions welcomed.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need help with a dart game script
« Reply #8 on: March 15, 2011, 09:32:35 pm »


               

ehye_khandee wrote...

those are standard dart rules mostly - but you don't mention scoring of which there are several styles (games such as 301, 501, etc.) What were your thoughts on this?

Be well.Game on.
GM_ODA

P.S. I'm working on a pile of gambling games.


It looks to me like the only thing you could play with the way he has his calc set up would be High-Score.   There is no aiming with at any region of the board.  You throw at the board and a good hit is either a tripple or a bull.  there is no way you could play a double in double out without being able to aim at the number you wanted.  OR even stright in Stright out 301 for that matter.  Heaven forbid you try and play something like shang-hi.


*********

Eagles Talon wrote...

As a general rule, I don't download or play modules. I play and dev on a persistent world. The concept of downloading a whole module and then tracking down and decyphering a game script is a bit ... well, just not looking forward to it is all. I probably will because you've got my curiosity piqued. Is the Dart game itself anywhere else? I'm pretty happy with the way I've got this set up, but if there's a better one.....


I was not suggesting that you steal the script from the module.  Would be simple enough to do, but if you did I would say to revamp it with some chat command options. 

The reasion to look at the game is to get ideas from it.  Just throw a dart at the board and get a good number on a good hit and a bad number on a bad hit is not the game of darts.  There are times when you will want to aim at and hit, lets say a, Heaven forbid, Double one.  


Ill download the module as soon as i get a change and move the starting area to the dart room.  Ill post back with a direct connect IP as soon as i get it up.
               
               

               


                     Modifié par Lightfoot8, 15 mars 2011 - 09:33 .
                     
                  


            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need help with a dart game script
« Reply #9 on: March 15, 2011, 11:37:52 pm »


               Ok a test server is up.

DirectConnect: 70.185.174.129:5122

EDIT:Taken down.
               
               

               


                     Modifié par Lightfoot8, 17 mars 2011 - 11:12 .
                     
                  


            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #10 on: March 16, 2011, 03:55:53 am »


               I'll check that out probably Wednesday evening.  Working now. '<img'>

Thanks!
               
               

               
            

Legacy_zero-feeling

  • Sr. Member
  • ****
  • Posts: 287
  • Karma: +0/-0
Need help with a dart game script
« Reply #11 on: March 16, 2011, 07:22:21 am »


               checked it out myself... and if it's up or the public... i'd like it... the whole mod in an .erf please '<img'>
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #12 on: March 17, 2011, 12:03:05 am »


               Agreed.  Why reinvent the wheel?  I'd also like to get the process available.

One question - can two PC's play against each other or is it only against an NPC?
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Need help with a dart game script
« Reply #13 on: March 17, 2011, 12:19:20 am »


               Yes a PC can play another PC.
               
               

               
            

Legacy_Eagles Talon

  • Full Member
  • ***
  • Posts: 192
  • Karma: +0/-0
Need help with a dart game script
« Reply #14 on: March 17, 2011, 04:39:18 pm »


               Sooo...do you think this can be added to the Vault or e-mailed to those interested?