01-10-2008, 10:34 PM
Visual Basic?? OMG Worst shit ever invented. Not even portable.
For a really really good introduction to Python programming, go to google and search for:
A Byte of Python
This is a very useful tutorial, extremely easy to understand.
What I found the most interesting, is that, that specific way I wanted to run that, I couldn't figure it out for the longest time. I edited that script so many freakin times to see what worked and what didn't. It was more experimental and learning, than for show. Now that I look at it, I was like, omfg, I cannot believe I didn't think of that before.
A lot of it that was added, was purely experimental to find the way I can push those structures and functions. That is what took me so long. I didn't want to make a few inputs, that would have been the VERy easy part. I wanted to see if I could give all of it some.. intelligence, rather than what I had previously scripted. It worked out.
The hardest part of the entire program, was getting it to recognize, that a player can buy more than 1 of the same item, until the gold runs out. I plan to modify it even further calling defines to make the script even shorter, using some other functions aswell. That shouldn't take long at all though. I also plan to modify it for a value over 0 gold after you buy what you want, and tell python I want it to either have more items to buy, or an option to leave the store. That is kind of tricky using the basics though. We'll see.
For a really really good introduction to Python programming, go to google and search for:
A Byte of Python
This is a very useful tutorial, extremely easy to understand.
What I found the most interesting, is that, that specific way I wanted to run that, I couldn't figure it out for the longest time. I edited that script so many freakin times to see what worked and what didn't. It was more experimental and learning, than for show. Now that I look at it, I was like, omfg, I cannot believe I didn't think of that before.
A lot of it that was added, was purely experimental to find the way I can push those structures and functions. That is what took me so long. I didn't want to make a few inputs, that would have been the VERy easy part. I wanted to see if I could give all of it some.. intelligence, rather than what I had previously scripted. It worked out.
The hardest part of the entire program, was getting it to recognize, that a player can buy more than 1 of the same item, until the gold runs out. I plan to modify it even further calling defines to make the script even shorter, using some other functions aswell. That shouldn't take long at all though. I also plan to modify it for a value over 0 gold after you buy what you want, and tell python I want it to either have more items to buy, or an option to leave the store. That is kind of tricky using the basics though. We'll see.