View Single Post
  #20  
Old 12-04-2008, 05:59 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
this.ani seems to me to be a much better way to set it; setCharAni was probably kept mostly for compatibility, though I could be wrong. As far as I know, 'this.ani', using commas for parameters, can duplicate the functionality.
The fact that you're using commas in a string instead of the parameters of the function proves that that isn't the preferred way to do it. Like I said in my last post, you are reverting back to what made GScript1 a horrible scripting language: The ability to do things you shouldn't be able to. What if you had a filename with a comma in it? Using your method, you'd be screwed.

Anyways, Inverness is right. TGaniObject::ani is supposed to be read-only. Not to mention the fact that it's defined as an "object", not a string.

NPC Code:
      TGaniObject (TLevelObject):
ani - object (read only)


Reference: http://wiki.graal.net/index.php/Crea...nt/TGaniObject
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote