Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-13-2012, 09:45 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Gani Frame?

Is there anyway to show the current frame the ani is in? I know you can set them using

PHP Code:
setani("gani[123]"null); 
Where 123 is the frame. I just can't find anything on how to read the current frame number..

Any ideas?
Reply With Quote
  #2  
Old 02-13-2012, 03:04 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Might I ask what you would require the check for exactly?

Because I've been curious as to how this is possible too.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #3  
Old 02-13-2012, 03:19 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by scripthelp
TGaniObject.anistep - integer (read only)
Haven't tried it, but looks like what you need.
__________________
Reply With Quote
  #4  
Old 02-13-2012, 07:32 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
Haven't tried it, but looks like what you need.
It is. Using this:
PHP Code:
setAni(player.ani.name "[" player.ani.anistep "]"nil); 
Works.
__________________
Reply With Quote
  #5  
Old 02-13-2012, 07:47 PM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by cbk1994 View Post
Haven't tried it, but looks like what you need.
Thanks <3

Quote:
Originally Posted by Fulg0reSama View Post
Might I ask what you would require the check for exactly?

Because I've been curious as to how this is possible too.
Fishing pole that is animated, I need to know what frame it is in so I can smoothly correct the starting point of the polygon (fishing line)..



This seemed to work
PHP Code:
function onCreated() {
  
setani("fishing[2]"null);
  
player.chat player.anistep;

For some reason player.ani.anistep wasn't working.
Reply With Quote
  #6  
Old 02-14-2012, 12:54 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by scriptless View Post
For some reason player.ani.anistep wasn't working.
player.ani is not a TGaniObject, it's a TGraalAni.
__________________
Reply With Quote
  #7  
Old 02-14-2012, 01:01 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by scriptless View Post
For some reason player.ani.anistep wasn't working.
Quote:
Originally Posted by cbk1994 View Post
player.ani is not a TGaniObject, it's a TGraalAni.
My bad.
__________________
Reply With Quote
  #8  
Old 02-16-2012, 04:22 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
It would be nice if there was a way to not only set a specific gani frame, but continue the rest of the animation that occurs after it.
Unless there is already?
Reply With Quote
  #9  
Old 02-16-2012, 05:02 AM
oo_jazz_oo oo_jazz_oo is offline
Jazz teh Awesome
oo_jazz_oo's Avatar
Join Date: Jul 2006
Location: California
Posts: 596
oo_jazz_oo is a jewel in the roughoo_jazz_oo is a jewel in the rough
Send a message via MSN to oo_jazz_oo
Quote:
Originally Posted by ffcmike View Post
It would be nice if there was a way to not only set a specific gani frame, but continue the rest of the animation that occurs after it.
Unless there is already?
player.anistep should just be allowed to be changed, instead of being read only...
__________________

Reply With Quote
  #10  
Old 02-16-2012, 05:14 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by ffcmike View Post
It would be nice if there was a way to not only set a specific gani frame, but continue the rest of the animation that occurs after it.
Unless there is already?
The only way I can think of atm is clever use of setbackto.
Hopefully my suggestion isn't a complete waste lol
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #11  
Old 02-16-2012, 11:55 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by ffcmike View Post
It would be nice if there was a way to not only set a specific gani frame, but continue the rest of the animation that occurs after it.
Unless there is already?
Try:
PHP Code:
setAni("walk[4]"nil);
setAni("walk"nil); 
Maybe with a pause inbetween, no idea. But that should work. Something exists that does exactly what you want, and I'm almost 100% sure it was this code, but then again, it's been a while..
__________________
Reply With Quote
  #12  
Old 02-17-2012, 10:16 PM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by Crow View Post
Try:
PHP Code:
setAni("walk[4]"nil);
setAni("walk"nil); 
Maybe with a pause inbetween, no idea. But that should work. Something exists that does exactly what you want, and I'm almost 100% sure it was this code, but then again, it's been a while..
Doesn't seem to work, it plays the full gani with or without a pause inbetween.
Reply With Quote
  #13  
Old 02-18-2012, 02:20 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by ffcmike View Post
Doesn't seem to work, it plays the full gani with or without a pause inbetween.
PHP Code:
setAni("walk[4]"nil); 
Should set the gani to frame 4.. however I don't know how to play from that point. If anyone finds how to make it play from that point please feel free to post a link here.
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 11:31 PM.


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