Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Gani movie, or Script? (https://forums.graalonline.com/forums/showthread.php?t=134268309)

scriptless 06-09-2013 12:31 AM

Gani movie, or Script?
 
Okay, I was playing around with Gani Movie. But when I entered Movie Mode all the sprites cleared. Okay so I placed 1 hat down. I made it move but the questions are, how do I make it for example say something like chat? Does it automatically use walk ani for walking and what if I don't want it to.

So I immediately decided scripting was probably going to be way way easier. Turns out I was half right, very very simple. Theres only 1 catch. I was unable to change the appearance of the char gani after doing it. So maybe someone has some ideas to an alternative to gani movies for making cut scenes.

If I can generate some feedback, I may attempt to build a tool that can later be released to help other servers do this.

Here is what I was trying:
PHP Code:

//#CLIENTSIDE
function onCreated() {
  
temp.obj showani(10player.xplayer.y-3player.dirplayer.ani"");
  
temp.obj.head "head25.png";


This, however does not work tho :( And I would still not be able to set chat :(

Draenin 06-09-2013 12:51 AM

I assume this is for the editor we once discussed at some point?

If so, maybe you could have chat commands entered separately in the editor, between the commands for animations. Ideally, if you are making movies, you'd probably want to have the code compiled in a linear fashion, unless you know of a good way to make non-linear editing possible.

In a linear system, you can't exactly lift and move animations, or 'clips', from where they are and mess with the order a lot. But it's really not a huge disadvantage if that kind of functionality is missing.



You could put together a linear editor that allows you to select animations and other commands in the order the 'movie' is to be compiled, which would look like this:

Animation 1 -> Chat 1 -> Animation 2 -> Chat 2 -> Chat 3 -> Animation 3 -> Seteffect

However, a non-linear editor design would allow you to re-arrange the sequence of commands before you compile the code, meaning you could re-arrange them to a sequence like this:

Animation 1 -> Chat 2 -> Chat 1 -> Animation 3 -> Chat 3 -> Animation 2 -> Seteffect



But regardless of what you do, you'll probably want to make this as an editor with the ability to compile code based on the command sequence you've put in.

fowlplay4 06-09-2013 05:12 PM

You have to use the actor variables:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
ani "idle";
    
playerlook false;
    
actor.head "head25.png";
    
// and so on..
  
}



Crono 06-09-2013 05:18 PM

actor.name = "crono (fabulous)" ~

scriptless 06-09-2013 07:27 PM

Quote:

Originally Posted by fowlplay4 (Post 1718970)
You have to use the actor variables:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
with (findimg(200)) {
    
ani "idle";
    
playerlook false;
    
actor.head "head25.png";
    
// and so on..
  
}



Thanks, but whats "playerlook" variable exactly for anyways?

xXziroXx 06-09-2013 07:41 PM

Quote:

Originally Posted by scriptless (Post 1718976)
Thanks, but whats "playerlook" variable exactly for anyways?

If the actor should look like the current player or not.

scriptless 06-10-2013 12:59 AM

Quote:

Originally Posted by xXziroXx (Post 1718977)
If the actor should look like the current player or not.

cool, thanks. should be interesting


All times are GMT +2. The time now is 07:36 PM.

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