[Tutor] Two Problems (databases, and branching)

Spotacus Macell sman1337@hotmail.com
Sat, 27 Apr 2002 01:29:12 -0300


//connected to SPOTACUS
//begin transmition

Coding/programming background:
HTML (pretty much everything, excluding stuff dealing w/ other languages 
[CGI, JavaScript, etc])
#RPGCode (programming language made for RPG Toolkit)

Now, I have two problems, both of which I can't find answers to. First of 
all: I've been reading through the archived messages on Tutor, and what I'm 
getting is that you can't make databases right in Python, that you need to 
use something else (I was seeing SQL being said a bit). If it IS possible to 
make databases right in Python, could someone point me at some documentation 
or some other such thing so I could figure it out? The reason I need this is 
because I'm trying to make a (what then seemed "simple") text based RPG. 
But, I need to make a merchant in my program to buy/sell items, and I can't 
figure it out.

And now for my second problem. From my (albeit minimal) work with #RPGCode, 
I found a very useful command, but I can't find it in Python. I'm sure 
there'd be something at least similar, but I can't find it. Anyway, what it 
is is the branch command. In RPGCode, it basically looks like this:

-------------
#branch(:here)

#mwin("Text in a message window")

:here
-------------

What it does, if you can't see (no disrespect, of course), is that the 
branch command skips everything after it, until it reaches :here. You can 
basically go anywhere in the program, either way. Combined with an if 
statement, it's rather useful. But I can't find anything like it in Python, 
and it perturbs me. I've used while loops where they were un-needed, to 
imitate it to go back _up_ through a program (my first program was 80-odd 
lines, and only about 5 of which were outside of a giant while loop), but 
there's no way to dopplegang it in the down direction.

Hmm...this message was _way_ longer than expected, so I'll stop now. That's 
it, anyways...thanks for taking the time to actually read all this!


//end transmition
//SPOTACUS connection dead

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com