Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 10 Jul 2011 02:46 PM |
If we declare a function (for purposes I'll use Dingdong's example) --- function ChangeBase() --- and we type later into the script --- ChangeBase() --- It would do the function specified by the words ChangeBase()? |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2011 02:49 PM |
Yes.. I think?
function bob() print("bawb") end --- later in the script -- bob()
would print 'bawb' |
|
|
| Report Abuse |
|
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 10 Jul 2011 02:52 PM |
| ._. Let me rephrase. If I declare a function ChangeBase(), I only have to type Changebase() next time, so setting function ChangeBase() to a variable would be pointless, because all I had to do is type in Changebase() correct? |
|
|
| Report Abuse |
|
|
| |
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 10 Jul 2011 02:54 PM |
| For a beginner's sake, we'll use it my way, until I get to that point Mycro, thanks for the help. |
|
|
| Report Abuse |
|
|
|
| 10 Jul 2011 02:56 PM |
| @Jinxy also don't forget you will need to type the arguments too. |
|
|
| Report Abuse |
|
|
Spectrumw
|
  |
| Joined: 04 Aug 2009 |
| Total Posts: 13510 |
|
|
| 10 Jul 2011 02:57 PM |
@RATEX If he didn't include arguments in its function, there's no reason why he should add them while casting it. |
|
|
| Report Abuse |
|
|
Jinxy
|
  |
| Joined: 04 Aug 2007 |
| Total Posts: 18317 |
|
|
| 10 Jul 2011 02:58 PM |
| I won't forget that. Unless I'm working on a megascript. |
|
|
| Report Abuse |
|
|
myrco919
|
  |
| Joined: 12 Jun 2009 |
| Total Posts: 13241 |
|
| |
|