ID:1196182
 
Converting/Translating and learning from python game sources to DM
__________________________________________________
While learning python I've notice how similiar it was to DM
Learning from any langauge will help you with other languages. For example learning Spanish will
help you with learning other languages.
Python
-The language is extremely similiar to DM
-The following are some difference between Python and DM
What I've notice from within the guess game
*Uses # and // to comment
* doesn't require var or var/ to be typed
*Output print() instead of <<
*While and if doesn't use parenthesis but requires : at the end of the line
*Can define var in while
*int() can change txt2integer, float can change txt2round down or parse

Image Hosted by ImageShack.us

Image Hosted by ImageShack.us


As someone once said programming is not telling a computer what to do, but knowing how to tell it what to do.

You can download the guide and sources here http://adf.ly/KkSfb .

Guessing game .rsc http://adf.ly/KkSZU
So.. moral of the story is?
I've been doing a lot of Python coding lately, and this has influenced my DM coding as well. Specifically, I've been getting all sorts of interesting compilation errors in DM due to improper syntax. :P
You probably forgot that
if __name__ == '__main__':
Initiate();

In python also translate to
mob/Login()

in dm