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 05-30-2006, 09:44 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Passing params to attached ganis

I think I already asked about this, but I'm not sure:
I'm attaching a gani to the player via attr[].
I want to be able to send a parameter with the gani.
Is there any way to do this?

In GS1, I would just do something like 'setplayerprop #P2,blah.gani,3;'
It doesn't work on GS2/v4.
Reply With Quote
  #2  
Old 05-30-2006, 09:48 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
attr[index] = {"ganiname", "params"};
__________________
Skyld
Reply With Quote
  #3  
Old 05-30-2006, 09:49 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
player.attr[7] = {"yen-effect-copytrail.gani",3};

Nothing is showing, at all.
Reply With Quote
  #4  
Old 05-30-2006, 11:59 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
Is your param 3?

NPC Code:
player.attr[7] = {"yen_effect_copytrail", "param1", "param2", "param3", "param4", etc};

Reply With Quote
  #5  
Old 05-31-2006, 02:47 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Is this actually displaying the gani? Instead of using showani? or are you parsing this somewhere?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #6  
Old 05-31-2006, 12:52 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
Quote:
Originally Posted by Yen
player.attr[7] = {"yen-effect-copytrail.gani",3};

Nothing is showing, at all.
You don't need the .gani there.

player.attr[7] = {"yen-effect-copytrail", 3};
__________________
Skyld
Reply With Quote
  #7  
Old 06-19-2006, 09:23 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Quote:
Originally Posted by Skyld
You don't need the .gani there.

player.attr[7] = {"yen-effect-copytrail", 3};
It doesn't work, period; with or without the .gani extension.
If I try to set it to an array like that, it simply doesn't change.
Reply With Quote
  #8  
Old 06-20-2006, 10:17 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
Put a sleep( 0.05); in the gani script, before you load params[ index] and it should work.
__________________
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
  #9  
Old 06-20-2006, 11:03 PM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
It doesn't work, period; with or without the .gani extension.
If I try to set it to an array like that, the player's attr[] simply doesn't change.
Reply With Quote
  #10  
Old 06-21-2006, 10:25 AM
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
Quote:
Originally Posted by Yen
It doesn't work, period; with or without the .gani extension.
If I try to set it to an array like that, the player's attr[] simply doesn't change.

Maybe in this case you must do: player.attr[ 7] = "gani",3;
Because in findImg( index).ani = lala; you must also do it that way.
__________________
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
  #11  
Old 06-21-2006, 01:59 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by contiga
Maybe in this case you must do: player.attr[ 7] = "gani",3;
Because in findImg( index).ani = lala; you must also do it that way.
That _SHOULD_ produce a syntax error. But it probably won't because it will use oldstrings and such. If you're going to do something like that, the correct syntax is either:

player.attr[7] = { "gani", 3 };
or
player.attr[7] = "\"gani\",3";
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
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 12:27 AM.


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