Music Banter

Music Banter (https://www.musicbanter.com/)
-   The Lounge (https://www.musicbanter.com/lounge/)
-   -   Batch Programming (https://www.musicbanter.com/lounge/43550-batch-programming.html)

mr dave 09-02-2009 03:45 AM

i don't remember that specific book but i do remember playing at least one of their books back in the day too. i wonder if publishers still put out crazy 'choose your own' adventure books...

HOLY CRAP new version in 3 weeks haha

Warlock of Firetop Mountain: Amazon.ca: Steve Jackson, Ian Livingstone: Books

Guybrush 09-02-2009 04:06 AM

Wow, what a strange coincidence! If they're republishing the others in the series, I guess I might just buy them. I find the games funny still :p

mr dave 09-02-2009 04:46 AM

haha yeah it doesn't seem like something many others are doing anymore. i remember having some cool robin hood books like that too.

i even had some cool ninja adventure book that just ended. no climax no final battle. just you're at level 3 in the dungeon now and nothing. not even an advertisement for another book in the possible series. it was really cool until that point but so lame at the same time.

Seltzer 09-02-2009 06:13 AM

Wow that looks like an ambitious project! Text RPGs were a bit before my time (the Baldur's Gate series was the pinnacle of my childhood gaming) but I'd be keen to see the results if/when you're finished.

Engine 10-17-2012 08:46 PM

I don't know if this is the right place to post a question I have, but I didn't want to start a new thread.
Can anyone tell me how to write php script that essentially does everything that the MB polls do? Display voting options, then retrieve and display results?

Guybrush 10-17-2012 11:43 PM

Quote:

Originally Posted by Engine (Post 1241442)
I don't know if this is the right place to post a question I have, but I didn't want to start a new thread.
Can anyone tell me how to write php script that essentially does everything that the MB polls do? Display voting options, then retrieve and display results?

Perhaps you can find one on the net somewhere?

What's it for? Are you writing your own website from scratch using php?

Engine 10-18-2012 12:19 AM

Quote:

Originally Posted by tore (Post 1241473)
Perhaps you can find one on the net somewhere?

What's it for? Are you writing your own website from scratch using php?

I'm sure I can find examples of what I need in online tutorials and such but I thought to ask here because I'm sure it's a simple thing for some of you. I'm only semi-literate in php but I understand how it works.
I'm in a class learning to create a database and I'll use more than php for that. This php script I'm writing is just a preliminary exercise and I realized that the polls here are doing exactly what I need to make mine do. And they look more elegant than what I would come up with on my own.

Engine 10-19-2012 12:12 AM

No help?
Freebase, I'm sorry I called you all those names and stuff.
I know you can write the code I want in 5 - 10 minutes. Be your best friend? :o:

Guybrush 10-19-2012 12:32 AM

Although I'm somewhat familiar with php, combining that with database stuff is something I've never done before so I'm not much help. I'd be interested in seeing the answer, though.

If you need a die roller in batch, I'm your man.

Engine 10-19-2012 12:49 AM

Quote:

Originally Posted by tore (Post 1241810)
Although I'm somewhat familiar with php, combining that with database stuff is something I've never done before so I'm not much help. I'd be interested in seeing the answer, though.

If you need a die roller in batch, I'm your man.

I've done that!

Quote:

<html>
<head>
<title>Roll the Dice</title>
</head>
<body>
<h1>Roll The Dice</h1>
<form action="dice.php" method="GET">
<p>How many dice?</p>
<input size="4" name="Number">
<input type="submit" value="Roll the dice!">
</form>
<?
$number_of_dice = $_GET['Number'];
if ($number_of_dice) {
$count = 0;
while ($count < $number_of_dice){
$dieroll=rand(1,6);
print "<p>$dieroll</p>";
$total=$total+$dieroll;
$count++;
}
print "Total = $total";
}
?>
</body>
</html>
If you want, I'll show you the voting app once I figure it out. But I assure you it will look like shit compared to an MB poll.


All times are GMT -6. The time now is 03:50 PM.


© 2003-2025 Advameg, Inc.