TGC Codebase Backup



Basic Function System by Zeus

3rd May 2007 9:09
Summary

A function system for beginners in their RPG or whatever.



Description

This is a function system where you press 1 to call "newgame()". A little system for complete newcomers.



Code
                                    ` This code was downloaded from The Game Creators
                                    ` It is reproduced here with full permission
                                    ` http://www.thegamecreators.com
                                    
                                    REM Made By: Zeus

`A Basic Function System for Beginners in their RPG
print "Press 1 to Begin"
do
`Call function if 1 is being pressed
if inkey$()="1" then newgame()
loop

`Create Function newgame()
function newgame()
cls
print "Hello!"
wait key
endfunction