 |
Castle Paradox
|
View previous topic :: View next topic |
Author |
Message |
Ysoft_Entertainment VB Programmer

Joined: 23 Sep 2003 Posts: 810 Location: Wherever There is a good game.
|
Posted: Mon Mar 21, 2005 8:18 pm Post subject: scripting help |
|
|
define script,3,0,0,99
ok, my question is this, what do those numbers actually represent? I have been programming plotscripts for a while now, but I still have no clue what these numbers are used for and how they are used, and whats is the meaning of them. _________________ Try my OHR exporter/importer.
OHRGFX
Striving to become better pixel artist then Fenrir Lunaris. Unfortunately the laziness gets in the way of my goals. |
|
Back to top |
|
 |
Moogle1 Scourge of the Seas Halloween 2006 Creativity Winner


Joined: 15 Jul 2004 Posts: 3377 Location: Seattle, WA
|
Posted: Mon Mar 21, 2005 8:26 pm Post subject: |
|
|
First of all, you forgot to name your script. Let's change that to "define script myscript,3,0,0,99."
The 3 is the number of variables in your script. I'm sure you know that much. The other numbers are the default values of the variables. You may have noticed that you don't have to pass all the values to all the functions. If a script called just plain "myscript", it would essentially be calling myscript(0,0,99). _________________
|
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Mon Mar 21, 2005 11:40 pm Post subject: |
|
|
Moogle of course means define script, -1, myscript,3,0,0,99
You can in fact pass any number of arguments to a script, and if there are too many, the extra ones are removed, and a warning is given because it undoubtably means you've done something wrong. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
Ysoft_Entertainment VB Programmer

Joined: 23 Sep 2003 Posts: 810 Location: Wherever There is a good game.
|
Posted: Tue Mar 22, 2005 6:49 am Post subject: |
|
|
thank you, now I understand. _________________ Try my OHR exporter/importer.
OHRGFX
Striving to become better pixel artist then Fenrir Lunaris. Unfortunately the laziness gets in the way of my goals. |
|
Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|