Castle Paradox Forum Index Castle Paradox

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 Gamelist   Review List   Song List   All Journals   Site Stats   Search Gamelist   IRC Chat Room

scripting help

 
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP!
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.

PostPosted: Mon Mar 21, 2005 8:18 pm    Post subject: scripting help Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Moogle1
Scourge of the Seas
Halloween 2006 Creativity Winner
Halloween 2006 Creativity Winner



Joined: 15 Jul 2004
Posts: 3377
Location: Seattle, WA

PostPosted: Mon Mar 21, 2005 8:26 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
TMC
On the Verge of Insanity




Joined: 05 Apr 2003
Posts: 3240
Location: Matakana

PostPosted: Mon Mar 21, 2005 11:40 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Ysoft_Entertainment
VB Programmer




Joined: 23 Sep 2003
Posts: 810
Location: Wherever There is a good game.

PostPosted: Tue Mar 22, 2005 6:49 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Castle Paradox Forum Index -> HELP! All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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