Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   MUDlib (https://forums.graalonline.com/forums/showthread.php?t=71292)

Inverness 01-20-2007 12:35 AM

I haven't looked into it but I believe you need to put the archetype file in the folder for it to be loaded.

Angel_Light 01-20-2007 05:09 AM

I have, I also releazied that the .arc file can be read with wordpad so that helped a little I added a weapon from okies aswell but nothing. :[ I dont understand it...

Inverness 01-22-2007 08:25 AM

If I make a TStaticVar on the player, will it save when the player logs off and reappear when the player logs in?

Twinny 01-22-2007 08:48 AM

The object will not stay with the player when the player logs off. You would have to use the player log off event to call savelines(); on the object and loadlines(); on the file when the player logs on.

Inverness 01-22-2007 08:54 AM

Yea I thought so.
Btw, why is "interface" a keyword (highlighted) in the scripting window?

Tolnaftate2004 01-22-2007 09:07 AM

Quote:

Originally Posted by Inverness (Post 1267425)
Yea I thought so.
Btw, why is "interface" a keyword (highlighted) in the scripting window?

It is a declaration (I have no idea what they do in GraalScript). They include the following:
  • class
  • extends
  • implements
  • import
  • instanceof
  • interface
  • native
  • package
  • volatile
  • throws

Inverness 01-22-2007 09:21 AM

Hmm, when I make an object from an existing object, is it possible to make the new object inherit the class from the existing one?

Falcor 01-23-2007 01:47 AM

Quote:

Originally Posted by Tolnaftate2004 (Post 1267428)
It is a declaration (I have no idea what they do in GraalScript). They include the following:
  • class
  • extends
  • implements
  • import
  • instanceof
  • interface
  • native
  • package
  • volatile
  • throws

Its probably because the highlighting template was taken from Java or something. Why re-invent the wheel right?

Inverness 01-23-2007 01:49 AM

That is a cruel thing. I always thought it was in preparation for new additions to GS2.

Admins 01-23-2007 03:23 PM

The syntax file for GS2 for RC can actually be modified by the user (somewhere in the user files), it has been copied from some similar language, but added some stuff for multiline strings.

Tolnaftate2004 01-23-2007 11:38 PM

Quote:

Originally Posted by Stefan (Post 1267898)
somewhere in the user files

For Windows,
drive\Document and Settings\User\.gnome2\gtksourceview-1.0\language-specs\graal.lang (at least, for me... ;x)


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

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