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
  #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
 


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 10:11 PM.


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