#!/usr/bin/perl

use CGI qw(:standard);



$invitems = param("items");
$invingreds = param("ingreds");



# print two cookies with inventory
       $packed_cookie = cookie( -NAME => "powerstone_mixomatic_items",
                      -VALUE => "$invitems\t$invingreds",
			       -EXPIRES => "+2y" );
print header();

$userinfo = cookie("powerstone_mixomatic_items");

($iteminfo,$ingredinfo) = split(/\t/,$userinfo);

print<<__EOQ__;

<HEAD><TITLE>Power Stone 2 Mix-o-Matic</TITLE></HEAD>
<BODY BGCOLOR="#FFFFFF">
<FORM ACTION="mixomatic.cgi" method="post">

<TABLE ALIGN="CENTER" WIDTH="500">
<TR><TD>
<IMG SRC="pstone.gif" width=160 height=160><BR>
<IMG SRC="mixomatic.gif" width=165 height=38>
</TD>
<TD>
Power Stone 2 for Dreamcast is fun.  And it has a cool item mixing system,
but it can be kind of confusing*, and demand a lot of experimentation.<P>

Stuff that! Enter <B>The Mix-o-Matic</B>. Simply enter the numbers of the 
items and materials you've collected, and the Mix-o-Matic will tell you 
what new items you can make from them!
<BR>
<TABLE CELLPADDING=0 CELLSPACING=0 ALIGN="CENTER">
<TR><TD ALIGN=CENTER>Enter items:</TD>
    <TD ALIGN=CENTER>Materials:</TD>

</TR>
<TR><TD ALIGN=CENTER><INPUT VALUE="$iteminfo" NAME="items" SIZE=10></TD>
    <TD ALIGN=CENTER><INPUT VALUE="$ingredinfo" NAME="ingreds" size=10></TD>
<TD><INPUT TYPE="SUBMIT" VALUE="Show Me!"></TD></TR>
<TR><TD COLSPAN=3 ALIGN="CENTER">
<I>Enter comma-delimited #s, e.g. 1,3,5,15,48</I><BR>
<A HREF="ui.cgi">Problems? Click Here For
Easier (Checklist) UI</A>
</TD>
</TR>
</TABLE>



</TD></TR><TD COLSPAN=2>

<div align="center">
<B>Related Links:<BR></B>
<A HREF="showitems.cgi">All Items</A> /
<A HREF="showingreds.cgi">All Materials</A> /
<A HREF="showmixes.cgi">All Known Mixes</A><BR>
<A HREF="http://www.gamefaqs.com/console/dreamcast/game/26279.html">GameFAQs with CJayC's FAQ</A> /
<A HREF="http://www.capcom.com">Capcom</A><BR>
</div>

<P>
*Case in point: I had no idea what I was doing in the item shop
when I wrote this program.
I got the raw data from 
CJayC's FAQ.  
It took me a while to figure out how to get Materials and Texts.
</TD>

</TR>
</TABLE>
<B><Div align="center">
back to <A HREF="/">kisrael.com</A>
</B>
<FORM>
<I>
<BR>
<FONT SIZE=1>
August 26 2000. This page and tool copyright Kirk Israel. Power Stone, graphics, names, etc copyright Capcom.</FONT>
</I>
</div>
__EOQ__
