Graal Forums  

Go Back   Graal Forums > Development Forums > Gani Construction
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-23-2005, 09:06 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
changing gani attribute in an npc

with what should be a very simple command to set the gani attribute
of a horse to the desired horse image (in a showcharachter clientside class npc):

PHP Code:
setcharani horse,ride2.png
all that shows up is the oval shadow. It moves correctly and I hear the gani sound, but no horse image.
The ride2.png is on the server, I checked.

How do i get the horse image into the gani on the level?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 12-23-2005, 09:54 PM
Chicken_l33t Chicken_l33t is offline
Banned
Join Date: Sep 2002
Location: NewZealand
Posts: 467
Chicken_l33t is on a distinguished road
setcharani ride,ride2.png;
What you had was right, but wrong gani :X
Reply With Quote
  #3  
Old 12-23-2005, 10:07 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
um no...
i just want a horse with nobody on it.
the ride gani does not take the ride2.png
and now looks like theres a floating charachter on an invisible horse x-x
... how do i do this? should not be as tricky as it is ..
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #4  
Old 12-24-2005, 03:41 AM
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
#5 is the image of the horse the player is riding.
Reply With Quote
  #5  
Old 12-24-2005, 05:21 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Not being sure what #5 means, I tried the following ...
and none of these worked:

PHP Code:
setcharani ride,,,,,ride2.png
it's does not mean the fifth variable there ...

PHP Code:
setcharani ride,;  //tried with and without ride2.png after the coma here
setcharprop #P5,ride2.png; 
setting it as a player attribute which is a close to an answer as I could find on the wiki, does not work ...

what other method is there that I can find no documentation of to change this attribute number 5 that will actually work???
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #6  
Old 12-25-2005, 03:49 AM
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
PHP Code:
setcharprop #5,ride2.png;
setcharani horse,; 
It works for me. #5 is an attribute, like your head image or sword image.
Reply With Quote
  #7  
Old 12-25-2005, 07:23 AM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
so the charprop is set before the gani, that makes sense.

I tried it, and it works, thank you! A working line of code is a great Christmas present!

Why then does every piece of documentation I can find on gani attributes say to put the letter P in front of it
such as if you search for gani on the wiki it will liskt about
#P1 - #P30 gani attributes

How did you know that its just #5???????????

How do people FIND this seemingly hidden knowledge about gscript
that is not documented in an easily accesible place,
and how do I get on the inner circle of the club of the explination of the code? So that I wont have to keep asking how to make extermely simple things like this to make work?

I am NOT refering to the wiki or the newfeatures files.
I am referring to gscript functions that are not officially documented for general release. Why the "secret club" feeling about the code? I am a paying customer here too...
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #8  
Old 12-25-2005, 04: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
...
Open the gani.
Try to edit one of the horse sprites.
Notice that the image says: HORSE
It's not a set image, so it must be using your horse attribute.

And we're just gifted. <3
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 Off
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:16 AM.


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