Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-28-2012, 08:24 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
return, function, and object types?

So I was playing with some script and came up with this:

PHP Code:
function onCreated() {
  
temp.obj2.hello "world";
  
temp.obj temp.obj2;
  
player.chat temp.obj2.hello;

Which output's:
PHP Code:
hello 
But for some reason this doesn't work. Maybe I am doing it wronge?

PHP Code:
function onCreated() {
  
temp.obj2 test();
  
player.chat temp.obj2.hello;
}

function 
test() {
  
temp.obj.hello "world";
  return 
temp.obj;

Which output's:
PHP Code:

Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 05:43 PM.


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