Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-18-2007, 01:07 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Disabling Script Errors on RC

Ok, in a system I'm currently working on, I need a to call a function whether or not it is actually defined in the object. Now then, using trigger() or scheduleevent() does not suit my needs because both of those don't interrupt the current function which is not what I want so I simply have to call it the normal way. Is there any way to disable the RC messages for this?
__________________
Reply With Quote
  #2  
Old 03-18-2007, 04:39 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
A lot of the time you can probably do:
PHP Code:
if ("functionname" in obj.getfunctions())
{
  
obj.functionname();

... although I am not sure how well it will work when classes are joined to objects like TStaticVars.
__________________
Skyld
Reply With Quote
  #3  
Old 03-18-2007, 11:36 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by Skyld View Post
... although I am not sure how well it will work when classes are joined to objects like TStaticVars.
This is the exact problem, those functions that are joined aren't listed. If there is no alternative I'll just make onCreated necessary for each class of the system where it would name any other multi-class events.
__________________
Reply With Quote
  #4  
Old 03-18-2007, 11:37 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Quote:
Originally Posted by Inverness View Post
This is the exact problem, those functions that are joined aren't listed. If there is no alternative I'll just make onCreated necessary for each class of the system where it would name any other multi-class events.
I would suggest you do this, then.
__________________
Skyld
Reply With Quote
  #5  
Old 03-22-2007, 04:58 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Its still too troublesome, I do not like doing it when simply calling the function would normally would be much easier.
__________________
Reply With Quote
  #6  
Old 03-24-2007, 04:00 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
You can set this.scriptlogmissingfunctions = false; then calling a missing function of another object will not print messages on the RC
Reply With Quote
  #7  
Old 03-24-2007, 05:32 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
This is exactly what I needed, much thanks.
__________________
Reply With Quote
Reply


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 04:51 AM.


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