Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / function calling

Author
Message
MaraBane
16
Years of Service
User Offline
Joined: 21st Jan 2008
Location:
Posted: 14th May 2008 23:44
now I'm not usually a noob but this is a noobish question, so i had to put it on the noob board. Is there a way to call a function that you declare, do they work as labels or something? thanks in advance to anyone who tries to help

On the path i walk i must do anyhting to gain power... even if it means selling my flesh to the devil.
LBFN
17
Years of Service
User Offline
Joined: 7th Apr 2007
Location: USA
Posted: 15th May 2008 00:41
Please review the available tutorials. To help you get started, here is a link to one:

http://forum.thegamecreators.com/?m=forum_view&t=87472&b=7

LBFN
Dabbler
17
Years of Service
User Offline
Joined: 3rd Mar 2007
Location: Minnesota
Posted: 15th May 2008 05:44
A little code goes a long way (as an explanation).



I hope this helps.


Whatever...
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 15th May 2008 13:49 Edited at: 15th May 2008 13:57
As stated above, This is the main way to call a function



But you can also declair a Function as a Constant allthough this does not always work if Additional Paramiters are required.



This 2nd example turns a Function into a Constant so you dont need Brackets, Theres a better example of this HERE where i use this method to make several commands from 1 function.

Everyone Be Cool, You, Be Cool.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 15th May 2008 17:42
You can "code" functions using Lua (2 or 3 plugins available, paid and free). With Lua you can construct your command as a string, then call it. Thus, functions aren't set in stone.

Login to post a reply

Server time is: 2024-09-27 14:22:53
Your offset time is: 2024-09-27 14:22:53