Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-13-2006, 10:21 AM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
Fetching gani parameters

I am trying to read the parameters sent through setani from withing the gani's script.
PHP Code:
setani("ganiname"param1param2);

// Within the gani:
SCRIPT
function onCreated() {

  
// These give no results
  
echo( "[" params[0] @ "][" params[1] @ "][" attr[0] @ "][" attr[1] @ "]");
}
SCRIPTEND 
Or is there possibly another another way to send variables to the gani?
Reply With Quote
  #2  
Old 06-13-2006, 03:15 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Drakilor/Magic System right? I'll see what I can do for you :P I'm having the same problem tho..

Edit: Fixed it, no params were needed to be sent.. you could just load the flag "ganiparams" from the script into the gani without setting parameters in the setani part.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #3  
Old 06-13-2006, 06:28 PM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
I thought it was aniparams or aniparms ?
Reply With Quote
  #4  
Old 06-13-2006, 08:02 PM
xXziroXx xXziroXx is offline
Master of Puppets
xXziroXx's Avatar
Join Date: May 2004
Location: Sweden
Posts: 5,288
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Send a message via AIM to xXziroXx Send a message via MSN to xXziroXx
Quote:
Originally Posted by contiga
Drakilor/Magic System right? I'll see what I can do for you :P I'm having the same problem tho..

Edit: Fixed it, no params were needed to be sent.. you could just load the flag "ganiparams" from the script into the gani without setting parameters in the setani part.

Problem with that is, that the "ganiparams" only work for the client that the gani get set on. So, for all other players, the gani will show wrong.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #5  
Old 06-15-2006, 02:51 PM
contiga contiga is offline
Graal2001 Administration
contiga's Avatar
Join Date: Jul 2004
Location: Netherlands
Posts: 419
contiga is an unknown quantity at this point
Send a message via ICQ to contiga Send a message via AIM to contiga Send a message via MSN to contiga Send a message via Yahoo to contiga
Hmm.. on Esteria it seems to work proper tho.. but since no one like AphotiX, nor Yen or Stefan is responding.. I think they also don't know.. Which means he can't go on making his 'uber' system.
__________________
AIM: Contiga122
MSN: [email protected]
Status:
Quote:
Originally Posted by unixmad View Post
I am also awake 3AM to help correct problems.
Quote:
Originally Posted by Bomy Island RC people
Daniel: HoudiniMan is a bad guy =p
*Bell: rofl. I first read that as houdini is a bad man. like the little kid that wants his mommy to keep her away from that boogie man
Daniel: xD
*Rufus: I wouldn't want my kids around him.
Reply With Quote
  #6  
Old 06-15-2006, 04:43 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
On Era I am using the params variable in order to use gani parameters, which works fine:
PHP Code:
showtext(temp.ix 11.6, (2) + temp.0.05"""bc"params[0]); 
PHP Code:
setplayerprop #P(11 + i),era_floattext.gani,#p(1); 
I am also using it in a testing script of mine:
PHP Code:
setani("era_skyldmpcharge"0101); 
PHP Code:
changeimgcolors(200params[0], params[1], params[2], (temp.10) - 0.1); 
__________________
Skyld
Reply With Quote
Reply

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


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