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 09-27-2001, 07:38 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
Gani Checking

How do I check the current gani so something happens ONLY if I use that gani? Ive tried it with strequals and #m but that doesnt work. Can someone help?
Reply With Quote
  #2  
Old 09-27-2001, 08:03 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
command

NPC Code:

if (playerani) {
}


that may be it ....
Reply With Quote
  #3  
Old 09-27-2001, 09:34 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Re: Gani Checking

Quote:
Originally posted by ArmadeusWarlock
How do I check the current gani so something happens ONLY if I use that gani? Ive tried it with strequals and #m but that doesnt work. Can someone help?
the gani of the player or npc???
__________________
Thanks,
-KJL
Reply With Quote
  #4  
Old 09-27-2001, 07:07 PM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Kaimetsu
#m should work.
unless if he is trying to find the gani of a npc... I forgot what it was to do that but I look into it...
__________________
Thanks,
-KJL
Reply With Quote
  #5  
Old 09-27-2001, 08:44 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
wouldn't you just do like:
NPC Code:

if (strequals(#m,idle)) {
//do stuff
}

__________________

-=Shard IceFire=-
Reply With Quote
  #6  
Old 09-28-2001, 02:47 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Kaimetsu


#m(-1)
I also think for npc server there is a
#(letter)

cuz I remeber slp asking stefan once and then slp told me but I never remebered it...
__________________
Thanks,
-KJL
Reply With Quote
  #7  
Old 09-28-2001, 02:51 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Kaimetsu


I've never heard of that. Could you give an example of what you mean by #(letter)?
well it wouldn't accually be

#(letter)

I mean like
#m (that would be a letter)

I dont konw what the letter is that you put there...

#<a letter goes here but I dont remeber what one>

(I should have said it like that)
__________________
Thanks,
-KJL
Reply With Quote
  #8  
Old 09-28-2001, 02:51 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
mabie ask slp... he might know...

he is the one who told me..
__________________
Thanks,
-KJL
Reply With Quote
  #9  
Old 09-28-2001, 04:31 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
eek

Ok, Here is what I tried, FOR TESTING:

if(strequals(#m,sword)){
setplayerprop #c,Hi;
}

I was doing that to test something to work on something else, and it doesnt work.(testing to see if this would work)
Can someone please say why it doesnt?
Reply With Quote
  #10  
Old 09-28-2001, 04:35 AM
ArmadeusWarlock ArmadeusWarlock is offline
Registered User
Join Date: Jun 2001
Posts: 373
ArmadeusWarlock is on a distinguished road
and

To test to make sure that it read the gani WITHOUT adding .gani to the end, I made a simple script:

if(playerenters){
message #m;
}

and the game read it as sword, not sword.gani, so i now I dont need .gani at the end of it
Reply With Quote
  #11  
Old 09-28-2001, 04:56 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by Kaimetsu


Could be any number of things, like #L or whatever.
yea I know there could be like
62 different possablilities (its case censitive)
__________________
Thanks,
-KJL
Reply With Quote
  #12  
Old 09-28-2001, 05:59 AM
SSj_Link SSj_Link is offline
Registered User
Join Date: Jul 2001
Location: i r live in texas
Posts: 244
SSj_Link is on a distinguished road
Send a message via ICQ to SSj_Link Send a message via AIM to SSj_Link
Maybe...

Im not all god like at scripting like Kai, but maybe somethin like

if (npcgani(gani)) {
actions;
}


Dont yell at me if it dosnt work

-Freaky-
__________________
-People with my Password: Me (Boozy), Ghostface Killa, bgraven, Freaky Carnie, Dark Warlock, and SoulReaver.
-So they can all post.-

-I hate my account name -

~Old Names: Link, Darklink, Neo, then Boozy when Bravo died. (So some people will recognize me)~

AIM: boozyneo
ICQ: 116030736
Msn: [email protected]
Email: [email protected]


-DANCE SPAM DANCE!- Dark Warlock
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 12:56 PM.


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