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!]