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 02-15-2009, 03:16 PM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
Doing math on Param3 to determine the sprite#

I think I'm back in "Guess the operator" territory; or maybe this is beyond Gani capabilities, I dunno.

The idea is, I want to send Param3=0(or any number up to about 20)
then I want the gani to say this object here is sprite#403+PARAM3

Can it be done? Obviously it's not gonna be 403+PARAM3, or (403+PARAM3), or 403+strtofloat(PARAM3); and since PARAM3 gets added to a whole mess of things, I can't just send in PARAM3=404, PARAM4=405...I'd be at it all day!

It's probably all for naught anyway; all I'm really trying to do is make a gani that can wear dynamically different colors than the NPC/Player that called it...I thought about using a ganimovie, but those attributes seem to be set in stone...
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #2  
Old 02-15-2009, 06:23 PM
Novo Novo is offline
[TServerDeveloper]
Join Date: Jun 2006
Posts: 448
Novo will become famous soon enough
I get ye... I had this situation way back in the time. I don't think you can display a calculated sprite.

We had facial emoticons that we wanted to use on the ganis. What we ended up doing was using 4 PARAMS each with the SPRITE # of the emoticon we were interested in and putting PARAM# in the ani step.

Although, if things have changed since, I'd be interested in learning about it.
Reply With Quote
  #3  
Old 02-15-2009, 06:27 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
I'd suggest forum PMing a link to this thread to Stefan.
__________________

"A delayed game is eventually good, but a rushed game is forever bad." - Shigeru Miyamoto
Reply With Quote
  #4  
Old 02-16-2009, 12:27 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
I'll give it a couple days first; I'm going to feel rather foolish if I bother Stefan and it turns out it's just another one of those "Simple Operators" like @. (that you have to know what it is to look it up on the wiki...)
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote
  #5  
Old 02-16-2009, 12:43 AM
Dan Dan is offline
Daniel
Join Date: Oct 2007
Posts: 383
Dan is an unknown quantity at this point
Send a message via MSN to Dan
I believe you can do something like; setani("gani[sprite]",""); to display a certain sprite only. But I don't really understand what you want so this may not be helping...
__________________
Reply With Quote
  #6  
Old 02-16-2009, 12:58 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm will become famous soon enough
"sprite" is a bit misleading: I'm referring to the internal-GANI term "sprite" which means "A portion of an image, given an index number. Many of these make up a Frame of animation, which is referred to externally as a Sprite in the sense of setani "gani[sprite]","").

What I'm looking for is a way to, for instance, put a number in Param3 and, instead of displaying sprite 100, it displays 100+Param3 - and instead of 101, 101+Param3, etc. Right now it can display 100, or it can display Param3, but it can't display any kind of formula.

Ultimately all I want to do is have one NPC display 2 different dynamically-determined characters - say, one wearing all black and one wearing all white, or one wearing all green and one wearing all blue, whatever I tell it to. Unfortunately Showani always gives the displayed gani the properties of whatever NPC called it; Fung Si Yan's showanis always look like Fung Si Yan. I've even tried having Fung Si Yan showani a ganiscript with parameters, then it changes its character properties and showanis based on the new properties...but ganiscripts aren't allowed to use setcharprop or sleeve=red or setsleeve(red), etc. (Well, I know they can't use setcharprop anyway, I may not have tested GScript2 and 3 commands in ganiscripts).
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
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 12:53 AM.


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