Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #17  
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:09 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.