Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   New Scripting Engine (GS2) (https://forums.graalonline.com/forums/forumdisplay.php?f=153)
-   -   NPC Character -- Replace its Animation(s) (https://forums.graalonline.com/forums/showthread.php?t=76945)

Switch 09-27-2007 01:09 AM

NPC Character -- Replace its Animation(s)
 
What's the script to change a character (NOT PLAYER'S) animation for a certain event permanently until the event is over?

DustyPorViva 09-27-2007 01:17 AM

setcharani("ani",null);
?

Switch 09-27-2007 01:22 AM

I mean liek you use "replaceani("beingreplaced","replacement");" what do I use for that on a character NPC?

DustyPorViva 09-27-2007 01:39 AM

Erm, there isn't such thing, because NPC's don't have default animations. Since you have to set an NPC's ani via script(unlike players, who have default animations), you just have to script it to use whatever animation you want it to.

Switch 09-27-2007 02:52 AM

okeh :\

Googi 09-27-2007 02:53 AM

Just what were you trying to do that you would want to do something like this?

DustyPorViva 09-27-2007 03:32 AM

Quote:

Originally Posted by Switch (Post 1349746)
okeh :\

If you have an NPC with animations, simply change the animation being set in the setcharani line.
You can either do that, or do something like:
this.walkani="whateverani";
setcharani(this.walkani,null);

Switch 09-27-2007 09:43 PM

Yeah I ended production on the NPC xD


All times are GMT +2. The time now is 05:13 PM.

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