Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-09-2008, 03:31 AM
TheStan TheStan is offline
Stan?
Join Date: May 2008
Location: U.S.
Posts: 100
TheStan is on a distinguished road
Send a message via AIM to TheStan Send a message via MSN to TheStan
Function Data

Found out today from Inverness that functions are variables (that I knew) which do have sub-variables (that I didn't). So I made up a quick function to get the variable data from built in functions. I'm not really sure if any of this data is writable for built-in or script made functions, but I'll probably be finding out later.

PHP Code:
public function getfuncdata(funcobjdata) {
  
temp.functions null;
  
temp.null;
  
  if (
obj == null) {
    
obj this;
  }
  
functions obj.getfunctions();
  for (
ffunctions) {
    if (
== func) {
      switch (
data) {
        case 
"desc": case "description": return (f.description); break; 
        case 
"params": case "parameters": return (f.parameters); break; 
        case 
"scope": return (f.scope); break;
      } 
    }
  }

Function is pretty self-explanatory but if explanations are needed I'd be happy to give them.

Last edited by TheStan; 08-09-2008 at 04:33 AM..
Reply With Quote
  #2  
Old 08-09-2008, 03:37 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Cool, I didn't know that :O
__________________
Reply With Quote
  #3  
Old 08-09-2008, 04:31 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
Bakayarou!, getfunctions() does not return the function objects. It just returns variables with subvariables.

I don't like how you made it sound like I told you something incorrect.
__________________
Reply With Quote
  #4  
Old 08-09-2008, 04:34 AM
TheStan TheStan is offline
Stan?
Join Date: May 2008
Location: U.S.
Posts: 100
TheStan is on a distinguished road
Send a message via AIM to TheStan Send a message via MSN to TheStan
Quote:
Originally Posted by Inverness View Post
Bakayarou!, getfunctions() does not return the function objects. It just returns variables with subvariables.

I don't like how you made it sound like I told you something incorrect.
Fixed happy?
Reply With Quote
  #5  
Old 08-09-2008, 04:58 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
I like how Inverness didn't mention I told him this.

Doesn't matter, it's in /scripthelp. Documented incorrect anyways.
Reply With Quote
  #6  
Old 08-09-2008, 05:11 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
Quote:
Originally Posted by WhiteDragon View Post
I like how Inverness didn't mention I told him this.
I wasn't the one who started a thread on it, or I would have mentioned you.
__________________
Reply With Quote
  #7  
Old 08-09-2008, 06:17 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Inverness View Post
I wasn't the one who started a thread on it, or I would have mentioned you.
I would have mentioned how beautiful you are.
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 11:56 AM.


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