Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-18-2007, 04:52 PM
Ryyan Ryyan is offline
Is Graal dead yet?
Ryyan's Avatar
Join Date: Jul 2006
Location: USA
Posts: 37
Ryyan is on a distinguished road
setani...huh?

in gs2, what would be the command for when i press a it sets the gani to something?
if its onKeyPressed, then how would i make it change the gani(not change gani from this to that, but to change the player's gani)
Reply With Quote
  #2  
Old 11-18-2007, 06:42 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
HTML Code:
//#CLIENTSIDE
function onKeyPressed(code, key) {
  if (temp.key == "a") {
    player.setani("gani name here", null);
  }
}
__________________
Reply With Quote
  #3  
Old 11-18-2007, 09:03 PM
Switch Switch is offline
o.o
Switch's Avatar
Join Date: Jan 2007
Location: Philadelphia
Posts: 3,038
Switch has a spectacular aura about
Send a message via MSN to Switch
Quote:
Originally Posted by xAndrewx View Post
HTML Code:
//#CLIENTSIDE
function onKeyPressed(code, key) {
  if (temp.key == "a") {
    player.setani("gani name here", null);
  }
}
You don't need the player. before setani(string,string) Atleast I never have and I've never seen it like that.
__________________
Oh squiggly line in my eye fluid. I see you lurking there on the peripheral of my vision.
But when I try to look at you, you scurry away.
Are you shy, squiggly line?
Why only when I ignore you, do you return to the center of my eye?
Oh, squiggly line, it's alright, you are forgiven.
Reply With Quote
  #4  
Old 11-19-2007, 12:35 AM
Googi Googi is offline
A Serious Epidemic
Googi's Avatar
Join Date: Oct 2001
Location: Canada
Posts: 18,866
Googi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud ofGoogi has much to be proud of
Send a message via AIM to Googi
On the off-chance this is because you're trying to use a custom grab/pull gani, you're looking for replaceani, not setani.
__________________
Reply With Quote
  #5  
Old 11-19-2007, 03:15 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Quote:
Originally Posted by Switch View Post
You don't need the player. before setani(string,string) Atleast I never have and I've never seen it like that.
Lol.

It's funny because I don't think you know who you're trying to correct.
__________________
Stan.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:36 AM.


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