Does every function in the behavior script need a return me or just the new function?
Also, if I call the function like you say here. s.changename(oldname,newname) Will that run the function in every instance of the script? -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike Gralish Sent: Tuesday, August 27, 2002 4:10 PM To: [EMAIL PROTECTED] Subject: Re: <lingo-l> OT: Heather and beyond When you create the script object make sure the last line of the new code is: return me If you do that the var "s" from s=script("playerscript").new(playername) is a pointer to that script object. To access the other functions in the same script block, use the syntax: s.changename(oldname,newname) or changeName s, oldname, newname If you call script("playerscript").changename(oldname,newname) any properties of the behavior will be their initial values or void... not what you want, I don't think. Mike > <snip> > > Then I go into a repeat loop that goes through the list "line by line" > and when it finds a line with a new name on it, it creates an object > like so... > > s=script("playerscript").new(playername) > > I pass playername to the object so it will store its own name(this > > <snip some more> > > Would I just use: > script("playerscript").changename(oldname,newname) > > ? > > Hoping I explained enough to get some help. Thanks > > Jeremy [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]