Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Replaceani and ganiparams (https://forums.graalonline.com/forums/showthread.php?t=134257516)

thatdwarf 12-31-2009 09:13 AM

Replaceani and ganiparams
 
Hey everybody,

My question today involves replaceani and the PARAM1 of a gani file. I have three ganis that rely on the value of the PARAM1 part of the gani file. They are a walk, idle, and attack gani.

Is there a way to set PARAM1 via a script?

for example:

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
replaceani("idle","newidle");
  
replaceani("walk","newwalk");
  
replaceani("sword","newattack");

  
player.params[1] = "blah";


Something like that? (No, the above does not work)

Thanks in advance!

DustyPorViva 12-31-2009 09:19 AM

Maybe...
replaceani("sword","newattack,param1,param2");

?

thatdwarf 12-31-2009 09:21 AM

Negative. Tried that to no avail

thatdwarf 12-31-2009 09:42 AM

Figured it out. Changed the image over to ATTR2 and just did player.attr[2] = IMG;


All times are GMT +2. The time now is 02:35 PM.

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