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 12-16-2001, 08:00 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Help me

Ok,

How would you make a waepon that shoots somthing like and arrow but with a dif gif, damage, and lets say things thats stop it?
Also how would I make it check if a person had a certain type of armor?

-Knight_Vincent
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #2  
Old 12-16-2001, 08:30 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

For the arrows... use an array to store the direction/x/y of the arrows, use your own images, and use a hitobjects... to detect tiles, use tiles[x,y]=....

For the armor... probably triggeraction looping..

if(actioncheckarmor){
if (this.armor=1){triggeraction armor1,x,y,;}
}

Or whatever the format for triggeraction is... too lazy to check on it right now.
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #3  
Old 12-16-2001, 08:33 AM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Ok,

Also how would I make the weapon stay out infrount of the person untill they fired the weapon again? Oh and how do you set a gain?

-Knight_Vincent
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #4  
Old 12-16-2001, 01:30 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
setani ganiname,params
since you probably don't know how to use params just do
setani ganiname,;
Reply With Quote
  #5  
Old 12-16-2001, 01:34 PM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Ok,

How do i make it change ganis when fired and also whats the keydown number for "D"?

-Knight_Vincent
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #6  
Old 12-16-2001, 01:38 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Knight_Vincent
Ok,

How do i make it change ganis when fired and also whats the keydown number for "D"?

-Knight_Vincent
if (weaponfired) {setani ganiname,;}
and for the keydown, it's either 4,5, or 6
try this to find out which one since I don't feel like opening graal right now.
You don't need a keydown for D since weaponfired looks for the D keydown but if you must know it, it's 4, 5, or 6, can't remember which
Reply With Quote
  #7  
Old 12-16-2001, 01:46 PM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Whoops,

Oh yes... now I rember that... ohwell. Anywho lerts say i made something shoot a object. Where in the fireing code (traveling part) would I put the setcoloreffect and drawaslight?

-Knight_Vincent
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #8  
Old 12-16-2001, 01:49 PM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Knight_Vincent
Whoops,

Oh yes... now I rember that... ohwell. Anywho lerts say i made something shoot a object. Where in the fireing code (traveling part) would I put the setcoloreffect and drawaslight?

-Knight_Vincent
Why would you use setcolor effect in a bow?
Reply With Quote
  #9  
Old 12-16-2001, 01:52 PM
Knight_Vincent Knight_Vincent is offline
Registered User
Knight_Vincent's Avatar
Join Date: Aug 2001
Location: Troy, MI
Posts: 682
Knight_Vincent is on a distinguished road
Send a message via ICQ to Knight_Vincent Send a message via AIM to Knight_Vincent Send a message via Yahoo to Knight_Vincent
Hehe,

Magical Fire Arrow bow and I dont wana use the stupid fire ball .

-Knight_Vincent
__________________
"Did you write the Book of Love And do you have faith in God above If the Bible tells you so Do you believe in rock 'n roll Can music save your mortal soul And can you teach me how to dance real slow Well, I know that you're in love with him 'Cause I saw you dancin' in the gym You both kicked off your shoes Man, I dig those rhythm and blues I was a lonely teenage broncin' buck With a pink carnation and a pickup truck But I knew I was out of luck The day the music died" --Don McLean 'American Pie'
Reply With Quote
  #10  
Old 12-16-2001, 03:20 PM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

You'd put it in the timeout section, duh...
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #11  
Old 12-17-2001, 12:45 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by Python523

if (weaponfired) {setani ganiname,;}
and for the keydown, it's either 4,5, or 6
try this to find out which one since I don't feel like opening graal right now.
You don't need a keydown for D since weaponfired looks for the D keydown but if you must know it, it's 4, 5, or 6, can't remember which
4 is S, 5 is A, and 6 is D.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
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 06:32 PM.


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