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 12-31-2009, 09:13 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
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!
Reply With Quote
  #2  
Old 12-31-2009, 09:19 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Maybe...
replaceani("sword","newattack,param1,param2");

?
Reply With Quote
  #3  
Old 12-31-2009, 09:21 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
Negative. Tried that to no avail
Reply With Quote
  #4  
Old 12-31-2009, 09:42 AM
thatdwarf thatdwarf is offline
Former UN Dev Admin
Join Date: Nov 2005
Posts: 42
thatdwarf is on a distinguished road
Figured it out. Changed the image over to ATTR2 and just did player.attr[2] = IMG;
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 12:53 AM.


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