Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-24-2007, 02:59 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Findimg created by another script?

Does findimg only find images created by the current script?

Is there any way to get an image that's been created with showimg and alter its attributes from another script?

Thanks
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #2  
Old 01-24-2007, 04:18 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Perhaps;

PHP Code:
//#CLIENTSIDE
/* otherscript */
...
public function 
retrieveimageintIndex ) {
  return 
findimg(intIndex);
}
... 
PHP Code:
...
  
temp.img otherscript.retrieveimage2001 );
  
temp.img.zoom *= 1.1;
... 
Can't guarantee anything, but that's my best bet.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #3  
Old 01-24-2007, 03:54 PM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
I've decided just to make it call a function in the original script which changes the attributes of the image.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #4  
Old 01-24-2007, 10:10 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 should be able to call findimg() of other objects
Reply With Quote
  #5  
Old 01-25-2007, 03:51 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Stefan View Post
You should be able to call findimg() of other objects
Different wnpcs can use same id on images, so how do it find the id of which img? Or you have to define the object (wnpc) its getting the id from? :o
__________________
Reply With Quote
  #6  
Old 01-25-2007, 08:50 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
I think Stefan means that you can go
NPC Code:
  findweapon("Systems/Main").findimg(200).zoom = 1.1;

__________________
Do it with a DON!
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 01:11 AM.


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