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 01-10-2006, 01:43 AM
hydralisk150 hydralisk150 is offline
Registered User
hydralisk150's Avatar
Join Date: Nov 2005
Posts: 29
hydralisk150 is an unknown quantity at this point
setani doesnt wrk

why is it that when i use the setani and setcharani commands they dont wrk
Reply With Quote
  #2  
Old 01-10-2006, 02:33 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
Maybe you're typing

stni

and

stchrni
Reply With Quote
  #3  
Old 01-10-2006, 02:36 AM
hydralisk150 hydralisk150 is offline
Registered User
hydralisk150's Avatar
Join Date: Nov 2005
Posts: 29
hydralisk150 is an unknown quantity at this point
no i do it correctly it dont work like ill put

if (playertouchsme)
{setani sit.ani,;
}
and it dont wrk
Reply With Quote
  #4  
Old 01-10-2006, 02:51 AM
haunter haunter is offline
Registered User
haunter's Avatar
Join Date: Mar 2001
Posts: 7,989
haunter is on a distinguished road
First of all: The extention is .gani, not .ani... Second of all, don't use the extention in the script.

Tht shld wrk nw.
Reply With Quote
  #5  
Old 01-10-2006, 03:01 AM
Kronan Kronan is offline
yo
Kronan's Avatar
Join Date: May 2001
Location: Florida, USA
Posts: 682
Kronan is on a distinguished road
Send a message via ICQ to Kronan Send a message via AIM to Kronan Send a message via Yahoo to Kronan
Quote:
Originally Posted by haunter
First of all: The extention is .gani, not .ani... Second of all, don't use the extention in the script.

Tht shld wrk nw.
Owned.

Quote:
Originally Posted by hydralisk150
no i do it correctly it dont work like ill put

if (playertouchsme)
{setani sit.ani,;
}
and it dont wrk
If you want, you can do it in GS2 like so:

function onPlayerTouchsme() {
setani("sit",NULL);
}
__________________
Reply With Quote
  #6  
Old 01-10-2006, 03:13 AM
hydralisk150 hydralisk150 is offline
Registered User
hydralisk150's Avatar
Join Date: Nov 2005
Posts: 29
hydralisk150 is an unknown quantity at this point
if (playertouchsme)
{setani sit.gani,;
}

or

if (playertouchsme)
{setani sit,;
}

?
Reply With Quote
  #7  
Old 01-10-2006, 03:28 AM
Riot Riot is offline
Delteria Management
Join Date: Nov 2003
Location: Seminole County, Florida
Posts: 280
Riot is on a distinguished road
Quote:
Originally Posted by hydralisk150
if (playertouchsme)
{setani sit.gani,;
}

or

if (playertouchsme)
{setani sit,;
}

?
Do not include the extension (.gani), so the second one.
Reply With Quote
  #8  
Old 01-10-2006, 10:46 AM
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
You'll probably also need a setshape, but please post this in the correct part next time.
__________________
Reply With Quote
  #9  
Old 01-10-2006, 03:37 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by xAndrewx
You'll probably also need a setshape, but please post this in the correct part next time.
o_o why would you need a setshape to set the gani?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #10  
Old 01-10-2006, 05:41 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
Quote:
Originally Posted by ApothiX
o_o why would you need a setshape to set the gani?
if (playertouchsme)
__________________
Reply With Quote
  #11  
Old 01-10-2006, 05:59 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by xAndrewx
if (playertouchsme)
You don't normally need a setshape for that (especially if it's clientside, which setani() usually is.)
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote
  #12  
Old 01-11-2006, 02:29 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
Quote:
Originally Posted by xAndrewx
You'll probably also need a setshape, but please post this in the correct part next time.
Don't give bad advice. Setshape is only needed if a shape other than that defined by the NPC's set image is desired.
Reply With Quote
  #13  
Old 01-11-2006, 10:31 AM
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
ok, let me re-phrase it.
If you want to set a shape around the image so you don't need to grab the image area, you'd use the setshape command.
__________________
Reply With Quote
  #14  
Old 01-11-2006, 10:21 PM
Luigi203 Luigi203 is offline
Hamma Time
Luigi203's Avatar
Join Date: Mar 2003
Location: North East PA
Posts: 285
Luigi203 is on a distinguished road
Send a message via AIM to Luigi203
Quote:
Originally Posted by xAndrewx
ok, let me re-phrase it.
If you want to set a shape around the image so you don't need to grab the image area, you'd use the setshape command.

Which doesnt seem to be the case, and has nothing to do with the original problem?
__________________


CAUTION
Reply With Quote
  #15  
Old 01-12-2006, 10:39 AM
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
That doesn't mean I can't give him additional information.
__________________
Reply With Quote
  #16  
Old 01-12-2006, 05:42 PM
Prozac Prozac is offline
one of the good guys
Prozac's Avatar
Join Date: Jan 2006
Posts: 245
Prozac is on a distinguished road
Send a message via AIM to Prozac
I have noticed, while this thread is on gani, that in gs2

setani("aniname");

does not work. there is no second parameter becasue in my case I do not need one.
Reply With Quote
  #17  
Old 01-12-2006, 06:23 PM
Silent Silent is offline
<3
Silent's Avatar
Join Date: Mar 2005
Location: England
Posts: 132
Silent is on a distinguished road
Send a message via AIM to Silent Send a message via MSN to Silent
Quote:
Originally Posted by Prozac
I have noticed, while this thread is on gani, that in gs2

setani("aniname");

does not work. there is no second parameter becasue in my case I do not need one.
Then tell Graal that you don't need one:

setani("aniname", NULL);
__________________
Quote:
Originally Posted by MilkyWay0016
The Bible also says things like...

"Stone disobedient children" (Deuteronomy 21:18-21)
Quote:
Originally Posted by Loriel
Disobedient children are likely enough to get stoned already, I think.
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:22 AM.


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